/AWS1/IF_AIN=>LISTCONFIGURATIONHISTORY()¶
About ListConfigurationHistory¶
Lists the INFO, WARN, and ERROR events for periodic configuration updates performed by Application Insights. Examples of events represented are:
-
INFO: creating a new alarm or updating an alarm threshold.
-
WARN: alarm not created due to insufficient data points used to predict thresholds.
-
ERROR: alarm not created due to permission errors or exceeding quotas.
Method Signature¶
METHODS /AWS1/IF_AIN~LISTCONFIGURATIONHISTORY
IMPORTING
!IV_RESOURCEGROUPNAME TYPE /AWS1/AINRESOURCEGROUPNAME OPTIONAL
!IV_STARTTIME TYPE /AWS1/AINSTARTTIME OPTIONAL
!IV_ENDTIME TYPE /AWS1/AINENDTIME OPTIONAL
!IV_EVENTSTATUS TYPE /AWS1/AINCONFEVENTSTATUS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/AINMAXENTITIES OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/AINPAGINATIONTOKEN OPTIONAL
!IV_ACCOUNTID TYPE /AWS1/AINACCOUNTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ainlistconfhistoryrsp
RAISING
/AWS1/CX_AININTERNALSERVEREX
/AWS1/CX_AINRESOURCENOTFOUNDEX
/AWS1/CX_AINVALIDATIONEX
/AWS1/CX_AINCLIENTEXC
/AWS1/CX_AINSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_resourcegroupname TYPE /AWS1/AINRESOURCEGROUPNAME /AWS1/AINRESOURCEGROUPNAME¶
Resource group to which the application belongs.
iv_starttime TYPE /AWS1/AINSTARTTIME /AWS1/AINSTARTTIME¶
The start time of the event.
iv_endtime TYPE /AWS1/AINENDTIME /AWS1/AINENDTIME¶
The end time of the event.
iv_eventstatus TYPE /AWS1/AINCONFEVENTSTATUS /AWS1/AINCONFEVENTSTATUS¶
The status of the configuration update event. Possible values include INFO, WARN, and ERROR.
iv_maxresults TYPE /AWS1/AINMAXENTITIES /AWS1/AINMAXENTITIES¶
The maximum number of results returned by
ListConfigurationHistoryin paginated output. When this parameter is used,ListConfigurationHistoryreturns onlyMaxResultsin a single page along with aNextTokenresponse element. The remaining results of the initial request can be seen by sending anotherListConfigurationHistoryrequest with the returnedNextTokenvalue. If this parameter is not used, thenListConfigurationHistoryreturns all results.
iv_nexttoken TYPE /AWS1/AINPAGINATIONTOKEN /AWS1/AINPAGINATIONTOKEN¶
The
NextTokenvalue returned from a previous paginatedListConfigurationHistoryrequest whereMaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned theNextTokenvalue. This value isnullwhen there are no more results to return.
iv_accountid TYPE /AWS1/AINACCOUNTID /AWS1/AINACCOUNTID¶
The Amazon Web Services account ID for the resource group owner.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ainlistconfhistoryrsp /AWS1/CL_AINLISTCONFHISTORYRSP¶
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->listconfigurationhistory(
iv_accountid = |string|
iv_endtime = '20150101000000.0000000'
iv_eventstatus = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_resourcegroupname = |string|
iv_starttime = '20150101000000.0000000'
).
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_eventlist( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_resourcegroupname = lo_row_1->get_resourcegroupname( ).
lv_accountid = lo_row_1->get_accountid( ).
lv_configurationeventmonit = lo_row_1->get_monitoredresourcearn( ).
lv_configurationeventstatu = lo_row_1->get_eventstatus( ).
lv_configurationeventresou = lo_row_1->get_eventresourcetype( ).
lv_configurationeventtime = lo_row_1->get_eventtime( ).
lv_configurationeventdetai = lo_row_1->get_eventdetail( ).
lv_configurationeventresou_1 = lo_row_1->get_eventresourcename( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.