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

This product reached the end of support date on March 31, 2021.

Setting Mesure value in Custom Plugin Development

darya_romanova
Newcomer


Hi,


I've just started to learn how to write my own Monitor Plugin and I've been confused with the meaning of the method
setValue(double value) in class MonitorMeasure . What kind of measure value does it set (minimum, maximum, average, count etc.)? How can I specify what kind of value I want to set?

1 REPLY 1

Mike_L
Dynatrace Pro
Dynatrace Pro

Hello,

It sets the individual value itself. The minimum/maximum/average/count and so on are aggregations that you can use in charts, business transactions and charts based on all the individual values.

For example, if the monitor runs 10 times in 1 minute and you're creating a chart with the resolution of 1 datapoint per minute you can use the aggregation to choose how you want to display the 10 individual values.

Mike