Class: Google::Apis::LanguageV1beta2::InfraUsage

Inherits:
Object
  • Object
show all
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

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.



942
943
944
# File 'lib/google/apis/language_v1beta2/classes.rb', line 942

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

Instance Attribute Details

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

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



920
921
922
# File 'lib/google/apis/language_v1beta2/classes.rb', line 920

def cpu_metrics
  @cpu_metrics
end

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

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



925
926
927
# File 'lib/google/apis/language_v1beta2/classes.rb', line 925

def disk_metrics
  @disk_metrics
end

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

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



930
931
932
# File 'lib/google/apis/language_v1beta2/classes.rb', line 930

def gpu_metrics
  @gpu_metrics
end

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

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



935
936
937
# File 'lib/google/apis/language_v1beta2/classes.rb', line 935

def ram_metrics
  @ram_metrics
end

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

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



940
941
942
# File 'lib/google/apis/language_v1beta2/classes.rb', line 940

def tpu_metrics
  @tpu_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



947
948
949
950
951
952
953
# File 'lib/google/apis/language_v1beta2/classes.rb', line 947

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