Class: Google::Apis::MonitoringV3::ResponseStatusCode

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

A status to accept. Either a status code class like "2xx", or an integer status code like "200".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResponseStatusCode

Returns a new instance of ResponseStatusCode.



4084
4085
4086
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4084

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#status_classString

A class of status codes to accept. Corresponds to the JSON property statusClass

Returns:

  • (String)


4077
4078
4079
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4077

def status_class
  @status_class
end

#status_valueFixnum

A status code to accept. Corresponds to the JSON property statusValue

Returns:

  • (Fixnum)


4082
4083
4084
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4082

def status_value
  @status_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4089
4090
4091
4092
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4089

def update!(**args)
  @status_class = args[:status_class] if args.key?(:status_class)
  @status_value = args[:status_value] if args.key?(:status_value)
end