LogBrew · Schema
CreateAlertRuleRequest
A new alert rule. Fields a kind does not use are refused.
ObservabilityLoggingMonitoringAnalyticsError Tracking
Properties
| Name | Type | Description |
|---|---|---|
| environment | stringnull | The environment it watches; all when absent. |
| factor | integernull | Escalation: how many times its usual rate an issue must reach, 5 when absent. |
| issue_id | stringnull | Event count: the issue counted; all when absent. |
| kind | object | What it watches. |
| level | object | Event count: the lowest level counted; all when absent. |
| muted | boolean | Whether it starts muted. |
| name | string | Name shown with its alerts; empty for none. |
| recipients | object | Who it alerts; at least one recipient. |
| service | stringnull | Event count: the service counted; quiet period: the service watched, required. |
| threshold | integernull | Event count: fewest events that alert, required. Escalation: fewest events in the window that can escalate, 10 when absent. |
| window_minutes | integernull | Window length in minutes for escalation (60 when absent), event count (60), and quiet period (30). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/logbrew/json-schema/logbrew-create-alert-rule-request-schema.json",
"title": "CreateAlertRuleRequest",
"description": "A new alert rule. Fields a kind does not use are refused.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/logbrew-alerts-api-openapi.yml#/components/schemas/CreateAlertRuleRequest",
"additionalProperties": false,
"properties": {
"environment": {
"default": null,
"description": "The environment it watches; all when absent.",
"type": [
"string",
"null"
]
},
"factor": {
"default": null,
"description": "Escalation: how many times its usual rate an issue must reach, 5 when absent.",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"issue_id": {
"default": null,
"description": "Event count: the issue counted; all when absent.",
"format": "uuid",
"type": [
"string",
"null"
]
},
"kind": {
"$ref": "#/$defs/AlertRuleKind",
"description": "What it watches."
},
"level": {
"anyOf": [
{
"$ref": "#/$defs/AlertRuleLevel"
},
{
"type": "null"
}
],
"default": null,
"description": "Event count: the lowest level counted; all when absent."
},
"muted": {
"default": false,
"description": "Whether it starts muted.",
"type": "boolean"
},
"name": {
"default": "",
"description": "Name shown with its alerts; empty for none.",
"type": "string"
},
"recipients": {
"$ref": "#/$defs/AlertRuleRecipientsInput",
"description": "Who it alerts; at least one recipient."
},
"service": {
"default": null,
"description": "Event count: the service counted; quiet period: the service watched, required.",
"type": [
"string",
"null"
]
},
"threshold": {
"default": null,
"description": "Event count: fewest events that alert, required. Escalation: fewest events in the window\nthat can escalate, 10 when absent.",
"format": "uint64",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"window_minutes": {
"default": null,
"description": "Window length in minutes for escalation (60 when absent), event count (60), and quiet\nperiod (30).",
"format": "uint32",
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"required": [
"kind",
"recipients"
],
"type": "object",
"$defs": {
"AlertRuleKind": {
"description": "What a rule watches.",
"oneOf": [
{
"const": "new_issue",
"description": "An issue appears for the first time, in the rule's environment when it has one.",
"type": "string"
},
{
"const": "regression",
"description": "A resolved issue happens again.",
"type": "string"
},
{
"const": "escalation",
"description": "An issue's event rate in the window reaches `factor` times its rate over the day before.",
"type": "string"
},
{
"const": "event_count",
"description": "The window holds at least `threshold` matching events.",
"type": "string"
},
{
"const": "quiet_period",
"description": "A service sends nothing for the whole window, like a missed heartbeat.",
"type": "string"
}
]
},
"AlertRuleLevel": {
"description": "The lowest event level an event count counts; higher levels count too.",
"oneOf": [
{
"const": "info",
"description": "Info and above.",
"type": "string"
},
{
"const": "warning",
"description": "Warning and above.",
"type": "string"
},
{
"const": "error",
"description": "Error and above.",
"type": "string"
},
{
"const": "critical",
"description": "Critical only.",
"type": "string"
}
]
},
"AlertRuleRecipientsInput": {
"additionalProperties": false,
"description": "Who a rule alerts. A recipient gets an alert only while they can read the project.",
"properties": {
"members": {
"default": [],
"description": "Account IDs.",
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
"project_members": {
"default": false,
"description": "Everyone who can read the project.",
"type": "boolean"
},
"teams": {
"default": [],
"description": "Organization team IDs; their members when the rule fires.",
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/logbrew-create-alert-rule-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.