INPUT_OBJECT

StatsInput

Filters for querying stats

link GraphQL Schema definition

  • input StatsInput {
  • # Optionally aggregate stats timeseries by provided tags using the specified
  • # function.
  • aggregation: StatsAggregationInput
  • # **NOTE:** This API/functionality is in Alpha, This functionality can be unstable
  • # and schema elements may change over future iterations.
  • anomaly: StatsAnomalyInput
  • # Optional endTime. If empty, defaults to now. Expressed in UTC ISO-8601 timestamp
  • endTime: DateTime
  • forecast: StatsForecastInput
  • # Optional interval for samples between startTime and endTime expressed in
  • # minutes.
  • intervalMins: Int
  • # Optionally filter by keys.
  • # To list available keys for an entity, don't filter on keys and specify only the
  • # "key" field in stats.
  • keys: [String!]
  • # Optional namespace from which to collect stats (defaults to provider from
  • # entityId)
  • namespace: String
  • # Optional value to include out-of-band NAN and POSITIVE_INFINITY /
  • # NEGATIVE_INFINITY in stats results if supported by the provider.
  • # If a value is provided and the provider supports out-of-band values, then the
  • # out-of-band elements in the `data` field will be replaced by the given value
  • # and the `modes` field will be populated with the mode of each data element.
  • # If the value is not provided or the provider does not support out-of-band
  • # values, then any out-of-band values and their timestamps will be dropped and
  • # modes will remain null.
  • outOfBandDataValue: Float
  • # Some stats providers can support stats query strings, in which case the query
  • # syntax is specific to the provider
  • queryString: String
  • # Optional roll-up strategy used in each interval for time-range queries.
  • rollupType: StatsRollupType
  • # Optional number of digits of precision. Full precision if not specified.
  • significantDigits: Int
  • # Optional startTime.
  • # If both startTime and endTime are null, a single latest value is fetched. The
  • # behavior of this
  • # may vary by namespace:
  • #
  • # | VRNI | will fetch the latest stat using 5-minute sampling from the last hour
  • # |
  • # | VROPS | will fetch latest "current" stat as defined by vROps |
  • #
  • # If only startTime is null, the query defaults to 24 hours before endTime
  • startTime: DateTime
  • # Optional key/value tags of the underlying metrics. If the same tag key is
  • # repeated, the behavior is like an 'or'
  • tags: [TagInput!]
  • }