ServiceContext
class ServiceContext extends Message
Describes a running service that sends errors.
Its version changes over time and multiple versions can run in parallel.
Protobuf type Google\Devtools\Clouderrorreporting\V1beta1\ServiceContext
Methods
No description
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.
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.
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.
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.
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.
Details
at line 47
__construct()
at line 63
string
getService()
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.
Generated from protobuf field string service = 2;
at line 79
setService(string $var)
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.
Generated from protobuf field string service = 2;
at line 92
string
getVersion()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.
Generated from protobuf field string version = 3;
at line 104
setVersion(string $var)
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.
Generated from protobuf field string version = 3;
at line 119
string
getResourceType()
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.
Generated from protobuf field string resource_type = 4;
at line 133
setResourceType(string $var)
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.
Generated from protobuf field string resource_type = 4;