Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the structure of the JSON file return by the /api/monitor/containers-info route enhancement #68

Open
Yinshangyi opened this issue May 29, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Yinshangyi
Copy link
Contributor

Yinshangyi commented May 29, 2020

The API route /api/monitor/containers-info should return a JSON file with a generic structure.
The JSON structure is provided below:

[
  {
    "Name": ["/mysql", "/phpmyadmin/db"],
    "Status": "Exited (255) 2 hours ago",
    "Id": "435516a601",
    "Image": "mysql:latest",
    "Command": "docker-entrypoint.sh mysqld",
    "Created": 1590079811,
    "Ports": [
      {
        "IP": "",
        "PrivatePort": 33060,
        "PublicPort": null,
        "Type": "tcp"
      },
      {
        "IP": "0.0.0.0",
        "PrivatePort": 3306,
        "PublicPort": 3306,
        "Type": "tcp"
      }
    ]
  }
]
@Yinshangyi Yinshangyi added the enhancement New feature or request label May 29, 2020
@Fszta Fszta added this to In progress in New Features Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
New Features
  
In progress
Development

No branches or pull requests

2 participants