Skip to content

Commit da1de11

Browse files
author
awstools
committed
feat(client-cloudwatch-logs): Added support for new optional baseline parameter in the UpdateAnomaly API. For UpdateAnomaly requests with baseline set to True, The anomaly behavior is then treated as baseline behavior. However, more severe occurrences of this behavior will still be reported as anomalies.
1 parent cd3a5ec commit da1de11

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

clients/client-cloudwatch-logs/src/commands/UpdateAnomalyCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface UpdateAnomalyCommandOutput extends __MetadataBearer {}
5252
* value: Number("int"),
5353
* suppressionUnit: "SECONDS" || "MINUTES" || "HOURS",
5454
* },
55+
* baseline: true || false,
5556
* };
5657
* const command = new UpdateAnomalyCommand(input);
5758
* const response = await client.send(command);

clients/client-cloudwatch-logs/src/models/models_0.ts

+10
Original file line numberDiff line numberDiff line change
@@ -5633,6 +5633,16 @@ export interface UpdateAnomalyRequest {
56335633
* @public
56345634
*/
56355635
suppressionPeriod?: SuppressionPeriod;
5636+
5637+
/**
5638+
* <p>Set this to <code>true</code> to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as
5639+
* baseline behavior. However, if similar but
5640+
* more severe occurrences of this behavior occur in the future, those will still be reported as anomalies. </p>
5641+
* <p>The default is <code>false</code>
5642+
* </p>
5643+
* @public
5644+
*/
5645+
baseline?: boolean;
56365646
}
56375647

56385648
/**

codegen/sdk-codegen/aws-models/cloudwatch-logs.json

+9
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,9 @@
497497
"smithy.api#input": {}
498498
}
499499
},
500+
"com.amazonaws.cloudwatchlogs#Baseline": {
501+
"type": "boolean"
502+
},
500503
"com.amazonaws.cloudwatchlogs#Boolean": {
501504
"type": "boolean"
502505
},
@@ -9872,6 +9875,12 @@
98729875
"traits": {
98739876
"smithy.api#documentation": "<p>If you are temporarily suppressing an anomaly or pattern, use this structure to specify\n how long the suppression is to last.</p>"
98749877
}
9878+
},
9879+
"baseline": {
9880+
"target": "com.amazonaws.cloudwatchlogs#Baseline",
9881+
"traits": {
9882+
"smithy.api#documentation": "<p>Set this to <code>true</code> to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as \n baseline behavior. However, if similar but \n more severe occurrences of this behavior occur in the future, those will still be reported as anomalies. </p>\n <p>The default is <code>false</code>\n </p>"
9883+
}
98759884
}
98769885
},
98779886
"traits": {

0 commit comments

Comments
 (0)