ChartOptions

Chart options for chart requests.

JSON representation
{
  "range": string,
  "resolution": enum (Resolution),
  "maxChartLines": number,
  "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, terminated by 's'. Example: "3.5s".

resolution

enum (Resolution)

Optional. Chart resolution. Defaults to hourly.

maxChartLines

number

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, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Resolution

The report resolution. The smallest resolution is one hour, 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 hourly trends when looking at a year's worth of data.

Enums
RESOLUTION_UNSPECIFIED Not specified.
RESOLUTION_ONE_HOUR 1 hour.
RESOLUTION_TWO_HOURS 2 hours.
RESOLUTION_SIX_HOURS 6 hours.
RESOLUTION_TWENTY_FOUR_HOURS 24 hours.