Skip to main content

usage.proto

path mgmt/v1alpha1/usage.proto

package mgmt.v1alpha1


Messages​

RecordRunEndedRequest​

NameTypeDescription
job_idstringThe job the run belongs to. The account and the kind of the run are read from it.
run_idstringThe identifier of the run, as the orchestrator gives it.
started_atgoogle.protobuf.TimestampWhen the run began.
ended_atgoogle.protobuf.TimestampWhen the run ended.
outcomeRunOutcomeHow the run ended.
rows_readint64The rows the run read from its source.
rows_discardedint64The rows the run set aside instead of writing them.
retriesint64The times the run's activities were tried again.

RecordRunEndedResponse​

NameTypeDescription

RecordRunStartedRequest​

NameTypeDescription
job_idstringThe job the run belongs to. The account and the kind of the run are read from it.
run_idstringThe identifier of the run, as the orchestrator gives it.
started_atgoogle.protobuf.TimestampWhen the run began.

RecordRunStartedResponse​

NameTypeDescription

Enums​

RunOutcome​

How a run ended.

NameNumberDescription
RUN_OUTCOME_UNSPECIFIED0
RUN_OUTCOME_COMPLETED1The run finished its work.
RUN_OUTCOME_FAILED2The run stopped on an error.
RUN_OUTCOME_CANCELED3The run was told to stop.

Services​

UsageService​

Holds the counters of what the instance runs.

RecordRunStarted​

MethodRecordRunStarted
RequestRecordRunStartedRequest
ResponseRecordRunStartedResponse
DescriptionTells that a run has begun. Only the worker calls this, with its key.

RecordRunEnded​

MethodRecordRunEnded
RequestRecordRunEndedRequest
ResponseRecordRunEndedResponse
DescriptionTells that a run has ended, and what it did. Only the worker calls this, with its key.