interface ScheduledQueryConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnLogAlarm.ScheduledQueryConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnLogAlarm_ScheduledQueryConfigurationProperty |
Java | software.amazon.awscdk.services.cloudwatch.CfnLogAlarm.ScheduledQueryConfigurationProperty |
Python | aws_cdk.aws_cloudwatch.CfnLogAlarm.ScheduledQueryConfigurationProperty |
TypeScript | aws-cdk-lib » aws_cloudwatch » CfnLogAlarm » ScheduledQueryConfigurationProperty |
The scheduled query configuration for the log alarm.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const scheduledQueryConfigurationProperty: cloudwatch.CfnLogAlarm.ScheduledQueryConfigurationProperty = {
aggregationExpression: 'aggregationExpression',
logGroupIdentifiers: ['logGroupIdentifiers'],
queryLanguage: 'queryLanguage',
queryString: 'queryString',
scheduleConfiguration: {
scheduleExpression: 'scheduleExpression',
// the properties below are optional
endTimeOffset: 123,
startTimeOffset: 123,
},
scheduledQueryRoleArn: 'scheduledQueryRoleArn',
};
Properties
| Name | Type | Description |
|---|---|---|
| aggregation | string | The aggregation expression for the scheduled query, e.g. count(*) or avg(latency) by host. |
| log | string[] | The log groups to query. |
| query | string | The query language to use for the scheduled query (CWLI or SQL). |
| query | string | The query string to execute against the specified log groups. |
| schedule | IResolvable | Schedule | The schedule configuration for the scheduled query. |
| scheduled | string | The ARN of the IAM role that grants permissions to execute the scheduled query. |
aggregationExpression
Type:
string
The aggregation expression for the scheduled query, e.g. count(*) or avg(latency) by host.
logGroupIdentifiers
Type:
string[]
The log groups to query.
queryLanguage
Type:
string
The query language to use for the scheduled query (CWLI or SQL).
queryString
Type:
string
The query string to execute against the specified log groups.
scheduleConfiguration
Type:
IResolvable | Schedule
The schedule configuration for the scheduled query.
scheduledQueryRoleArn
Type:
string
The ARN of the IAM role that grants permissions to execute the scheduled query.

.NET
Go
Java
Python
TypeScript