[Reconnoiter-devel] [reconnoiter] #357: support more type-rich JSON formatting.
reconnoiter
trac at labs.omniti.com
Sun Mar 20 17:12:03 EDT 2011
#357: support more type-rich JSON formatting.
-------------------------+--------------------------------------------------
Reporter: jesus | Owner: jesus
Type: enhancement | Status: new
Priority: major | Milestone:
Component: noitd | Severity: annoying
Keywords: |
-------------------------+--------------------------------------------------
The lusa remson module supports pulling XML DTD over http/https as well as
JSON. However, the JSON is a bit naive and is painfully limited to type
inference based on the ability to convert. This means that integers over
2^53^ must be placed in strings and the module just guess that they should
be integers. Also, if null values are returned, the type is often guessed
wrong. For JSON, we wish to alter the parsing process as follows:
* {{{_type}}} is now a reserved word, you cannot have a key named _type
as metric
* {{{_value}}} is now a reserved word, you cannot have a key named
_value as a metric
* any javascript object that contains both {{{_type}}} and {{{_value}}}
will set the parent key to a metric of a type equal that specified at the
{{{_type}}} key and value equal to the value at the {{{_value}}} key.
{{{
{"foo":{"Test":{"_type":"L","_value":"9223372036854775908"}}}
}}}
Will result in a single metric:
{{{
foo`Test[L] = 9223372036854775908
}}}
--
Ticket URL: <https://labs.omniti.com/labs/reconnoiter/ticket/357>
reconnoiter <https://labs.omniti.com/trac/reconnoiter>
Reconnoiter
More information about the Reconnoiter-devel
mailing list