/AWS1/IF_TRL=>LISTQUERIES()¶
About ListQueries¶
Returns a list of queries and query statuses for the past seven days. You must specify
an ARN value for EventDataStore. Optionally, to shorten the list of results,
you can specify a time range, formatted as timestamps, by adding StartTime and
EndTime parameters, and a QueryStatus value. Valid values for
QueryStatus include QUEUED, RUNNING,
FINISHED, FAILED, TIMED_OUT, or
CANCELLED.
Method Signature¶
METHODS /AWS1/IF_TRL~LISTQUERIES
IMPORTING
!IV_EVENTDATASTORE TYPE /AWS1/TRLEVENTDATASTOREARN OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/TRLPAGINATIONTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/TRLLSTQUERIESMAXRSLTSCNT OPTIONAL
!IV_STARTTIME TYPE /AWS1/TRLDATE OPTIONAL
!IV_ENDTIME TYPE /AWS1/TRLDATE OPTIONAL
!IV_QUERYSTATUS TYPE /AWS1/TRLQUERYSTATUS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_trllistqueriesrsp
RAISING
/AWS1/CX_TRLEVTDATASTOREARNI00
/AWS1/CX_TRLEVTDATASTORENOTF00
/AWS1/CX_TRLINACTEVTDATASTOR00
/AWS1/CX_TRLINVALIDDATERANGEEX
/AWS1/CX_TRLINVMAXRESULTSEX
/AWS1/CX_TRLINVALIDNEXTTOKENEX
/AWS1/CX_TRLINVALIDPARAMETEREX
/AWS1/CX_TRLINVQUERYSTATUSEX
/AWS1/CX_TRLNOMANAGEMENTACCT00
/AWS1/CX_TRLOPNOTPERMITTEDEX
/AWS1/CX_TRLUNSUPPORTEDOPEX
/AWS1/CX_TRLCLIENTEXC
/AWS1/CX_TRLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_eventdatastore TYPE /AWS1/TRLEVENTDATASTOREARN /AWS1/TRLEVENTDATASTOREARN¶
The ARN (or the ID suffix of the ARN) of an event data store on which queries were run.
Optional arguments:¶
iv_nexttoken TYPE /AWS1/TRLPAGINATIONTOKEN /AWS1/TRLPAGINATIONTOKEN¶
A token you can use to get the next page of results.
iv_maxresults TYPE /AWS1/TRLLSTQUERIESMAXRSLTSCNT /AWS1/TRLLSTQUERIESMAXRSLTSCNT¶
The maximum number of queries to show on a page.
iv_starttime TYPE /AWS1/TRLDATE /AWS1/TRLDATE¶
Use with
EndTimeto bound aListQueriesrequest, and limit its results to only those queries run within a specified time period.
iv_endtime TYPE /AWS1/TRLDATE /AWS1/TRLDATE¶
Use with
StartTimeto bound aListQueriesrequest, and limit its results to only those queries run within a specified time period.
iv_querystatus TYPE /AWS1/TRLQUERYSTATUS /AWS1/TRLQUERYSTATUS¶
The status of queries that you want to return in results. Valid values for
QueryStatusincludeQUEUED,RUNNING,FINISHED,FAILED,TIMED_OUT, orCANCELLED.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_trllistqueriesrsp /AWS1/CL_TRLLISTQUERIESRSP¶
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->listqueries(
iv_endtime = '20150101000000.0000000'
iv_eventdatastore = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_querystatus = |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_queries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_uuid = lo_row_1->get_queryid( ).
lv_querystatus = lo_row_1->get_querystatus( ).
lv_date = lo_row_1->get_creationtime( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.