RESOURCE CATALOG
Insight
Collects logs and metrics from Applications, with optional alerts.
type: "insight"analogous to logs + metrics + alarmsDefinition
Enables log and metric ingestion for a Compute. Defines retention in days and whether the team receives email alerts when indicators cross thresholds. Data feeds the organization Health console and audit.
When to use
- Production applications, generally.
- When the Project has a formal incident runbook.
- For error correlation across Applications.
When not to use
- Ephemeral job pipelines lasting seconds — export logs directly to your preferred destination.
Configuration fields
Each field is validated at creation time. Defaults apply when fields are omitted.
config · insight
| Campo | Tipo | Default · Opções |
|---|---|---|
retencao_dias Retenção (dias) | int | Default 7 |
alertas Alertas por e-mail | bool | Default false |
Examples
Full payloads for POST to /api/projetos/{id}/recursos:
Observability with alerts
json
{
"tipo": "insight",
"nome": "obs-api",
"config": {
"retencao_dias": 30,
"alertas": true
}
}