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

What does mean the key "types " of TimeseriesAPI?

kohei-saito
Organizer

Hi,


I believe all of timeseries metrics have "types" in the response when using TimeseriesAPI.

Like:

[
  {
    "timeseriesId": "beta.python.phpfpm.dev:accepted conn",
    "displayName": "accepted conn",
    "dimensions":
      [
        "PROCESS_GROUP_INSTANCE",
        "pool"
      ],
    "aggregationTypes":
      [
        "AVG",
        "SUM",
        "MIN",
        "MAX"
      ],
    "unit": "Count (count)",
    "filter": "PLUGIN",
    "detailedSource": "PHP-FPM",
    "pluginId": "beta.python.phpfpm.dev",
    "types": []
   },
   {
     "timeseriesId": "beta.python.phpfpm.dev:active processes",
     "displayName": "active processes",
     "dimensions":
      [
        "PROCESS_GROUP_INSTANCE",
        "pool"
      ],
    "aggregationTypes":
      [
        "AVG",
        "SUM",
        "MIN",
        "MAX"
      ],
    "unit": "Count (count)",
    "filter": "PLUGIN",
    "detailedSource": "PHP-FPM",
    "pluginId": "beta.python.phpfpm.dev",
    "types": []
  }
]

(https://www.dynatrace.com/support/help/shortlink/api-metrics#possible-values)


But actually, the value of "types" for all metrics is empty when I checked via "GET list of metrics definitions", then I think this is empty as default.

https://www.dynatrace.com/support/help/shortlink/api-metrics#get-list-of-metrics-definitions-


So I wonder what "types" is for.

Could you tell me when this "types" should be necessary and what it is for?


Thanks,

Kohei Saito


3 REPLIES 3

sebastian_kryst
DynaMight Leader
DynaMight Leader

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

Go here, this is useful while you are creating custom metrics. They are the same metrics as any others in Dynatrace, this is way embedded ones has this node as well.

Sebastian


nj_njoku
Inactive

Hi Kohei,


To add to what Sebastian said, types is The definition of the technology type. Used to group metrics under a logical technology name in the UI.

When creating custom metrics, they must be assigned a software technology type that is identical to the technology type of the custom device you are sending the metric to. For example, if you define your custom device using type F5-Firewall you must also register all related custom metrics as type F5-Firewall.

For creating custom python plugin, type is used to describe the plugin technology, which for custom plugins is always set to python.


Hope This Helps

NJ


kohei-saito
Organizer

Hi Sebastian and Ugochukwu,

Thank you for answers.

I understand that "types" is useful for the definition of a logical technology name only in the creation of custom metric, so there are no values of "types" for the default metrics.


Is it shown in the "Techonologies" view?
(I think so)


Thanks,

Kohei