YAxisProps
- class aws_cdk.aws_cloudwatch.YAxisProps(*, label=None, max=None, min=None, show_units=None)
Bases:
object
Properties for a Y-Axis.
- Parameters:
label (
Optional
[str
]) – The label. Default: - No labelmax (
Union
[int
,float
,None
]) – The max value. Default: - No maximum valuemin (
Union
[int
,float
,None
]) – The min value. Default: 0show_units (
Optional
[bool
]) – Whether to show units. Default: true
- ExampleMetadata:
infused
Example:
# dashboard: cloudwatch.Dashboard # error_alarm: cloudwatch.Alarm # gauge_metric: cloudwatch.Metric dashboard.add_widgets(cloudwatch.GaugeWidget( metrics=[gauge_metric], left_yAxis=cloudwatch.YAxisProps( min=0, max=1000 ) ))
Attributes
- label
The label.
- Default:
No label
- max
The max value.
- Default:
No maximum value
- min
The min value.
- Default:
0
- show_units
Whether to show units.
- Default:
true