Logz.io · Schema

Logz.io Alert Rule

Representation of a Logz.io v2 alert rule. An alert rule encodes a sub-account scope, a query, a list of sub-components describing what to watch for, severity thresholds, schedule, and the notification endpoints to fire when an alert triggers.

ObservabilityLoggingMetricsTracingSIEMELKElasticsearchOpenSearchPrometheusGrafanaOpenTelemetryAIOpsCloud ObservabilityManaged ELKCost Management

Properties

Name Type Description
id integer Alert rule identifier.
title string Human-readable alert title.
description string Operator-facing description.
tags array Tags applied to the alert.
searchTimeFrameMinutes integer Lookback window in minutes for evaluating the alert.
isEnabled boolean Whether the alert is currently armed.
notificationEmails array Email recipients.
alertNotificationEndpoints array IDs of notification endpoints (Slack, PagerDuty, etc.) to fire.
suppressNotificationsMinutes integer Suppression window after a fire to avoid notification storms.
subComponents array One or more sub-components defining the conditions of the alert.
View JSON Schema on GitHub

JSON Schema

logz-io-alert-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/logz-io/main/json-schema/logz-io-alert-rule-schema.json",
  "title": "Logz.io Alert Rule",
  "description": "Representation of a Logz.io v2 alert rule. An alert rule encodes a sub-account scope, a query, a list of sub-components describing what to watch for, severity thresholds, schedule, and the notification endpoints to fire when an alert triggers.",
  "type": "object",
  "properties": {
    "id": {"type": "integer", "description": "Alert rule identifier."},
    "title": {"type": "string", "description": "Human-readable alert title."},
    "description": {"type": "string", "description": "Operator-facing description."},
    "tags": {"type": "array", "items": {"type": "string"}, "description": "Tags applied to the alert."},
    "searchTimeFrameMinutes": {"type": "integer", "description": "Lookback window in minutes for evaluating the alert."},
    "isEnabled": {"type": "boolean", "description": "Whether the alert is currently armed."},
    "notificationEmails": {"type": "array", "items": {"type": "string", "format": "email"}, "description": "Email recipients."},
    "alertNotificationEndpoints": {"type": "array", "items": {"type": "integer"}, "description": "IDs of notification endpoints (Slack, PagerDuty, etc.) to fire."},
    "suppressNotificationsMinutes": {"type": "integer", "description": "Suppression window after a fire to avoid notification storms."},
    "subComponents": {
      "type": "array",
      "description": "One or more sub-components defining the conditions of the alert.",
      "items": {
        "type": "object",
        "properties": {
          "queryDefinition": {
            "type": "object",
            "description": "Query that produces the count or aggregation evaluated against thresholds.",
            "properties": {
              "query": {"type": "string", "description": "Lucene-syntax search query."},
              "filters": {"type": "object"},
              "groupBy": {"type": "array", "items": {"type": "string"}, "description": "Fields to group by."},
              "aggregation": {
                "type": "object",
                "properties": {
                  "aggregationType": {"type": "string", "enum": ["NONE", "COUNT", "AVG", "MIN", "MAX", "SUM", "UNIQUE_COUNT"]},
                  "fieldToAggregateOn": {"type": "string"}
                }
              },
              "shouldQueryOnAllAccounts": {"type": "boolean"},
              "accountIdsToQueryOn": {"type": "array", "items": {"type": "integer"}}
            }
          },
          "trigger": {
            "type": "object",
            "properties": {
              "operator": {"type": "string", "enum": ["LESS_THAN", "LESS_THAN_OR_EQUALS", "GREATER_THAN", "GREATER_THAN_OR_EQUALS", "EQUALS", "NOT_EQUAL_TO"]},
              "severityThresholdTiers": {
                "type": "object",
                "additionalProperties": {"type": "number"},
                "description": "Mapping of severity → threshold (e.g. HIGH=100, INFO=10)."
              }
            }
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {"type": "string", "enum": ["JSON", "TABLE"]},
              "columns": {"type": "array", "items": {"type": "object"}}
            }
          }
        }
      }
    }
  },
  "required": ["title", "subComponents"]
}

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.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/logz-io-alert-rule"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.