3.9.0 (latest) 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.8.0 2.7.0 2.6.0 2.5.0

    public sealed class Insight : IMessage<Insight>, IEquatable<Insight>, IDeepCloneable<Insight>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Recommender v1 API class Insight.

An insight along with the information used to derive the insight. The insight
may have associated recommendations as well.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Insight

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Insight](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Insight.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Insight](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Insight.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Insight](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Insight.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Recommender.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.md.txt)

## Assembly

Google.Cloud.Recommender.V1.dll

## Constructors

### Insight()

    public Insight()

### Insight(Insight)

    public Insight(Insight other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Insight` |

## Properties

### AssociatedRecommendations

    public RepeatedField<Insight.Types.RecommendationReference> AssociatedRecommendations { get; }

Recommendations derived from this insight.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldInsightTypesRecommendationReference` |   |

### Category

    public Insight.Types.Category Category { get; set; }

Category being targeted by the insight.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InsightTypesCategory` |   |

### Content

    public Struct Content { get; set; }

A struct of custom fields to explain the insight.
Example: "grantedPermissionsCount": "1000"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### Description

    public string Description { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Etag

    public string Etag { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### InsightName

    public InsightName InsightName { get; set; }

[InsightName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.InsightName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.Insight.md.txt#Google_Cloud_Recommender_V1_Insight_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InsightName` |   |

### InsightSubtype

    public string InsightSubtype { get; set; }

Insight subtype. Insight content schema will be stable for a given subtype.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LastRefreshTime

    public Timestamp LastRefreshTime { get; set; }

Timestamp of the latest data used to generate the insight.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Name

    public string Name { get; set; }

Identifier. Name of the insight.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ObservationPeriod

    public Duration ObservationPeriod { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |

### Severity

    public Insight.Types.Severity Severity { get; set; }

Insight's severity.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InsightTypesSeverity` |   |

### StateInfo

    public InsightStateInfo StateInfo { get; set; }

Information state and metadata.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `InsightStateInfo` |   |

### TargetResources

    public RepeatedField<string> TargetResources { get; }

Fully qualified resource names that this insight is targeting.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |