Get chart’s JSON

To get chart’s JSON, use the command report/render_json:

svc=report/render_json&params={"attachmentIndex":<uint>,
			       "width":<uint>,
			       "useCrop":<uint>,
			       "cropBegin":<uint>,
			       "cropEnd":<uint>}

Params

Name Description
attachmentIndex attachment index
width width
useCrop crop the time interval: 1 – yes, 0 – no
cropBegin start of inteval, UNIX time
cropEnd end of interval, UNIX time

Response

{
    "datasets":{		/* data */
        <text>:{		/* chart's index */
            "name":<text>,	/* chart's name */
            "color":<uint>,	/* line color */
            "y_axis":<uint>,	/* use second y axis (for splitted charts with different measurements): 0 -no, 1 - yes */
            "data": {
                "x": [
                    <uint>,	/* chart's trace (time) */
                    ...
                ],
                "y": [		/* chart's trace (value) */
                    <int>,
                   ...
                ]
            },
            "colors": [		/* chart's color intervals */
 
            	[<uint>,	/* interval start time */
            	 <uint>],	/* color */
            	...
	    ],
        },
        ...
    },
    "markers":[			/* markers */
        {
            "type":<uint>,	/* type */
            "x": [		
                <uint>,		/* time */
                ...		
            ]
        },
       ...
    ],
    "background_regions": [    /* backround intervals */
        {
            "name":<text>,	/* name */
            "color":<uint>,	/* color */
            "priority":<uint>,	/* priority */
            "regions":[	
                [<uint>,	/* interval start time */
                 <uint>		/* interval end time */
                 ],
                ...
            ]
        },
        ...
    ]
}

Marker flags

Flag HEX Flag DEC Description
0x4 4 event/violation
0x8 8 filling
0x10 16 image
0x20 32 parking
0x40 64 speeding
0x80 128 stop
0x100 256 theft
0x800 2048 video