Class: Gcloud::Logging::ResourceDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/gcloud/logging/resource_descriptor.rb,
lib/gcloud/logging/resource_descriptor/list.rb

Overview

ResourceDescriptor

A type of monitored resource that is used by Cloud Logging. Read-only.

Examples:

require "gcloud"

gcloud = Gcloud.new
logging = gcloud.logging
resource_descriptor = logging.resource_descriptors.first

Defined Under Namespace

Classes: LabelDescriptor, List

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

A detailed description of the monitored resource type, which is used in documentation.


51
52
53
# File 'lib/gcloud/logging/resource_descriptor.rb', line 51

def description
  @description
end

#labelsArray<LabelDescriptor> (readonly)

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

Returns:


59
60
61
# File 'lib/gcloud/logging/resource_descriptor.rb', line 59

def labels
  @labels
end

#nameObject (readonly)

A concise name for the monitored resource type, which is displayed in user interfaces.


46
47
48
# File 'lib/gcloud/logging/resource_descriptor.rb', line 46

def name
  @name
end

#typeObject (readonly)

The monitored resource type.


41
42
43
# File 'lib/gcloud/logging/resource_descriptor.rb', line 41

def type
  @type
end