# The Assessment object

A server-managed assessment of a migration's source configuration. Completed check results are immutable.

## Attributes

- `name` (string, Beta, ID, Immutable)
  The assessment resource name, in the format `migrations/{migration}/assessments/{assessment}`.
- `state` (string, Beta, Output only)
  Output-only. The aggregate assessment state.
  Possible values:
  - `ASSESSMENT_STATE_ASSESSING`
  - `ASSESSMENT_STATE_READY`
  - `ASSESSMENT_STATE_AWAITING_ACK`
  - `ASSESSMENT_STATE_FAILED`
  - `ASSESSMENT_STATE_EXPIRED`
  - `ASSESSMENT_STATE_NEEDS_ACTION`
  - `ASSESSMENT_STATE_BLOCKED`
- `checks` (array of object, Beta, Output only)
  Output-only. Results of the checks performed by this assessment.
  - `check_id` (string, Beta, Output only)
    Output-only. Stable identifier of the check.
  - `verdict` (string, Beta, Output only)
    Output-only. The check verdict.
    Possible values:
    - `ASSESSMENT_CHECK_VERDICT_PASS`
    - `ASSESSMENT_CHECK_VERDICT_WARNING`
    - `ASSESSMENT_CHECK_VERDICT_ACTION_REQUIRED`
    - `ASSESSMENT_CHECK_VERDICT_UNSUPPORTED`
    - `ASSESSMENT_CHECK_VERDICT_ERROR`
  - `blocks_migration` (boolean, Beta, Output only)
    Output-only. Whether this result blocks migration from starting.
  - `reason` (string, Beta, Output only)
    Output-only. Explanation of the result.
  - `database` (string, Beta, Output only)
    Output-only. The source database the check evaluated. Unset for checks that assess the whole
     source server rather than a single database.
  - `details` (object, Beta, Output only)
    Output-only. Measurements observed by this check. Absent when unavailable.
    - `database_size` (object, Beta, Output only)
      Output-only. Physical size of the source database observed by this check.
      - `size_bytes` (int64, Beta, Output only)
        Size reported by pg_database_size, in bytes. Zero is a measured empty size.
    - `long_transaction` (object, Beta, Output only)
      Output-only. Age of the oldest source transaction observed by this check.
      - `oldest_transaction_age` (string, Beta, Output only)
        Age of the oldest active transaction when assessed. Zero when none is active.
- `create_time` (string, Beta, Output only)
  Output-only. The time when the assessment started.
- `complete_time` (string, Beta, Output only)
  Output-only. The time when the assessment completed.
- `expire_time` (string, Beta, Output only)
  Output-only. The time when the assessment expires.

## Example

```json
{
  "name": "string",
  "state": "ASSESSMENT_STATE_ASSESSING",
  "checks": [
    {
      "check_id": "string",
      "verdict": "ASSESSMENT_CHECK_VERDICT_PASS",
      "blocks_migration": true,
      "reason": "string",
      "database": "string",
      "details": {}
    }
  ],
  "create_time": "string",
  "complete_time": "string",
  "expire_time": "string"
}
```


