Class: Google::Apis::LanguageV1::InfraUsage

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

Overview

Infra Usage of billing metrics. Next ID: 6

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InfraUsage

Returns a new instance of InfraUsage.



921
922
923
# File 'lib/google/apis/language_v1/classes.rb', line 921

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

Instance Attribute Details

#cpu_metricsArray<Google::Apis::LanguageV1::CpuMetric>

Aggregated core metrics since requested start_time. Corresponds to the JSON property cpuMetrics



899
900
901
# File 'lib/google/apis/language_v1/classes.rb', line 899

def cpu_metrics
  @cpu_metrics
end

#disk_metricsArray<Google::Apis::LanguageV1::DiskMetric>

Aggregated persistent disk metrics since requested start_time. Corresponds to the JSON property diskMetrics



904
905
906
# File 'lib/google/apis/language_v1/classes.rb', line 904

def disk_metrics
  @disk_metrics
end

#gpu_metricsArray<Google::Apis::LanguageV1::GpuMetric>

Aggregated gpu metrics since requested start_time. Corresponds to the JSON property gpuMetrics



909
910
911
# File 'lib/google/apis/language_v1/classes.rb', line 909

def gpu_metrics
  @gpu_metrics
end

#ram_metricsArray<Google::Apis::LanguageV1::RamMetric>

Aggregated ram metrics since requested start_time. Corresponds to the JSON property ramMetrics



914
915
916
# File 'lib/google/apis/language_v1/classes.rb', line 914

def ram_metrics
  @ram_metrics
end

#tpu_metricsArray<Google::Apis::LanguageV1::TpuMetric>

Aggregated tpu metrics since requested start_time. Corresponds to the JSON property tpuMetrics



919
920
921
# File 'lib/google/apis/language_v1/classes.rb', line 919

def tpu_metrics
  @tpu_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



926
927
928
929
930
931
932
# File 'lib/google/apis/language_v1/classes.rb', line 926

def update!(**args)
  @cpu_metrics = args[:cpu_metrics] if args.key?(:cpu_metrics)
  @disk_metrics = args[:disk_metrics] if args.key?(:disk_metrics)
  @gpu_metrics = args[:gpu_metrics] if args.key?(:gpu_metrics)
  @ram_metrics = args[:ram_metrics] if args.key?(:ram_metrics)
  @tpu_metrics = args[:tpu_metrics] if args.key?(:tpu_metrics)
end