Get the metrics for an environment
GET
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/metrics
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env/metrics';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env/metrics \ --header 'Authorization: Bearer <token>'Retrieves CloudWatch metrics for the specified environment with optional filtering by time range, container, and metric configuration.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
Example
test-orgapplication
required
string
The application ID
Example
test-appenvironment
required
string
The environment ID
Example
test-envQuery Parameters
Section titled “Query Parameters”startTime
integer
Start time for metrics retrieval (Unix timestamp in milliseconds)
endTime
integer
End time for metrics retrieval (Unix timestamp in milliseconds)
period
integer
Period in seconds for metric aggregation (e.g., 60 for 1 minute, 300 for 5 minutes)
statistics
string
Comma-separated list of CloudWatch statistics (e.g., Average, Maximum, Minimum, Sum, SampleCount)
containerName
string
Filter metrics by specific container name
Responses
Section titled “Responses”The metrics
Media typeapplication/json
CloudWatch metrics data
object
Examplegenerated
{}The environment not found
Validation error
