26 Jun 2019 03:41 AM - last edited on 25 May 2021 12:48 PM by MaciejNeumann
Hi,
How can we pass tags in the Time series API.I am using POST /timeseries/{metricIdentifier} & when I pass the tag in the below format I am seeing all the other hosts also in the list.Can someone please let me know whether I am passing it properly or not & also option to filter only specific hosts using tags or management zone.
{
"timeseriesId": "com.dynatrace.builtin:host.availability",
"displayName": "Availability",
"dimensions": [
"HOST"
],
"unit": "State",
"detailedSource": "Infrastructure",
"types": [],
"relativeTime": "10MINS",
"aggregationTypes": [],
"filter": "BUILTIN"
}
{
"tags": [
- {
"context":"Tags",
"Key":"abc"
}
]
}
Thanks,
Tarun
Solved! Go to Solution.
26 Jun 2019 05:52 AM
You want pass value or get metrics?
If you want get metrics you have to set particular entities you are interested in. You should use get requests:
To get list of entities which are matching your criteria, first you will have to use this request:
https://www.dynatrace.com/support/help/shortlink/api-hosts#anchor_host-list
As I see during post is the same situation where you have pass particular entities not tags.
Sebastian