Class ResponseStatusCode (2.16.0)

ResponseStatusCode(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
status_value int
A status code to accept. This field is a member of oneof_ status_code.
status_class google.cloud.monitoring_v3.types.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass
A class of status codes to accept. This field is a member of oneof_ status_code.

Classes

StatusClass

StatusClass(value)

An HTTP status code class.

Values: STATUS_CLASS_UNSPECIFIED (0): Default value that matches no status codes. STATUS_CLASS_1XX (100): The class of status codes between 100 and 199. STATUS_CLASS_2XX (200): The class of status codes between 200 and 299. STATUS_CLASS_3XX (300): The class of status codes between 300 and 399. STATUS_CLASS_4XX (400): The class of status codes between 400 and 499. STATUS_CLASS_5XX (500): The class of status codes between 500 and 599. STATUS_CLASS_ANY (1000): The class of all status codes.