Class: Google::Cloud::Logging::Resource
- Inherits:
-
Object
- Object
- Google::Cloud::Logging::Resource
- Defined in:
- lib/google/cloud/logging/resource.rb
Overview
Resource
A monitored resource is an abstraction used to characterize many kinds of objects in your cloud infrastructure, including Google Cloud SQL databases, Google App Engine apps, Google Compute Engine virtual machine instances, and so forth. Each of those kinds of objects is described by an instance of ResourceDescriptor.
For use with Entry#resource, Project#resource, and Project#write_entries.
Instance Attribute Summary collapse
-
#labels ⇒ Object
A set of labels that can be used to describe instances of this monitored resource type.
-
#type ⇒ Object
The type of resource, as represented by a ResourceDescriptor.
Instance Method Summary collapse
-
#initialize ⇒ Resource
constructor
Create an empty Resource object.
Constructor Details
#initialize ⇒ Resource
Create an empty Resource object.
43 44 45 |
# File 'lib/google/cloud/logging/resource.rb', line 43 def initialize @labels = {} end |
Instance Attribute Details
#labels ⇒ Object
A set of labels that can be used to describe instances of this monitored resource type.
54 55 56 |
# File 'lib/google/cloud/logging/resource.rb', line 54 def labels @labels end |
#type ⇒ Object
The type of resource, as represented by a Google::Cloud::Logging::ResourceDescriptor.
49 50 51 |
# File 'lib/google/cloud/logging/resource.rb', line 49 def type @type end |