Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1UsageSignal

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

Overview

The set of all usage signals that Data Catalog stores. Note: Usually, these signals are updated daily. In rare cases, an update may fail but will be performed again on the next day.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1UsageSignal

Returns a new instance of GoogleCloudDatacatalogV1UsageSignal.



2651
2652
2653
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2651

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

Instance Attribute Details

#favorite_countFixnum

Favorite count in the source system. Corresponds to the JSON property favoriteCount

Returns:

  • (Fixnum)


2638
2639
2640
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2638

def favorite_count
  @favorite_count
end

#update_timeString

The end timestamp of the duration of usage statistics. Corresponds to the JSON property updateTime

Returns:

  • (String)


2643
2644
2645
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2643

def update_time
  @update_time
end

#usage_within_time_rangeHash<String,Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1UsageStats>

Output only. BigQuery usage statistics over each of the predefined time ranges. Supported time ranges are "24H", "7D", "30D". Corresponds to the JSON property usageWithinTimeRange



2649
2650
2651
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2649

def usage_within_time_range
  @usage_within_time_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2656
2657
2658
2659
2660
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 2656

def update!(**args)
  @favorite_count = args[:favorite_count] if args.key?(:favorite_count)
  @update_time = args[:update_time] if args.key?(:update_time)
  @usage_within_time_range = args[:usage_within_time_range] if args.key?(:usage_within_time_range)
end