Skip to content

Commit

Permalink
feat(client-cloudwatch-logs): Added support for new optional baseline…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
awstools committed Oct 29, 2024
1 parent cd3a5ec commit da1de11
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface UpdateAnomalyCommandOutput extends __MetadataBearer {}
* value: Number("int"),
* suppressionUnit: "SECONDS" || "MINUTES" || "HOURS",
* },
* baseline: true || false,
* };
* const command = new UpdateAnomalyCommand(input);
* const response = await client.send(command);
Expand Down
10 changes: 10 additions & 0 deletions clients/client-cloudwatch-logs/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5633,6 +5633,16 @@ export interface UpdateAnomalyRequest {
* @public
*/
suppressionPeriod?: SuppressionPeriod;

/**
* <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
* baseline behavior. However, if similar but
* more severe occurrences of this behavior occur in the future, those will still be reported as anomalies. </p>
* <p>The default is <code>false</code>
* </p>
* @public
*/
baseline?: boolean;
}

/**
Expand Down
9 changes: 9 additions & 0 deletions codegen/sdk-codegen/aws-models/cloudwatch-logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@
"smithy.api#input": {}
}
},
"com.amazonaws.cloudwatchlogs#Baseline": {
"type": "boolean"
},
"com.amazonaws.cloudwatchlogs#Boolean": {
"type": "boolean"
},
Expand Down Expand Up @@ -9872,6 +9875,12 @@
"traits": {
"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>"
}
},
"baseline": {
"target": "com.amazonaws.cloudwatchlogs#Baseline",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down

0 comments on commit da1de11

Please sign in to comment.