Skip to main content

Assessment

View as Markdown

Assessment object​

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

namestringBetaIDImmutable

The assessment resource name, in the format migrations/{migration}/assessments/{assessment}.

statestringBetaOutput only

Output-only. The aggregate assessment state.

Values:

  • ASSESSMENT_STATE_ASSESSING
  • ASSESSMENT_STATE_READY
  • ASSESSMENT_STATE_AWAITING_ACK
  • ASSESSMENT_STATE_FAILED
  • ASSESSMENT_STATE_EXPIRED
  • ASSESSMENT_STATE_NEEDS_ACTION
  • ASSESSMENT_STATE_BLOCKED
checksarray of objectBetaOutput only

Output-only. Results of the checks performed by this assessment.

Show child attributesHide child attributes
check_idstringBetaOutput only

Output-only. Stable identifier of the check.

verdictstringBetaOutput only

Output-only. The check verdict.

Values:

  • ASSESSMENT_CHECK_VERDICT_PASS
  • ASSESSMENT_CHECK_VERDICT_WARNING
  • ASSESSMENT_CHECK_VERDICT_ACTION_REQUIRED
  • ASSESSMENT_CHECK_VERDICT_UNSUPPORTED
  • ASSESSMENT_CHECK_VERDICT_ERROR
blocks_migrationbooleanBetaOutput only

Output-only. Whether this result blocks migration from starting.

reasonstringBetaOutput only

Output-only. Explanation of the result.

databasestringBetaOutput only

Output-only. The source database the check evaluated. Unset for checks that assess the whole source server rather than a single database.

detailsobjectBetaOutput only

Output-only. Measurements observed by this check. Absent when unavailable.

Show child attributesHide child attributes
database_sizeobjectBetaOutput only

Output-only. Physical size of the source database observed by this check.

Show child attributesHide child attributes
size_bytesint64BetaOutput only

Size reported by pg_database_size, in bytes. Zero is a measured empty size.

long_transactionobjectBetaOutput only

Output-only. Age of the oldest source transaction observed by this check.

Show child attributesHide child attributes
oldest_transaction_agestringBetaOutput only

Age of the oldest active transaction when assessed. Zero when none is active.

create_timestringBetaOutput only

Output-only. The time when the assessment started.

complete_timestringBetaOutput only

Output-only. The time when the assessment completed.

expire_timestringBetaOutput only

Output-only. The time when the assessment expires.

Get a migration assessment Beta​

GET /api/2.0/postgres/{name=migrations/*/assessments/*}

Gets a migration assessment run.

API scopes: postgres

Parameters​

namestringRequiredpath

Required. The assessment resource name, in the format migrations/{migration}/assessments/{assessment}.

Response​

Returns the Assessment object.

List migration assessments Beta​

GET /api/2.0/postgres/{parent=migrations/*}/assessments

Lists assessment runs for a migration.

API scopes: postgres

Parameters​

parentstringRequiredpath

Required. The parent migration resource name, in the format migrations/{migration}.

page_sizeint32query

The maximum number of assessments to return. The server default is 100; values above 1000 are capped to 1000.

page_tokenstringquery

A page token from a previous call.

Response​

Returns a list of Assessment objects.

Acknowledge assessment warnings Beta​

POST /api/2.0/postgres/{name=migrations/*/assessments/*}/acknowledgeWarnings

Acknowledges non-blocking warnings on a specific assessment.

API scopes: postgres

Parameters​

namestringRequiredpath

Required. The assessment resource name, in the format migrations/{migration}/assessments/{assessment}.

Response​

namestring

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

metadataobject

Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.

doneboolean

If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

errorobject

The error result of the operation in case of failure or cancellation.

Show child attributesHide child attributes
error_codestring

Error codes returned by Databricks APIs to indicate specific failure conditions.

Values:

Show 81 possible values
  • UNKNOWN
  • INTERNAL_ERROR
  • TEMPORARILY_UNAVAILABLE
  • IO_ERROR
  • BAD_REQUEST
  • SERVICE_UNDER_MAINTENANCE
  • WORKSPACE_TEMPORARILY_UNAVAILABLE
  • DEADLINE_EXCEEDED
  • CANCELLED
  • RESOURCE_EXHAUSTED
  • ABORTED
  • NOT_FOUND
  • ALREADY_EXISTS
  • UNAUTHENTICATED
  • UNAVAILABLE
  • INVALID_PARAMETER_VALUE
  • ENDPOINT_NOT_FOUND
  • MALFORMED_REQUEST
  • INVALID_STATE
  • PERMISSION_DENIED
  • FEATURE_DISABLED
  • CUSTOMER_UNAUTHORIZED
  • REQUEST_LIMIT_EXCEEDED
  • RESOURCE_CONFLICT
  • UNPARSEABLE_HTTP_ERROR
  • NOT_IMPLEMENTED
  • DATA_LOSS
  • INVALID_STATE_TRANSITION
  • COULD_NOT_ACQUIRE_LOCK
  • RESOURCE_ALREADY_EXISTS
  • RESOURCE_DOES_NOT_EXIST
  • QUOTA_EXCEEDED
  • MAX_BLOCK_SIZE_EXCEEDED
  • MAX_READ_SIZE_EXCEEDED
  • PARTIAL_DELETE
  • MAX_LIST_SIZE_EXCEEDED
  • DRY_RUN_FAILED
  • RESOURCE_LIMIT_EXCEEDED
  • DIRECTORY_NOT_EMPTY
  • DIRECTORY_PROTECTED
  • MAX_NOTEBOOK_SIZE_EXCEEDED
  • MAX_CHILD_NODE_SIZE_EXCEEDED
  • SEARCH_QUERY_TOO_LONG
  • SEARCH_QUERY_TOO_SHORT
  • MANAGED_RESOURCE_GROUP_DOES_NOT_EXIST
  • PERMISSION_NOT_PROPAGATED
  • DEPLOYMENT_TIMEOUT
  • GIT_CONFLICT
  • GIT_UNKNOWN_REF
  • GIT_SENSITIVE_TOKEN_DETECTED
  • GIT_URL_NOT_ON_ALLOW_LIST
  • GIT_REMOTE_ERROR
  • PROJECTS_OPERATION_TIMEOUT
  • IPYNB_FILE_IN_REPO
  • INSECURE_PARTNER_RESPONSE
  • MALFORMED_PARTNER_RESPONSE
  • METASTORE_DOES_NOT_EXIST
  • DAC_DOES_NOT_EXIST
  • CATALOG_DOES_NOT_EXIST
  • SCHEMA_DOES_NOT_EXIST
  • TABLE_DOES_NOT_EXIST
  • SHARE_DOES_NOT_EXIST
  • RECIPIENT_DOES_NOT_EXIST
  • STORAGE_CREDENTIAL_DOES_NOT_EXIST
  • EXTERNAL_LOCATION_DOES_NOT_EXIST
  • PRINCIPAL_DOES_NOT_EXIST
  • PROVIDER_DOES_NOT_EXIST
  • METASTORE_ALREADY_EXISTS
  • DAC_ALREADY_EXISTS
  • CATALOG_ALREADY_EXISTS
  • SCHEMA_ALREADY_EXISTS
  • TABLE_ALREADY_EXISTS
  • SHARE_ALREADY_EXISTS
  • RECIPIENT_ALREADY_EXISTS
  • STORAGE_CREDENTIAL_ALREADY_EXISTS
  • EXTERNAL_LOCATION_ALREADY_EXISTS
  • PROVIDER_ALREADY_EXISTS
  • CATALOG_NOT_EMPTY
  • SCHEMA_NOT_EMPTY
  • METASTORE_NOT_EMPTY
  • PROVIDER_SHARE_NOT_ACCESSIBLE
messagestring
stack_tracestring
detailsarray of object
responseobject

The normal, successful response of the operation.