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

associated_recommendations[RW]

Recommendations derived from this insight. Corresponds to the JSON property `associatedRecommendations` @return [Array<Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightRecommendationReference>]

category[RW]

Category being targeted by the insight. Corresponds to the JSON property `category` @return [String]

content[RW]

A struct of custom fields to explain the insight. Example: “ grantedPermissionsCount”: “1000” Corresponds to the JSON property `content` @return [Hash<String,Object>]

description[RW]

Free-form human readable summary in English. The maximum length is 500 characters. Corresponds to the JSON property `description` @return [String]

etag[RW]

Fingerprint of the Insight. Provides optimistic locking when updating states. Corresponds to the JSON property `etag` @return [String]

insight_subtype[RW]

Insight subtype. Insight content schema will be stable for a given subtype. Corresponds to the JSON property `insightSubtype` @return [String]

last_refresh_time[RW]

Timestamp of the latest data used to generate the insight. Corresponds to the JSON property `lastRefreshTime` @return [String]

name[RW]

Name of the insight. Corresponds to the JSON property `name` @return [String]

observation_period[RW]

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]

severity[RW]

Insight's severity. Corresponds to the JSON property `severity` @return [String]

state_info[RW]

Information related to insight state. Corresponds to the JSON property `stateInfo` @return [Google::Apis::RecommenderV1beta1::GoogleCloudRecommenderV1beta1InsightStateInfo]

target_resources[RW]

Fully qualified resource names that this insight is targeting. Corresponds to the JSON property `targetResources` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/recommender_v1beta1/classes.rb, line 150
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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