Skip to content

/AWS1/IF_CWO=>LISTTELEMETRYPIPELINES()

About ListTelemetryPipelines

Returns a list of telemetry pipelines in your account. Returns up to 100 results. If more than 100 telemetry pipelines exist, include the NextToken value from the response to retrieve the next set of results.

Method Signature

METHODS /AWS1/IF_CWO~LISTTELEMETRYPIPELINES
  IMPORTING
    !IV_MAXRESULTS TYPE /AWS1/CWOLISTTELPLINSMAXRSLTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/CWONEXTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwolisttelplinsoutput
  RAISING
    /AWS1/CX_CWOACCESSDENIEDEX
    /AWS1/CX_CWOINTERNALSERVEREX
    /AWS1/CX_CWOTOOMANYREQUESTSEX
    /AWS1/CX_CWOVALIDATIONEX
    /AWS1/CX_CWOCLIENTEXC
    /AWS1/CX_CWOSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_maxresults TYPE /AWS1/CWOLISTTELPLINSMAXRSLTS /AWS1/CWOLISTTELPLINSMAXRSLTS

The maximum number of telemetry pipelines to return in a single call.

iv_nexttoken TYPE /AWS1/CWONEXTTOKEN /AWS1/CWONEXTTOKEN

The token for the next set of results. A previous call generates this token.

RETURNING

oo_output TYPE REF TO /aws1/cl_cwolisttelplinsoutput /AWS1/CL_CWOLISTTELPLINSOUTPUT

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->listtelemetrypipelines(
  iv_maxresults = 123
  iv_nexttoken = |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_pipelinesummaries( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_long = lo_row_1->get_createdtimestamp( ).
      lv_long = lo_row_1->get_lastupdatetimestamp( ).
      lv_resourcearn = lo_row_1->get_arn( ).
      lv_telemetrypipelinename = lo_row_1->get_name( ).
      lv_telemetrypipelinestatus = lo_row_1->get_status( ).
      LOOP AT lo_row_1->get_tags( ) into ls_row_2.
        lv_key = ls_row_2-key.
        lo_value = ls_row_2-value.
        IF lo_value IS NOT INITIAL.
          lv_string = lo_value->get_value( ).
        ENDIF.
      ENDLOOP.
      lo_configurationsummary = lo_row_1->get_configurationsummary( ).
      IF lo_configurationsummary IS NOT INITIAL.
        LOOP AT lo_configurationsummary->get_sources( ) into lo_row_3.
          lo_row_4 = lo_row_3.
          IF lo_row_4 IS NOT INITIAL.
            lv_string = lo_row_4->get_type( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_configurationsummary->get_datasources( ) into lo_row_5.
          lo_row_6 = lo_row_5.
          IF lo_row_6 IS NOT INITIAL.
            lv_string = lo_row_6->get_name( ).
            lv_string = lo_row_6->get_type( ).
          ENDIF.
        ENDLOOP.
        LOOP AT lo_configurationsummary->get_processors( ) into lo_row_7.
          lo_row_8 = lo_row_7.
          IF lo_row_8 IS NOT INITIAL.
            lv_string = lo_row_8->get_value( ).
          ENDIF.
        ENDLOOP.
        lv_integer = lo_configurationsummary->get_processorcount( ).
        LOOP AT lo_configurationsummary->get_sinks( ) into lo_row_9.
          lo_row_10 = lo_row_9.
          IF lo_row_10 IS NOT INITIAL.
            lv_string = lo_row_10->get_value( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.