/AWS1/IF_LOM=>UPDATEMETRICSET()¶
About UpdateMetricSet¶
Updates a dataset.
Method Signature¶
METHODS /AWS1/IF_LOM~UPDATEMETRICSET
IMPORTING
!IV_METRICSETARN TYPE /AWS1/LOMARN OPTIONAL
!IV_METRICSETDESCRIPTION TYPE /AWS1/LOMMETRICSETDESCRIPTION OPTIONAL
!IT_METRICLIST TYPE /AWS1/CL_LOMMETRIC=>TT_METRICLIST OPTIONAL
!IV_OFFSET TYPE /AWS1/LOMOFFSET OPTIONAL
!IO_TIMESTAMPCOLUMN TYPE REF TO /AWS1/CL_LOMTIMESTAMPCOLUMN OPTIONAL
!IT_DIMENSIONLIST TYPE /AWS1/CL_LOMDIMENSIONLIST_W=>TT_DIMENSIONLIST OPTIONAL
!IV_METRICSETFREQUENCY TYPE /AWS1/LOMFREQUENCY OPTIONAL
!IO_METRICSOURCE TYPE REF TO /AWS1/CL_LOMMETRICSOURCE OPTIONAL
!IT_DIMENSIONFILTERLIST TYPE /AWS1/CL_LOMMETETDIMENSIONFILT=>TT_METETDIMENSIONFILTERLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lomupdatemetricsetrsp
RAISING
/AWS1/CX_LOMACCESSDENIEDEX
/AWS1/CX_LOMINTERNALSERVEREX
/AWS1/CX_LOMRESOURCENOTFOUNDEX
/AWS1/CX_LOMSERVICEQUOTAEXCDEX
/AWS1/CX_LOMTOOMANYREQUESTSEX
/AWS1/CX_LOMVALIDATIONEX
/AWS1/CX_LOMCLIENTEXC
/AWS1/CX_LOMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_metricsetarn TYPE /AWS1/LOMARN /AWS1/LOMARN¶
The ARN of the dataset to update.
Optional arguments:¶
iv_metricsetdescription TYPE /AWS1/LOMMETRICSETDESCRIPTION /AWS1/LOMMETRICSETDESCRIPTION¶
The dataset's description.
it_metriclist TYPE /AWS1/CL_LOMMETRIC=>TT_METRICLIST TT_METRICLIST¶
The metric list.
iv_offset TYPE /AWS1/LOMOFFSET /AWS1/LOMOFFSET¶
After an interval ends, the amount of seconds that the detector waits before importing data. Offset is only supported for S3, Redshift, Athena and datasources.
io_timestampcolumn TYPE REF TO /AWS1/CL_LOMTIMESTAMPCOLUMN /AWS1/CL_LOMTIMESTAMPCOLUMN¶
The timestamp column.
it_dimensionlist TYPE /AWS1/CL_LOMDIMENSIONLIST_W=>TT_DIMENSIONLIST TT_DIMENSIONLIST¶
The dimension list.
iv_metricsetfrequency TYPE /AWS1/LOMFREQUENCY /AWS1/LOMFREQUENCY¶
The dataset's interval.
io_metricsource TYPE REF TO /AWS1/CL_LOMMETRICSOURCE /AWS1/CL_LOMMETRICSOURCE¶
MetricSource
it_dimensionfilterlist TYPE /AWS1/CL_LOMMETETDIMENSIONFILT=>TT_METETDIMENSIONFILTERLIST TT_METETDIMENSIONFILTERLIST¶
Describes a list of filters for choosing specific dimensions and specific values. Each filter consists of the dimension and one of its values that you want to include. When multiple dimensions or values are specified, the dimensions are joined with an AND operation and the values are joined with an OR operation.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lomupdatemetricsetrsp /AWS1/CL_LOMUPDATEMETRICSETRSP¶
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->updatemetricset(
io_metricsource = new /aws1/cl_lommetricsource(
io_appflowconfig = new /aws1/cl_lomappflowconfig(
iv_flowname = |string|
iv_rolearn = |string|
)
io_athenasourceconfig = new /aws1/cl_lomathenasourceconfig(
io_backtestconfiguration = new /aws1/cl_lombacktestconf( ABAP_TRUE )
iv_databasename = |string|
iv_datacatalog = |string|
iv_rolearn = |string|
iv_s3resultspath = |string|
iv_tablename = |string|
iv_workgroupname = |string|
)
io_cloudwatchconfig = new /aws1/cl_lomcloudwatchconfig(
io_backtestconfiguration = new /aws1/cl_lombacktestconf( ABAP_TRUE )
iv_rolearn = |string|
)
io_rdssourceconfig = new /aws1/cl_lomrdssourceconfig(
io_vpcconfiguration = new /aws1/cl_lomvpcconfiguration(
it_securitygroupidlist = VALUE /aws1/cl_lomsecgroupidlist_w=>tt_securitygroupidlist(
( new /aws1/cl_lomsecgroupidlist_w( |string| ) )
)
it_subnetidlist = VALUE /aws1/cl_lomsubnetidlist_w=>tt_subnetidlist(
( new /aws1/cl_lomsubnetidlist_w( |string| ) )
)
)
iv_databasehost = |string|
iv_databasename = |string|
iv_databaseport = 123
iv_dbinstanceidentifier = |string|
iv_rolearn = |string|
iv_secretmanagerarn = |string|
iv_tablename = |string|
)
io_redshiftsourceconfig = new /aws1/cl_lomredsourceconfig(
io_vpcconfiguration = new /aws1/cl_lomvpcconfiguration(
it_securitygroupidlist = VALUE /aws1/cl_lomsecgroupidlist_w=>tt_securitygroupidlist(
( new /aws1/cl_lomsecgroupidlist_w( |string| ) )
)
it_subnetidlist = VALUE /aws1/cl_lomsubnetidlist_w=>tt_subnetidlist(
( new /aws1/cl_lomsubnetidlist_w( |string| ) )
)
)
iv_clusteridentifier = |string|
iv_databasehost = |string|
iv_databasename = |string|
iv_databaseport = 123
iv_rolearn = |string|
iv_secretmanagerarn = |string|
iv_tablename = |string|
)
io_s3sourceconfig = new /aws1/cl_loms3sourceconfig(
io_fileformatdescriptor = new /aws1/cl_lomfilefmtdescriptor(
io_csvformatdescriptor = new /aws1/cl_lomcsvfmtdescriptor(
it_headerlist = VALUE /aws1/cl_lomheaderlist_w=>tt_headerlist(
( new /aws1/cl_lomheaderlist_w( |string| ) )
)
iv_charset = |string|
iv_containsheader = ABAP_TRUE
iv_delimiter = |string|
iv_filecompression = |string|
iv_quotesymbol = |string|
)
io_jsonformatdescriptor = new /aws1/cl_lomjsonfmtdescriptor(
iv_charset = |string|
iv_filecompression = |string|
)
)
it_historicaldatapathlist = VALUE /aws1/cl_lomhistoricaldatapa00=>tt_historicaldatapathlist(
( new /aws1/cl_lomhistoricaldatapa00( |string| ) )
)
it_templatedpathlist = VALUE /aws1/cl_lomtmpldpathlist_w=>tt_templatedpathlist(
( new /aws1/cl_lomtmpldpathlist_w( |string| ) )
)
iv_rolearn = |string|
)
)
io_timestampcolumn = new /aws1/cl_lomtimestampcolumn(
iv_columnformat = |string|
iv_columnname = |string|
)
it_dimensionfilterlist = VALUE /aws1/cl_lommetetdimensionfilt=>tt_metetdimensionfilterlist(
(
new /aws1/cl_lommetetdimensionfilt(
it_filterlist = VALUE /aws1/cl_lomfilter=>tt_filterlist(
(
new /aws1/cl_lomfilter(
iv_dimensionvalue = |string|
iv_filteroperation = |string|
)
)
)
iv_name = |string|
)
)
)
it_dimensionlist = VALUE /aws1/cl_lomdimensionlist_w=>tt_dimensionlist(
( new /aws1/cl_lomdimensionlist_w( |string| ) )
)
it_metriclist = VALUE /aws1/cl_lommetric=>tt_metriclist(
(
new /aws1/cl_lommetric(
iv_aggregationfunction = |string|
iv_metricname = |string|
iv_namespace = |string|
)
)
)
iv_metricsetarn = |string|
iv_metricsetdescription = |string|
iv_metricsetfrequency = |string|
iv_offset = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_metricsetarn( ).
ENDIF.