Class: Google::Apis::MonitoringV1::QueryRangeRequest
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::QueryRangeRequest
- 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
QueryRangeRequest holds all parameters of the Prometheus upstream range query API plus GCM specific parameters.
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.
-
#step ⇒ String
The resolution of query result.
-
#timeout ⇒ String
An upper bound timeout for the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryRangeRequest
constructor
A new instance of QueryRangeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryRangeRequest
Returns a new instance of QueryRangeRequest.
1570 1571 1572 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1570 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
1538 1539 1540 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1538 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
1544 1545 1546 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1544 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
1550 1551 1552 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1550 def start @start end |
#step ⇒ String
The resolution of query result. Either a Prometheus duration string (https://
prometheus.io/docs/prometheus/latest/querying/basics/#time-durations) or
floating point seconds. This non-standard encoding must be used for
compatibility with the open source API. Clients may still implement timeouts
at the connection level while ignoring this field.
Corresponds to the JSON property step
1559 1560 1561 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1559 def step @step end |
#timeout ⇒ String
An upper bound timeout for the query. Either a Prometheus duration string (
https://prometheus.io/docs/prometheus/latest/querying/basics/#time-durations)
or floating point seconds. This non-standard encoding must be used for
compatibility with the open source API. Clients may still implement timeouts
at the connection level while ignoring this field.
Corresponds to the JSON property timeout
1568 1569 1570 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1568 def timeout @timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1575 1576 1577 1578 1579 1580 1581 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1575 def update!(**args) @end = args[:end] if args.key?(:end) @query = args[:query] if args.key?(:query) @start = args[:start] if args.key?(:start) @step = args[:step] if args.key?(:step) @timeout = args[:timeout] if args.key?(:timeout) end |