GraphQL (API): Metrics query endpoint does not return anything

The GraphQL query endpoint does not return anything. I have a lot of projects in railway but I don't receive any data.
5 Replies
Percy
Percy2y ago
Project ID: b50acdfd-fbae-45ed-a2e9-d6b774346dd4
Felinto
FelintoOP2y ago
b50acdfd-fbae-45ed-a2e9-d6b774346dd4
Felinto
FelintoOP2y ago
Felinto
FelintoOP2y ago
Brody
Brody2y ago
2007-12-03T10:15:30Z would not be a valid start date
query metrics($measurements: [MetricMeasurement!]!, $startDate: DateTime!) {
metrics(measurements: $measurements, startDate: $startDate) {
measurement
tags {
deploymentId
}
values {
value
}
}
}
query metrics($measurements: [MetricMeasurement!]!, $startDate: DateTime!) {
metrics(measurements: $measurements, startDate: $startDate) {
measurement
tags {
deploymentId
}
values {
value
}
}
}
{
"measurements": ["CPU_USAGE", "MEMORY_USAGE_GB"],
"startDate": "2023-04-14T20:28:02.102Z"
}
{
"measurements": ["CPU_USAGE", "MEMORY_USAGE_GB"],
"startDate": "2023-04-14T20:28:02.102Z"
}
use a date thats less than 7 days ago, since thats how long metrics are stored for, any longer and you will receive no data
Want results from more Discord servers?
Add your server