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

Create DeploymentDetails API for Praetor to use in Dashboard #65

Closed
jigar-arc10 opened this issue Dec 22, 2023 · 3 comments
Closed

Create DeploymentDetails API for Praetor to use in Dashboard #65

jigar-arc10 opened this issue Dec 22, 2023 · 3 comments
Assignees

Comments

@jigar-arc10
Copy link
Collaborator

We need an API that takes the owner address and dseq and returns the JSON below.

{
    "owner": "akash18ttl3praclcd87dhsy6mczcwvnxrqltdakjn07",
    "dseq": "14228985",
    "denom": "uakt",
    "createdHeight": 14228987,
    "createdDate": "2023-12-22T16:15:09.865Z",
    "closedHeight": 14229553,
    "closedDate": "2023-12-22T17:11:31.053Z",
    "status": "closed",
    "balance": 4999783.2351,
    "transferred": 216.7649,
    "settledAt": 14229553,
    "resources": {
        "cpu": 100,
        "memory": 268435456,
        "gpu": 0,
        "ephemeralStorage": 268435456,
        "persistentStorage": 0
    },
    "leases": [
        {
            "provider": "akash1e02tys4hawc2wjexadjxztvrkxnkl9r7ym0k7v",
            "gseq": 1,
            "oseq": 1,
            "price": 0.394118,
            "createdHeight": 14229003,
            "createdDate": "2023-12-22T16:16:46.983Z",
            "closedHeight": 14229553,
            "closedDate": "2023-12-22T17:11:31.053Z",
            "status": "closed",
            "resources": {
                "cpu": 100,
                "memory": 268435456,
                "gpu": 0,
                "ephemeralStorage": 268435456,
                "persistentStorage": 0
            }
        }
    ]
}
@jigar-arc10
Copy link
Collaborator Author

Max B sent me API - https://api.cloudmos.io/deployment/akash18ttl3praclcd87dhsy6mczcwvnxrqltdakjn07/14228985

Which is already present in cloudmos. Can we add closedHeight to deployment and in the lease array as well?

@jigar-arc10
Copy link
Collaborator Author

Can you please add the closed date and created date in the deployment and lease in this API?

Max B sent me API - https://api.cloudmos.io/deployment/akash18ttl3praclcd87dhsy6mczcwvnxrqltdakjn07/14228985

Which is already present in cloudmos. Can we add closedHeight to deployment and in the lease array as well?

@Redm4x
Copy link
Collaborator

Redm4x commented Jan 9, 2024

Added the following properties on the deployment and leases: createdHeight, createdDate, closedHeight, closedDate
This change is live in the latest version of the api (2.13.0) @jigar-arc10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released (in Prod)
Development

No branches or pull requests

3 participants