Class: Google::Apis::RedisV1beta1::ObservabilityMetricData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObservabilityMetricData

Returns a new instance of ObservabilityMetricData.



2530
2531
2532
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2530

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

Instance Attribute Details

#aggregation_typeString

Required. Type of aggregation performed on the metric. Corresponds to the JSON property aggregationType

Returns:

  • (String)


2506
2507
2508
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2506

def aggregation_type
  @aggregation_type
end

#metric_typeString

Required. Type of metric like CPU, Memory, etc. Corresponds to the JSON property metricType

Returns:

  • (String)


2511
2512
2513
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2511

def metric_type
  @metric_type
end

#observation_timeString

Required. The time the metric value was observed. Corresponds to the JSON property observationTime

Returns:

  • (String)


2516
2517
2518
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2516

def observation_time
  @observation_time
end

#resource_nameString

Required. Database resource name associated with the signal. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel Corresponds to the JSON property resourceName

Returns:

  • (String)


2522
2523
2524
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2522

def resource_name
  @resource_name
end

#valueGoogle::Apis::RedisV1beta1::TypedValue

TypedValue represents the value of a metric type. It can either be a double, an int64, a string or a bool. Corresponds to the JSON property value



2528
2529
2530
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2528

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2535
2536
2537
2538
2539
2540
2541
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2535

def update!(**args)
  @aggregation_type = args[:aggregation_type] if args.key?(:aggregation_type)
  @metric_type = args[:metric_type] if args.key?(:metric_type)
  @observation_time = args[:observation_time] if args.key?(:observation_time)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @value = args[:value] if args.key?(:value)
end