Class: Google::Apis::LanguageV1beta2::XpsMetricEntry
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsMetricEntry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#argentum_metric_id ⇒ String
For billing metrics that are using legacy sku's, set the legacy billing metric id here.
-
#double_value ⇒ Float
A double value.
-
#int64_value ⇒ Fixnum
A signed 64-bit integer value.
-
#metric_name ⇒ String
The metric name defined in the service configuration.
-
#system_labels ⇒ Array<Google::Apis::LanguageV1beta2::XpsMetricEntryLabel>
Billing system labels for this (metric, value) pair.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsMetricEntry
constructor
A new instance of XpsMetricEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsMetricEntry
Returns a new instance of XpsMetricEntry.
3071 3072 3073 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3071 def initialize(**args) update!(**args) end |
Instance Attribute Details
#argentum_metric_id ⇒ String
For billing metrics that are using legacy sku's, set the legacy billing metric
id here. This will be sent to Chemist as the "cloudbilling.googleapis.com/
argentum_metric_id" label. Otherwise leave empty.
Corresponds to the JSON property argentumMetricId
3049 3050 3051 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3049 def argentum_metric_id @argentum_metric_id end |
#double_value ⇒ Float
A double value.
Corresponds to the JSON property doubleValue
3054 3055 3056 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3054 def double_value @double_value end |
#int64_value ⇒ Fixnum
A signed 64-bit integer value.
Corresponds to the JSON property int64Value
3059 3060 3061 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3059 def int64_value @int64_value end |
#metric_name ⇒ String
The metric name defined in the service configuration.
Corresponds to the JSON property metricName
3064 3065 3066 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3064 def metric_name @metric_name end |
#system_labels ⇒ Array<Google::Apis::LanguageV1beta2::XpsMetricEntryLabel>
Billing system labels for this (metric, value) pair.
Corresponds to the JSON property systemLabels
3069 3070 3071 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3069 def system_labels @system_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3076 3077 3078 3079 3080 3081 3082 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3076 def update!(**args) @argentum_metric_id = args[:argentum_metric_id] if args.key?(:argentum_metric_id) @double_value = args[:double_value] if args.key?(:double_value) @int64_value = args[:int64_value] if args.key?(:int64_value) @metric_name = args[:metric_name] if args.key?(:metric_name) @system_labels = args[:system_labels] if args.key?(:system_labels) end |