Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Defined types of monitoring status variables does not match event string conversions #6

Open
bjhargrave opened this issue Mar 18, 2010 · 1 comment
Labels
publiccomment Public comment

Comments

@bjhargrave
Copy link
Member

Original bug ID: BZ#72
From: Henrik Gustafsson <henrik.gustafsson@purplescout.se>
Reported version: R4 V4.2

@bjhargrave
Copy link
Member Author

Comment author: Henrik Gustafsson <henrik.gustafsson@purplescout.se>

According to section 119.3 of the Compendium spec a status variable can have the following types:
• TYPE_BOOLEAN – A boolean value.
• TYPE_INTEGER – A signed numeric value that fits in a Java int type.
• TYPE_FLOAT – A floating point value that fits in a Java float type.
• TYPE_STRING – A String object.

However, in 119.5 where it states the conversions from the StatusVariable to the "mon.statusvariable.value" event property the following type conversions are listed:

• long – Long.toString(long).
• double – Double.toString(double).
• boolean – Boolean.toString(boolean).
• String – No conversion

I assume the first two should be

• int – Integer.toString(int).
• float – Float.toString(float).

but it does seem a bit odd that there is no long type as a CM_CC counting bytes wouldn't be a too strange use-case and two gigs really isn't enough for everyone :)

@bjhargrave bjhargrave added the publiccomment Public comment label May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
publiccomment Public comment
Projects
None yet
Development

No branches or pull requests

1 participant