Class: Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Insight
- Inherits:
-
Object
- Object
- Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Insight
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recommender_v1beta1/classes.rb,
lib/google/apis/recommender_v1beta1/representations.rb,
lib/google/apis/recommender_v1beta1/representations.rb
Overview
An insight along with the information used to derive the insight. The insight may have associated recommendations as well.
Instance Attribute Summary collapse
-
#associated_recommendations ⇒ Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightRecommendationReference>
Recommendations derived from this insight.
-
#category ⇒ String
Category being targeted by the insight.
-
#content ⇒ Hash<String,Object>
A struct of custom fields to explain the insight.
-
#description ⇒ String
Free-form human readable summary in English.
-
#etag ⇒ String
Fingerprint of the Insight.
-
#insight_subtype ⇒ String
Insight subtype.
-
#last_refresh_time ⇒ String
Timestamp of the latest data used to generate the insight.
-
#name ⇒ String
Identifier.
-
#observation_period ⇒ String
Observation period that led to the insight.
-
#severity ⇒ String
Insight's severity.
-
#state_info ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo
Information related to insight state.
-
#target_resources ⇒ Array<String>
Fully qualified resource names that this insight is targeting.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1Insight
constructor
A new instance of GoogleCloudRecommenderV1beta1Insight.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecommenderV1beta1Insight
Returns a new instance of GoogleCloudRecommenderV1beta1Insight.
261 262 263 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#associated_recommendations ⇒ Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightRecommendationReference>
Recommendations derived from this insight.
Corresponds to the JSON property associatedRecommendations
200 201 202 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 200 def associated_recommendations @associated_recommendations end |
#category ⇒ String
Category being targeted by the insight.
Corresponds to the JSON property category
205 206 207 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 205 def category @category end |
#content ⇒ Hash<String,Object>
A struct of custom fields to explain the insight. Example: "
grantedPermissionsCount": "1000"
Corresponds to the JSON property content
211 212 213 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 211 def content @content end |
#description ⇒ String
Free-form human readable summary in English. The maximum length is 500
characters.
Corresponds to the JSON property description
217 218 219 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 217 def description @description end |
#etag ⇒ String
Fingerprint of the Insight. Provides optimistic locking when updating states.
Corresponds to the JSON property etag
222 223 224 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 222 def etag @etag end |
#insight_subtype ⇒ String
Insight subtype. Insight content schema will be stable for a given subtype.
Corresponds to the JSON property insightSubtype
227 228 229 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 227 def insight_subtype @insight_subtype end |
#last_refresh_time ⇒ String
Timestamp of the latest data used to generate the insight.
Corresponds to the JSON property lastRefreshTime
232 233 234 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 232 def last_refresh_time @last_refresh_time end |
#name ⇒ String
Identifier. Name of the insight.
Corresponds to the JSON property name
237 238 239 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 237 def name @name end |
#observation_period ⇒ String
Observation period that led to the insight. The source data used to generate
the insight ends at last_refresh_time and begins at (last_refresh_time -
observation_period).
Corresponds to the JSON property observationPeriod
244 245 246 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 244 def observation_period @observation_period end |
#severity ⇒ String
Insight's severity.
Corresponds to the JSON property severity
249 250 251 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 249 def severity @severity end |
#state_info ⇒ Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo
Information related to insight state.
Corresponds to the JSON property stateInfo
254 255 256 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 254 def state_info @state_info end |
#target_resources ⇒ Array<String>
Fully qualified resource names that this insight is targeting.
Corresponds to the JSON property targetResources
259 260 261 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 259 def target_resources @target_resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/google/apis/recommender_v1beta1/classes.rb', line 266 def update!(**args) @associated_recommendations = args[:associated_recommendations] if args.key?(:associated_recommendations) @category = args[:category] if args.key?(:category) @content = args[:content] if args.key?(:content) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @insight_subtype = args[:insight_subtype] if args.key?(:insight_subtype) @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time) @name = args[:name] if args.key?(:name) @observation_period = args[:observation_period] if args.key?(:observation_period) @severity = args[:severity] if args.key?(:severity) @state_info = args[:state_info] if args.key?(:state_info) @target_resources = args[:target_resources] if args.key?(:target_resources) end |