class Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1Insight
An insight along with the information used to derive the insight. The insight may have associated recomendations as well.
Attributes
Recommendations derived from this insight. Corresponds to the JSON property `associatedRecommendations` @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightRecommendationReference>]
Category being targeted by the insight. Corresponds to the JSON property `category` @return [String]
A struct of custom fields to explain the insight. Example: “ grantedPermissionsCount”: “1000” Corresponds to the JSON property `content` @return [Hash<String,Object>]
Free-form human readable summary in English. The maximum length is 500 characters. Corresponds to the JSON property `description` @return [String]
Fingerprint of the Insight. Provides optimistic locking when updating states. Corresponds to the JSON property `etag` @return [String]
Insight subtype. Insight content schema will be stable for a given subtype. Corresponds to the JSON property `insightSubtype` @return [String]
Timestamp of the latest data used to generate the insight. Corresponds to the JSON property `lastRefreshTime` @return [String]
Name of the insight. Corresponds to the JSON property `name` @return [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` @return [String]
Insight's severity. Corresponds to the JSON property `severity` @return [String]
Information related to insight state. Corresponds to the JSON property `stateInfo` @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo]
Fully qualified resource names that this insight is targeting. Corresponds to the JSON property `targetResources` @return [Array<String>]
Public Class Methods
# File lib/google/apis/recommender_v1beta1/classes.rb, line 150 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/recommender_v1beta1/classes.rb, line 155 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