Class: Google::Apis::CloudtraceV2::Attributes

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudtrace_v2/classes.rb,
generated/google/apis/cloudtrace_v2/representations.rb,
generated/google/apis/cloudtrace_v2/representations.rb

Overview

A set of attributes, each in the format [KEY]:[VALUE].

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Attributes

Returns a new instance of Attributes.



103
104
105
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 103

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attribute_mapHash<String,Google::Apis::CloudtraceV2::AttributeValue>

The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values true and false. For example: "/instance_id": "string_value": "value": "my-instance" "/http/request_bytes": "int_value": 300 "abc.com/myattribute": "bool_value": false Corresponds to the JSON property attributeMap



94
95
96
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 94

def attribute_map
  @attribute_map
end

#dropped_attributes_countFixnum

The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid. Corresponds to the JSON property droppedAttributesCount

Returns:

  • (Fixnum)


101
102
103
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 101

def dropped_attributes_count
  @dropped_attributes_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
111
# File 'generated/google/apis/cloudtrace_v2/classes.rb', line 108

def update!(**args)
  @attribute_map = args[:attribute_map] if args.key?(:attribute_map)
  @dropped_attributes_count = args[:dropped_attributes_count] if args.key?(:dropped_attributes_count)
end