/AWS1/IF_DOG=>SEARCHORGANIZATIONINSIGHTS()¶
About SearchOrganizationInsights¶
Returns a list of insights in your organization. You can specify which insights are
returned by their start time, one or more statuses (ONGOING,
CLOSED, and CLOSED), one or more severities
(LOW, MEDIUM, and HIGH), and type
(REACTIVE or PROACTIVE).
Use the Filters parameter to specify status and severity search
parameters. Use the Type parameter to specify REACTIVE or
PROACTIVE in your search.
Method Signature¶
METHODS /AWS1/IF_DOG~SEARCHORGANIZATIONINSIGHTS
IMPORTING
!IT_ACCOUNTIDS TYPE /AWS1/CL_DOGSRCHINSIGHTSACID00=>TT_SEARCHINSIGHTSACCOUNTIDLIST OPTIONAL
!IO_STARTTIMERANGE TYPE REF TO /AWS1/CL_DOGSTARTTIMERANGE OPTIONAL
!IO_FILTERS TYPE REF TO /AWS1/CL_DOGSRCHORGINSIGHTSF00 OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/DOGSRCHORGINSIGHTSMAXRSS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DOGUUIDNEXTTOKEN OPTIONAL
!IV_TYPE TYPE /AWS1/DOGINSIGHTTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dogsrchorginsightsrsp
RAISING
/AWS1/CX_DOGACCESSDENIEDEX
/AWS1/CX_DOGINTERNALSERVEREX
/AWS1/CX_DOGTHROTTLINGEX
/AWS1/CX_DOGVALIDATIONEX
/AWS1/CX_DOGCLIENTEXC
/AWS1/CX_DOGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
it_accountids TYPE /AWS1/CL_DOGSRCHINSIGHTSACID00=>TT_SEARCHINSIGHTSACCOUNTIDLIST TT_SEARCHINSIGHTSACCOUNTIDLIST¶
The ID of the Amazon Web Services account.
io_starttimerange TYPE REF TO /AWS1/CL_DOGSTARTTIMERANGE /AWS1/CL_DOGSTARTTIMERANGE¶
StartTimeRange
iv_type TYPE /AWS1/DOGINSIGHTTYPE /AWS1/DOGINSIGHTTYPE¶
The type of insights you are searching for (
REACTIVEorPROACTIVE).
Optional arguments:¶
io_filters TYPE REF TO /AWS1/CL_DOGSRCHORGINSIGHTSF00 /AWS1/CL_DOGSRCHORGINSIGHTSF00¶
A
SearchOrganizationInsightsFiltersobject that is used to set the severity and status filters on your insight search.
iv_maxresults TYPE /AWS1/DOGSRCHORGINSIGHTSMAXRSS /AWS1/DOGSRCHORGINSIGHTSMAXRSS¶
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.
iv_nexttoken TYPE /AWS1/DOGUUIDNEXTTOKEN /AWS1/DOGUUIDNEXTTOKEN¶
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dogsrchorginsightsrsp /AWS1/CL_DOGSRCHORGINSIGHTSRSP¶
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->searchorganizationinsights(
io_filters = new /aws1/cl_dogsrchorginsightsf00(
io_resourcecollection = new /aws1/cl_dogresourcecollection(
io_cloudformation = new /aws1/cl_dogcloudformationcoll(
it_stacknames = VALUE /aws1/cl_dogstacknames_w=>tt_stacknames(
( new /aws1/cl_dogstacknames_w( |string| ) )
)
)
it_tags = VALUE /aws1/cl_dogtagcollection=>tt_tagcollections(
(
new /aws1/cl_dogtagcollection(
it_tagvalues = VALUE /aws1/cl_dogtagvalues_w=>tt_tagvalues(
( new /aws1/cl_dogtagvalues_w( |string| ) )
)
iv_appboundarykey = |string|
)
)
)
)
io_servicecollection = new /aws1/cl_dogservicecollection(
it_servicenames = VALUE /aws1/cl_dogservicenames_w=>tt_servicenames(
( new /aws1/cl_dogservicenames_w( |string| ) )
)
)
it_severities = VALUE /aws1/cl_doginsightseveritie00=>tt_insightseverities(
( new /aws1/cl_doginsightseveritie00( |string| ) )
)
it_statuses = VALUE /aws1/cl_doginsightstatuses_w=>tt_insightstatuses(
( new /aws1/cl_doginsightstatuses_w( |string| ) )
)
)
io_starttimerange = new /aws1/cl_dogstarttimerange(
iv_fromtime = '20150101000000.0000000'
iv_totime = '20150101000000.0000000'
)
it_accountids = VALUE /aws1/cl_dogsrchinsightsacid00=>tt_searchinsightsaccountidlist(
( new /aws1/cl_dogsrchinsightsacid00( |string| ) )
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_type = |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_proactiveinsights( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_insightid = lo_row_1->get_id( ).
lv_insightname = lo_row_1->get_name( ).
lv_insightseverity = lo_row_1->get_severity( ).
lv_insightstatus = lo_row_1->get_status( ).
lo_insighttimerange = lo_row_1->get_insighttimerange( ).
IF lo_insighttimerange IS NOT INITIAL.
lv_timestamp = lo_insighttimerange->get_starttime( ).
lv_timestamp = lo_insighttimerange->get_endtime( ).
ENDIF.
lo_predictiontimerange = lo_row_1->get_predictiontimerange( ).
IF lo_predictiontimerange IS NOT INITIAL.
lv_timestamp = lo_predictiontimerange->get_starttime( ).
lv_timestamp = lo_predictiontimerange->get_endtime( ).
ENDIF.
lo_resourcecollection = lo_row_1->get_resourcecollection( ).
IF lo_resourcecollection IS NOT INITIAL.
lo_cloudformationcollectio = lo_resourcecollection->get_cloudformation( ).
IF lo_cloudformationcollectio IS NOT INITIAL.
LOOP AT lo_cloudformationcollectio->get_stacknames( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stackname = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_resourcecollection->get_tags( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_appboundarykey = lo_row_5->get_appboundarykey( ).
LOOP AT lo_row_5->get_tagvalues( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_tagvalue = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
lo_servicecollection = lo_row_1->get_servicecollection( ).
IF lo_servicecollection IS NOT INITIAL.
LOOP AT lo_servicecollection->get_servicenames( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_servicename = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_row_1->get_associatedresourcearns( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_resourcearn = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_reactiveinsights( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_insightid = lo_row_13->get_id( ).
lv_insightname = lo_row_13->get_name( ).
lv_insightseverity = lo_row_13->get_severity( ).
lv_insightstatus = lo_row_13->get_status( ).
lo_insighttimerange = lo_row_13->get_insighttimerange( ).
IF lo_insighttimerange IS NOT INITIAL.
lv_timestamp = lo_insighttimerange->get_starttime( ).
lv_timestamp = lo_insighttimerange->get_endtime( ).
ENDIF.
lo_resourcecollection = lo_row_13->get_resourcecollection( ).
IF lo_resourcecollection IS NOT INITIAL.
lo_cloudformationcollectio = lo_resourcecollection->get_cloudformation( ).
IF lo_cloudformationcollectio IS NOT INITIAL.
LOOP AT lo_cloudformationcollectio->get_stacknames( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stackname = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_resourcecollection->get_tags( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_appboundarykey = lo_row_5->get_appboundarykey( ).
LOOP AT lo_row_5->get_tagvalues( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_tagvalue = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
ENDIF.
lo_servicecollection = lo_row_13->get_servicecollection( ).
IF lo_servicecollection IS NOT INITIAL.
LOOP AT lo_servicecollection->get_servicenames( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_servicename = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_row_13->get_associatedresourcearns( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_resourcearn = lo_row_11->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_uuidnexttoken = lo_result->get_nexttoken( ).
ENDIF.