Class: Gcloud::Logging::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/gcloud/logging/resource.rb

Overview

Resource

Monitored resource that is used by Cloud Logging.

Examples:

require "gcloud"

gcloud = Gcloud.new
logging = gcloud.logging
resource = logging.resource "gae_app",
                            "module_id" => "1",
                            "version_id" => "20150925t173233"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResource

Create an empty Resource object.


35
36
37
# File 'lib/gcloud/logging/resource.rb', line 35

def initialize
  @labels = {}
end

Instance Attribute Details

#labelsObject

A set of labels that can be used to describe instances of this monitored resource type.


47
48
49
# File 'lib/gcloud/logging/resource.rb', line 47

def labels
  @labels
end

#typeObject


42
43
44
# File 'lib/gcloud/logging/resource.rb', line 42

def type
  @type
end