InlineMetricsDataRequest0

InlineMetricsDataRequest0
InlineMetricsDataRequest0

Metrics timeseries data request.

JSON Example
{
    "granularity": "string",
    "start_time": 0,
    "end_time": 0
}
string
granularity
Optional

Granularity of the metrics data required. Defaults are based on the following settings:

  • If time-range is <= 12 hours, the default is 5-minute granularity.
  • If time-range is > 12 hours and <= 7 days, the default is 1-hour granularity.
  • If time-range is more than 7 days, the default is 1-day granularity. If you are looking for a coarser value, use this field. For example, if ONE_HOUR is set, the system will aggregate all the data points available within one hour and return the aggregated metric value. This field is not relevant (and is ignored) for "is_status" metrics.
Possible values are : FIVE_MINUTES, ONE_HOUR, ONE_DAY,
integer As int64 As int64
start_time
Optional

Start time interval for the metrics query. Epoch time in milliseconds. Default values are as follows: Start time will be based on the end time and granularity, if provided. For FIVE_MIN granularity, end_time is - 12 hours. For ONE_HOUR granularity, end_time is - 1 week. For ONE_DAY granularity, end_time is - 1 month. If end time and granularity are not provided, granularity will be defaulted to FIVE_MIN and start time would be 12 hours before the end time.

integer As int64 As int64
end_time
Optional

End time interval for the metrics query. Epoch time in milliseconds. Default values are as follows - End time will be based on the start time and granularity if provided. For FIVE_MIN granularity, end_time will be start_time + 12 hours or current time whichever is earlier, for ONE_HOUR granularity, end_time will be start_time + 1 week or current time whichever is earlier, and for ONE_DAY granularity, end_time will be start_time + 1 month or current time whichever is earlier. If start time and granularity are not provided, granularity will be defaulted to FIVE_MIN and end time will be current time.