ChartOptions
Stay organized with collections
Save and categorize content based on your preferences.
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["Chart options can be customized using JSON representation including range, resolution, maximum chart lines, and end time."],["Chart range defaults to one week and can be adjusted using duration format in seconds."],["Chart resolution, with a minimum of 12 hours, can be specified and defaults to 12 hours if not provided."],["The maximum number of chart lines displayed can be controlled, with excess lines aggregated into an \"other\" category."],["Chart's end time can be specified using timestamp format; otherwise, it defaults to the current time."]]],["Chart requests use a JSON representation with fields including `range` (duration, defaults to a week), `resolution` (time interval, defaults to 12 hours), `maxChartLines` (maximum lines, defaults to 10), and `endTime` (report end time, defaults to now). The `resolution` field can be unspecified, 12 hours, or 24 hours. `maxChartLines` merge the minor lines into \"other\" aggregate when exceeded, except for the `TYPE_UPDATE_STATE_COUNTS` type.\n"]]