interface YAxisProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudWatch.YAxisProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#YAxisProps |
![]() | software.amazon.awscdk.services.cloudwatch.YAxisProps |
![]() | aws_cdk.aws_cloudwatch.YAxisProps |
![]() | aws-cdk-lib » aws_cloudwatch » YAxisProps |
Properties for a Y-Axis.
Example
declare const dashboard: cloudwatch.Dashboard;
declare const errorAlarm: cloudwatch.Alarm;
declare const gaugeMetric: cloudwatch.Metric;
dashboard.addWidgets(new cloudwatch.GaugeWidget({
metrics: [gaugeMetric],
leftYAxis: {
min: 0,
max: 1000,
}
}));
Properties
Name | Type | Description |
---|---|---|
label? | string | The label. |
max? | number | The max value. |
min? | number | The min value. |
show | boolean | Whether to show units. |
label?
Type:
string
(optional, default: No label)
The label.
max?
Type:
number
(optional, default: No maximum value)
The max value.
min?
Type:
number
(optional, default: 0)
The min value.
showUnits?
Type:
boolean
(optional, default: true)
Whether to show units.