Class: Google::Cloud::Monitoring::V3::UptimeCheckConfig::HttpCheck::ResponseStatusCode

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/monitoring/v3/uptime.rb

Overview

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

Defined Under Namespace

Modules: StatusClass

Instance Attribute Summary collapse

Instance Attribute Details

#status_class::Google::Cloud::Monitoring::V3::UptimeCheckConfig::HttpCheck::ResponseStatusCode::StatusClass

Returns A class of status codes to accept.



317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 317

class ResponseStatusCode
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # An HTTP status code class.
  module StatusClass
    # Default value that matches no status codes.
    STATUS_CLASS_UNSPECIFIED = 0

    # The class of status codes between 100 and 199.
    STATUS_CLASS_1XX = 100

    # The class of status codes between 200 and 299.
    STATUS_CLASS_2XX = 200

    # The class of status codes between 300 and 399.
    STATUS_CLASS_3XX = 300

    # The class of status codes between 400 and 499.
    STATUS_CLASS_4XX = 400

    # The class of status codes between 500 and 599.
    STATUS_CLASS_5XX = 500

    # The class of all status codes.
    STATUS_CLASS_ANY = 1000
  end
end

#status_value::Integer

Returns A status code to accept.

Returns:

  • (::Integer)

    A status code to accept.



317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
# File 'proto_docs/google/monitoring/v3/uptime.rb', line 317

class ResponseStatusCode
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # An HTTP status code class.
  module StatusClass
    # Default value that matches no status codes.
    STATUS_CLASS_UNSPECIFIED = 0

    # The class of status codes between 100 and 199.
    STATUS_CLASS_1XX = 100

    # The class of status codes between 200 and 299.
    STATUS_CLASS_2XX = 200

    # The class of status codes between 300 and 399.
    STATUS_CLASS_3XX = 300

    # The class of status codes between 400 and 499.
    STATUS_CLASS_4XX = 400

    # The class of status codes between 500 and 599.
    STATUS_CLASS_5XX = 500

    # The class of all status codes.
    STATUS_CLASS_ANY = 1000
  end
end