/AWS1/CL_SGM=>DESCRIBECLUSTEREVENT()
¶
About DescribeClusterEvent¶
Retrieves detailed information about a specific event for a given HyperPod cluster. This functionality is only supported when the NodeProvisioningMode
is set to Continuous
.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_eventid
TYPE /AWS1/SGMEVENTID
/AWS1/SGMEVENTID
¶
The unique identifier (UUID) of the event to describe. This ID can be obtained from the
ListClusterEvents
operation.
iv_clustername
TYPE /AWS1/SGMCLUSTERNAMEORARN
/AWS1/SGMCLUSTERNAMEORARN
¶
The name or Amazon Resource Name (ARN) of the HyperPod cluster associated with the event.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_sgmdescrclusteventrsp
/AWS1/CL_SGMDESCRCLUSTEVENTRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_sgm~describeclusterevent(
iv_clustername = |string|
iv_eventid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_clustereventdetail = lo_result->get_eventdetails( ).
IF lo_clustereventdetail IS NOT INITIAL.
lv_eventid = lo_clustereventdetail->get_eventid( ).
lv_clusterarn = lo_clustereventdetail->get_clusterarn( ).
lv_clustername = lo_clustereventdetail->get_clustername( ).
lv_clusterinstancegroupnam = lo_clustereventdetail->get_instancegroupname( ).
lv_string = lo_clustereventdetail->get_instanceid( ).
lv_clustereventresourcetyp = lo_clustereventdetail->get_resourcetype( ).
lv_timestamp = lo_clustereventdetail->get_eventtime( ).
lo_eventdetails = lo_clustereventdetail->get_eventdetails( ).
IF lo_eventdetails IS NOT INITIAL.
lo_eventmetadata = lo_eventdetails->get_eventmetadata( ).
IF lo_eventmetadata IS NOT INITIAL.
lo_clustermetadata = lo_eventmetadata->get_cluster( ).
IF lo_clustermetadata IS NOT INITIAL.
lv_string = lo_clustermetadata->get_failuremessage( ).
LOOP AT lo_clustermetadata->get_eksroleaccessentries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_clustermetadata->get_slraccessentry( ).
ENDIF.
lo_instancegroupmetadata = lo_eventmetadata->get_instancegroup( ).
IF lo_instancegroupmetadata IS NOT INITIAL.
lv_string = lo_instancegroupmetadata->get_failuremessage( ).
lv_string = lo_instancegroupmetadata->get_availabilityzoneid( ).
lo_capacityreservation = lo_instancegroupmetadata->get_capacityreservation( ).
IF lo_capacityreservation IS NOT INITIAL.
lv_string = lo_capacityreservation->get_arn( ).
lv_capacityreservationtype = lo_capacityreservation->get_type( ).
ENDIF.
lv_string = lo_instancegroupmetadata->get_subnetid( ).
LOOP AT lo_instancegroupmetadata->get_securitygroupids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_securitygroupid = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_instancegroupmetadata->get_amioverride( ).
ENDIF.
lo_instancegroupscalingmet = lo_eventmetadata->get_instancegroupscaling( ).
IF lo_instancegroupscalingmet IS NOT INITIAL.
lv_instancecount = lo_instancegroupscalingmet->get_instancecount( ).
lv_targetcount = lo_instancegroupscalingmet->get_targetcount( ).
lv_string = lo_instancegroupscalingmet->get_failuremessage( ).
ENDIF.
lo_instancemetadata = lo_eventmetadata->get_instance( ).
IF lo_instancemetadata IS NOT INITIAL.
lv_string = lo_instancemetadata->get_customereni( ).
lo_additionalenis = lo_instancemetadata->get_additionalenis( ).
IF lo_additionalenis IS NOT INITIAL.
LOOP AT lo_additionalenis->get_efaenis( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_string = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lo_capacityreservation = lo_instancemetadata->get_capacityreservation( ).
IF lo_capacityreservation IS NOT INITIAL.
lv_string = lo_capacityreservation->get_arn( ).
lv_capacityreservationtype = lo_capacityreservation->get_type( ).
ENDIF.
lv_string = lo_instancemetadata->get_failuremessage( ).
lv_string = lo_instancemetadata->get_lcsexecutionstate( ).
lv_clusternodelogicalid = lo_instancemetadata->get_nodelogicalid( ).
ENDIF.
ENDIF.
ENDIF.
lv_string = lo_clustereventdetail->get_description( ).
ENDIF.
ENDIF.