ActiveGate remote plugins: varying metrics

Hi Georg.

I am developing an ActiveGate Extension in wich I have a Metric with 2 Dimensions but I am running into an issue: none of the two values are being stored into it.

This is the Metric definition in the plugin.json File:

{

“entity”: “CUSTOM_DEVICE”,

“timeseries”: {

“key”: “trains.wait2”,

“unit”: “Count”,

“dimensions”: [“train”, “locationstation”],

“displayname”: "trains.wait2"a

}

}

And this is the Python Code to insert the values into it:

self.device.absolute(“trains.wait2”, oFieldValue[‘Wait1’], {“train”: str(self.szTrain), “stationlocation”: str(self.szLocationStation)})

According to the official Documentation on Dynatrace, the dimensions Parameter is a Dictionary of two strings {‘key’, ‘value’}

If I define the Metric with only 1 Dimension, it works:

{

“entity”: “CUSTOM_DEVICE”,

“timeseries”: {

“key”: “trains.wait2”,

“unit”: “Count”,

“dimensions”: [“train”],

“displayname”: “trains.wait2”

}

}

self.device.absolute(“trains.wait2”, oFieldValue[‘Wait1’], {“train”: str(self.szTrain})

Please can you tell me what is wrong ?

Thank you very much.