cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pass Tags to TimeSeries API

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


1 REPLY 1

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:

https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/timeseries/tim...

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