curl --request GET \
--url https://api.example.com/api/v1/analytics/top-resources{
"apiVersion": "v1",
"kind": "AnalyticsTopResources",
"metadata": {
"from": "2026-02-19T00:00:00Z",
"to": "2026-03-19T15:00:00Z",
"limit": 10
},
"resources": [
{
"kind": "Deployment",
"name": "payment-service",
"namespace": "production",
"incidentCount": 12,
"lastIncident": "2026-03-19T14:30:00Z",
"topSignals": ["oom_kill", "error_rate_high"]
},
{
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production",
"incidentCount": 8,
"lastIncident": "2026-03-18T22:00:00Z",
"topSignals": ["pod_restart", "latency_high"]
},
{
"kind": "StatefulSet",
"name": "redis-cluster",
"namespace": "data",
"incidentCount": 5,
"lastIncident": "2026-03-17T10:15:00Z",
"topSignals": ["memory_high", "cpu_high"]
}
]
}
Retorna os recursos com maior incidencia de problemas, ordenados por quantidade de incidentes — ajuda a identificar areas problematicas que necessitam de correcoes estruturais
curl --request GET \
--url https://api.example.com/api/v1/analytics/top-resources{
"apiVersion": "v1",
"kind": "AnalyticsTopResources",
"metadata": {
"from": "2026-02-19T00:00:00Z",
"to": "2026-03-19T15:00:00Z",
"limit": 10
},
"resources": [
{
"kind": "Deployment",
"name": "payment-service",
"namespace": "production",
"incidentCount": 12,
"lastIncident": "2026-03-19T14:30:00Z",
"topSignals": ["oom_kill", "error_rate_high"]
},
{
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production",
"incidentCount": 8,
"lastIncident": "2026-03-18T22:00:00Z",
"topSignals": ["pod_restart", "latency_high"]
},
{
"kind": "StatefulSet",
"name": "redis-cluster",
"namespace": "data",
"incidentCount": 5,
"lastIncident": "2026-03-17T10:15:00Z",
"topSignals": ["memory_high", "cpu_high"]
}
]
}
{
"apiVersion": "v1",
"kind": "AnalyticsTopResources",
"metadata": {
"from": "2026-02-19T00:00:00Z",
"to": "2026-03-19T15:00:00Z",
"limit": 10
},
"resources": [
{
"kind": "Deployment",
"name": "payment-service",
"namespace": "production",
"incidentCount": 12,
"lastIncident": "2026-03-19T14:30:00Z",
"topSignals": ["oom_kill", "error_rate_high"]
},
{
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production",
"incidentCount": 8,
"lastIncident": "2026-03-18T22:00:00Z",
"topSignals": ["pod_restart", "latency_high"]
},
{
"kind": "StatefulSet",
"name": "redis-cluster",
"namespace": "data",
"incidentCount": 5,
"lastIncident": "2026-03-17T10:15:00Z",
"topSignals": ["memory_high", "cpu_high"]
}
]
}