Class: Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
Common model for database resource recommendation signal data.
Instance Attribute Summary collapse
-
#additional_metadata ⇒ Hash<String,Object>
Required.
-
#last_refresh_time ⇒ String
Required.
-
#recommendation_state ⇒ String
Required.
-
#resource_name ⇒ String
Required.
-
#signal_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
constructor
A new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
Returns a new instance of StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.
2833 2834 2835 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2833 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_metadata ⇒ Hash<String,Object>
Required. Any other additional metadata
Corresponds to the JSON property additionalMetadata
2809 2810 2811 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2809 def @additional_metadata end |
#last_refresh_time ⇒ String
Required. last time recommendationw as refreshed
Corresponds to the JSON property lastRefreshTime
2814 2815 2816 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2814 def last_refresh_time @last_refresh_time end |
#recommendation_state ⇒ String
Required. Recommendation state
Corresponds to the JSON property recommendationState
2819 2820 2821 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2819 def recommendation_state @recommendation_state end |
#resource_name ⇒ String
Required. Database resource name associated with the signal. Resource name to
follow CAIS resource_name format as noted here go/condor-common-datamodel
Corresponds to the JSON property resourceName
2825 2826 2827 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2825 def resource_name @resource_name end |
#signal_type ⇒ String
Required. Type of signal, for example, SIGNAL_TYPE_IDLE,
SIGNAL_TYPE_HIGH_NUMBER_OF_TABLES, etc.
Corresponds to the JSON property signalType
2831 2832 2833 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2831 def signal_type @signal_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2838 2839 2840 2841 2842 2843 2844 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2838 def update!(**args) @additional_metadata = args[:additional_metadata] if args.key?(:additional_metadata) @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time) @recommendation_state = args[:recommendation_state] if args.key?(:recommendation_state) @resource_name = args[:resource_name] if args.key?(:resource_name) @signal_type = args[:signal_type] if args.key?(:signal_type) end |