I want to use statetimeseries on my oneagent plugin with following states:
“states”: [“OK”, “NOT_YET_TRIGGERED”, “PAUSED”, “INVALID”, “ERROR”],
and with a dimensions: “job”
I assumed I could report the value like this …
for jobDetail in jobDetails:<br> if interval is not None:<br> self.results_builder.absolute(<br> key='jobExecutionState',<br> value=status.replace(" ", "_"),<br> dimensions={<br> "job": jobDetail['name']<br> },<br> entity_id=pgi_id <br> )
However… value must be a float.
With activegate-plugins these statetimeseries are reported via the device using state_metric.
device.state_metric("my_state", "OK")