NAME
Google::Cloud::Recommender::V1::Insight - Compiled Protocol Buffers messages for google/cloud/recommender/v1/insight.proto
SYNOPSIS
use Google::Cloud::Recommender::V1::Insight;
my $msg = Google::Cloud::Recommender::V1::Insight::Insight->new({
name => $name,
description => $description,
target_resources => $target_resources,
insight_subtype => $insight_subtype,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Recommender::V1::Insight::Insight->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/recommender/v1/insight.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Recommender::V1::Insight::Insight
An insight along with the information used to derive the insight. The insight may have associated recommendations as well.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Name of the insight.
$msg->description()/$msg->description($value)Type:
StringFree-form human readable summary in English. The maximum length is 500 characters.
$msg->target_resources()/$msg->target_resources($value)Type:
StringFully qualified resource names that this insight is targeting.
$msg->insight_subtype()/$msg->insight_subtype($value)Type:
StringInsight subtype. Insight content schema will be stable for a given subtype.
$msg->content()/$msg->content($value)Type:
Message(Google::Protobuf::Struct::Struct)A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000"
$msg->last_refresh_time()/$msg->last_refresh_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp of the latest data used to generate the insight.
$msg->observation_period()/$msg->observation_period($value)Type:
Message(Google::Protobuf::Duration::Duration)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).
$msg->state_info()/$msg->state_info($value)Type:
Message(Google::Cloud::Recommender::V1::Insight::InsightStateInfo)Information state and metadata.
$msg->category()/$msg->category($value)Type:
Enum(Google::Cloud::Recommender::V1::Insight::Category)Category being targeted by the insight.
$msg->severity()/$msg->severity($value)Type:
Enum(Google::Cloud::Recommender::V1::Insight::Severity)Insight's severity.
$msg->etag()/$msg->etag($value)Type:
StringFingerprint of the Insight. Provides optimistic locking when updating states.
$msg->associated_recommendations()/$msg->associated_recommendations($value)Type:
Message(Google::Cloud::Recommender::V1::Insight::Insight::RecommendationReference)Recommendations derived from this insight.
Enum: Insight::Category
CATEGORY_UNSPECIFIED=>0COST=>1SECURITY=>2PERFORMANCE=>3MANAGEABILITY=>4SUSTAINABILITY=>5RELIABILITY=>6
Enum: Insight::Severity
SEVERITY_UNSPECIFIED=>0LOW=>1MEDIUM=>2HIGH=>3CRITICAL=>4
Google::Cloud::Recommender::V1::Insight::InsightStateInfo
Information related to insight state.
Inherits from Protobuf::Message.
Accessors
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Recommender::V1::InsightStateInfo::State)Insight state.
$msg->state_metadata()/$msg->state_metadata($value)Type:
Message(Google::Cloud::Recommender::V1::Insight::InsightStateInfo::StateMetadataEntry)A map of metadata for the state, provided by user or automations systems.
Enum: InsightStateInfo::State
STATE_UNSPECIFIED=>0ACTIVE=>1ACCEPTED=>2DISMISSED=>3
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Recommender::V1::Insight::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.