bollard icon indicating copy to clipboard operation
bollard copied to clipboard

Add 'status' field to ListServicesOptions for enhanced service status retrieval

Open Paulswith opened this issue 1 year ago • 1 comments

Hi, I have added a status field to the ListServicesOptions, which can trigger the return of ServiceStatus.

For example, for my Replicated Service, I can get:

"ServiceStatus": {
      "RunningTasks": 3,
      "DesiredTasks": 3,
      "CompletedTasks": 0
}

Paulswith avatar Sep 25 '23 02:09 Paulswith

Thanks, swagger reference https://github.com/moby/moby/blob/24.0/api/swagger.yaml#L11018-L11022

fussybeaver avatar Oct 01 '23 15:10 fussybeaver