File size: 775 Bytes
1477a90 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | namespace OpenMeter;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
@route("/api/v1/info/progress")
@tag("Lookup Information")
@friendlyName("Progress")
interface ProgressEndpoints {
/**
* Get progress
*/
@get
@route("/{id}")
@operationId("getProgress")
@summary("Get progress")
getProgress(id: string): Progress | NotFoundError | CommonErrors;
}
/**
* Progress describes a progress of a task.
*/
@friendlyName("Progress")
model Progress {
/**
* Success is the number of items that succeeded
*/
success: uint64;
/**
* Failed is the number of items that failed
*/
failed: uint64;
/**
* The total number of items to process
*/
total: uint64;
/**
* The time the progress was last updated
*/
updatedAt: DateTime;
}
|