Class: Google::Apis::MonitoringV1::QueryLabelsRequest

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

QueryLabelsRequest holds all parameters of the Prometheus upstream API for returning a list of label names.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryLabelsRequest

Returns a new instance of QueryLabelsRequest.



1175
1176
1177
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1175

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)


1161
1162
1163
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1161

def end
  @end
end

#matchString

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

Returns:

  • (String)


1167
1168
1169
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1167

def match
  @match
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)


1173
1174
1175
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1173

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1180
1181
1182
1183
1184
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1180

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