# REST Resource: projects.locations.insightTypes.insights

- [Resource: Insight](https://docs.cloud.google.com/recommender/docs/reference/rest/v1/projects.locations.insightTypes.insights#Insight)
  - [JSON representation](https://docs.cloud.google.com/recommender/docs/reference/rest/v1/projects.locations.insightTypes.insights#Insight.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/recommender/docs/reference/rest/v1/projects.locations.insightTypes.insights#METHODS_SUMMARY)

## Resource: Insight

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

| JSON representation |
|---|
| ``` { "name": string, "description": string, "targetResources": [ string ], "insightSubtype": string, "content": { object }, "lastRefreshTime": string, "observationPeriod": string, "stateInfo": { object (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.InsightStateInfo`) }, "category": enum (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.Category`), "severity": enum (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.Severity`), "etag": string, "associatedRecommendations": [ { object (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.RecommendationReference`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Name of the insight. |
| `description` | `string` Free-form human readable summary in English. The maximum length is 500 characters. |
| `targetResources[]` | `string` Fully qualified resource names that this insight is targeting. |
| `insightSubtype` | `string` Insight subtype. Insight content schema will be stable for a given subtype. |
| `content` | ``object (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Struct` format)`` A struct of custom fields to explain the insight. Example: "grantedPermissionsCount": "1000" |
| `lastRefreshTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Timestamp of the latest data used to generate the insight. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `observationPeriod` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Observation period that led to the insight. The source data used to generate the insight ends at lastRefreshTime and begins at (lastRefreshTime - observationPeriod). A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `stateInfo` | ``object (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.InsightStateInfo`)`` Information state and metadata. |
| `category` | ``enum (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.Category`)`` Category being targeted by the insight. |
| `severity` | ``enum (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.Severity`)`` Insight's severity. |
| `etag` | `string` Fingerprint of the Insight. Provides optimistic locking when updating states. |
| `associatedRecommendations[]` | ``object (`https://docs.cloud.google.com/recommender/docs/reference/rest/v1/billingAccounts.locations.insightTypes.insights#Insight.RecommendationReference`)`` Recommendations derived from this insight. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/recommender/docs/reference/rest/v1/projects.locations.insightTypes.insights/get` | Gets the requested insight. |
| ### `https://docs.cloud.google.com/recommender/docs/reference/rest/v1/projects.locations.insightTypes.insights/list` | Lists insights for the specified Cloud Resource. |
| ### `https://docs.cloud.google.com/recommender/docs/reference/rest/v1/projects.locations.insightTypes.insights/markAccepted` | Marks the Insight State as Accepted. |