Class: Google::Apis::LanguageV1beta2::InfraUsage
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::InfraUsage
- 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.
Instance Attribute Summary collapse
-
#cpu_metrics ⇒ Array<Google::Apis::LanguageV1beta2::CpuMetric>
Aggregated core metrics since requested start_time.
-
#disk_metrics ⇒ Array<Google::Apis::LanguageV1beta2::DiskMetric>
Aggregated persistent disk metrics since requested start_time.
-
#gpu_metrics ⇒ Array<Google::Apis::LanguageV1beta2::GpuMetric>
Aggregated gpu metrics since requested start_time.
-
#ram_metrics ⇒ Array<Google::Apis::LanguageV1beta2::RamMetric>
Aggregated ram metrics since requested start_time.
-
#tpu_metrics ⇒ Array<Google::Apis::LanguageV1beta2::TpuMetric>
Aggregated tpu metrics since requested start_time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InfraUsage
constructor
A new instance of InfraUsage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InfraUsage
Returns a new instance of InfraUsage.
938 939 940 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_metrics ⇒ Array<Google::Apis::LanguageV1beta2::CpuMetric>
Aggregated core metrics since requested start_time.
Corresponds to the JSON property cpuMetrics
916 917 918 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 916 def cpu_metrics @cpu_metrics end |
#disk_metrics ⇒ Array<Google::Apis::LanguageV1beta2::DiskMetric>
Aggregated persistent disk metrics since requested start_time.
Corresponds to the JSON property diskMetrics
921 922 923 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 921 def disk_metrics @disk_metrics end |
#gpu_metrics ⇒ Array<Google::Apis::LanguageV1beta2::GpuMetric>
Aggregated gpu metrics since requested start_time.
Corresponds to the JSON property gpuMetrics
926 927 928 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 926 def gpu_metrics @gpu_metrics end |
#ram_metrics ⇒ Array<Google::Apis::LanguageV1beta2::RamMetric>
Aggregated ram metrics since requested start_time.
Corresponds to the JSON property ramMetrics
931 932 933 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 931 def ram_metrics @ram_metrics end |
#tpu_metrics ⇒ Array<Google::Apis::LanguageV1beta2::TpuMetric>
Aggregated tpu metrics since requested start_time.
Corresponds to the JSON property tpuMetrics
936 937 938 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 936 def tpu_metrics @tpu_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
943 944 945 946 947 948 949 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 943 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 |