class Google::Apis::SpannerV1::Metric
A message representing the actual monitoring data, values for each key bucket over time, of a metric.
Attributes
The aggregation function used to aggregate each key bucket Corresponds to the JSON property `aggregation` @return [String]
A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `category` @return [Google::Apis::SpannerV1::LocalizedString]
A message representing a derived metric. Corresponds to the JSON property `derived` @return [Google::Apis::SpannerV1::DerivedMetric]
A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `displayLabel` @return [Google::Apis::SpannerV1::LocalizedString]
Whether the metric has any non-zero data. Corresponds to the JSON property `hasNonzeroData` @return [Boolean]
Whether the metric has any non-zero data. Corresponds to the JSON property `hasNonzeroData` @return [Boolean]
The value that is considered hot for the metric. On a per metric basis hotness signals high utilization and something that might potentially be a cause for concern by the end user. hot_value
is used to calibrate and scale visual color scales. Corresponds to the JSON property `hotValue` @return [Float]
The (sparse) mapping from time index to an IndexedHotKey
message, representing those time intervals for which there are hot keys. Corresponds to the JSON property `indexedHotKeys` @return [Hash<String,Google::Apis::SpannerV1::IndexedHotKey>]
The (sparse) mapping from time interval index to an IndexedKeyRangeInfos
message, representing those time intervals for which there are informational messages concerning key ranges. Corresponds to the JSON property `indexedKeyRangeInfos` @return [Hash<String,Google::Apis::SpannerV1::IndexedKeyRangeInfos>]
A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `info` @return [Google::Apis::SpannerV1::LocalizedString]
A message representing a matrix of floats. Corresponds to the JSON property `matrix` @return [Google::Apis::SpannerV1::MetricMatrix]
A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `unit` @return [Google::Apis::SpannerV1::LocalizedString]
Whether the metric is visible to the end user. Corresponds to the JSON property `visible` @return [Boolean]
Whether the metric is visible to the end user. Corresponds to the JSON property `visible` @return [Boolean]
Public Class Methods
# File lib/google/apis/spanner_v1/classes.rb, line 2333 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/spanner_v1/classes.rb, line 2338 def update!(**args) @aggregation = args[:aggregation] if args.key?(:aggregation) @category = args[:category] if args.key?(:category) @derived = args[:derived] if args.key?(:derived) @display_label = args[:display_label] if args.key?(:display_label) @has_nonzero_data = args[:has_nonzero_data] if args.key?(:has_nonzero_data) @hot_value = args[:hot_value] if args.key?(:hot_value) @indexed_hot_keys = args[:indexed_hot_keys] if args.key?(:indexed_hot_keys) @indexed_key_range_infos = args[:indexed_key_range_infos] if args.key?(:indexed_key_range_infos) @info = args[:info] if args.key?(:info) @matrix = args[:matrix] if args.key?(:matrix) @unit = args[:unit] if args.key?(:unit) @visible = args[:visible] if args.key?(:visible) end