Class: Google::Apis::MonitoringV1::QueryInstantRequest
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::QueryInstantRequest
- 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
QueryInstantRequest holds all parameters of the Prometheus upstream instant query API plus GCM specific parameters.
Instance Attribute Summary collapse
-
#query ⇒ String
A PromQL query string.
-
#time ⇒ String
The single point in time to evaluate the query for.
-
#timeout ⇒ String
An upper bound timeout for the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryInstantRequest
constructor
A new instance of QueryInstantRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryInstantRequest
Returns a new instance of QueryInstantRequest.
1508 1509 1510 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1508 def initialize(**args) update!(**args) end |
Instance Attribute Details
#query ⇒ String
A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/
prometheus/latest/querying/basics/.
Corresponds to the JSON property query
1491 1492 1493 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1491 def query @query end |
#time ⇒ String
The single point in time to evaluate the query for. Either floating point UNIX
seconds or RFC3339 formatted timestamp.
Corresponds to the JSON property time
1497 1498 1499 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1497 def time @time 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
1506 1507 1508 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1506 def timeout @timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1513 1514 1515 1516 1517 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1513 def update!(**args) @query = args[:query] if args.key?(:query) @time = args[:time] if args.key?(:time) @timeout = args[:timeout] if args.key?(:timeout) end |