Class: Google::Apis::LanguageV2::InfraUsage
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::InfraUsage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
Infra Usage of billing metrics. Next ID: 6
Instance Attribute Summary collapse
-
#cpu_metrics ⇒ Array<Google::Apis::LanguageV2::CpuMetric>
Aggregated core metrics since requested start_time.
-
#disk_metrics ⇒ Array<Google::Apis::LanguageV2::DiskMetric>
Aggregated persistent disk metrics since requested start_time.
-
#gpu_metrics ⇒ Array<Google::Apis::LanguageV2::GpuMetric>
Aggregated gpu metrics since requested start_time.
-
#ram_metrics ⇒ Array<Google::Apis::LanguageV2::RamMetric>
Aggregated ram metrics since requested start_time.
-
#tpu_metrics ⇒ Array<Google::Apis::LanguageV2::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.
738 739 740 |
# File 'lib/google/apis/language_v2/classes.rb', line 738 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_metrics ⇒ Array<Google::Apis::LanguageV2::CpuMetric>
Aggregated core metrics since requested start_time.
Corresponds to the JSON property cpuMetrics
716 717 718 |
# File 'lib/google/apis/language_v2/classes.rb', line 716 def cpu_metrics @cpu_metrics end |
#disk_metrics ⇒ Array<Google::Apis::LanguageV2::DiskMetric>
Aggregated persistent disk metrics since requested start_time.
Corresponds to the JSON property diskMetrics
721 722 723 |
# File 'lib/google/apis/language_v2/classes.rb', line 721 def disk_metrics @disk_metrics end |
#gpu_metrics ⇒ Array<Google::Apis::LanguageV2::GpuMetric>
Aggregated gpu metrics since requested start_time.
Corresponds to the JSON property gpuMetrics
726 727 728 |
# File 'lib/google/apis/language_v2/classes.rb', line 726 def gpu_metrics @gpu_metrics end |
#ram_metrics ⇒ Array<Google::Apis::LanguageV2::RamMetric>
Aggregated ram metrics since requested start_time.
Corresponds to the JSON property ramMetrics
731 732 733 |
# File 'lib/google/apis/language_v2/classes.rb', line 731 def ram_metrics @ram_metrics end |
#tpu_metrics ⇒ Array<Google::Apis::LanguageV2::TpuMetric>
Aggregated tpu metrics since requested start_time.
Corresponds to the JSON property tpuMetrics
736 737 738 |
# File 'lib/google/apis/language_v2/classes.rb', line 736 def tpu_metrics @tpu_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
743 744 745 746 747 748 749 |
# File 'lib/google/apis/language_v2/classes.rb', line 743 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 |