09 Jun 2022 04:45 PM - last edited on 12 Aug 2022 10:41 AM by MaciejNeumann
Hi everyone,
I am using this REST API: https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-sma[…]e/custom-dev...
to report a metric for an existing custom device. Instead of reporting the custom metric for an existing device, this api call creates a new custom device and attaches the metric to it.
This is a sample call that I am making:
curl -X POST \
https://cto43873.live.dynatrace.com/api/v1/entity/infrastructure/custom/idOfmyCustomDevice \
-H 'Authorization: Api-Token dt0c01.APITOKEN' \
-H 'Content-Type: application/json' \
-d '{
"type": "Azure Virtual Network Gateway",
"series" : [
{
"timeseriesId" : "custom:my.custom.metric",
"dataPoints" : [
[ 1654695594547, 20 ]
]
}
]
}
Solved! Go to Solution.
14 Dec 2022 02:16 PM
With the given information it is not possible to pinpoint what is going wrong. I suggest you open a support ticket so this can be investigated in your environment.