NAME

Google::Cloud::Recommender::V1beta1::Insight - Compiled Protocol Buffers messages for google/cloud/recommender/v1beta1/insight.proto

SYNOPSIS

use Google::Cloud::Recommender::V1beta1::Insight;

my $msg = Google::Cloud::Recommender::V1beta1::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::V1beta1::Insight::Insight->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/recommender/v1beta1/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::V1beta1::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: String

    Name of the insight.

  • $msg->description() / $msg->description($value)

    Type: String

    Free-form human readable summary in English. The maximum length is 500 characters.

  • $msg->target_resources() / $msg->target_resources($value)

    Type: String

    Fully qualified resource names that this insight is targeting.

  • $msg->insight_subtype() / $msg->insight_subtype($value)

    Type: String

    Insight 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::V1beta1::Insight::InsightStateInfo)

    Information state and metadata.

  • $msg->category() / $msg->category($value)

    Type: Enum (Google::Cloud::Recommender::V1beta1::Insight::Category)

    Category being targeted by the insight.

  • $msg->severity() / $msg->severity($value)

    Type: Enum (Google::Cloud::Recommender::V1beta1::Insight::Severity)

    Insight's severity.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Fingerprint of the Insight. Provides optimistic locking when updating states.

  • $msg->associated_recommendations() / $msg->associated_recommendations($value)

    Type: Message (Google::Cloud::Recommender::V1beta1::Insight::Insight::RecommendationReference)

    Recommendations derived from this insight.

Enum: Insight::Category

  • CATEGORY_UNSPECIFIED => 0

  • COST => 1

  • SECURITY => 2

  • PERFORMANCE => 3

  • MANAGEABILITY => 4

Enum: Insight::Severity

  • SEVERITY_UNSPECIFIED => 0

  • LOW => 1

  • MEDIUM => 2

  • HIGH => 3

  • CRITICAL => 4

Google::Cloud::Recommender::V1beta1::Insight::InsightStateInfo

Information related to insight state.

Inherits from Protobuf::Message.

Accessors

Enum: InsightStateInfo::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • ACCEPTED => 2

  • DISMISSED => 3

Google::Cloud::Recommender::V1beta1::Insight::InsightType

The type of insight.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The insight_type’s name in format insightTypes/{insight_type} eg: insightTypes/google.iam.policy.Insight

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Recommender::V1beta1::Insight::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.