Class: Google::Apis::MonitoringV1::QueryExemplarsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/google/apis/monitoring_v1/representations.rb

Overview

QueryExemplarsRequest holds all parameters of the Prometheus upstream API for querying exemplars.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryExemplarsRequest

Returns a new instance of QueryExemplarsRequest.



1743
1744
1745
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1743

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endString

The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. Corresponds to the JSON property end

Returns:

  • (String)


1729
1730
1731
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1729

def end
  @end
end

#queryString

A PromQL query string. Query language documentation: https://prometheus.io/ docs/prometheus/latest/querying/basics/. Corresponds to the JSON property query

Returns:

  • (String)


1735
1736
1737
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1735

def query
  @query
end

#startString

The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. Corresponds to the JSON property start

Returns:

  • (String)


1741
1742
1743
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1741

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1748
1749
1750
1751
1752
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1748

def update!(**args)
  @end = args[:end] if args.key?(:end)
  @query = args[:query] if args.key?(:query)
  @start = args[:start] if args.key?(:start)
end