Class: Google::Apis::LanguageV1::InfraUsage
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::InfraUsage
- 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
-
#cpu_metrics ⇒ Array<Google::Apis::LanguageV1::CpuMetric>
Aggregated core metrics since requested start_time.
-
#disk_metrics ⇒ Array<Google::Apis::LanguageV1::DiskMetric>
Aggregated persistent disk metrics since requested start_time.
-
#gpu_metrics ⇒ Array<Google::Apis::LanguageV1::GpuMetric>
Aggregated gpu metrics since requested start_time.
-
#ram_metrics ⇒ Array<Google::Apis::LanguageV1::RamMetric>
Aggregated ram metrics since requested start_time.
-
#tpu_metrics ⇒ Array<Google::Apis::LanguageV1::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.
921 922 923 |
# File 'lib/google/apis/language_v1/classes.rb', line 921 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_metrics ⇒ Array<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_metrics ⇒ Array<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_metrics ⇒ Array<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_metrics ⇒ Array<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_metrics ⇒ Array<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 |