Error Reporting V1beta1 API - Class Google::Cloud::ErrorReporting::V1beta1::ServiceContext (v0.5.1)

Reference documentation and code samples for the Error Reporting V1beta1 API class Google::Cloud::ErrorReporting::V1beta1::ServiceContext.

Describes a running service that sends errors. Its version changes over time and multiple versions can run in parallel.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#resource_type

def resource_type() -> ::String
Returns
  • (::String) — Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources

    Value is set automatically for incoming errors and must not be set when reporting errors.

#resource_type=

def resource_type=(value) -> ::String
Parameter
  • value (::String) — Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources

    Value is set automatically for incoming errors and must not be set when reporting errors.

Returns
  • (::String) — Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources

    Value is set automatically for incoming errors and must not be set when reporting errors.

#service

def service() -> ::String
Returns
  • (::String) — An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.

    Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.

#service=

def service=(value) -> ::String
Parameter
  • value (::String) — An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.

    Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.

Returns
  • (::String) — An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to version, which can be changed whenever new code is deployed.

    Contains the service name for error reports extracted from Google App Engine logs or default if the App Engine default service is used.

#version

def version() -> ::String
Returns
  • (::String) — Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.

#version=

def version=(value) -> ::String
Parameter
  • value (::String) — Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.
Returns
  • (::String) — Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example. For App Engine standard environment, the version is set to the version of the app.