/AWS1/CL_SMI=>STARTINCIDENT()
¶
About StartIncident¶
Used to start an incident from CloudWatch alarms, EventBridge events, or manually.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_responseplanarn
TYPE /AWS1/SMIARN
/AWS1/SMIARN
¶
The Amazon Resource Name (ARN) of the response plan that pre-defines summary, chat channels, Amazon SNS topics, runbooks, title, and impact of the incident.
Optional arguments:¶
iv_clienttoken
TYPE /AWS1/SMICLIENTTOKEN
/AWS1/SMICLIENTTOKEN
¶
A token ensuring that the operation is called only once with the specified details.
iv_title
TYPE /AWS1/SMIINCIDENTTITLE
/AWS1/SMIINCIDENTTITLE
¶
Provide a title for the incident. Providing a title overwrites the title provided by the response plan.
iv_impact
TYPE /AWS1/SMIIMPACT
/AWS1/SMIIMPACT
¶
Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan.
Supported impact codes
1
- Critical
2
- High
3
- Medium
4
- Low
5
- No Impact
io_triggerdetails
TYPE REF TO /AWS1/CL_SMITRIGGERDETAILS
/AWS1/CL_SMITRIGGERDETAILS
¶
Details of what created the incident record in Incident Manager.
it_relateditems
TYPE /AWS1/CL_SMIRELATEDITEM=>TT_RELATEDITEMLIST
TT_RELATEDITEMLIST
¶
Add related items to the incident for other responders to use. Related items are Amazon Web Services resources, external links, or files uploaded to an Amazon S3 bucket.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_smistartincidentout
/AWS1/CL_SMISTARTINCIDENTOUT
¶
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->/aws1/if_smi~startincident(
io_triggerdetails = new /aws1/cl_smitriggerdetails(
iv_rawdata = |string|
iv_source = |string|
iv_timestamp = '20150101000000.0000000'
iv_triggerarn = |string|
)
it_relateditems = VALUE /aws1/cl_smirelateditem=>tt_relateditemlist(
(
new /aws1/cl_smirelateditem(
io_identifier = new /aws1/cl_smiitemidentifier(
io_value = new /aws1/cl_smiitemvalue(
io_pagerdutyincidentdetail = new /aws1/cl_smipagerdutyinciden01(
iv_autoresolve = ABAP_TRUE
iv_id = |string|
iv_secretid = |string|
)
iv_arn = |string|
iv_metricdefinition = |string|
iv_url = |string|
)
iv_type = |string|
)
iv_generatedid = |string|
iv_title = |string|
)
)
)
iv_clienttoken = |string|
iv_impact = 123
iv_responseplanarn = |string|
iv_title = |string|
).
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_incidentrecordarn( ).
ENDIF.