- [Resource: Watchlist](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#Watchlist)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#Watchlist.SCHEMA_REPRESENTATION)
- [EntityPopulationMechanism](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityPopulationMechanism)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityPopulationMechanism.SCHEMA_REPRESENTATION)
- [Manual](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#Manual)
- [EntityCount](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityCount)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityCount.SCHEMA_REPRESENTATION)
- [WatchlistUserPreferences](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#WatchlistUserPreferences)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#WatchlistUserPreferences.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#METHODS_SUMMARY)

## Resource: Watchlist

A watchlist is a list of entities that allows for bulk operations over the included entities.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "description": string, "multiplyingFactor": number, "entityPopulationMechanism": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityPopulationMechanism`) }, "entityCount": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityCount`) }, "createTime": string, "updateTime": string, "watchlistUserPreferences": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#WatchlistUserPreferences`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the watchlist. Format: `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` |
| `displayName` | `string` Required. Display name of the watchlist. Note that it must be at least one character and less than 63 characters (<https://google.aip.dev/148)>. |
| `description` | `string` Optional. Description of the watchlist. |
| `multiplyingFactor` | `number` Optional. Weight applied to the risk score for entities in this watchlist. The default is 1.0 if it is not specified. |
| `entityPopulationMechanism` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityPopulationMechanism`)`` Required. Mechanism to populate entities in the watchlist. |
| `entityCount` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#EntityCount`)`` Output only. Entity count in the watchlist. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time the watchlist was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Time the watchlist was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `watchlistUserPreferences` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#WatchlistUserPreferences`)`` Optional. User preferences for watchlist configuration. |

## EntityPopulationMechanism

Mechanism to populate entities in the watchlist.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "manual": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#Manual`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Ways to populate entities in watchlist. Currently, only manual is supported. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `manual` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists#Manual`)`` Optional. Entities are added manually. |
| End of mutually exclusive fields. ||

## Manual

This type has no fields.
Entities are added manually.

## EntityCount

Count of different types of entities in the watchlist.

| JSON representation |
|---|
| ``` { "user": integer, "asset": integer } ``` |

| Fields ||
|---|---|
| `user` | `integer` Output only. Count of user type entities in the watchlist. |
| `asset` | `integer` Output only. Count of asset type entities in the watchlist. |

## WatchlistUserPreferences

A collection of user preferences for watchlist UI configuration.

| JSON representation |
|---|
| ``` { "pinned": boolean } ``` |

| Fields ||
|---|---|
| `pinned` | `boolean` Optional. Whether the watchlist is pinned on the dashboard. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists/create` | Creates a watchlist for the given instance. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists/delete` | Deletes the watchlist for the given instance. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists/get` | Gets watchlist details for the given watchlist ID. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists/list` | Lists all watchlists for the given instance. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists/listEntities` | Lists all entities for the given watchlist. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.watchlists/patch` | Updates the watchlist for the given instance. |