pydo.monitoring.get_app_memory_percentage_metrics()

Description

To retrieve memory percentage metrics for a given app, send a GET request to /v2/monitoring/metrics/apps/memory_percentage.

Parameters

Name Type Required Description Default Value
app_id string True The app UUID.
app_component string False The app component name.
start string True UNIX timestamp to start metric window.
end string True UNIX timestamp to end metric window.

Responses

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

The response will be a JSON object with a key called data and status.

Click to expand an example response for Memory.
{
  "value": {
    "status": "success",
    "data": {
      "resultType": "matrix",
      "result": [
        {
          "metric": {
            "app_component": "sample-application",
            "app_component_instance": "sample-application-0",
            "app_uuid": "db3c021-15ad-4088-bfe8-99dc972b9cf6"
          },
          "values": [
            [
              1634052360,
              "5.016600450090265357"
            ],
            [
              1634052480,
              "12.015085955677299055"
            ],
            [
              1634052600,
              "8.014941163855322308"
            ],
            [
              1634052720,
              "32.016214285714285712"
            ]
          ]
        }
      ]
    }
  }
}

Unauthorized

Click to expand an example response.
{
  "id": "unauthorized",
  "message": "Unable to authenticate you."
}

API Rate limit exceeded

Click to expand an example response.
{
  "id": "too_many_requests",
  "message": "API Rate limit exceeded."
}

Server error.

Click to expand an example response.
{
  "id": "server_error",
  "message": "Unexpected server-side error"
}

Unexpected error

Click to expand an example response.
{
  "id": "example_error",
  "message": "some error message"
}