Skip to content

Commit 17b60b5

Browse files
author
AWS
committed
Amazon CloudWatch Update: Added a new API - DescribeAlarmContributors API, to retrieve alarm contributors in ALARM state. Added support in DescribeAlarmHistory API to query alarm contributor history
1 parent 387aa1b commit 17b60b5

File tree

2 files changed

+125
-2
lines changed

2 files changed

+125
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon CloudWatch",
4+
"contributor": "",
5+
"description": "Added a new API - DescribeAlarmContributors API, to retrieve alarm contributors in ALARM state. Added support in DescribeAlarmHistory API to query alarm contributor history"
6+
}

services/cloudwatch/src/main/resources/codegen-resources/service-2.json

Lines changed: 119 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,23 @@
100100
],
101101
"documentation":"<p>Permanently deletes the metric stream that you specify.</p>"
102102
},
103+
"DescribeAlarmContributors":{
104+
"name":"DescribeAlarmContributors",
105+
"http":{
106+
"method":"POST",
107+
"requestUri":"/"
108+
},
109+
"input":{"shape":"DescribeAlarmContributorsInput"},
110+
"output":{
111+
"shape":"DescribeAlarmContributorsOutput",
112+
"resultWrapper":"DescribeAlarmContributorsResult"
113+
},
114+
"errors":[
115+
{"shape":"InvalidNextToken"},
116+
{"shape":"ResourceNotFoundException"}
117+
],
118+
"documentation":"<p>Returns the information of the current alarm contributors that are in <code>ALARM</code> state. This operation returns details about the individual time series that contribute to the alarm's state.</p>"
119+
},
103120
"DescribeAlarmHistory":{
104121
"name":"DescribeAlarmHistory",
105122
"http":{
@@ -679,6 +696,43 @@
679696
"max":1600,
680697
"min":1
681698
},
699+
"AlarmContributor":{
700+
"type":"structure",
701+
"required":[
702+
"ContributorId",
703+
"ContributorAttributes",
704+
"StateReason"
705+
],
706+
"members":{
707+
"ContributorId":{
708+
"shape":"ContributorId",
709+
"documentation":"<p>The unique identifier for this alarm contributor.</p>"
710+
},
711+
"ContributorAttributes":{
712+
"shape":"ContributorAttributes",
713+
"documentation":"<p>A map of attributes that describe the contributor, such as metric dimensions and other identifying characteristics.</p>"
714+
},
715+
"StateReason":{
716+
"shape":"StateReason",
717+
"documentation":"<p>An explanation for the contributor's current state, providing context about why it is in its current condition.</p>"
718+
},
719+
"StateTransitionedTimestamp":{
720+
"shape":"Timestamp",
721+
"documentation":"<p>The timestamp when the contributor last transitioned to its current state.</p>"
722+
}
723+
},
724+
"documentation":"<p>Represents an individual contributor to a multi-timeseries alarm, containing information about a specific time series and its contribution to the alarm's state.</p>",
725+
"xmlOrder":[
726+
"ContributorId",
727+
"ContributorAttributes",
728+
"StateReason",
729+
"StateTransitionedTimestamp"
730+
]
731+
},
732+
"AlarmContributors":{
733+
"type":"list",
734+
"member":{"shape":"AlarmContributor"}
735+
},
682736
"AlarmDescription":{
683737
"type":"string",
684738
"max":1024,
@@ -691,6 +745,10 @@
691745
"shape":"AlarmName",
692746
"documentation":"<p>The descriptive name for the alarm.</p>"
693747
},
748+
"AlarmContributorId":{
749+
"shape":"ContributorId",
750+
"documentation":"<p>The unique identifier of the alarm contributor associated with this history item, if applicable.</p>"
751+
},
694752
"AlarmType":{
695753
"shape":"AlarmType",
696754
"documentation":"<p>The type of alarm, either metric alarm or composite alarm.</p>"
@@ -710,6 +768,10 @@
710768
"HistoryData":{
711769
"shape":"HistoryData",
712770
"documentation":"<p>Data about the alarm, in JSON format.</p>"
771+
},
772+
"AlarmContributorAttributes":{
773+
"shape":"ContributorAttributes",
774+
"documentation":"<p>A map of attributes that describe the alarm contributor associated with this history item, providing context about the contributor's characteristics at the time of the event.</p>"
713775
}
714776
},
715777
"documentation":"<p>Represents the history of a specific alarm.</p>"
@@ -856,6 +918,16 @@
856918
"type":"list",
857919
"member":{"shape":"AnomalyDetector"}
858920
},
921+
"AttributeName":{
922+
"type":"string",
923+
"max":255,
924+
"min":1
925+
},
926+
"AttributeValue":{
927+
"type":"string",
928+
"max":1024,
929+
"min":1
930+
},
859931
"AwsQueryErrorMessage":{"type":"string"},
860932
"BatchFailures":{
861933
"type":"list",
@@ -999,6 +1071,17 @@
9991071
"documentation":"<p>This operation attempted to create a resource that already exists.</p>",
10001072
"exception":true
10011073
},
1074+
"ContributorAttributes":{
1075+
"type":"map",
1076+
"key":{"shape":"AttributeName"},
1077+
"value":{"shape":"AttributeValue"},
1078+
"max":30
1079+
},
1080+
"ContributorId":{
1081+
"type":"string",
1082+
"max":1024,
1083+
"min":1
1084+
},
10021085
"Counts":{
10031086
"type":"list",
10041087
"member":{"shape":"DatapointValue"}
@@ -1248,13 +1331,45 @@
12481331
"type":"structure",
12491332
"members":{}
12501333
},
1334+
"DescribeAlarmContributorsInput":{
1335+
"type":"structure",
1336+
"required":["AlarmName"],
1337+
"members":{
1338+
"AlarmName":{
1339+
"shape":"AlarmName",
1340+
"documentation":"<p>The name of the alarm for which to retrieve contributor information.</p>"
1341+
},
1342+
"NextToken":{
1343+
"shape":"NextToken",
1344+
"documentation":"<p>The token returned by a previous call to indicate that there is more data available.</p>"
1345+
}
1346+
}
1347+
},
1348+
"DescribeAlarmContributorsOutput":{
1349+
"type":"structure",
1350+
"required":["AlarmContributors"],
1351+
"members":{
1352+
"AlarmContributors":{
1353+
"shape":"AlarmContributors",
1354+
"documentation":"<p>A list of alarm contributors that provide details about the individual time series contributing to the alarm's state.</p>"
1355+
},
1356+
"NextToken":{
1357+
"shape":"NextToken",
1358+
"documentation":"<p>The token that marks the start of the next batch of returned results.</p>"
1359+
}
1360+
}
1361+
},
12511362
"DescribeAlarmHistoryInput":{
12521363
"type":"structure",
12531364
"members":{
12541365
"AlarmName":{
12551366
"shape":"AlarmName",
12561367
"documentation":"<p>The name of the alarm.</p>"
12571368
},
1369+
"AlarmContributorId":{
1370+
"shape":"ContributorId",
1371+
"documentation":"<p>The unique identifier of a specific alarm contributor to filter the alarm history results.</p>"
1372+
},
12581373
"AlarmTypes":{
12591374
"shape":"AlarmTypes",
12601375
"documentation":"<p>Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.</p>"
@@ -1990,7 +2105,9 @@
19902105
"enum":[
19912106
"ConfigurationUpdate",
19922107
"StateUpdate",
1993-
"Action"
2108+
"Action",
2109+
"AlarmContributorStateUpdate",
2110+
"AlarmContributorAction"
19942111
]
19952112
},
19962113
"HistorySummary":{
@@ -3277,7 +3394,7 @@
32773394
},
32783395
"ApplyOnTransformedLogs":{
32793396
"shape":"InsightRuleOnTransformedLogs",
3280-
"documentation":"<p>Specify <code>true</code> to have this rule evalute log events after they have been transformed by <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html\">Log transformation</a>. If you specify <code>true</code>, then the log events in log groups that have transformers will be evaluated by Contributor Insights after being transformed. Log groups that don't have transformers will still have their original log events evaluated by Contributor Insights.</p> <p>The default is <code>false</code> </p> <note> <p>If a log group has a transformer, and transformation fails for some log events, those log events won't be evaluated by Contributor Insights. For information about investigating log transformation failures, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Transformation-Errors-Metrics.html\">Transformation metrics and errors</a>.</p> </note>"
3397+
"documentation":"<p>Specify <code>true</code> to have this rule evaluate log events after they have been transformed by <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html\">Log transformation</a>. If you specify <code>true</code>, then the log events in log groups that have transformers will be evaluated by Contributor Insights after being transformed. Log groups that don't have transformers will still have their original log events evaluated by Contributor Insights.</p> <p>The default is <code>false</code> </p> <note> <p>If a log group has a transformer, and transformation fails for some log events, those log events won't be evaluated by Contributor Insights. For information about investigating log transformation failures, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Transformation-Errors-Metrics.html\">Transformation metrics and errors</a>.</p> </note>"
32813398
}
32823399
}
32833400
},

0 commit comments

Comments
 (0)