question

Kohei S. avatar image
Kohei S. asked ·

How can I get some metrics of a specified period using Dynatrace API?

Hi,

For example, how can I get Dynatrace SaaS data of specified period when I use the following Dynatrace API?

curl -L "https://{id}.live.dynatrace.com/api/v1/timeseries?Api-Token=abcdefjhij1234567890" 

Regards,
Kohei

dynatrace saasrest api
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Wolfgang B. avatar image
Wolfgang B. answered ·

Did you look at our API docu. You can use the time frame parameter.

https://www.dynatrace.com/support/help/dynatrace-a...


tf.png (8.0 KiB)
1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hi @Wolfgang B.

Thanks for your comment.

I'm so sorry but, the example I gave was not good.

In fact, what I wanted to ask you is how to fetch the lists of problems in a specified period as follows.

curl -L "https://{id}.live.dynatrace.com/api/v1/problem/feed?Api-Token=abcdefjhij1234567890"

Thanks to you, if we use Dynatrace API for the timeframe, I understand that we can get the metrics on a specified period with timeframe options.

According to this page "https://www.dynatrace.com/support/help/dynatrace-api/problems/how-do-i-fetch-the-complete-list-of-problems/", we can fetch lists of problem based on relativeTime , but we hope to fetch them based on absolute time such as startTimestamp/endTimestamp.

Is it possible?

0 Likes 0 · ·