Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/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.
2674 2675 2676 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2674 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
2650 2651 2652 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2650 def @additional_metadata end |
#last_refresh_time ⇒ String
Required. last time recommendationw as refreshed
Corresponds to the JSON property lastRefreshTime
2655 2656 2657 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2655 def last_refresh_time @last_refresh_time end |
#recommendation_state ⇒ String
Required. Recommendation state
Corresponds to the JSON property recommendationState
2660 2661 2662 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2660 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
2666 2667 2668 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2666 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
2672 2673 2674 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2672 def signal_type @signal_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2679 2680 2681 2682 2683 2684 2685 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2679 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 |