Class: Google::Apis::MonitoringV1::QueryLabelsRequest
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::QueryLabelsRequest
- 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
QueryLabelsRequest holds all parameters of the Prometheus upstream API for returning a list of label names.
Instance Attribute Summary collapse
-
#end ⇒ String
The end time to evaluate the query for.
-
#match ⇒ String
A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them.
-
#start ⇒ String
The start time to evaluate the query for.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryLabelsRequest
constructor
A new instance of QueryLabelsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryLabelsRequest
Returns a new instance of QueryLabelsRequest.
1682 1683 1684 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1682 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
1668 1669 1670 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1668 def end @end end |
#match ⇒ String
A list of matchers encoded in the Prometheus label matcher format to constrain
the values to series that satisfy them.
Corresponds to the JSON property match
1674 1675 1676 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1674 def match @match 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
1680 1681 1682 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1680 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1687 1688 1689 1690 1691 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1687 def update!(**args) @end = args[:end] if args.key?(:end) @match = args[:match] if args.key?(:match) @start = args[:start] if args.key?(:start) end |