Class: Google::Apis::MonitoringV1::QueryExemplarsRequest
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::QueryExemplarsRequest
- 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
-
#end ⇒ String
The end time to evaluate the query for.
-
#query ⇒ String
A PromQL query string.
-
#start ⇒ String
The start time to evaluate the query for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryExemplarsRequest
constructor
A new instance of QueryExemplarsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryExemplarsRequest
Returns a new instance of QueryExemplarsRequest.
1609 1610 1611 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1609 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ String
The end time to evaluate the query for. Either floating point UNIX seconds or
RFC3339 formatted timestamp.
Corresponds to the JSON property end
1595 1596 1597 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1595 def end @end end |
#query ⇒ String
A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
prometheus/latest/querying/basics/.
Corresponds to the JSON property query
1601 1602 1603 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1601 def query @query end |
#start ⇒ String
The start time to evaluate the query for. Either floating point UNIX seconds
or RFC3339 formatted timestamp.
Corresponds to the JSON property start
1607 1608 1609 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1607 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1614 1615 1616 1617 1618 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1614 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 |