Azure M19 - Audit and Metric (Platform KPI) - results in restricted site
When testing this Platform KPI, I am shown a site where I do not have privilege. So, I cannot check what results are generated by this API.
In addition, there is a hint of using a vendor proprietary system.
Body
{
"metric_id":"Percentage CPU",
"timespan":"2023-08-03T06:25:00Z/2023-08-07T18:41:00Z",
"aggregation":"Total",
"interval":"PT1H"
}
Response
{
"cost": 6495,
"interval": "PT1H",
"namespace": "Microsoft.Compute/virtualMachines",
"resourceregion": "eastus",
"timespan": "2023-08-03T06:25:00Z/2023-08-07T18:41:00Z",
"value": [
{
"displayDescription": "The percentage of allocated compute units that are currently in use by the Virtual Machine(s)",
"errorCode": "Success",
"id": "/subscriptions/7c052588-ead2-45c9-9346-5b156a157bd1/resourceGroups/osdu-gcz-naresh-rg/providers/Microsoft.Compute/virtualMachines/osdu-gcz-dev-vm/providers/Microsoft.Insights/metrics/Percentage CPU",
"name": {
"localizedValue": "Percentage CPU",
"value": "Percentage CPU"
},
"timeseries": [],
"type": "Microsoft.Insights/metrics",
"unit": "Percent"
}
]
}