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

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

kohei-saito
Helper

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

2 REPLIES 2

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

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

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

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-pr...", 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?

Featured Posts