Class: Google::Api::LabelDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/monitoring/v3/doc/google/api/label.rb

Overview

A description of a label.

Defined Under Namespace

Modules: ValueType

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Returns A human-readable description for the label.

Returns:

  • (String)

    A human-readable description for the label.



27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/google/cloud/monitoring/v3/doc/google/api/label.rb', line 27

class LabelDescriptor
  # Value types that can be used as label values.
  module ValueType
    # A variable-length string. This is the default.
    STRING = 0

    # Boolean; true or false.
    BOOL = 1

    # A 64-bit signed integer.
    INT64 = 2
  end
end

#keyString

Returns The label key.

Returns:

  • (String)

    The label key.



27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/google/cloud/monitoring/v3/doc/google/api/label.rb', line 27

class LabelDescriptor
  # Value types that can be used as label values.
  module ValueType
    # A variable-length string. This is the default.
    STRING = 0

    # Boolean; true or false.
    BOOL = 1

    # A 64-bit signed integer.
    INT64 = 2
  end
end

#value_typeGoogle::Api::LabelDescriptor::ValueType

Returns The type of data that can be assigned to the label.

Returns:



27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/google/cloud/monitoring/v3/doc/google/api/label.rb', line 27

class LabelDescriptor
  # Value types that can be used as label values.
  module ValueType
    # A variable-length string. This is the default.
    STRING = 0

    # Boolean; true or false.
    BOOL = 1

    # A 64-bit signed integer.
    INT64 = 2
  end
end