AWS CloudWatch · Schema
DashboardWidget
A widget in a CloudWatch dashboard.
AlarmsAwsDashboardsLogsMetricsMonitoringObservability
Properties
| Name | Type | Description |
|---|---|---|
| type | string | The type of the widget. |
| x | integer | The horizontal position of the widget on the dashboard grid. |
| y | integer | The vertical position of the widget on the dashboard grid. |
| width | integer | The width of the widget in grid units. |
| height | integer | The height of the widget in grid units. |
| properties | object | The properties for the widget, which vary depending on the widget type. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/DashboardWidget",
"title": "DashboardWidget",
"type": "object",
"description": "A widget in a CloudWatch dashboard.",
"required": [
"type",
"properties"
],
"properties": {
"type": {
"type": "string",
"enum": [
"metric",
"text",
"log",
"alarm",
"explorer"
],
"description": "The type of the widget.",
"example": "metric"
},
"x": {
"type": "integer",
"minimum": 0,
"description": "The horizontal position of the widget on the dashboard grid.",
"example": 10
},
"y": {
"type": "integer",
"minimum": 0,
"description": "The vertical position of the widget on the dashboard grid.",
"example": 10
},
"width": {
"type": "integer",
"minimum": 1,
"maximum": 24,
"description": "The width of the widget in grid units.",
"example": 10
},
"height": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "The height of the widget in grid units.",
"example": 10
},
"properties": {
"type": "object",
"description": "The properties for the widget, which vary depending on the widget type.",
"example": "example_value"
}
}
}