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.



1876
1877
1878
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1876

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

Instance Attribute Details

#update_timeString

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

Returns:

  • (String)


1868
1869
1870
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1868

def update_time
  @update_time
end

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

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



1874
1875
1876
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1874

def usage_within_time_range
  @usage_within_time_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1881
1882
1883
1884
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 1881

def update!(**args)
  @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