Skip to content

Add containerStats API endpoint (since Remote API v1.17) #8

Closed

Activity

  1. clue commented on Mar 16, 2015

    @clue
    OwnerAuthor

    This is a streaming API endpoint, so it depends on #4.

  2. changed the title [-]Support Docker Remote API v1.17 (stats introduced with Docker v1.5)[/-] [+]Add stats API endpoint (since Remote API v1.17)[/+] on Jun 17, 2015
  3. clue commented on Jun 17, 2015

    @clue
    OwnerAuthor

    This appears to be the only API endpoint that generates an endless stream of events.

    As such, it makes little sense to add a Promise-based API for this endpoint, as Promises are all about the "results" of an operation.

    One possible approach would be to inspect the stream and then resolve the promise when the first event is completed and then terminate the underlying stream.

  4. changed the title [-]Add stats API endpoint (since Remote API v1.17)[/-] [+]Add containerStats API endpoint (since Remote API v1.17)[/+] on Jun 17, 2015
  5. modified the milestone: on Jun 18, 2015
  6. clue commented on Jun 20, 2015

    @clue
    OwnerAuthor

    This appears to be the only API endpoint that generates an endless stream of events.

    The upcoming Remote API v1.19 will add a boolean stream flag to indicate whether to terminate the stream after the first event. This is somewhat similar to the above approach.
    https://docs.docker.com/reference/api/docker_remote_api/#v1-19

  7. modified the milestones: , v1.0.0 on Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needednew featureNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions