/AWS1/IF_HLT=>DESCRIBEENTITYAGGREGATES()¶
About DescribeEntityAggregates¶
Returns the number of entities that are affected by each of the specified events.
Method Signature¶
METHODS /AWS1/IF_HLT~DESCRIBEENTITYAGGREGATES
IMPORTING
!IT_EVENTARNS TYPE /AWS1/CL_HLTEVENTARNSLIST_W=>TT_EVENTARNSLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hltdscentaggregates01
RAISING
/AWS1/CX_HLTCLIENTEXC
/AWS1/CX_HLTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_eventarns TYPE /AWS1/CL_HLTEVENTARNSLIST_W=>TT_EVENTARNSLIST TT_EVENTARNSLIST¶
A list of event ARNs (unique identifiers). For example:
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
RETURNING¶
oo_output TYPE REF TO /aws1/cl_hltdscentaggregates01 /AWS1/CL_HLTDSCENTAGGREGATES01¶
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->describeentityaggregates(
it_eventarns = VALUE /aws1/cl_hlteventarnslist_w=>tt_eventarnslist(
( new /aws1/cl_hlteventarnslist_w( |string| ) )
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_entityaggregates( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_eventarn = lo_row_1->get_eventarn( ).
lv_count = lo_row_1->get_count( ).
LOOP AT lo_row_1->get_statuses( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_count = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.