Resource: MigrationSubtask
A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.
JSON representation |
---|
{ "name": string, "taskId": string, "type": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. Immutable. The resource name for the migration subtask. The ID is server-generated. Example: |
taskId |
The unique ID of the task to which this subtask belongs. |
type |
The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks. |
state |
Output only. The current state of the subtask. |
processingError |
Output only. An explanation that may be populated when the task is in FAILED state. |
resourceErrorDetails[] |
Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed. |
resourceErrorCount |
The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a |
createTime |
Time when the subtask was created. |
lastUpdateTime |
Time when the subtask was last updated. |
metrics[] |
The metrics for the subtask. |
State
Possible states of a migration subtask.
Enums | |
---|---|
STATE_UNSPECIFIED |
The state is unspecified. |
ACTIVE |
The subtask is ready, i.e. it is ready for execution. |
RUNNING |
The subtask is running, i.e. it is assigned to a worker for execution. |
SUCCEEDED |
The subtask finished successfully. |
FAILED |
The subtask finished unsuccessfully. |
PAUSED |
The subtask is paused, i.e., it will not be scheduled. If it was already assigned,it might still finish but no new lease renewals will be granted. |
PENDING_DEPENDENCY |
The subtask is pending a dependency. It will be scheduled once its dependencies are done. |
TimeSeries
The metrics object for a SubTask.
JSON representation |
---|
{ "metric": string, "valueType": enum ( |
Fields | |
---|---|
metric |
Required. The name of the metric. If the metric is not known by the service yet, it will be auto-created. |
valueType |
Required. The value type of the time series. |
metricKind |
Optional. The metric kind of the time series. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either |
points[] |
Required. The data points of this time series. When listing time series, points are returned in reverse time order. When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be |
Point
A single data point in a time series.
JSON representation |
---|
{ "interval": { object ( |
Fields | |
---|---|
interval |
The time interval to which the data point applies. For |
value |
The value of the data point. |
TimeInterval
A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.
JSON representation |
---|
{ "startTime": string, "endTime": string } |
Fields | |
---|---|
startTime |
Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. |
endTime |
Required. The end of the time interval. |
TypedValue
A single strongly-typed value.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field value . The typed value field. value can be only one of the following: |
|
boolValue |
A Boolean value: |
int64Value |
A 64-bit integer. Its range is approximately |
doubleValue |
A 64-bit double-precision floating-point number. Its magnitude is approximately |
stringValue |
A variable-length string value. |
distributionValue |
A distribution value. |
Methods |
|
---|---|
|
Gets a previously created migration subtask. |
|
Lists previously created migration subtasks. |