Class: Google::Apis::ClouderrorreportingV1beta1::ServiceContext
- Inherits:
-
Object
- Object
- Google::Apis::ClouderrorreportingV1beta1::ServiceContext
- Defined in:
- generated/google/apis/clouderrorreporting_v1beta1/classes.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb,
generated/google/apis/clouderrorreporting_v1beta1/representations.rb
Overview
Describes a running service that sends errors. Its version changes over time and multiple versions can run in parallel.
Instance Attribute Summary collapse
-
#resource_type ⇒ String
Type of the MonitoredResource.
-
#service ⇒ String
An identifier of the service, such as the name of the executable, job, or Google App Engine service name.
-
#version ⇒ String
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceContext
constructor
A new instance of ServiceContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceContext
Returns a new instance of ServiceContext
379 380 381 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_type ⇒ 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.
Corresponds to the JSON property resourceType
369 370 371 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 369 def resource_type @resource_type end |
#service ⇒ 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.
Corresponds to the JSON property service
361 362 363 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 361 def service @service end |
#version ⇒ 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.
Corresponds to the JSON property version
377 378 379 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 377 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
384 385 386 387 388 |
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 384 def update!(**args) @service = args[:service] if args.key?(:service) @resource_type = args[:resource_type] if args.key?(:resource_type) @version = args[:version] if args.key?(:version) end |