I was trying to create AWS cloudwatch dashboard using AWS powershell commandlet Write-CWDashboard. Though the command was successful but it's generating an output message as 'Should match exactly one schema in oneOf'. Complete details are below,
I would like to understand why is it generating that message.
Command:
Write-CWDashboard -DashboardName 'test' -DashboardBody $DashboardBody;
$DashboardBody value in json format:
{ "widgets": [
{
"type": "metric",
"x": 0,
"y": 0,
"width": 10,
"height": 10,
"properties": {
"region": "us-west-2",
"metrics": [
["AWS/EC2", "CPUUtilization", "InstanceId", "i-04c3216xyz"]
],
"view": "timeSeries",
"stacked": false,
"title": "server01 CPU",
"legend": {
"position": "right"
}
}
},
{
"type": "metric",
"x": 0,
"y": 10,
"width": 10,
"height": 10,
"properties": {
"region": "us-west-2",
"metrics": [
["AWS/EBS", "VolumeReadOps", "VolumeId", "vol-0b1ab41abc"],
["AWS/EBS", "VolumeWriteOps", "VolumeId", "vol-0b1ab41abc"]
],
"view": "timeSeries",
"stacked": false,
"annotations": {
},
"title": "server01 disk01 IOPs",
"legend": {
"position": "right"
}
}
}
]}
Output:
DataPath Message
-------- -------
/widgets/1/properties/annotations Should match exactly one schema in oneOf