/AWS1/IF_IOE=>UPDATEALARMMODEL()¶
About UpdateAlarmModel¶
Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
Method Signature¶
METHODS /AWS1/IF_IOE~UPDATEALARMMODEL
IMPORTING
!IV_ALARMMODELNAME TYPE /AWS1/IOEALARMMODELNAME OPTIONAL
!IV_ALARMMODELDESCRIPTION TYPE /AWS1/IOEALARMMODELDESCRIPTION OPTIONAL
!IV_ROLEARN TYPE /AWS1/IOEAMAZONRESOURCENAME OPTIONAL
!IV_SEVERITY TYPE /AWS1/IOESEVERITY OPTIONAL
!IO_ALARMRULE TYPE REF TO /AWS1/CL_IOEALARMRULE OPTIONAL
!IO_ALARMNOTIFICATION TYPE REF TO /AWS1/CL_IOEALARMNOTIFICATION OPTIONAL
!IO_ALARMEVENTACTIONS TYPE REF TO /AWS1/CL_IOEALARMEVENTACTIONS OPTIONAL
!IO_ALARMCAPABILITIES TYPE REF TO /AWS1/CL_IOEALARMCAPABILITIES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ioeupdalarmmodelrsp
RAISING
/AWS1/CX_IOEINTERNALFAILUREEX
/AWS1/CX_IOEINVALIDREQUESTEX
/AWS1/CX_IOERESOURCEINUSEEX
/AWS1/CX_IOERESOURCENOTFOUNDEX
/AWS1/CX_IOESERVICEUNAVAILEX
/AWS1/CX_IOETHROTTLINGEX
/AWS1/CX_IOECLIENTEXC
/AWS1/CX_IOESERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_alarmmodelname TYPE /AWS1/IOEALARMMODELNAME /AWS1/IOEALARMMODELNAME¶
The name of the alarm model.
iv_rolearn TYPE /AWS1/IOEAMAZONRESOURCENAME /AWS1/IOEAMAZONRESOURCENAME¶
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
io_alarmrule TYPE REF TO /AWS1/CL_IOEALARMRULE /AWS1/CL_IOEALARMRULE¶
Defines when your alarm is invoked.
Optional arguments:¶
iv_alarmmodeldescription TYPE /AWS1/IOEALARMMODELDESCRIPTION /AWS1/IOEALARMMODELDESCRIPTION¶
The description of the alarm model.
iv_severity TYPE /AWS1/IOESEVERITY /AWS1/IOESEVERITY¶
A non-negative integer that reflects the severity level of the alarm.
io_alarmnotification TYPE REF TO /AWS1/CL_IOEALARMNOTIFICATION /AWS1/CL_IOEALARMNOTIFICATION¶
Contains information about one or more notification actions.
io_alarmeventactions TYPE REF TO /AWS1/CL_IOEALARMEVENTACTIONS /AWS1/CL_IOEALARMEVENTACTIONS¶
Contains information about one or more alarm actions.
io_alarmcapabilities TYPE REF TO /AWS1/CL_IOEALARMCAPABILITIES /AWS1/CL_IOEALARMCAPABILITIES¶
Contains the configuration information of alarm state changes.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ioeupdalarmmodelrsp /AWS1/CL_IOEUPDALARMMODELRSP¶
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->updatealarmmodel(
io_alarmcapabilities = new /aws1/cl_ioealarmcapabilities(
io_acknowledgeflow = new /aws1/cl_ioeacknowledgeflow( ABAP_TRUE )
io_initializationconf = new /aws1/cl_ioeinitializationconf( ABAP_TRUE )
)
io_alarmeventactions = new /aws1/cl_ioealarmeventactions(
it_alarmactions = VALUE /aws1/cl_ioealarmaction=>tt_alarmactions(
(
new /aws1/cl_ioealarmaction(
io_dynamodb = new /aws1/cl_ioedynamodbaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_hashkeyfield = |string|
iv_hashkeytype = |string|
iv_hashkeyvalue = |string|
iv_operation = |string|
iv_payloadfield = |string|
iv_rangekeyfield = |string|
iv_rangekeytype = |string|
iv_rangekeyvalue = |string|
iv_tablename = |string|
)
io_dynamodbv2 = new /aws1/cl_ioedynamodbv2action(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_tablename = |string|
)
io_firehose = new /aws1/cl_ioefirehoseaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_deliverystreamname = |string|
iv_separator = |string|
)
io_iotevents = new /aws1/cl_ioeioteventsaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_inputname = |string|
)
io_iotsitewise = new /aws1/cl_ioeiotsitewiseaction(
io_propertyvalue = new /aws1/cl_ioeassetpropertyvalue(
io_timestamp = new /aws1/cl_ioeassetpropertytsmp(
iv_offsetinnanos = |string|
iv_timeinseconds = |string|
)
io_value = new /aws1/cl_ioeassetprpvariant(
iv_booleanvalue = |string|
iv_doublevalue = |string|
iv_integervalue = |string|
iv_stringvalue = |string|
)
iv_quality = |string|
)
iv_assetid = |string|
iv_entryid = |string|
iv_propertyalias = |string|
iv_propertyid = |string|
)
io_iottopicpublish = new /aws1/cl_ioeiottopicpubaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_mqtttopic = |string|
)
io_lambda = new /aws1/cl_ioelambdaaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_functionarn = |string|
)
io_sns = new /aws1/cl_ioesnstopicpubaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_targetarn = |string|
)
io_sqs = new /aws1/cl_ioesqsaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_queueurl = |string|
iv_usebase64 = ABAP_TRUE
)
)
)
)
)
io_alarmnotification = new /aws1/cl_ioealarmnotification(
it_notificationactions = VALUE /aws1/cl_ioenotificationaction=>tt_notificationactions(
(
new /aws1/cl_ioenotificationaction(
io_action = new /aws1/cl_ioenotiftargetactions(
io_lambdaaction = new /aws1/cl_ioelambdaaction(
io_payload = new /aws1/cl_ioepayload(
iv_contentexpression = |string|
iv_type = |string|
)
iv_functionarn = |string|
)
)
it_emailconfigurations = VALUE /aws1/cl_ioeemailconfiguration=>tt_emailconfigurations(
(
new /aws1/cl_ioeemailconfiguration(
io_content = new /aws1/cl_ioeemailcontent(
iv_additionalmessage = |string|
iv_subject = |string|
)
io_recipients = new /aws1/cl_ioeemailrecipients(
it_to = VALUE /aws1/cl_ioerecipientdetail=>tt_recipientdetails(
(
new /aws1/cl_ioerecipientdetail(
io_ssoidentity = new /aws1/cl_ioessoidentity(
iv_identitystoreid = |string|
iv_userid = |string|
)
)
)
)
)
iv_from = |string|
)
)
)
it_smsconfigurations = VALUE /aws1/cl_ioesmsconfiguration=>tt_smsconfigurations(
(
new /aws1/cl_ioesmsconfiguration(
it_recipients = VALUE /aws1/cl_ioerecipientdetail=>tt_recipientdetails(
(
new /aws1/cl_ioerecipientdetail(
io_ssoidentity = new /aws1/cl_ioessoidentity(
iv_identitystoreid = |string|
iv_userid = |string|
)
)
)
)
iv_additionalmessage = |string|
iv_senderid = |string|
)
)
)
)
)
)
)
io_alarmrule = new /aws1/cl_ioealarmrule(
io_simplerule = new /aws1/cl_ioesimplerule(
iv_comparisonoperator = |string|
iv_inputproperty = |string|
iv_threshold = |string|
)
)
iv_alarmmodeldescription = |string|
iv_alarmmodelname = |string|
iv_rolearn = |string|
iv_severity = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_timestamp = lo_result->get_creationtime( ).
lv_alarmmodelarn = lo_result->get_alarmmodelarn( ).
lv_alarmmodelversion = lo_result->get_alarmmodelversion( ).
lv_timestamp = lo_result->get_lastupdatetime( ).
lv_alarmmodelversionstatus = lo_result->get_status( ).
ENDIF.