Class: Google::Apis::RedisV1::DatabaseResourceFeed
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::DatabaseResourceFeed
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform.
Instance Attribute Summary collapse
-
#feed_timestamp ⇒ String
Required.
-
#feed_type ⇒ String
Required.
-
#observability_metric_data ⇒ Google::Apis::RedisV1::ObservabilityMetricData
Corresponds to the JSON property
observabilityMetricData
. -
#recommendation_signal_data ⇒ Google::Apis::RedisV1::DatabaseResourceRecommendationSignalData
Common model for database resource recommendation signal data.
-
#resource_health_signal_data ⇒ Google::Apis::RedisV1::DatabaseResourceHealthSignalData
Common model for database resource health signal data.
-
#resource_id ⇒ Google::Apis::RedisV1::DatabaseResourceId
DatabaseResourceId will serve as primary key for any resource ingestion event.
-
#resource_metadata ⇒ Google::Apis::RedisV1::DatabaseResourceMetadata
Common model for database resource instance metadata.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseResourceFeed
constructor
A new instance of DatabaseResourceFeed.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseResourceFeed
Returns a new instance of DatabaseResourceFeed.
737 738 739 |
# File 'lib/google/apis/redis_v1/classes.rb', line 737 def initialize(**args) update!(**args) end |
Instance Attribute Details
#feed_timestamp ⇒ String
Required. Timestamp when feed is generated.
Corresponds to the JSON property feedTimestamp
705 706 707 |
# File 'lib/google/apis/redis_v1/classes.rb', line 705 def @feed_timestamp end |
#feed_type ⇒ String
Required. Type feed to be ingested into condor
Corresponds to the JSON property feedType
710 711 712 |
# File 'lib/google/apis/redis_v1/classes.rb', line 710 def feed_type @feed_type end |
#observability_metric_data ⇒ Google::Apis::RedisV1::ObservabilityMetricData
Corresponds to the JSON property observabilityMetricData
715 716 717 |
# File 'lib/google/apis/redis_v1/classes.rb', line 715 def observability_metric_data @observability_metric_data end |
#recommendation_signal_data ⇒ Google::Apis::RedisV1::DatabaseResourceRecommendationSignalData
Common model for database resource recommendation signal data.
Corresponds to the JSON property recommendationSignalData
720 721 722 |
# File 'lib/google/apis/redis_v1/classes.rb', line 720 def recommendation_signal_data @recommendation_signal_data end |
#resource_health_signal_data ⇒ Google::Apis::RedisV1::DatabaseResourceHealthSignalData
Common model for database resource health signal data.
Corresponds to the JSON property resourceHealthSignalData
725 726 727 |
# File 'lib/google/apis/redis_v1/classes.rb', line 725 def resource_health_signal_data @resource_health_signal_data end |
#resource_id ⇒ Google::Apis::RedisV1::DatabaseResourceId
DatabaseResourceId will serve as primary key for any resource ingestion event.
Corresponds to the JSON property resourceId
730 731 732 |
# File 'lib/google/apis/redis_v1/classes.rb', line 730 def resource_id @resource_id end |
#resource_metadata ⇒ Google::Apis::RedisV1::DatabaseResourceMetadata
Common model for database resource instance metadata. Next ID: 23
Corresponds to the JSON property resourceMetadata
735 736 737 |
# File 'lib/google/apis/redis_v1/classes.rb', line 735 def @resource_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
742 743 744 745 746 747 748 749 750 |
# File 'lib/google/apis/redis_v1/classes.rb', line 742 def update!(**args) @feed_timestamp = args[:feed_timestamp] if args.key?(:feed_timestamp) @feed_type = args[:feed_type] if args.key?(:feed_type) @observability_metric_data = args[:observability_metric_data] if args.key?(:observability_metric_data) @recommendation_signal_data = args[:recommendation_signal_data] if args.key?(:recommendation_signal_data) @resource_health_signal_data = args[:resource_health_signal_data] if args.key?(:resource_health_signal_data) @resource_id = args[:resource_id] if args.key?(:resource_id) @resource_metadata = args[:resource_metadata] if args.key?(:resource_metadata) end |