Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.
Narrows the data the alert reads. resourceAttrs keys may start with resource., span., log., or field.; a bare key is a resource attribute. service, severity, spanName, statusCode, and minDurationMs match those fields of a log or span.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Superlog","description":"Automate routine engineering tasks. Choose your model and harness, bring your tokens and subscriptions.","colors":{"primary":"#8c8c8c","light":"#232323","dark":"#e1e1e1"},"logo":{"light":"https://media.brand.dev/36844916-a1f8-41f4-9fb4-2853fb1ecd17.svg","dark":"https://media.brand.dev/36844916-a1f8-41f4-9fb4-2853fb1ecd17.svg","href":"https://superlog.sh"},"favicon":"https://media.brand.dev/795f746d-3a5f-4fb9-ac75-cc1f5a0ebd65.svg","navbar":{"links":[{"href":"https://github.com/superloglabs/responder-oss","label":"GitHub"},{"href":"https://cal.com/superlog/yc","label":"Book a demo"}],"primary":{"type":"button","label":"Get started","href":"https://superlog.sh/app?signup=1"}},"footer":{"socials":{"github":"https://github.com/superloglabs/responder-oss","x":"https://x.com/superlogYC","discord":"https://discord.gg/wJ56aRh8hx"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"superlog","hasAudioNarration":false,"actualSubdomain":"superlog","customDomains":["docs.superlog.sh"],"gitSource":{"type":"github","owner":"superloglabs","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ac8ecbc1cfa295f5b7d6358","collectionId":"f1cf9f83-829d-4c69-8ff1-85ccbc0494cb","liveDeploymentHistoryId":"6ac8ecbc1cfa295f5b7d6358","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae204498c406dd2ccb34ff2","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":30},{"language":"default","tag":"API reference","count":29},{"language":"default","tag":"Integrations","count":13},{"language":"default","tag":"Automations","count":10},{"language":"default","tag":"Models","count":7},{"language":"default","tag":"Settings","count":5},{"language":"default","tag":"Runs","count":5},{"language":"default","tag":"Self-hosting","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Tag mode","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/alerts/create-an-alert","slug":"/api-reference/alerts/create-an-alert","pageMetadata":{"title":"Create an alert","description":"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /alerts","href":"/api-reference/alerts/create-an-alert","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create an alert","description":"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /alerts","href":"/api-reference/alerts/create-an-alert","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.","operationId":"create_alert","requestBody":"12df5bb8-6ac4-473d-b34a-4ea92b286415","responses":{"201":"f19a11eb-5bd9-4a5d-8f1c-9b0cc0c78891","400":"e388cb57-24d5-469d-ab7a-2ab66cd878a0","401":"0a3d4c33-5e60-4d82-9483-b623e1fe199f","404":"ed4adf6c-830f-4be9-94b2-bd2002cf0454","409":"cca5b9b5-f632-4d00-b90a-4b744e63b98a"},"security":["872d9853-6827-439a-ad7e-71a902db6a64"],"summary":"Create an alert","tags":["Alerts"],"x-mcp-tool":"create_alert","method":"post","type":"path","servers":["168be9d8-7c3c-4548-a5df-00a90470f1bf"],"path":"/alerts","baseUrlOptions":["https://superlog.sh/api/v1"],"title":"Create an alert","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"aggregation":{"type":"string","enum":["count","count_distinct","sum","avg","min","max","p50","p90","p95","p99"],"description":"`count` counts matching logs or spans; other aggregations read `field`. Metrics use `sum` or `avg`.","isRequired":true,"uniqueKey":"aggregation","typeLabel":"enum\u003cstring>"},"comparator":{"type":"string","enum":["gt","lt"],"description":"`gt` fires when the value is above `threshold`, `lt` when it is below.","isRequired":true,"uniqueKey":"comparator","typeLabel":"enum\u003cstring>"},"source":{"type":"string","enum":["logs","traces","metric"],"description":"`logs`, `traces` (spans), or `metric`.","isRequired":true,"uniqueKey":"source","typeLabel":"enum\u003cstring>"},"threshold":{"type":"number","isRequired":true,"uniqueKey":"threshold","typeLabel":"number"},"name":{"type":"string","minLength":1,"maxLength":200,"isRequired":true,"uniqueKey":"name","typeLabel":"string"},"field":{"oneOf":[{"type":"string","description":"What a log or span aggregation other than `count` reads: `duration`, an attribute key, or an AI usage field such as `ai:cost`.","maxLength":200,"uniqueKey":"field.oneOf.0","typeLabel":"string"},{"type":"null","description":"What a log or span aggregation other than `count` reads: `duration`, an attribute key, or an AI usage field such as `ai:cost`.","uniqueKey":"field.oneOf.1","typeLabel":"null"}],"uniqueKey":"field","typeLabel":"string | null"},"filter":{"type":"object","properties":{"metricKind":{"type":"string","enum":["gauge","sum","histogram","exponential_histogram","summary"],"uniqueKey":"filter.metricKind","typeLabel":"enum\u003cstring>"},"metricUnit":{"type":"string","maxLength":100,"uniqueKey":"filter.metricUnit","typeLabel":"string"},"minDurationMs":{"type":"number","minimum":0,"maximum":3600000,"uniqueKey":"filter.minDurationMs","typeLabel":"number"},"resourceAttrs":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200,"isRequired":true,"uniqueKey":"filter.resourceAttrs.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","maxLength":500,"isRequired":true,"uniqueKey":"filter.resourceAttrs.items.[INDEX].value","typeLabel":"string"},"op":{"type":"string","enum":["eq","neq","not_contains"],"uniqueKey":"filter.resourceAttrs.items.[INDEX].op","typeLabel":"enum\u003cstring>"}},"required":["key","value"],"uniqueKey":"filter.resourceAttrs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"filter.resourceAttrs","typeLabel":"object[]"},"service":{"type":"string","maxLength":200,"uniqueKey":"filter.service","typeLabel":"string"},"severity":{"type":"string","maxLength":50,"uniqueKey":"filter.severity","typeLabel":"string"},"spanName":{"type":"string","maxLength":200,"uniqueKey":"filter.spanName","typeLabel":"string"},"statusCode":{"type":"string","maxLength":50,"uniqueKey":"filter.statusCode","typeLabel":"string"}},"description":"Narrows the data the alert reads. `resourceAttrs` keys may start with `resource.`, `span.`, `log.`, or `field.`; a bare key is a resource attribute. `service`, `severity`, `spanName`, `statusCode`, and `minDurationMs` match those fields of a log or span.","uniqueKey":"filter","typeLabel":"object"},"groupBy":{"oneOf":[{"type":"string","description":"The attribute key to split by when `groupMode` is `per_group`, such as `service.name`.","maxLength":200,"uniqueKey":"groupBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"The attribute key to split by when `groupMode` is `per_group`, such as `service.name`.","uniqueKey":"groupBy.oneOf.1","typeLabel":"null"}],"uniqueKey":"groupBy","typeLabel":"string | null"},"groupMode":{"description":"`single` checks one total. `per_group` checks each `groupBy` value and fires for each one separately. Defaults to `single`.","type":"string","enum":["single","per_group"],"uniqueKey":"groupMode","typeLabel":"enum\u003cstring>"},"metricName":{"oneOf":[{"type":"string","description":"The metric to read when `source` is `metric`.","maxLength":200,"uniqueKey":"metricName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The metric to read when `source` is `metric`.","uniqueKey":"metricName.oneOf.1","typeLabel":"null"}],"uniqueKey":"metricName","typeLabel":"string | null"},"windowMinutes":{"description":"How many minutes of data each check reads. Defaults to 5.","type":"integer","minimum":1,"maximum":1440,"uniqueKey":"windowMinutes","typeLabel":"integer"},"enabled":{"description":"A disabled alert is not checked. Defaults to true.","type":"boolean","uniqueKey":"enabled","typeLabel":"boolean"},"evaluationIntervalSeconds":{"description":"How often the alert is checked. Defaults to 60.","type":"integer","minimum":60,"maximum":3600,"uniqueKey":"evaluationIntervalSeconds","typeLabel":"integer"},"slack":{"oneOf":[{"type":"object","description":"Where firing and recovery messages are posted. Without a channel the alert only records its activations.","required":["channelId","integrationAccountId"],"properties":{"channelId":{"type":"string","minLength":1,"maxLength":64,"description":"The Slack channel ID: the `externalId` of a `slack_channel` resource.","isRequired":true,"uniqueKey":"slack.oneOf.0.channelId","typeLabel":"string"},"integrationAccountId":{"type":"string","format":"uuid","description":"The ID of the Slack integration the channel belongs to.","isRequired":true,"uniqueKey":"slack.oneOf.0.integrationAccountId","typeLabel":"string\u003cuuid>"}},"uniqueKey":"slack.oneOf.0","typeLabel":"object"},{"type":"null","description":"Where firing and recovery messages are posted. Without a channel the alert only records its activations.","uniqueKey":"slack.oneOf.1","typeLabel":"null"}],"uniqueKey":"slack","typeLabel":"object | null"}},"required":["aggregation","comparator","source","threshold","name"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"threshold":123,"name":"\u003cstring>","field":"\u003cstring>","filter":{"metricUnit":"\u003cstring>","minDurationMs":1800000,"resourceAttrs":[{"key":"\u003cstring>","value":"\u003cstring>"}],"service":"\u003cstring>","severity":"\u003cstring>","spanName":"\u003cstring>","statusCode":"\u003cstring>"},"groupBy":"\u003cstring>","metricName":"\u003cstring>","windowMinutes":720,"enabled":true,"evaluationIntervalSeconds":1830,"slack":{"channelId":"\u003cstring>","integrationAccountId":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"f19a11eb-5bd9-4a5d-8f1c-9b0cc0c78891":{"content":{"application/json":{"schema":{"type":"object","properties":{"alert":{"type":"object","properties":{"aggregation":{"type":"string","enum":["count","count_distinct","sum","avg","min","max","p50","p90","p95","p99"],"description":"`count` counts matching logs or spans; other aggregations read `field`. Metrics use `sum` or `avg`.","isRequired":true,"uniqueKey":"alert.aggregation","typeLabel":"enum\u003cstring>"},"comparator":{"type":"string","enum":["gt","lt"],"description":"`gt` fires when the value is above `threshold`, `lt` when it is below.","isRequired":true,"uniqueKey":"alert.comparator","typeLabel":"enum\u003cstring>"},"field":{"oneOf":[{"type":"string","description":"What a log or span aggregation other than `count` reads: `duration`, an attribute key, or an AI usage field such as `ai:cost`.","maxLength":200,"isRequired":true,"uniqueKey":"alert.field.oneOf.0","typeLabel":"string"},{"type":"null","description":"What a log or span aggregation other than `count` reads: `duration`, an attribute key, or an AI usage field such as `ai:cost`.","isRequired":true,"uniqueKey":"alert.field.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"alert.field","typeLabel":"string | null"},"filter":{"type":"object","properties":{"metricKind":{"type":"string","enum":["gauge","sum","histogram","exponential_histogram","summary"],"uniqueKey":"alert.filter.metricKind","typeLabel":"enum\u003cstring>"},"metricUnit":{"type":"string","maxLength":100,"uniqueKey":"alert.filter.metricUnit","typeLabel":"string"},"minDurationMs":{"type":"number","minimum":0,"maximum":3600000,"uniqueKey":"alert.filter.minDurationMs","typeLabel":"number"},"resourceAttrs":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200,"isRequired":true,"uniqueKey":"alert.filter.resourceAttrs.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","maxLength":500,"isRequired":true,"uniqueKey":"alert.filter.resourceAttrs.items.[INDEX].value","typeLabel":"string"},"op":{"type":"string","enum":["eq","neq","not_contains"],"uniqueKey":"alert.filter.resourceAttrs.items.[INDEX].op","typeLabel":"enum\u003cstring>"}},"required":["key","value"],"additionalProperties":false,"uniqueKey":"alert.filter.resourceAttrs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"alert.filter.resourceAttrs","typeLabel":"object[]"},"service":{"type":"string","maxLength":200,"uniqueKey":"alert.filter.service","typeLabel":"string"},"severity":{"type":"string","maxLength":50,"uniqueKey":"alert.filter.severity","typeLabel":"string"},"spanName":{"type":"string","maxLength":200,"uniqueKey":"alert.filter.spanName","typeLabel":"string"},"statusCode":{"type":"string","maxLength":50,"uniqueKey":"alert.filter.statusCode","typeLabel":"string"}},"additionalProperties":false,"description":"Narrows the data the alert reads. `resourceAttrs` keys may start with `resource.`, `span.`, `log.`, or `field.`; a bare key is a resource attribute. `service`, `severity`, `spanName`, `statusCode`, and `minDurationMs` match those fields of a log or span.","isRequired":true,"uniqueKey":"alert.filter","typeLabel":"object"},"groupBy":{"oneOf":[{"type":"string","description":"The attribute key to split by when `groupMode` is `per_group`, such as `service.name`.","maxLength":200,"isRequired":true,"uniqueKey":"alert.groupBy.oneOf.0","typeLabel":"string"},{"type":"null","description":"The attribute key to split by when `groupMode` is `per_group`, such as `service.name`.","isRequired":true,"uniqueKey":"alert.groupBy.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"alert.groupBy","typeLabel":"string | null"},"groupMode":{"type":"string","enum":["single","per_group"],"description":"`single` checks one total. `per_group` checks each `groupBy` value and fires for each one separately.","isRequired":true,"uniqueKey":"alert.groupMode","typeLabel":"enum\u003cstring>"},"metricName":{"oneOf":[{"type":"string","description":"The metric to read when `source` is `metric`.","maxLength":200,"isRequired":true,"uniqueKey":"alert.metricName.oneOf.0","typeLabel":"string"},{"type":"null","description":"The metric to read when `source` is `metric`.","isRequired":true,"uniqueKey":"alert.metricName.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"alert.metricName","typeLabel":"string | null"},"source":{"type":"string","enum":["logs","traces","metric"],"description":"`logs`, `traces` (spans), or `metric`.","isRequired":true,"uniqueKey":"alert.source","typeLabel":"enum\u003cstring>"},"threshold":{"type":"number","isRequired":true,"uniqueKey":"alert.threshold","typeLabel":"number"},"windowMinutes":{"type":"integer","minimum":1,"maximum":1440,"description":"How many minutes of data each check reads.","isRequired":true,"uniqueKey":"alert.windowMinutes","typeLabel":"integer"},"createdAt":{"type":"string","isRequired":true,"uniqueKey":"alert.createdAt","typeLabel":"string"},"enabled":{"type":"boolean","isRequired":true,"uniqueKey":"alert.enabled","typeLabel":"boolean"},"evaluationIntervalSeconds":{"type":"integer","isRequired":true,"uniqueKey":"alert.evaluationIntervalSeconds","typeLabel":"integer"},"id":{"type":"string","format":"uuid","description":"Alert ID.","isRequired":true,"uniqueKey":"alert.id","typeLabel":"string\u003cuuid>"},"lastError":{"oneOf":[{"type":"string","description":"Why the last check failed, if it did.","isRequired":true,"uniqueKey":"alert.lastError.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why the last check failed, if it did.","isRequired":true,"uniqueKey":"alert.lastError.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"alert.lastError","typeLabel":"string | null"},"lastEvaluatedAt":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"alert.lastEvaluatedAt.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"alert.lastEvaluatedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"alert.lastEvaluatedAt","typeLabel":"string | null"},"name":{"type":"string","isRequired":true,"uniqueKey":"alert.name","typeLabel":"string"},"slack":{"oneOf":[{"type":"object","required":["channelId","integrationAccountId"],"properties":{"channelId":{"type":"string","isRequired":true,"uniqueKey":"alert.slack.oneOf.0.channelId","typeLabel":"string"},"integrationAccountId":{"type":"string","isRequired":true,"uniqueKey":"alert.slack.oneOf.0.integrationAccountId","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"alert.slack.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"alert.slack.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"alert.slack","typeLabel":"object | null"},"updatedAt":{"type":"string","isRequired":true,"uniqueKey":"alert.updatedAt","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"The alert in Superlog.","isRequired":true,"uniqueKey":"alert.url","typeLabel":"string\u003curi>"}},"required":["aggregation","comparator","field","filter","groupBy","groupMode","metricName","source","threshold","windowMinutes","createdAt","enabled","evaluationIntervalSeconds","id","lastError","lastEvaluatedAt","name","slack","updatedAt","url"],"additionalProperties":false,"isRequired":true,"uniqueKey":"alert","typeLabel":"object"}},"required":["alert"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"alert":{"aggregation":"count","comparator":"gt","field":"\u003cstring>","filter":{"metricKind":"gauge","metricUnit":"\u003cstring>","minDurationMs":1800000,"resourceAttrs":[{"key":"\u003cstring>","value":"\u003cstring>","op":"eq"}],"service":"\u003cstring>","severity":"\u003cstring>","spanName":"\u003cstring>","statusCode":"\u003cstring>"},"groupBy":"\u003cstring>","groupMode":"single","metricName":"\u003cstring>","source":"logs","threshold":123,"windowMinutes":720,"createdAt":"\u003cstring>","enabled":true,"evaluationIntervalSeconds":123,"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","lastError":"\u003cstring>","lastEvaluatedAt":"\u003cstring>","name":"\u003cstring>","slack":{"channelId":"\u003cstring>","integrationAccountId":"\u003cstring>"},"updatedAt":"\u003cstring>","url":"\u003cstring>"}}}},"exampleType":"generated"}},"description":"Created","exampleType":"generated"},"e388cb57-24d5-469d-ab7a-2ab66cd878a0":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"A stable machine-readable error code, when there is one.","type":"string","uniqueKey":"code","typeLabel":"string"},"issues":{"description":"Validation problems, one per invalid field.","type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"}},"required":["message","path"],"additionalProperties":false,"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"]}]}}},"exampleType":"generated"}},"description":"The request is invalid. `issues` lists each invalid field.","exampleType":"generated"},"0a3d4c33-5e60-4d82-9483-b623e1fe199f":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"A stable machine-readable error code, when there is one.","type":"string","uniqueKey":"code","typeLabel":"string"},"issues":{"description":"Validation problems, one per invalid field.","type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"}},"required":["message","path"],"additionalProperties":false,"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"]}]}}},"exampleType":"generated"}},"description":"The API key is missing, revoked, or its creator left the workspace.","exampleType":"generated"},"ed4adf6c-830f-4be9-94b2-bd2002cf0454":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"A stable machine-readable error code, when there is one.","type":"string","uniqueKey":"code","typeLabel":"string"},"issues":{"description":"Validation problems, one per invalid field.","type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"}},"required":["message","path"],"additionalProperties":false,"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"]}]}}},"exampleType":"generated"}},"description":"The resource does not exist in this workspace, or the feature it belongs to is not enabled.","exampleType":"generated"},"cca5b9b5-f632-4d00-b90a-4b744e63b98a":{"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"What went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"description":"A stable machine-readable error code, when there is one.","type":"string","uniqueKey":"code","typeLabel":"string"},"issues":{"description":"Validation problems, one per invalid field.","type":"array","items":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"issues.items.[INDEX].message","typeLabel":"string"},"path":{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"issues.items.[INDEX].path.items.[INDEX].oneOf.1","typeLabel":"number"}],"uniqueKey":"issues.items.[INDEX].path.items.[INDEX]","typeLabel":"string | number"},"isRequired":true,"uniqueKey":"issues.items.[INDEX].path","typeLabel":"(string | number)[]"}},"required":["message","path"],"additionalProperties":false,"uniqueKey":"issues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"issues","typeLabel":"object[]"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","code":"\u003cstring>","issues":[{"message":"\u003cstring>","path":["\u003cstring>"]}]}}},"exampleType":"generated"}},"description":"The request conflicts with the current state, such as a name already in use.","exampleType":"generated"}},"security":{"872d9853-6827-439a-ad7e-71a902db6a64":{"bearerAuth":{"description":"A workspace API key, created in Superlog under Settings → API keys.","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"168be9d8-7c3c-4548-a5df-00a90470f1bf":{"url":"https://superlog.sh/api/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"A workspace API key, created in Superlog under Settings → API keys.","scheme":"bearer","type":"http","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A workspace API key, created in Superlog under Settings → API keys.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"superlog","siteName":"Superlog","title":"Create an alert - Superlog","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T14:19:01.481Z","originalFileLocation":"api-reference/alerts/create-an-alert.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Superlog\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/svg+xml\" sizes=\"180x180\" href=\"https://media.brand.dev/795f746d-3a5f-4fb9-ac75-cc1f5a0ebd65.svg\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://media.brand.dev/795f746d-3a5f-4fb9-ac75-cc1f5a0ebd65.svg\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://media.brand.dev/795f746d-3a5f-4fb9-ac75-cc1f5a0ebd65.svg\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://media.brand.dev/795f746d-3a5f-4fb9-ac75-cc1f5a0ebd65.svg\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create an alert - Superlog\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Superlog\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.superlog.sh/api-reference/alerts/create-an-alert\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://superlog.mintlify.app/_mintlify/api/og/v2?division=Alerts\u0026amp;title=Create+an+alert\u0026amp;description=Creates+a+threshold+alert+on+logs%2C+spans%2C+or+a+metric.+While+the+value+is+past+the+threshold%2C+the+alert+posts+once+to+its+Slack+channel+and+posts+the+recovery+i\u0026amp;theme=d7d56bfbfbd17f72fe5065dd\u0026amp;signature=456128b437d5a674ae209f0893eb193b9ba7c0103891f55d1365dcc5db698ac5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create an alert - Superlog\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://superlog.mintlify.app/_mintlify/api/og/v2?division=Alerts\u0026amp;title=Create+an+alert\u0026amp;description=Creates+a+threshold+alert+on+logs%2C+spans%2C+or+a+metric.+While+the+value+is+past+the+threshold%2C+the+alert+posts+once+to+its+Slack+channel+and+posts+the+recovery+i\u0026amp;theme=d7d56bfbfbd17f72fe5065dd\u0026amp;signature=456128b437d5a674ae209f0893eb193b9ba7c0103891f55d1365dcc5db698ac5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/superlog/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Superlog\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8c8c8c\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.superlog.sh/api-reference/alerts/create-an-alert\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/alerts/create-an-alert.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.superlog.sh/#organization\",\"name\":\"Superlog\",\"url\":\"https://docs.superlog.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://media.brand.dev/36844916-a1f8-41f4-9fb4-2853fb1ecd17.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.superlog.sh#website\",\"name\":\"Superlog\",\"url\":\"https://docs.superlog.sh\",\"publisher\":{\"@id\":\"https://docs.superlog.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert#webpage\",\"url\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert\",\"name\":\"Create an alert\",\"description\":\"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.\",\"dateModified\":\"2026-10-28T14:19:01.481Z\",\"isPartOf\":{\"@id\":\"https://docs.superlog.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Alerts\",\"item\":\"https://docs.superlog.sh/api-reference/alerts/list-alerts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an alert\",\"item\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert#apireference\",\"headline\":\"Create an alert\",\"name\":\"Create an alert\",\"description\":\"Creates a threshold alert on logs, spans, or a metric. While the value is past the threshold, the alert posts once to its Slack channel and posts the recovery in the same thread.\",\"url\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert\",\"mainEntityOfPage\":{\"@id\":\"https://docs.superlog.sh/api-reference/alerts/create-an-alert#webpage\"},\"dateModified\":\"2026-10-28T14:19:01.481Z\",\"publisher\":{\"@id\":\"https://docs.superlog.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.superlog.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Superlog\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Superlog","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Management API","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"MCP server","href":"/api-reference/mcp"}]},{"group":"Workspace","pages":[{"title":"Get the workspace","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /workspace","href":"/api-reference/workspace/get-the-workspace"},{"title":"List members","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /members","href":"/api-reference/workspace/list-members"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Revoke an API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /api-keys/{apiKeyId}","href":"/api-reference/api-keys/revoke-an-api-key"}]},{"group":"Integrations","pages":[{"title":"Find integrations to connect","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/available","href":"/api-reference/integrations/find-integrations-to-connect"},{"title":"Get an integration consent link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/connect","href":"/api-reference/integrations/get-an-integration-consent-link"},{"title":"List integrations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations","href":"/api-reference/integrations/list-integrations"},{"title":"Refresh repositories or channels","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/refresh","href":"/api-reference/integrations/refresh-repositories-or-channels"},{"title":"List Sentry environments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/{integrationAccountId}/sentry-environments","href":"/api-reference/integrations/list-sentry-environments"},{"title":"List Slack channels for alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /slack-channels","href":"/api-reference/integrations/list-slack-channels-for-alerts"}]},{"group":"Automations","pages":[{"title":"List automations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /automations","href":"/api-reference/automations/list-automations"},{"title":"Create an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /automations","href":"/api-reference/automations/create-an-automation"},{"title":"Get an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /automations/{automationId}","href":"/api-reference/automations/get-an-automation"},{"title":"Update an automation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /automations/{automationId}","href":"/api-reference/automations/update-an-automation"},{"title":"Get an automation's webhook","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /automations/{automationId}/webhook","href":"/api-reference/automations/get-an-automations-webhook"}]},{"group":"Runs","pages":[{"title":"List runs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /automations/{automationId}/runs","href":"/api-reference/runs/list-runs"},{"title":"Start a run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /automations/{automationId}/runs","href":"/api-reference/runs/start-a-run"},{"title":"Get a run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /runs/{runId}","href":"/api-reference/runs/get-a-run"},{"title":"Cancel a run","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /runs/{runId}/cancel","href":"/api-reference/runs/cancel-a-run"},{"title":"Send a follow-up message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /runs/{runId}/messages","href":"/api-reference/runs/send-a-follow-up-message"}]},{"group":"Tag mode","pages":[{"title":"Get tag mode","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /tag-mode","href":"/api-reference/tag-mode/get-tag-mode"},{"title":"Update tag mode","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /tag-mode","href":"/api-reference/tag-mode/update-tag-mode"}]},{"group":"Models","pages":[{"title":"List included models","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /models","href":"/api-reference/models/list-included-models"},{"title":"List model credentials","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /model-credentials","href":"/api-reference/models/list-model-credentials"},{"title":"Add a model API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /model-credentials","href":"/api-reference/models/add-a-model-api-key"},{"title":"Replace a model API key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /model-credentials/{credentialId}/rotate","href":"/api-reference/models/replace-a-model-api-key"},{"title":"Test a model credential","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /model-credentials/{credentialId}/test","href":"/api-reference/models/test-a-model-credential"},{"title":"List a credential's models","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /model-credentials/{credentialId}/models","href":"/api-reference/models/list-a-credentials-models"},{"title":"Remove a model credential","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /model-credentials/{credentialId}","href":"/api-reference/models/remove-a-model-credential"}]},{"group":"Secrets","pages":[{"title":"List workspace secrets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /secrets","href":"/api-reference/secrets/list-workspace-secrets"},{"title":"Create a workspace secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /secrets","href":"/api-reference/secrets/create-a-workspace-secret"}]},{"group":"Telemetry","pages":[{"title":"Search logs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /telemetry/logs/search","href":"/api-reference/telemetry/search-logs"},{"title":"Search spans","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /telemetry/traces/search","href":"/api-reference/telemetry/search-spans"},{"title":"Get a trace","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /telemetry/traces/{traceId}","href":"/api-reference/telemetry/get-a-trace"},{"title":"Read metric points","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /telemetry/metrics/search","href":"/api-reference/telemetry/read-metric-points"},{"title":"List services","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /telemetry/services","href":"/api-reference/telemetry/list-services"}]},{"group":"Errors","pages":[{"title":"List error issues","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /error-issues","href":"/api-reference/errors/list-error-issues"},{"title":"Get an error issue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /error-issues/{issueId}","href":"/api-reference/errors/get-an-error-issue"},{"title":"Resolve, silence, or reopen an error issue","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /error-issues/{issueId}","href":"/api-reference/errors/resolve-silence-or-reopen-an-error-issue"}]},{"group":"Dashboards","pages":[{"title":"List dashboards","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dashboards","href":"/api-reference/dashboards/list-dashboards"},{"title":"Create a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /dashboards","href":"/api-reference/dashboards/create-a-dashboard"},{"title":"Get a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dashboards/{dashboardId}","href":"/api-reference/dashboards/get-a-dashboard"},{"title":"Change a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /dashboards/{dashboardId}","href":"/api-reference/dashboards/change-a-dashboard"},{"title":"Delete a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /dashboards/{dashboardId}","href":"/api-reference/dashboards/delete-a-dashboard"},{"title":"Add a widget to a dashboard","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /dashboards/{dashboardId}/widgets","href":"/api-reference/dashboards/add-a-widget-to-a-dashboard"},{"title":"Change a dashboard widget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /dashboards/{dashboardId}/widgets/{widgetId}","href":"/api-reference/dashboards/change-a-dashboard-widget"},{"title":"Remove a dashboard widget","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /dashboards/{dashboardId}/widgets/{widgetId}","href":"/api-reference/dashboards/remove-a-dashboard-widget"},{"title":"Move and resize dashboard widgets","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /dashboards/{dashboardId}/layout","href":"/api-reference/dashboards/move-and-resize-dashboard-widgets"}]},{"group":"Alerts","pages":[{"title":"List alerts","description":"Lists the workspace's alerts by name, with each one's rule, Slack channel, and how many groups are firing now.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /alerts","href":"/api-reference/alerts/list-alerts"},{"title":"Create an alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /alerts","href":"/api-reference/alerts/create-an-alert"},{"title":"Get an alert","description":"Returns an alert with its 20 most recent activations. An activation is one period during which the alert, or one of its groups, was past the threshold.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /alerts/{alertId}","href":"/api-reference/alerts/get-an-alert"},{"title":"Change an alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /alerts/{alertId}","href":"/api-reference/alerts/change-an-alert"},{"title":"Delete an alert","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /alerts/{alertId}","href":"/api-reference/alerts/delete-an-alert"},{"title":"Preview an alert rule","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /alerts/preview","href":"/api-reference/alerts/preview-an-alert-rule"}]},{"group":"Synthetics","pages":[{"title":"List synthetic checks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /synthetic-checks","href":"/api-reference/synthetics/list-synthetic-checks"},{"title":"Create a synthetic check","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /synthetic-checks","href":"/api-reference/synthetics/create-a-synthetic-check"},{"title":"Get a synthetic check","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /synthetic-checks/{checkId}","href":"/api-reference/synthetics/get-a-synthetic-check"},{"title":"Change a synthetic check","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /synthetic-checks/{checkId}","href":"/api-reference/synthetics/change-a-synthetic-check"},{"title":"Delete a synthetic check","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /synthetic-checks/{checkId}","href":"/api-reference/synthetics/delete-a-synthetic-check"}]},{"group":"Terraform","pages":[{"title":"Export to Terraform","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /terraform","href":"/api-reference/terraform/export-to-terraform"}]}]}]},"title":"Create an alert - Superlog","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-WRhTSUDL.js","utils-ChMov4Kr.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-_REmC2bI.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp6nVRCu.js","snippetPresets-DZadmXoU.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","Page-R3M_BF4L.js","ApiExamples-CY2WdoTl.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DwYG-Q4l.js","shallow-BXQIGwv4.js","getApiPlaygroundDisplay-CK5nK5B9.js","CodeSnippet-TH4a2aGW.js","CodeSnippets-DwsQiOFS.js","getPastedJson-DD7kUzi_.js","icon-holE3QoJ.js","MethodPill-DUW0T8us.js","DuplicateIcon-CI_p4be-.js","createIcon-BdbRvavb.js","DynamicMarkdown-DN96a4Ur.js","SectionHeading-SCu36A9d.js","axios-vUo_bRtp.js","Markdown-CCeGv-zI.js","clsx-BGBGWFTt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-Cv_O2fky.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-2C5OB2eV.js"]}