ChartOptions

Chart options for chart requests.

JSON representation
{
  "range": string,
  "resolution": enum (Resolution),
  "maxChartLines": integer,
  "endTime": string
}
Fields
range

string (Duration format)

Optional. Chart range going back from now. Defaults to a week.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

resolution

enum (Resolution)

Optional. Chart resolution. Defaults to every 12 hours.

maxChartLines

integer

Optional. The maximum number of chart lines that will be returned. If the value is positive and the number of lines is greater than this value, then the lines with smaller values are merged into the last one and will be marked as an aggregate and labeled as "other". For example, if a chart is for active devices by build and there are 25 builds and this number is 10, the 16 builds with the fewest active devices will be aggregated into one line called other. This does not apply to the TYPE_UPDATE_STATE_COUNTS chart type. Defaults to 10.

endTime

string (Timestamp format)

Optional. The end time for the report. If this value is not set, the end time will be the current time.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Resolution

The report resolution. The smallest resolution is twelve hours, but for larger reports (that is, 6 months), it is better to use higher values to save bandwidth. The user probably doesn't care about 12 hour trends when looking at a year's worth of data.

Enums
RESOLUTION_UNSPECIFIED Not specified.
RESOLUTION_TWELVE_HOURS 12 hours.
RESOLUTION_TWENTY_FOUR_HOURS 24 hours.