Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1UsageStats

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

Overview

Detailed statistics on the entry's usage. Usage statistics have the following limitations: - Only BigQuery tables have them. - They only include BigQuery query jobs. - They might be underestimated because wildcard table references are not yet counted. For more information, see Querying multiple tables using a wildcard table

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1UsageStats

Returns a new instance of GoogleCloudDatacatalogV1UsageStats.



2105
2106
2107
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2105

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

Instance Attribute Details

#total_cancellationsFloat

The number of cancelled attempts to use the underlying entry. Corresponds to the JSON property totalCancellations

Returns:

  • (Float)


2088
2089
2090
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2088

def total_cancellations
  @total_cancellations
end

#total_completionsFloat

The number of successful uses of the underlying entry. Corresponds to the JSON property totalCompletions

Returns:

  • (Float)


2093
2094
2095
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2093

def total_completions
  @total_completions
end

#total_execution_time_for_completions_millisFloat

Total time spent only on successful uses, in milliseconds. Corresponds to the JSON property totalExecutionTimeForCompletionsMillis

Returns:

  • (Float)


2098
2099
2100
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2098

def total_execution_time_for_completions_millis
  @total_execution_time_for_completions_millis
end

#total_failuresFloat

The number of failed attempts to use the underlying entry. Corresponds to the JSON property totalFailures

Returns:

  • (Float)


2103
2104
2105
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2103

def total_failures
  @total_failures
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2110
2111
2112
2113
2114
2115
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 2110

def update!(**args)
  @total_cancellations = args[:total_cancellations] if args.key?(:total_cancellations)
  @total_completions = args[:total_completions] if args.key?(:total_completions)
  @total_execution_time_for_completions_millis = args[:total_execution_time_for_completions_millis] if args.key?(:total_execution_time_for_completions_millis)
  @total_failures = args[:total_failures] if args.key?(:total_failures)
end