- [Resource: Evaluation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#Evaluation)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#Evaluation.SCHEMA_REPRESENTATION)
- [ResourceFilter](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceFilter)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceFilter.SCHEMA_REPRESENTATION)
- [GceInstanceFilter](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#GceInstanceFilter)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#GceInstanceFilter.SCHEMA_REPRESENTATION)
- [ResourceStatus](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceStatus)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceStatus.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#State)
- [EvaluationType](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#EvaluationType)
- [BigQueryDestination](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#BigQueryDestination)
  - [JSON representation](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#BigQueryDestination.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#METHODS_SUMMARY)

## Resource: Evaluation

Represents a Workload Manager Evaluation configuration. An Evaluation defines a set of rules to be validated against a scope of Cloud resources.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "resourceFilter": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceFilter`) }, "ruleNames": [ string ], "resourceStatus": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceStatus`) }, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "customRulesBucket": string, "evaluationType": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#EvaluationType`), "bigQueryDestination": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#BigQueryDestination`) }, "kmsKey": string, "schedule": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Name of resource that has the form `projects/{projectId}/locations/{locationId}/evaluations/{evaluationId}`. |
| `description` | `string` Description of the Evaluation. |
| `resourceFilter` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceFilter`)`` Resource filter for an evaluation defining the scope of resources to be evaluated. |
| `ruleNames[]` | `string` The names of the rules used for this evaluation. |
| `resourceStatus` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#ResourceStatus`)`` Output only. \[Output only\] The current lifecycle state of the evaluation resource. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. \[Output only\] Create time stamp. 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. \[Output only\] Update time stamp. 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"`. |
| `labels` | `map (key: string, value: string)` Labels as key value pairs. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `customRulesBucket` | `string` The Cloud Storage bucket name for custom rules. |
| `evaluationType` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#EvaluationType`)`` Evaluation type. |
| `bigQueryDestination` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#BigQueryDestination`)`` Optional. The BigQuery destination for detailed evaluation results. If this field is specified, the results of each evaluation execution are exported to BigQuery. |
| `kmsKey` | `string` Optional. Immutable. Customer-managed encryption key name, in the format projects/\*/locations/\*/keyRings/\*/cryptoKeys/\*. The key will be used for CMEK encryption of the evaluation resource. |
| `schedule` | `string` Crontab format schedule for scheduled evaluation, currently only supports the following fixed schedules: \* `0 */1 * * *` # Hourly \* `0 */6 * * *` # Every 6 hours \* `0 */12 * * *` # Every 12 hours \* `0 0 */1 * *` # Daily \* `0 0 */7 * *` # Weekly \* `0 0 */14 * *` # Every 14 days \* `0 0 1 */1 *` # Monthly |

## ResourceFilter

Resource filter for an evaluation defining the scope of resources to be evaluated.

| JSON representation |
|---|
| ``` { "scopes": [ string ], "resourceIdPatterns": [ string ], "inclusionLabels": { string: string, ... }, "gceInstanceFilter": { object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#GceInstanceFilter`) } } ``` |

| Fields ||
|---|---|
| `scopes[]` | `string` The scopes of evaluation resource. Format: \* `projects/{projectId}` \* `folders/{folderId}` \* `organizations/{organizationId}` |
| `resourceIdPatterns[]` | `string` The pattern to filter resources by their id For example, a pattern of ".\*prod-cluster.\*" will match all resources that contain "prod-cluster" in their ID. |
| `inclusionLabels` | `map (key: string, value: string)` Labels to filter resources by. Each key-value pair in the map must exist on the resource for it to be included (e.g. VM instance labels). For example, specifying `{ "env": "prod", "database": "nosql" }` will only include resources that have labels `env=prod` and `database=nosql`. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `gceInstanceFilter` | ``object (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#GceInstanceFilter`)`` Filter compute engine resources. |

## GceInstanceFilter

A filter for matching Compute Engine instances.

| JSON representation |
|---|
| ``` { "serviceAccounts": [ string ] } ``` |

| Fields ||
|---|---|
| `serviceAccounts[]` | `string` If non-empty, only Compute Engine instances associated with at least one of the provided service accounts will be included in the evaluation. |

## ResourceStatus

The lifecycle status of an Evaluation resource.

| JSON representation |
|---|
| ``` { "state": enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#State`) } ``` |

| Fields ||
|---|---|
| `state` | ``enum (`https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations#State`)`` State of the Evaluation resource. |

## State

Possible states of an evaluation, such as CREATING, ACTIVE, and DELETING.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The state has not been populated in this message. |
| `CREATING` | Resource has an active Create operation. |
| `ACTIVE` | Resource has no outstanding operations on it or has active Update operations. |
| `DELETING` | Resource has an active Delete operation. |

## EvaluationType

Possible types of workload evaluations like SAP, SQL Server, etc.

| Enums ||
|---|---|
| `EVALUATION_TYPE_UNSPECIFIED` | Not specified. |
| `SAP` | SAP best practices. |
| `SQL_SERVER` | SQL best practices. |
| `OTHER` | Customized best practices. |

## BigQueryDestination

BigQuery destination for evaluation results.

| JSON representation |
|---|
| ``` { "destinationDataset": string, "createNewResultsTable": boolean } ``` |

| Fields ||
|---|---|
| `destinationDataset` | `string` Optional. Destination dataset to save evaluation results. |
| `createNewResultsTable` | `boolean` Optional. Determines if a new results table will be created when an Execution is created. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations/create` | Creates a new Evaluation in a given project and location. |
| ### `https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations/delete` | Deletes a single Evaluation. |
| ### `https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations/get` | Gets details of a single Evaluation. |
| ### `https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations/list` | Lists Evaluations in a given project and location. |
| ### `https://docs.cloud.google.com/workload-manager/docs/reference/rest/v1/projects.locations.evaluations/patch` | Updates the parameters of a single Evaluation. |