{ "version": "1.5.10", "name": "betterstack", "displayName": "Better Stack", "description": "A Pulumi package for managing errors, incidents and telemetry resources in Better Stack.", "keywords": [ "betterstack", "observability", "monitoring", "uptime", "incidents", "on-call", "status-page", "logs", "metrics", "errors", "category/monitoring" ], "homepage": "https://github.com/BetterStackHQ/pulumi-betterstack", "license": "Apache-2.0", "attribution": "This Pulumi package is based on the [`betterstack` Terraform Provider](https://github.com/betterstackhq/terraform-provider-betterstack).", "repository": "https://github.com/BetterStackHQ/pulumi-betterstack", "logoUrl": "https://raw.githubusercontent.com/BetterStackHQ/pulumi-betterstack/main/assets/logo.svg", "pluginDownloadURL": "github://api.github.com/BetterStackHQ/pulumi-betterstack", "publisher": "Better Stack", "meta": { "moduleFormat": "(.*)(?:/[^/]*)" }, "language": { "csharp": { "packageReferences": { "Pulumi": "3.*" }, "namespaces": { "betterstack": "BetterStack" }, "compatibility": "tfbridge20", "rootNamespace": "Pulumi", "respectSchemaVersion": true }, "go": { "importBasePath": "github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack", "generateResourceContainerTypes": true, "generateExtraInputTypes": true, "respectSchemaVersion": true }, "java": { "packages": { "betterstack": "pulumi" }, "basePackage": "com.betterstack", "buildFiles": "gradle", "gradleNexusPublishPluginVersion": "2.0.0", "gradleTest": "" }, "nodejs": { "packageName": "@better_stack/pulumi", "packageDescription": "A Pulumi package for managing errors, incidents and telemetry resources in Better Stack.", "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/betterstackhq/terraform-provider-betterstack)\n\u003e distributed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-betterstack` repo](https://github.com/BetterStackHQ/pulumi-betterstack/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-betterstack` repo](https://github.com/betterstackhq/terraform-provider-betterstack/issues).", "dependencies": { "@pulumi/pulumi": "^3.0.0" }, "compatibility": "tfbridge20", "disableUnionOutputTypes": true, "respectSchemaVersion": true }, "python": { "packageName": "pulumi_betterstack", "requires": { "pulumi": "\u003e=3.0.0,\u003c4.0.0" }, "readme": "\u003e This provider is a derived work of the [Terraform Provider](https://github.com/betterstackhq/terraform-provider-betterstack)\n\u003e distributed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0.html). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-betterstack` repo](https://github.com/BetterStackHQ/pulumi-betterstack/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-betterstack` repo](https://github.com/betterstackhq/terraform-provider-betterstack/issues).", "compatibility": "tfbridge20", "respectSchemaVersion": true, "pyproject": {} } }, "config": { "variables": { "apiRateBurst": { "type": "integer", "description": "How many requests may go out at once above the rate. Defaults to twice the rate, at least 10, when set to 0." }, "apiRateLimit": { "type": "integer", "description": "The most requests per second. Defaults to 8, and 0 turns the limit off." }, "apiRetryMax": { "type": "integer", "description": "How many times a failed request is retried. Defaults to 4." }, "apiRetryWaitMax": { "type": "integer", "description": "The longest wait before a retry, in seconds, also when Better Stack asks to wait longer. Defaults to 300." }, "apiRetryWaitMin": { "type": "integer", "description": "The shortest wait before a retry, in seconds. Defaults to 10." }, "apiTimeout": { "type": "integer", "description": "How long one request may take, in seconds. Defaults to 60, and 0 turns the timeout off." }, "apiToken": { "type": "string", "description": "Better Stack API token. Falls back to the BETTERSTACK_API_TOKEN environment variable.", "secret": true }, "availabilityZone": { "type": "string", "description": "Use the zone your resources are in, such as us-west-2a. Each zone is separate. Falls back to the BETTERSTACK_AVAILABILITY_ZONE environment variable." }, "endpoint": { "type": "string", "description": "The API base URL to use instead of Better Stack's, such as a test server." }, "teamId": { "type": "string", "description": "Selects the team when the API token can reach several." } } }, "types": { "betterstack:index/AlertAdditionalCondition:AlertAdditionalCondition": { "properties": { "alertType": { "type": "string", "description": "The type of the condition, 'threshold' or 'relative'.\n" }, "operator": { "type": "string", "description": "The comparison the condition makes, from the same values as \u003cspan pulumi-lang-nodejs=\"`operator`\" pulumi-lang-dotnet=\"`Operator`\" pulumi-lang-go=\"`operator`\" pulumi-lang-python=\"`operator`\" pulumi-lang-yaml=\"`operator`\" pulumi-lang-java=\"`operator`\" pulumi-lang-hcl=\"`operator`\"\u003e`operator`\u003c/span\u003e.\n" }, "seriesNames": { "type": "array", "items": { "type": "string" }, "description": "The series the condition is limited to. An empty list means every series.\n" }, "seriesNamesExcept": { "type": "array", "items": { "type": "string" }, "description": "The series the condition ignores while it watches every other series.\n" }, "stringValue": { "type": "string", "description": "Threshold value for a string series. null when the condition compares \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e.\n" }, "value": { "type": "number", "description": "Threshold value. null when the condition compares \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "alertType", "operator", "seriesNames", "seriesNamesExcept", "stringValue", "value" ] } } }, "betterstack:index/AlertEscalationTarget:AlertEscalationTarget": { "properties": { "policyId": { "type": "string", "description": "Escalation policy ID.\n" }, "policyName": { "type": "string", "description": "Escalation policy name.\n" }, "teamId": { "type": "string", "description": "Team ID, such as 't123'.\n" }, "teamName": { "type": "string", "description": "Team name.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "policyId", "policyName", "teamId", "teamName" ] } } }, "betterstack:index/AlertVariableValue:AlertVariableValue": { "properties": { "name": { "type": "string", "description": "The name of a variable on the alert's dashboard or exploration.\n" }, "selectedLabel": { "type": "string", "description": "For a 'select_predefined_sql' variable, the label of the filter the alert uses.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "The values the alert uses for the variable, as strings.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "name", "selectedLabel", "values" ] } } }, "betterstack:index/ApplicationCustomBucket:ApplicationCustomBucket": { "properties": { "accessKeyId": { "type": "string", "description": "The access key ID to write to the bucket with.\n" }, "endpoint": { "type": "string", "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set.\n" }, "keepDataAfterRetention": { "type": "boolean", "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set.\n" }, "name": { "type": "string", "description": "The bucket's name, taken from \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e.\n" }, "secretAccessKey": { "type": "string", "description": "The secret access key for \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e. Write-only.\n", "secret": true } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "accessKeyId", "endpoint", "keepDataAfterRetention", "name", "secretAccessKey" ] } } }, "betterstack:index/ApplicationJsTagConfiguration:ApplicationJsTagConfiguration": { "properties": { "acceptIncomingSessions": { "type": "boolean", "description": "Continue sessions that arrive from your other domains.\n" }, "collect": { "$ref": "#/types/betterstack:index/ApplicationJsTagConfigurationCollect:ApplicationJsTagConfigurationCollect", "description": "The features the JavaScript tag collects, each on or off.\n" }, "customConfig": { "type": "string", "description": "JavaScript code the tag runs when it loads.\n" }, "decorateForms": { "type": "boolean", "description": "Also share sessions through forms that submit to your other domains.\n" }, "eventsBatchIntervalSeconds": { "type": "integer", "description": "Seconds between batches of events, at least 2.\n" }, "excludeSelectors": { "type": "array", "items": { "type": "string" }, "description": "CSS selectors of elements excluded from session replays and autocapture.\n" }, "maskSelectors": { "type": "array", "items": { "type": "string" }, "description": "CSS selectors of elements whose text session replays mask.\n" }, "ownDomain": { "type": "string", "description": "Your own subdomain to serve the tag from. The subdomain's CNAME record must point to `proxy.betterstack.net`.\n" }, "sampling": { "$ref": "#/types/betterstack:index/ApplicationJsTagConfigurationSampling:ApplicationJsTagConfigurationSampling", "description": "Sampling rates of the JavaScript tag, as percentages.\n" }, "sessionTimeoutMinutes": { "type": "integer", "description": "Session timeout in minutes, from 1 to 60.\n" }, "sharedSessionDomains": { "type": "array", "items": { "type": "string" }, "description": "Your other domains to share sessions with.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "acceptIncomingSessions", "collect", "customConfig", "decorateForms", "eventsBatchIntervalSeconds", "excludeSelectors", "maskSelectors", "ownDomain", "sampling", "sessionTimeoutMinutes", "sharedSessionDomains" ] } } }, "betterstack:index/ApplicationJsTagConfigurationCollect:ApplicationJsTagConfigurationCollect": { "properties": { "analytics": { "type": "boolean", "description": "Record website analytics.\n" }, "anonymousEvents": { "type": "boolean", "description": "Capture anonymous user events.\n" }, "console": { "type": "boolean", "description": "Collect `console.log` calls.\n" }, "errors": { "type": "boolean", "description": "Collect frontend errors.\n" }, "fingerprint": { "type": "boolean", "description": "Collect the browser fingerprint.\n" }, "identifiedEvents": { "type": "boolean", "description": "Capture identified user events.\n" }, "memory": { "type": "boolean", "description": "Record JavaScript heap memory, in Chrome only.\n" }, "replays": { "type": "boolean", "description": "Record session replays.\n" }, "webVitals": { "type": "boolean", "description": "Record web vitals.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "analytics", "anonymousEvents", "console", "errors", "fingerprint", "identifiedEvents", "memory", "replays", "webVitals" ] } } }, "betterstack:index/ApplicationJsTagConfigurationSampling:ApplicationJsTagConfigurationSampling": { "properties": { "errors": { "type": "integer", "description": "Percentage of errors sent, from 0 to 100.\n" }, "replays": { "type": "integer", "description": "Percentage of sessions recorded as session replays, from 0 to 100.\n" }, "webEvents": { "type": "integer", "description": "Percentage of sessions that send web events, from 0 to 100.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "errors", "replays", "webEvents" ] } } }, "betterstack:index/ApplicationQueryCollections:ApplicationQueryCollections": { "properties": { "appFilter": { "type": "string", "description": "The condition that selects only this application's data in the collections of its connected source. null unless the application is connected to a source.\n" }, "database": { "type": "string", "description": "The ClickHouse database that holds the application's data.\n" }, "metricsAppFilter": { "type": "string", "description": "The condition that selects only this application's data in the metrics collection of its connected source. null unless the application is connected to a source.\n" }, "recent": { "type": "object", "additionalProperties": { "type": "string" }, "description": "The collections that hold the last 30 minutes of data, one for each kind of data the application holds, such as 'exceptions' or 'metrics'.\n" }, "s3": { "type": "string", "description": "The collection that holds older data of every kind.\n" }, "table": { "type": "string", "description": "The table that holds the application's data, as `database.table`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "appFilter", "database", "metricsAppFilter", "recent", "s3", "table" ] } } }, "betterstack:index/CatalogRecordAttribute:CatalogRecordAttribute": { "properties": { "attribute": { "$ref": "#/types/betterstack:index/CatalogRecordAttributeAttribute:CatalogRecordAttributeAttribute", "description": "The catalog attribute to set, by ID or name. Responses include both.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CatalogRecordAttributeValue:CatalogRecordAttributeValue" }, "description": "Values to set for this attribute.\n" } }, "type": "object", "required": [ "attribute", "values" ] }, "betterstack:index/CatalogRecordAttributeAttribute:CatalogRecordAttributeAttribute": { "properties": { "id": { "type": "string", "description": "The catalog attribute's ID.\n" }, "name": { "type": "string", "description": "The catalog attribute's name.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "name" ] } } }, "betterstack:index/CatalogRecordAttributeValue:CatalogRecordAttributeValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A reference needs one of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e. A monitor, a Slack integration and a Zapier Zap can't be looked up by name.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source. Required, unless you send a text value as `{value}` on its own.\n" }, "value": { "type": "string", "description": "The text of a String value. Required when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/CatalogRelationAttribute:CatalogRelationAttribute": { "properties": { "id": { "type": "string", "description": "ID of an existing attribute to keep. Leave it out to keep the attribute with the same name, or to add a new one.\n" }, "name": { "type": "string", "description": "Attribute name. Names must be unique within the relation.\n" }, "position": { "type": "integer", "description": "Display order, set by the order of the list. Primary attributes count from 0 and added attributes from 1000.\n" }, "primary": { "type": "boolean", "description": "Whether records are matched by this attribute. Defaults to false.\n" } }, "type": "object", "required": [ "name" ], "language": { "nodejs": { "requiredOutputs": [ "id", "name", "position", "primary" ] } } }, "betterstack:index/ClickHouseEndpoint:ClickHouseEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. The hostname resolves to the instance's addresses in those networks.\n" }, "ports": { "$ref": "#/types/betterstack:index/ClickHouseEndpointPorts:ClickHouseEndpointPorts", "description": "The ports the instance listens on.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ClickHouseEndpointPrivateIp:ClickHouseEndpointPrivateIp" }, "description": "The instance's addresses in the private networks attached to it.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is false. The hostname resolves to the instance's public IP addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ClickHouseEndpointPublicIp:ClickHouseEndpointPublicIp" }, "description": "The instance's public IP addresses. Empty when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is false.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "hostname", "ports", "privateIps", "publicHostname", "publicIps" ] } } }, "betterstack:index/ClickHouseEndpointPorts:ClickHouseEndpointPorts": { "properties": { "http": { "type": "integer", "description": "The HTTP port, '8123'.\n" }, "https": { "type": "integer", "description": "The HTTPS port, '8443'.\n" }, "native": { "type": "integer", "description": "The native protocol port, '9000'.\n" }, "nativeTls": { "type": "integer", "description": "The native protocol port with TLS, '9440'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "http", "https", "native", "nativeTls" ] } } }, "betterstack:index/ClickHouseEndpointPrivateIp:ClickHouseEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The instance's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/ClickHouseEndpointPublicIp:ClickHouseEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public IP address.\n" }, "type": { "type": "string", "description": "The address type, 'ipv4' or 'ipv6'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ip", "type" ] } } }, "betterstack:index/ClickHouseMember:ClickHouseMember": { "properties": { "createdAt": { "type": "string", "description": "When the node was created.\n" }, "diskUsedBytes": { "type": "integer", "description": "The disk space the node uses, in bytes.\n" }, "id": { "type": "string", "description": "The node's ID.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ClickHouseMemberPrivateIp:ClickHouseMemberPrivateIp" }, "description": "The node's addresses in the attached private networks.\n" }, "role": { "type": "string", "description": "The node's role, always 'primary'. Valid values: 'primary'.\n" }, "status": { "type": "string", "description": "The node's state. 'provisioning': We're creating the node. 'running': The node is up. 'down': The node doesn't respond.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "createdAt", "diskUsedBytes", "id", "privateIps", "role", "status" ] } } }, "betterstack:index/ClickHouseMemberPrivateIp:ClickHouseMemberPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The node's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/CollectorConfiguration:CollectorConfiguration": { "properties": { "bufferMaxEvents": { "type": "integer", "description": "How many events the collector's memory buffer holds before it moves them to disk. Defaults to 10000.\n" }, "components": { "$ref": "#/types/betterstack:index/CollectorConfigurationComponents:CollectorConfigurationComponents", "description": "Which components the collector runs, each true or false.\n" }, "diskBatchSizeMb": { "type": "integer", "description": "Size of the collector's disk buffer in MB, shown as **Batching on disk** in the web app. Defaults to 3000 and can't be less than 256.\n" }, "logLineLengthLimitKb": { "type": "integer", "description": "Maximum log line length in kB, from 4 to 128. Longer lines are dropped. Defaults to 8.\n" }, "logsSampleRate": { "type": "integer", "description": "Percentage of logs to keep, from 0 to 100. Defaults to 100.\n" }, "memoryBatchSizeMb": { "type": "integer", "description": "How much data the collector batches in memory before sending it, in MB, shown as **Batching in memory** in the web app. Defaults to 20.\n" }, "mergeLogs": { "type": "boolean", "description": "Whether the collector merges lines that continue a log entry, such as a stack trace, into the entry before them.\n" }, "mergeLogsConfig": { "type": "string", "description": "The VRL condition \u003cspan pulumi-lang-nodejs=\"`mergeLogs`\" pulumi-lang-dotnet=\"`MergeLogs`\" pulumi-lang-go=\"`mergeLogs`\" pulumi-lang-python=\"`merge_logs`\" pulumi-lang-yaml=\"`mergeLogs`\" pulumi-lang-java=\"`mergeLogs`\" pulumi-lang-hcl=\"`merge_logs`\"\u003e`mergeLogs`\u003c/span\u003e uses to tell whether a line starts a new log entry. Any other line joins the entry before it.\n" }, "namespacesOptions": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/CollectorConfigurationNamespacesOptions:CollectorConfigurationNamespacesOptions" }, "description": "Options per namespace, keyed by namespace name. Sending a map replaces the existing options, and an empty map clears them.\n" }, "servicesOptions": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/CollectorConfigurationServicesOptions:CollectorConfigurationServicesOptions" }, "description": "Options per service, keyed by service name. Sending a map replaces the existing options, and an empty map clears them.\n" }, "tracesSampleRate": { "type": "integer", "description": "Percentage of traces to keep, from 0 to 100. Defaults to 100, and 0 drops every trace.\n" }, "whenFull": { "type": "string", "description": "What the collector does when its disk buffer is full, 'drop_newest' to drop new events or 'block' to wait until there's room.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "bufferMaxEvents", "components", "diskBatchSizeMb", "logLineLengthLimitKb", "logsSampleRate", "memoryBatchSizeMb", "mergeLogs", "mergeLogsConfig", "namespacesOptions", "servicesOptions", "tracesSampleRate", "whenFull" ] } } }, "betterstack:index/CollectorConfigurationComponents:CollectorConfigurationComponents": { "properties": { "ebpfJavaAgent": { "type": "boolean", "description": "Trace Java services with eBPF.\n" }, "ebpfMetrics": { "type": "boolean", "description": "Collect host metrics with eBPF.\n" }, "ebpfRedMetrics": { "type": "boolean", "description": "Service map and request rate, error and duration metrics with eBPF.\n" }, "ebpfTracingBasic": { "type": "boolean", "description": "Basic distributed tracing with eBPF.\n" }, "ebpfTracingFull": { "type": "boolean", "description": "Full distributed tracing with eBPF.\n" }, "logsCollectorInternals": { "type": "boolean", "description": "Collect the collector's own logs.\n" }, "logsDocker": { "type": "boolean", "description": "Collect logs of Docker containers that use the default json-file logging driver.\n" }, "logsHost": { "type": "boolean", "description": "Collect logs from the host's /var/log directory.\n" }, "logsKubernetes": { "type": "boolean", "description": "Collect Kubernetes container logs and events.\n" }, "metricsApache": { "type": "boolean", "description": "Collect Apache metrics.\n" }, "metricsCluster": { "type": "boolean", "description": "Collect Kubernetes object state metrics, such as pods, workloads, nodes and volumes.\n" }, "metricsDatabases": { "type": "boolean", "description": "Always the same as \u003cspan pulumi-lang-nodejs=\"`metricsCluster`\" pulumi-lang-dotnet=\"`MetricsCluster`\" pulumi-lang-go=\"`metricsCluster`\" pulumi-lang-python=\"`metrics_cluster`\" pulumi-lang-yaml=\"`metricsCluster`\" pulumi-lang-java=\"`metricsCluster`\" pulumi-lang-hcl=\"`metrics_cluster`\"\u003e`metricsCluster`\u003c/span\u003e. Send \u003cspan pulumi-lang-nodejs=\"`metricsCluster`\" pulumi-lang-dotnet=\"`MetricsCluster`\" pulumi-lang-go=\"`metricsCluster`\" pulumi-lang-python=\"`metrics_cluster`\" pulumi-lang-yaml=\"`metricsCluster`\" pulumi-lang-java=\"`metricsCluster`\" pulumi-lang-hcl=\"`metrics_cluster`\"\u003e`metricsCluster`\u003c/span\u003e instead.\n" }, "metricsElasticsearch": { "type": "boolean", "description": "Collect Elasticsearch metrics.\n" }, "metricsHostOs": { "type": "boolean", "description": "Collect CPU, memory, disk, filesystem and network metrics of the host.\n" }, "metricsMysql": { "type": "boolean", "description": "Collect MySQL metrics.\n" }, "metricsNginx": { "type": "boolean", "description": "Collect Nginx metrics.\n" }, "metricsOtherDatabases": { "type": "boolean", "description": "Collect Redis, MongoDB, Memcached and Kafka metrics.\n" }, "metricsPgbouncer": { "type": "boolean", "description": "Collect PgBouncer metrics.\n" }, "metricsPostgres": { "type": "boolean", "description": "Collect PostgreSQL metrics.\n" }, "metricsProcessStatistics": { "type": "boolean", "description": "Collect the host's process and thread counts. Counting them can use significant CPU on a host that runs very many processes.\n" }, "metricsTraefik": { "type": "boolean", "description": "Collect Traefik metrics.\n" }, "tracesOpentelemetry": { "type": "boolean", "description": "Accept OpenTelemetry traces from your SDKs over OTLP.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ebpfJavaAgent", "ebpfMetrics", "ebpfRedMetrics", "ebpfTracingBasic", "ebpfTracingFull", "logsCollectorInternals", "logsDocker", "logsHost", "logsKubernetes", "metricsApache", "metricsCluster", "metricsDatabases", "metricsElasticsearch", "metricsHostOs", "metricsMysql", "metricsNginx", "metricsOtherDatabases", "metricsPgbouncer", "metricsPostgres", "metricsProcessStatistics", "metricsTraefik", "tracesOpentelemetry" ] } } }, "betterstack:index/CollectorConfigurationNamespacesOptions:CollectorConfigurationNamespacesOptions": { "properties": { "ingestTraces": { "type": "boolean", "description": "Whether to ingest the namespace's traces.\n" }, "logSampling": { "type": "integer", "description": "Percentage of the namespace's logs to keep, from 0 to 100.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ingestTraces", "logSampling" ] } } }, "betterstack:index/CollectorConfigurationServicesOptions:CollectorConfigurationServicesOptions": { "properties": { "ingestTraces": { "type": "boolean", "description": "Whether to ingest the service's traces.\n" }, "logSampling": { "type": "integer", "description": "Percentage of the service's logs to keep, from 0 to 100.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ingestTraces", "logSampling" ] } } }, "betterstack:index/CollectorCustomBucket:CollectorCustomBucket": { "properties": { "accessKeyId": { "type": "string", "description": "The access key ID Better Stack uses to write to the bucket.\n" }, "endpoint": { "type": "string", "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set.\n" }, "keepDataAfterRetention": { "type": "boolean", "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set.\n" }, "name": { "type": "string", "description": "The bucket's name, taken from \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e.\n" }, "secretAccessKey": { "type": "string", "description": "The secret access key for \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e. Write-only, so it's never returned.\n", "secret": true } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "accessKeyId", "endpoint", "keepDataAfterRetention", "name", "secretAccessKey" ] } } }, "betterstack:index/CollectorServiceField:CollectorServiceField": { "properties": { "nameKey": { "type": "string", "description": "The field to extract the service name from, such as `service.name`.\n" }, "typeKey": { "type": "string", "description": "The field to extract the service's platform from, such as `service.type`. Platforms such as Nginx, PostgreSQL or Redis are recognized in its value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "nameKey", "typeKey" ] } } }, "betterstack:index/CollectorTargetAnnotations:CollectorTargetAnnotations": { "properties": { "apiKey": { "$ref": "#/types/betterstack:index/CollectorTargetAnnotationsApiKey:CollectorTargetAnnotationsApiKey", "description": "Where the collector gets the API key. Present only for 'elasticsearch' targets.\n" }, "keys": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CollectorTargetAnnotationsKey:CollectorTargetAnnotationsKey" }, "description": "The annotation keys that apply to the target, each with the Kubernetes object it's on. A key whose value isn't valid is listed too, and the collector ignores it.\n" }, "password": { "$ref": "#/types/betterstack:index/CollectorTargetAnnotationsPassword:CollectorTargetAnnotationsPassword", "description": "Where the collector gets the password.\n" }, "scheme": { "type": "string", "description": "The connection scheme the collector uses, from an annotation or the default 'http'. Present only for 'elasticsearch' targets. Valid values: 'http', 'https'.\n" }, "sslMode": { "type": "string", "description": "The SSL mode the collector uses, from an annotation or the default 'disable'. Present only for 'postgres', 'pgbouncer' and 'pgcat' targets. 'disable': Connects without SSL. 'require': Connects over SSL without verifying the server's certificate. `verify-ca`: Connects over SSL and checks that a trusted certificate authority signed the server's certificate.\n" }, "tls": { "type": "string", "description": "The TLS mode the collector uses, from an annotation or the default false. Present only for 'mysql' targets. false: Connects without TLS. true: Connects over TLS and verifies the server's certificate. `skip-verify`: Connects over TLS without verifying the server's certificate. 'preferred': Uses TLS when the server supports it, without verifying the server's certificate.\n" }, "username": { "$ref": "#/types/betterstack:index/CollectorTargetAnnotationsUsername:CollectorTargetAnnotationsUsername", "description": "Where the collector gets the username.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "apiKey", "keys", "password", "scheme", "sslMode", "tls", "username" ] } } }, "betterstack:index/CollectorTargetAnnotationsApiKey:CollectorTargetAnnotationsApiKey": { "properties": { "source": { "type": "string", "description": "Where the value comes from, or null when no annotation sets it. With null, the collector connects without the credential. 'annotation': An annotation sets the value directly. 'secret': The value comes from a Kubernetes Secret.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "source" ] } } }, "betterstack:index/CollectorTargetAnnotationsKey:CollectorTargetAnnotationsKey": { "properties": { "key": { "type": "string", "description": "The annotation key, such as `betterstack.com/postgres-secret-name`.\n" }, "kind": { "type": "string", "description": "The kind of Kubernetes object the annotation is on, or null for an object of another kind. Valid values: `Deployment`, `StatefulSet`, `DaemonSet`, `Namespace`.\n" }, "name": { "type": "string", "description": "The name of the object. When \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is null, \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e holds the object's full reference, such as `shop/CronJob/backup`.\n" }, "namespace": { "type": "string", "description": "The namespace of the object. Present only for a `Deployment`, `StatefulSet` or `DaemonSet`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "key", "kind", "name", "namespace" ] } } }, "betterstack:index/CollectorTargetAnnotationsPassword:CollectorTargetAnnotationsPassword": { "properties": { "source": { "type": "string", "description": "Where the password comes from, or null when no annotation sets it. With null, the collector connects without the credential. 'annotation': An annotation sets the password directly. 'secret': The password comes from a Kubernetes Secret.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "source" ] } } }, "betterstack:index/CollectorTargetAnnotationsUsername:CollectorTargetAnnotationsUsername": { "properties": { "source": { "type": "string", "description": "Where the username comes from, or null when no annotation sets it. With null, the collector connects without the credential. 'annotation': An annotation sets the username directly. 'secret': The username comes from a Kubernetes Secret.\n" }, "value": { "type": "string", "description": "The username when an annotation sets it directly, or null otherwise.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "source", "value" ] } } }, "betterstack:index/ConnectionCluster:ConnectionCluster": { "properties": { "host": { "type": "string", "description": "Host to connect to the cluster on.\n" }, "name": { "type": "string", "description": "The cluster's name.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "host", "name" ] } } }, "betterstack:index/ConnectionCreatedBy:ConnectionCreatedBy": { "properties": { "email": { "type": "string", "description": "The creator's e-mail.\n" }, "id": { "type": "string", "description": "The creator's user ID, such as 'u123'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "id" ] } } }, "betterstack:index/ConnectionDataSource:ConnectionDataSource": { "properties": { "connectionUrl": { "type": "string", "description": "The URL to connect to for this source's data.\n" }, "dataSources": { "type": "array", "items": { "type": "string" }, "description": "ClickHouse collection names you can query for this source.\n" }, "sourceId": { "type": "string", "description": "The source's ID.\n" }, "sourceName": { "type": "string", "description": "The source's name.\n" }, "teamName": { "type": "string", "description": "The name of the team the source belongs to.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "connectionUrl", "dataSources", "sourceId", "sourceName", "teamName" ] } } }, "betterstack:index/DashboardChartQuery:DashboardChartQuery": { "properties": { "coordinates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryCoordinate:DashboardChartQueryCoordinate" }, "description": "Coordinate blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryFilter:DashboardChartQueryFilter" }, "description": "Filter blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" }, "funnelQuery": { "$ref": "#/types/betterstack:index/DashboardChartQueryFunnelQuery:DashboardChartQueryFunnelQuery", "description": "Funnel definition of a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query. Read-only.\n" }, "groupBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryGroupBy:DashboardChartQueryGroupBy" }, "description": "Grouping blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" }, "having": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryHaving:DashboardChartQueryHaving" }, "description": "Having blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "id": { "type": "string", "description": "The query's ID.\n" }, "name": { "type": "string", "description": "The query's name. Left out when the query has none.\n" }, "orderBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryOrderBy:DashboardChartQueryOrderBy" }, "description": "Ordering blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "pointSize": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryPointSize:DashboardChartQueryPointSize" }, "description": "Point size blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" }, "pqlQuery": { "type": "string", "description": "PQL source of a 'pql_expression' query. Read-only.\n" }, "queryType": { "type": "string", "description": "The query's type. You can write 'sql_expression', 'tail_query' and \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e queries. Queries built in the web app's editor can also be 'pql_expression', 'query_builder', 'tail_query_builder', \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e, 'promql_query', 'promql_v2_query' or 'promql_via_llm', and can't be written.\n" }, "sourceVariable": { "type": "string", "description": "The sources the query reads, as the name of a 'source' variable, such as 'source', or a `source:` reference to specific sources. Defaults to 'source'.\n" }, "sqlQuery": { "type": "string", "description": "The SQL the query runs. Returned for 'sql_expression', 'pql_expression', 'query_builder', 'tail_query_builder' and \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e queries.\n" }, "staticText": { "type": "string", "description": "The Markdown text a \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query shows. Left out when not set.\n" }, "where": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryWhere:DashboardChartQueryWhere" }, "description": "Where blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "whereCondition": { "type": "string", "description": "The filter of a 'tail_query' or 'tail_query_builder' query. Left out when not set.\n" }, "xAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryXAxis:DashboardChartQueryXAxis" }, "description": "X-axis blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "yAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryYAxis:DashboardChartQueryYAxis" }, "description": "Y-axis blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "coordinates", "filters", "funnelQuery", "groupBy", "having", "id", "name", "orderBy", "pointSize", "pqlQuery", "queryType", "sourceVariable", "sqlQuery", "staticText", "where", "whereCondition", "xAxes", "yAxes" ] } } }, "betterstack:index/DashboardChartQueryCoordinate:DashboardChartQueryCoordinate": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryFilter:DashboardChartQueryFilter": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryFunnelQuery:DashboardChartQueryFunnelQuery": { "properties": { "breakdown": { "$ref": "#/types/betterstack:index/DashboardChartQueryFunnelQueryBreakdown:DashboardChartQueryFunnelQueryBreakdown", "description": "The field each step is split by, or null when the funnel has no breakdown.\n" }, "sessionField": { "type": "string", "description": "Field that ties one journey's events together, such as 'session_id' or `user.id`.\n" }, "steps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQueryFunnelQueryStep:DashboardChartQueryFunnelQueryStep" }, "description": "The funnel's steps in journey order.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "breakdown", "sessionField", "steps" ] } } }, "betterstack:index/DashboardChartQueryFunnelQueryBreakdown:DashboardChartQueryFunnelQueryBreakdown": { "properties": { "type": { "type": "string", "description": "The type of the breakdown field, always 'string'.\n" }, "value": { "type": "string", "description": "The field each step is split by, such as `contexts.browser.name`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "type", "value" ] } } }, "betterstack:index/DashboardChartQueryFunnelQueryStep:DashboardChartQueryFunnelQueryStep": { "properties": { "conditions": { "type": "string", "description": "Live tail query that the step's events match, such as `payload.meta.path=\"/cart\"`.\n" }, "name": { "type": "string", "description": "Step name shown on the chart.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditions", "name" ] } } }, "betterstack:index/DashboardChartQueryGroupBy:DashboardChartQueryGroupBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryHaving:DashboardChartQueryHaving": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryOrderBy:DashboardChartQueryOrderBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryPointSize:DashboardChartQueryPointSize": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryWhere:DashboardChartQueryWhere": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryXAxis:DashboardChartQueryXAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartQueryYAxis:DashboardChartQueryYAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/DashboardChartSettings:DashboardChartSettings": { "properties": { "colorGreenWords": { "type": "string", "description": "Values a number chart shows in green, separated by commas.\n" }, "colorLowerThreshold": { "type": "number", "description": "Lower threshold of a number chart's colors.\n" }, "colorMode": { "type": "string", "description": "How a number chart colors its value. Usually 'auto', 'high_green', 'high_red' or 'specific_words'.\n" }, "colorRedWords": { "type": "string", "description": "Values a number chart shows in red, separated by commas.\n" }, "colorUpperThreshold": { "type": "number", "description": "Upper threshold of a number chart's colors.\n" }, "colorYellowWords": { "type": "string", "description": "Values a number chart shows in yellow, separated by commas.\n" }, "columnUnits": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/DashboardChartSettingsColumnUnits:DashboardChartSettingsColumnUnits" }, "description": "Unit of each table column, by column name.\n" }, "columnWidths": { "type": "object", "additionalProperties": { "type": "number" }, "description": "Width of each table column, by column name, as the chart editor saves it.\n" }, "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "decimalPlaces": { "type": "integer", "description": "Number of decimal places shown.\n" }, "filteredReleases": { "type": "array", "items": { "type": "string" }, "description": "Releases the chart shows.\n" }, "filteredSeries": { "type": "array", "items": { "type": "string" }, "description": "Series the chart shows, by name.\n" }, "forceSourceSeries": { "type": "boolean", "description": "Whether the chart shows one series per source.\n" }, "fresh": { "type": "boolean", "description": "Whether the chart skips cached results.\n" }, "funnelUnitName": { "type": "string", "description": "Word a funnel chart counts in, such as 'people'.\n" }, "groupByColumns": { "type": "array", "items": { "type": "string" }, "description": "Up to two columns a hierarchy chart groups its hexagons by.\n" }, "guessedSeriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Colors the chart picked for its series, keyed by \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e.\n" }, "heatmapColorMode": { "type": "string", "description": "How a heatmap colors its cells. Usually 'gradient' or 'categorized'.\n" }, "label": { "type": "string", "description": "A legend placement the chart editor saves next to \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e, such as 'shown_below'. Charts ignore it and place the legend by \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e.\n" }, "labelColumn": { "type": "string", "description": "Column that names each hexagon on a hierarchy chart.\n" }, "legend": { "type": "string", "description": "Where the legend is shown. Usually 'hidden', 'shown_below', 'shown_below_with_statistics' or 'shown_right'.\n" }, "linkTemplate": { "type": "string", "description": "Link a hierarchy chart opens when you click a hexagon, with `{{column}}` placeholders.\n" }, "locationColumn": { "type": "string", "description": "Column holding the location on a map chart.\n" }, "locationLabel": { "type": "string", "description": "What a map chart's tooltip names, either the closest city or country or the value as sent. Usually 'automatic' or 'original_value'.\n" }, "max": { "type": "number", "description": "Upper bound of a gauge, the goal value.\n" }, "maxValue": { "type": "number", "description": "Highest value of a hierarchy chart's color scale.\n" }, "min": { "type": "number", "description": "Lower bound of a gauge.\n" }, "minValue": { "type": "number", "description": "Lowest value of a hierarchy chart's color scale.\n" }, "orientation": { "type": "string", "description": "Direction of the bars on a bar chart. Usually 'vertical' or 'horizontal'.\n" }, "palette": { "type": "string", "description": "Color scale of a hierarchy chart. Usually 'green_to_red' or 'red_to_green'.\n" }, "percentageHighlightColumns": { "type": "array", "items": { "type": "string" }, "description": "Table columns holding ratios from 0 to 1, shown with a bar.\n" }, "pointSizeColumn": { "type": "string", "description": "Column that sets each point's size on a scatter chart.\n" }, "projection": { "type": "string", "description": "Map projection of a map chart, such as 'mercator'.\n" }, "publishedCacheFor": { "type": "integer", "description": "Seconds a published chart's results are cached, 3 by default.\n" }, "publishedFormat": { "type": "string", "description": "Format a published chart is served in, 'json' by default.\n" }, "rowTemplates": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Live tail row format of each source, by source ID.\n" }, "sampling": { "type": "integer", "description": "Percentage of data the chart samples.\n" }, "seriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Color of each series, keyed by its \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e, as a hex color such as `#22c55e`.\n" }, "seriesColumn": { "type": "string", "description": "Column that splits the data into series. On a heatmap it's the Y axis column.\n" }, "seriesCustomUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`seriesUnit`\" pulumi-lang-dotnet=\"`SeriesUnit`\" pulumi-lang-go=\"`seriesUnit`\" pulumi-lang-python=\"`series_unit`\" pulumi-lang-yaml=\"`seriesUnit`\" pulumi-lang-java=\"`seriesUnit`\" pulumi-lang-hcl=\"`series_unit`\"\u003e`seriesUnit`\u003c/span\u003e is your own suffix.\n" }, "seriesOrder": { "type": "array", "items": { "type": "string" }, "description": "Order the series are shown in, by name.\n" }, "seriesUnit": { "type": "string", "description": "Unit of a heatmap's Y axis labels.\n" }, "showPreviousPeriod": { "type": "boolean", "description": "Whether a line chart also shows the previous period.\n" }, "stacking": { "type": "string", "description": "How series are stacked. Usually 'dont_stack', 'stack' or 'stack_to_100'.\n" }, "tableWidth": { "type": "integer", "description": "Width of the table the \u003cspan pulumi-lang-nodejs=\"`columnWidths`\" pulumi-lang-dotnet=\"`ColumnWidths`\" pulumi-lang-go=\"`columnWidths`\" pulumi-lang-python=\"`column_widths`\" pulumi-lang-yaml=\"`columnWidths`\" pulumi-lang-java=\"`columnWidths`\" pulumi-lang-hcl=\"`column_widths`\"\u003e`columnWidths`\u003c/span\u003e were saved for.\n" }, "text": { "type": "string", "description": "Markdown text of a text chart.\n" }, "timeColumn": { "type": "string", "description": "Column on the X axis, 'time' by default. For a category bar chart it's the grouping column.\n" }, "treatMissingValues": { "type": "string", "description": "How gaps in the data are drawn. Usually 'connected', 'disconnected', 'zero' or 'previous'.\n" }, "treatZeroValues": { "type": "string", "description": "How zero values are drawn, 'keep' or 'drop_disconnected'. Defaults to 'keep'.\n" }, "unit": { "type": "string", "description": "Unit the values are shown in, such as 'percent', 'bytes' or 'ms'. Table charts use \u003cspan pulumi-lang-nodejs=\"`columnUnits`\" pulumi-lang-dotnet=\"`ColumnUnits`\" pulumi-lang-go=\"`columnUnits`\" pulumi-lang-python=\"`column_units`\" pulumi-lang-yaml=\"`columnUnits`\" pulumi-lang-java=\"`columnUnits`\" pulumi-lang-hcl=\"`column_units`\"\u003e`columnUnits`\u003c/span\u003e instead.\n" }, "valueCategories": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/DashboardChartSettingsValueCategories:DashboardChartSettingsValueCategories" }, "description": "Label and color of each cell value of a categorized heatmap.\n" }, "valueColumns": { "type": "array", "items": { "type": "string" }, "description": "Result columns that hold the values to chart.\n" }, "xAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartSettingsXAxisAnnotation:DashboardChartSettingsXAxisAnnotation" }, "description": "Vertical lines drawn at values on the X axis, each with a label and color. A value is a time or a number, as the X axis reads it.\n" }, "xAxisType": { "type": "string", "description": "How the X axis is read. Usually 'time', \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" }, "yAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartSettingsYAxisAnnotation:DashboardChartSettingsYAxisAnnotation" }, "description": "Horizontal lines drawn at values on the Y axis, each with a label and color.\n" }, "yAxisAutoRange": { "type": "string", "description": "How a line chart fits its Y axis when no bounds are set. Usually 'include_zero' or 'fit_data'.\n" }, "yAxisMax": { "type": "number", "description": "Highest value on the Y axis.\n" }, "yAxisMin": { "type": "number", "description": "Lowest value on the Y axis.\n" }, "yAxisScale": { "type": "string", "description": "Scale of the Y axis. Usually 'linear' or 'log'.\n" }, "yAxisType": { "type": "string", "description": "How the Y axis of a scatter chart is read. Usually \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "colorGreenWords", "colorLowerThreshold", "colorMode", "colorRedWords", "colorUpperThreshold", "colorYellowWords", "columnUnits", "columnWidths", "customUnit", "decimalPlaces", "filteredReleases", "filteredSeries", "forceSourceSeries", "fresh", "funnelUnitName", "groupByColumns", "guessedSeriesColors", "heatmapColorMode", "label", "labelColumn", "legend", "linkTemplate", "locationColumn", "locationLabel", "max", "maxValue", "min", "minValue", "orientation", "palette", "percentageHighlightColumns", "pointSizeColumn", "projection", "publishedCacheFor", "publishedFormat", "rowTemplates", "sampling", "seriesColors", "seriesColumn", "seriesCustomUnit", "seriesOrder", "seriesUnit", "showPreviousPeriod", "stacking", "tableWidth", "text", "timeColumn", "treatMissingValues", "treatZeroValues", "unit", "valueCategories", "valueColumns", "xAxisAnnotations", "xAxisType", "yAxisAnnotations", "yAxisAutoRange", "yAxisMax", "yAxisMin", "yAxisScale", "yAxisType" ] } } }, "betterstack:index/DashboardChartSettingsColumnUnits:DashboardChartSettingsColumnUnits": { "properties": { "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "unit": { "type": "string", "description": "Unit the column's values are shown in, such as 'auto', 'percent' or 'bytes'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "customUnit", "unit" ] } } }, "betterstack:index/DashboardChartSettingsValueCategories:DashboardChartSettingsValueCategories": { "properties": { "color": { "type": "string", "description": "Color of the cells with the value, as a hex color such as `#22c55e`.\n" }, "label": { "type": "string", "description": "Text shown for the value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "color", "label" ] } } }, "betterstack:index/DashboardChartSettingsXAxisAnnotation:DashboardChartSettingsXAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "string", "description": "The X axis value the line is drawn at, a time or a number.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "color", "label", "value" ] } } }, "betterstack:index/DashboardChartSettingsYAxisAnnotation:DashboardChartSettingsYAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "number", "description": "The Y axis value the line is drawn at.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "color", "label", "value" ] } } }, "betterstack:index/DashboardChartSummary:DashboardChartSummary": { "properties": { "chartType": { "type": "string", "description": "The chart's type, 'line_chart', 'table_chart', 'bar_chart', 'number_chart', 'heatmap_chart', 'anomalies_chart', 'pie_chart', 'scatter_chart', 'gauge_chart', 'tail_chart', 'static_text_chart', 'map_chart', 'text_chart', 'funnel_chart', 'funnel_trend_chart' or 'hierarchy_chart'.\n" }, "h": { "type": "integer", "description": "The chart's height in grid rows.\n" }, "id": { "type": "string", "description": "The chart's ID.\n" }, "name": { "type": "string", "description": "The chart's name.\n" }, "w": { "type": "integer", "description": "The chart's width in grid columns, from '1' to '12'.\n" }, "x": { "type": "integer", "description": "The chart's horizontal position on the 12-column grid, from '0' at the left.\n" }, "y": { "type": "integer", "description": "The chart's vertical position on the grid, from '0' at the top.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "chartType", "h", "id", "name", "w", "x", "y" ] } } }, "betterstack:index/DashboardSectionSummary:DashboardSectionSummary": { "properties": { "collapsed": { "type": "boolean", "description": "Whether the section is collapsed.\n" }, "id": { "type": "string", "description": "The section's ID.\n" }, "name": { "type": "string", "description": "The section's name.\n" }, "y": { "type": "integer", "description": "The section's vertical position on the grid, from '0' at the top. A section spans the full width.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "collapsed", "id", "name", "y" ] } } }, "betterstack:index/DashboardVariable:DashboardVariable": { "properties": { "allowMultipleValues": { "type": "boolean", "description": "Whether a 'select_value' or 'select_with_sql' variable accepts more than one value at a time.\n" }, "defaultValues": { "type": "array", "items": { "type": "string" }, "description": "The variable's default values as strings, or an empty list when it has none.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardVariableFilter:DashboardVariableFilter" }, "description": "The saved filters of a 'select_predefined_sql' variable.\n" }, "name": { "type": "string", "description": "The name of the variable, used as `{{name}}` in queries.\n" }, "selectedLabel": { "type": "string", "description": "The label of the selected filter of a 'select_predefined_sql' variable. When not sent, the first filter is selected. A label that matches none of \u003cspan pulumi-lang-nodejs=\"`filters`\" pulumi-lang-dotnet=\"`Filters`\" pulumi-lang-go=\"`filters`\" pulumi-lang-python=\"`filters`\" pulumi-lang-yaml=\"`filters`\" pulumi-lang-java=\"`filters`\" pulumi-lang-hcl=\"`filters`\"\u003e`filters`\u003c/span\u003e is refused.\n" }, "sourceIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the sources a 'source' variable selects. Each must be one of your sources.\n" }, "sqlDefinition": { "type": "string", "description": "The SQL expression whose distinct values are the options of a 'select_with_sql' variable, such as `JSONExtractString(raw, 'service')`. The expression runs against the variable's source over the selected range.\n" }, "structuredValue": { "$ref": "#/types/betterstack:index/DashboardVariableStructuredValue:DashboardVariableStructuredValue", "description": "The variable's other settings, such as the selected sources of a 'source' variable in `canonicalSourceIds` and its services in `serviceIds`, or the saved filters of a 'select_predefined_sql' variable. Left out when not set.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "The variable's current values as strings, or an empty list when it has none. For a 'source' variable, the IDs of the selected sources.\n" }, "variableType": { "type": "string", "description": "The type of the variable, 'source', 'date', 'datetime', 'string', 'number', 'sql_expression', 'select_value', 'boolean', 'select_with_sql' or 'select_predefined_sql'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "allowMultipleValues", "defaultValues", "filters", "name", "selectedLabel", "sourceIds", "sqlDefinition", "structuredValue", "values", "variableType" ] } } }, "betterstack:index/DashboardVariableFilter:DashboardVariableFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "label", "sql" ] } } }, "betterstack:index/DashboardVariableStructuredValue:DashboardVariableStructuredValue": { "properties": { "canonicalSourceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected sources of a source variable. Source IDs in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e set them.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardVariableStructuredValueFilter:DashboardVariableStructuredValueFilter" }, "description": "Saved filters, each a label and the SQL that lists its values.\n" }, "selectedLabel": { "type": "string", "description": "Label of the selected value.\n" }, "serviceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected services of a source variable.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "canonicalSourceIds", "filters", "selectedLabel", "serviceIds" ] } } }, "betterstack:index/DashboardVariableStructuredValueFilter:DashboardVariableStructuredValueFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "label", "sql" ] } } }, "betterstack:index/ErrorsJiraIntegrationApplication:ErrorsJiraIntegrationApplication": { "properties": { "applicationId": { "type": "string", "description": "ID of an Error tracking application.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments whose errors the integration files work items for. Empty means every environment.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "applicationId", "environments" ] } } }, "betterstack:index/ErrorsJiraIntegrationNotifications:ErrorsJiraIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users. When this integration already filed a Jira work item for the error, we comment on it instead.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Jira work item for the error, we comment on it instead.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e. When this integration already filed a Jira work item for the error, we comment on it instead.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "occurrenceMilestones", "occurrenceThreshold", "spikes" ] } } }, "betterstack:index/ErrorsJiraIntegrationTagFilter:ErrorsJiraIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "tag", "values" ] } } }, "betterstack:index/ErrorsLinearIntegrationApplication:ErrorsLinearIntegrationApplication": { "properties": { "applicationId": { "type": "string", "description": "ID of an Error tracking application.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments whose errors the integration files issues for. Empty means every environment.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "applicationId", "environments" ] } } }, "betterstack:index/ErrorsLinearIntegrationNotifications:ErrorsLinearIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users. When this integration already filed a Linear issue for the error, we comment on it instead.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Linear issue for the error, we comment on it instead.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e. When this integration already filed a Linear issue for the error, we comment on it instead.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "occurrenceMilestones", "occurrenceThreshold", "spikes" ] } } }, "betterstack:index/ErrorsLinearIntegrationTagFilter:ErrorsLinearIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "tag", "values" ] } } }, "betterstack:index/ErrorsMicrosoftTeamsIntegrationNotifications:ErrorsMicrosoftTeamsIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "newReleases": { "type": "boolean", "description": "New release is observed.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e.\n" }, "spikeProtection": { "type": "boolean", "description": "Spike protection starts sampling exceptions.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "newReleases", "occurrenceMilestones", "occurrenceThreshold", "spikeProtection", "spikes" ] } } }, "betterstack:index/ErrorsMicrosoftTeamsIntegrationRoute:ErrorsMicrosoftTeamsIntegrationRoute": { "properties": { "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationRouteApplication:ErrorsMicrosoftTeamsIntegrationRouteApplication" }, "description": "Applications whose errors this route sends, each with its environments. Empty means any application.\n" }, "channels": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationRouteChannel:ErrorsMicrosoftTeamsIntegrationRouteChannel" }, "description": "Channels the route posts to. At least one.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "applications", "channels" ] } } }, "betterstack:index/ErrorsMicrosoftTeamsIntegrationRouteApplication:ErrorsMicrosoftTeamsIntegrationRouteApplication": { "properties": { "applicationId": { "type": "string", "description": "The ID of the application whose errors the route sends.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "The environments whose errors the route sends, such as 'production'. Empty means every environment.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "applicationId", "environments" ] } } }, "betterstack:index/ErrorsMicrosoftTeamsIntegrationRouteChannel:ErrorsMicrosoftTeamsIntegrationRouteChannel": { "properties": { "id": { "type": "string", "description": "Microsoft Teams channel ID of a standard channel in the team the app was added to.\n" }, "name": { "type": "string", "description": "Channel name, as Teams lists it.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "name" ] } } }, "betterstack:index/ErrorsMicrosoftTeamsIntegrationTagFilter:ErrorsMicrosoftTeamsIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "tag", "values" ] } } }, "betterstack:index/ErrorsSlackIntegrationApplication:ErrorsSlackIntegrationApplication": { "properties": { "applicationId": { "type": "string", "description": "ID of an Error tracking application.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments whose errors the integration posts. Empty means every environment.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "applicationId", "environments" ] } } }, "betterstack:index/ErrorsSlackIntegrationNotifications:ErrorsSlackIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "newReleases": { "type": "boolean", "description": "New release is observed.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e.\n" }, "spikeProtection": { "type": "boolean", "description": "Spike protection starts sampling exceptions.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "newReleases", "occurrenceMilestones", "occurrenceThreshold", "spikeProtection", "spikes" ] } } }, "betterstack:index/ErrorsSlackIntegrationTagFilter:ErrorsSlackIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "tag", "values" ] } } }, "betterstack:index/EscalationPolicyStep:EscalationPolicyStep": { "properties": { "actionType": { "type": "string", "description": "What the step does. Required on 'resolve_remove' steps, which accept only resolving or removing. On branching steps, the action applies when the incident matches. Defaults to running another policy when you set \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e, and to stopping otherwise. 'escalate_to_policy': Runs the escalation policy in \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e and stops this policy. 'resolve_incident': Resolves the incident and stops this policy. 'remove_incident': Removes the incident for good and stops this policy. 'do_not_escalate': Stops this policy.\n" }, "days": { "type": "array", "items": { "type": "string" }, "description": "The days on which the time window applies, out of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. Used on 'time_branching' steps and defaults to every day.\n" }, "escalationPolicyId": { "type": "string", "description": "The ID of another escalation policy in your organization to run when the incident matches. Used on 'time_branching' and 'metadata_branching' steps. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e.\n" }, "instructionsComment": { "type": "string", "description": "The instructions posted as a comment into the incident timeline. Supports Markdown, checkboxes like `- [ ] Step 1`, and values from the incident's metadata as `{key}`, such as `{server_region}`. Required on 'instructions' steps.\n" }, "instructionsReminderEnabled": { "type": "boolean", "description": "Whether to post a reminder periodically until every checkbox in the instructions is checked. Defaults to false.\n" }, "instructionsReminderIntervalHours": { "type": "integer", "description": "How often the reminder is posted, in hours, on 'instructions' steps with \u003cspan pulumi-lang-nodejs=\"`instructionsReminderEnabled`\" pulumi-lang-dotnet=\"`InstructionsReminderEnabled`\" pulumi-lang-go=\"`instructionsReminderEnabled`\" pulumi-lang-python=\"`instructions_reminder_enabled`\" pulumi-lang-yaml=\"`instructionsReminderEnabled`\" pulumi-lang-java=\"`instructionsReminderEnabled`\" pulumi-lang-hcl=\"`instructions_reminder_enabled`\"\u003e`instructionsReminderEnabled`\u003c/span\u003e on. At least '1', and '4' by default.\n" }, "metadataKey": { "type": "string", "description": "The incident metadata key the step checks. Required on 'metadata_branching' steps.\n" }, "metadataValues": { "type": "array", "items": { "$ref": "#/types/betterstack:index/EscalationPolicyStepMetadataValue:EscalationPolicyStepMetadataValue" }, "description": "The metadata values that match, at least one. Required on 'metadata_branching' steps. Each is `{type: \"String\", value}`, `{type: 'no_value'}` or a catalog item reference. 'no_value' matches when the key is missing or blank.\n" }, "policyMetadataKey": { "type": "string", "description": "A key in the incident's metadata that holds the escalation policy to run when the incident matches, instead of \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e. Used on 'time_branching' and 'metadata_branching' steps. If the key is missing or holds no policy, the policy stops.\n" }, "severityId": { "type": "string", "description": "The ID of the severity that sets how the step's members are notified. Required on 'escalation' steps. Get the severity ID via [List severities](https://betterstack.com/docs/uptime/api/list-all-severities/).\n" }, "stepMembers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/EscalationPolicyStepStepMember:EscalationPolicyStepStepMember" }, "description": "Who or what the step notifies, at least one member. Required on 'escalation' steps. Each member has a \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e, plus an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`metadataKey`\" pulumi-lang-dotnet=\"`MetadataKey`\" pulumi-lang-go=\"`metadataKey`\" pulumi-lang-python=\"`metadata_key`\" pulumi-lang-yaml=\"`metadataKey`\" pulumi-lang-java=\"`metadataKey`\" pulumi-lang-hcl=\"`metadata_key`\"\u003e`metadataKey`\u003c/span\u003e depending on the type.\n" }, "timeFrom": { "type": "string", "description": "Start of the time window, in `HH:MM` format. Required on 'time_branching' steps.\n" }, "timeTo": { "type": "string", "description": "End of the time window, in `HH:MM` format. Required on 'time_branching' steps.\n" }, "timezone": { "type": "string", "description": "The time zone of the time window. Required on 'time_branching' steps.\n" }, "type": { "type": "string", "description": "The step type. 'escalation': Notifies people or integrations. 'time_branching': Acts when the incident happens in a time window, and otherwise continues with the next step. 'metadata_branching': Acts when the incident's metadata matches a value, and otherwise continues with the next step. 'instructions': Posts instructions into the incident timeline. 'resolve_remove': Resolves or removes the incident.\n" }, "waitBefore": { "type": "integer", "description": "How long the step waits after the previous step, in seconds, from '0' to '691200', which is 8 days. Defaults to '0'. Leave it out when the step waits until a time of day with \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e.\n" }, "waitUntilDays": { "type": "array", "items": { "type": "string" }, "description": "The days on which \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e applies, out of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. Defaults to every day.\n" }, "waitUntilTime": { "type": "string", "description": "The time of day the step runs, in `HH:MM` format, instead of waiting \u003cspan pulumi-lang-nodejs=\"`waitBefore`\" pulumi-lang-dotnet=\"`WaitBefore`\" pulumi-lang-go=\"`waitBefore`\" pulumi-lang-python=\"`wait_before`\" pulumi-lang-yaml=\"`waitBefore`\" pulumi-lang-java=\"`waitBefore`\" pulumi-lang-hcl=\"`wait_before`\"\u003e`waitBefore`\u003c/span\u003e. Requires \u003cspan pulumi-lang-nodejs=\"`waitUntilTimezone`\" pulumi-lang-dotnet=\"`WaitUntilTimezone`\" pulumi-lang-go=\"`waitUntilTimezone`\" pulumi-lang-python=\"`wait_until_timezone`\" pulumi-lang-yaml=\"`waitUntilTimezone`\" pulumi-lang-java=\"`waitUntilTimezone`\" pulumi-lang-hcl=\"`wait_until_timezone`\"\u003e`waitUntilTimezone`\u003c/span\u003e. Responses show it in place of \u003cspan pulumi-lang-nodejs=\"`waitBefore`\" pulumi-lang-dotnet=\"`WaitBefore`\" pulumi-lang-go=\"`waitBefore`\" pulumi-lang-python=\"`wait_before`\" pulumi-lang-yaml=\"`waitBefore`\" pulumi-lang-java=\"`waitBefore`\" pulumi-lang-hcl=\"`wait_before`\"\u003e`waitBefore`\u003c/span\u003e on such steps.\n" }, "waitUntilTimezone": { "type": "string", "description": "The time zone of \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e, as a time zone name such as `London` or `Eastern Time (US \u0026 Canada)`.\n" } }, "type": "object", "required": [ "type" ], "language": { "nodejs": { "requiredOutputs": [ "actionType", "days", "escalationPolicyId", "instructionsComment", "instructionsReminderEnabled", "instructionsReminderIntervalHours", "metadataKey", "metadataValues", "policyMetadataKey", "severityId", "stepMembers", "timeFrom", "timeTo", "timezone", "type", "waitBefore", "waitUntilDays", "waitUntilTime", "waitUntilTimezone" ] } } }, "betterstack:index/EscalationPolicyStepMetadataValue:EscalationPolicyStepMetadataValue": { "properties": { "email": { "type": "string", "description": "A User item's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "The catalog item's name. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, 'no_value', or a catalog item's type, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. 'no_value' matches when the incident's metadata doesn't have the key or the key is empty.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/EscalationPolicyStepStepMember:EscalationPolicyStepStepMember": { "properties": { "email": { "type": "string", "description": "The e-mail of a 'user' member, instead of its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e.\n" }, "id": { "type": "string", "description": "The ID of the member's target. Required for 'user' unless \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e is set, and for 'policy', 'ai_sre' and every type that notifies one integration. A 'user' member is 'u123' or their e-mail, and responses return 'u123'. A 'current_on_call' member accepts the ID of an on-call schedule to notify instead of your team's default schedule. An 'entire_team' member accepts another team in the organization, as its ID such as 't123'. Responses return it the same way. Both come back without an ID when they use the policy's own team. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "metadataKey": { "type": "string", "description": "For an 'incident_metadata' member, the incident metadata key that says who to notify. The member notifies the users, teams, on-call schedules, escalation policies and integrations stored under that key.\n" }, "type": { "type": "string", "description": "The member type. 'current_on_call' notifies whoever is on call, and 'entire_team' everyone in the team. 'user' notifies one person, 'policy' runs another escalation policy, 'incident_metadata' notifies the people or integrations the incident's metadata names under \u003cspan pulumi-lang-nodejs=\"`metadataKey`\" pulumi-lang-dotnet=\"`MetadataKey`\" pulumi-lang-go=\"`metadataKey`\" pulumi-lang-python=\"`metadata_key`\" pulumi-lang-yaml=\"`metadataKey`\" pulumi-lang-java=\"`metadataKey`\" pulumi-lang-hcl=\"`metadata_key`\"\u003e`metadataKey`\u003c/span\u003e, and 'ai_sre' starts an AI SRE investigation. A member can also be one integration, with type 'webhook', 'email_integration', 'slack_integration', 'linear_integration', 'jira_integration', 'halo_psa_integration', 'microsoft_teams_integration', 'pagerduty_integration', 'zapier_webhook', 'zoom_integration' or 'google_meet_integration'. Or it can be every integration of one kind, with type 'all_slack_integrations', 'all_linear_integrations', 'all_jira_integrations', 'all_microsoft_teams_integrations', 'all_zapier_integrations', 'all_pagerduty_integrations', 'all_webhook_integrations', 'all_email_integrations', 'all_splunk_on_call_integrations', 'all_incident_io_integrations', 'all_zoom_integrations' or 'all_google_meet_integrations'.\n" } }, "type": "object", "required": [ "type" ], "language": { "nodejs": { "requiredOutputs": [ "email", "id", "metadataKey", "type" ] } } }, "betterstack:index/ExplorationChart:ExplorationChart": { "properties": { "chartType": { "type": "string", "description": "Chart type. A funnel chart can only be switched to a funnel trend chart, which shows the funnel over time, and back. 'line_chart': Accepts 'sql_expression' and 'tail_query' queries. 'table_chart': Accepts 'sql_expression' queries. 'bar_chart': Accepts 'sql_expression' and 'tail_query' queries. 'number_chart': Accepts 'sql_expression' and 'tail_query' queries. 'heatmap_chart': Accepts 'sql_expression' queries. 'anomalies_chart': Accepts 'tail_query' queries. 'pie_chart': Accepts 'sql_expression' queries. 'scatter_chart': Accepts 'sql_expression' queries. 'gauge_chart': Accepts 'sql_expression' and 'tail_query' queries. 'tail_chart': Accepts 'tail_query' queries. 'static_text_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query. 'map_chart': Accepts 'sql_expression' queries. 'text_chart': Accepts 'sql_expression' and 'tail_query' queries. 'funnel_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query. 'funnel_trend_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query. 'hierarchy_chart': Accepts 'sql_expression' queries.\n" }, "description": { "type": "string", "description": "The chart's description, or null when it has none.\n" }, "name": { "type": "string", "description": "The chart's name. Until you name the exploration, \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e holds a generated name instead.\n" }, "settings": { "$ref": "#/types/betterstack:index/ExplorationChartSettings:ExplorationChartSettings", "description": "Display settings for the chart type, such as unit, axes, legend, stacking and decimal places. An update replaces all of them.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "chartType", "description", "name", "settings" ] } } }, "betterstack:index/ExplorationChartSettings:ExplorationChartSettings": { "properties": { "colorGreenWords": { "type": "string", "description": "Values a number chart shows in green, separated by commas.\n" }, "colorLowerThreshold": { "type": "number", "description": "Lower threshold of a number chart's colors.\n" }, "colorMode": { "type": "string", "description": "How a number chart colors its value. Usually 'auto', 'high_green', 'high_red' or 'specific_words'.\n" }, "colorRedWords": { "type": "string", "description": "Values a number chart shows in red, separated by commas.\n" }, "colorUpperThreshold": { "type": "number", "description": "Upper threshold of a number chart's colors.\n" }, "colorYellowWords": { "type": "string", "description": "Values a number chart shows in yellow, separated by commas.\n" }, "columnUnits": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/ExplorationChartSettingsColumnUnits:ExplorationChartSettingsColumnUnits" }, "description": "Unit of each table column, by column name.\n" }, "columnWidths": { "type": "object", "additionalProperties": { "type": "number" }, "description": "Width of each table column, by column name, as the chart editor saves it.\n" }, "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "decimalPlaces": { "type": "integer", "description": "Number of decimal places shown.\n" }, "filteredReleases": { "type": "array", "items": { "type": "string" }, "description": "Releases the chart shows.\n" }, "filteredSeries": { "type": "array", "items": { "type": "string" }, "description": "Series the chart shows, by name.\n" }, "forceSourceSeries": { "type": "boolean", "description": "Whether the chart shows one series per source.\n" }, "fresh": { "type": "boolean", "description": "Whether the chart skips cached results.\n" }, "funnelUnitName": { "type": "string", "description": "Word a funnel chart counts in, such as 'people'.\n" }, "groupByColumns": { "type": "array", "items": { "type": "string" }, "description": "Up to two columns a hierarchy chart groups its hexagons by.\n" }, "guessedSeriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Colors the chart picked for its series, keyed by \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e.\n" }, "heatmapColorMode": { "type": "string", "description": "How a heatmap colors its cells. Usually 'gradient' or 'categorized'.\n" }, "label": { "type": "string", "description": "A legend placement the chart editor saves next to \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e, such as 'shown_below'. Charts ignore it and place the legend by \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e.\n" }, "labelColumn": { "type": "string", "description": "Column that names each hexagon on a hierarchy chart.\n" }, "legend": { "type": "string", "description": "Where the legend is shown. Usually 'hidden', 'shown_below', 'shown_below_with_statistics' or 'shown_right'.\n" }, "linkTemplate": { "type": "string", "description": "Link a hierarchy chart opens when you click a hexagon, with `{{column}}` placeholders.\n" }, "locationColumn": { "type": "string", "description": "Column holding the location on a map chart.\n" }, "locationLabel": { "type": "string", "description": "What a map chart's tooltip names, either the closest city or country or the value as sent. Usually 'automatic' or 'original_value'.\n" }, "max": { "type": "number", "description": "Upper bound of a gauge, the goal value.\n" }, "maxValue": { "type": "number", "description": "Highest value of a hierarchy chart's color scale.\n" }, "min": { "type": "number", "description": "Lower bound of a gauge.\n" }, "minValue": { "type": "number", "description": "Lowest value of a hierarchy chart's color scale.\n" }, "orientation": { "type": "string", "description": "Direction of the bars on a bar chart. Usually 'vertical' or 'horizontal'.\n" }, "palette": { "type": "string", "description": "Color scale of a hierarchy chart. Usually 'green_to_red' or 'red_to_green'.\n" }, "percentageHighlightColumns": { "type": "array", "items": { "type": "string" }, "description": "Table columns holding ratios from 0 to 1, shown with a bar.\n" }, "pointSizeColumn": { "type": "string", "description": "Column that sets each point's size on a scatter chart.\n" }, "projection": { "type": "string", "description": "Map projection of a map chart, such as 'mercator'.\n" }, "publishedCacheFor": { "type": "integer", "description": "Seconds a published chart's results are cached, 3 by default.\n" }, "publishedFormat": { "type": "string", "description": "Format a published chart is served in, 'json' by default.\n" }, "rowTemplates": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Live tail row format of each source, by source ID.\n" }, "sampling": { "type": "integer", "description": "Percentage of data the chart samples.\n" }, "seriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Color of each series, keyed by its \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e, as a hex color such as `#22c55e`.\n" }, "seriesColumn": { "type": "string", "description": "Column that splits the data into series. On a heatmap it's the Y axis column.\n" }, "seriesCustomUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`seriesUnit`\" pulumi-lang-dotnet=\"`SeriesUnit`\" pulumi-lang-go=\"`seriesUnit`\" pulumi-lang-python=\"`series_unit`\" pulumi-lang-yaml=\"`seriesUnit`\" pulumi-lang-java=\"`seriesUnit`\" pulumi-lang-hcl=\"`series_unit`\"\u003e`seriesUnit`\u003c/span\u003e is your own suffix.\n" }, "seriesOrder": { "type": "array", "items": { "type": "string" }, "description": "Order the series are shown in, by name.\n" }, "seriesUnit": { "type": "string", "description": "Unit of a heatmap's Y axis labels.\n" }, "showPreviousPeriod": { "type": "boolean", "description": "Whether a line chart also shows the previous period.\n" }, "stacking": { "type": "string", "description": "How series are stacked. Usually 'dont_stack', 'stack' or 'stack_to_100'.\n" }, "tableWidth": { "type": "integer", "description": "Width of the table the \u003cspan pulumi-lang-nodejs=\"`columnWidths`\" pulumi-lang-dotnet=\"`ColumnWidths`\" pulumi-lang-go=\"`columnWidths`\" pulumi-lang-python=\"`column_widths`\" pulumi-lang-yaml=\"`columnWidths`\" pulumi-lang-java=\"`columnWidths`\" pulumi-lang-hcl=\"`column_widths`\"\u003e`columnWidths`\u003c/span\u003e were saved for.\n" }, "text": { "type": "string", "description": "Markdown text of a text chart.\n" }, "timeColumn": { "type": "string", "description": "Column on the X axis, 'time' by default. For a category bar chart it's the grouping column.\n" }, "treatMissingValues": { "type": "string", "description": "How gaps in the data are drawn. Usually 'connected', 'disconnected', 'zero' or 'previous'.\n" }, "treatZeroValues": { "type": "string", "description": "How zero values are drawn, 'keep' or 'drop_disconnected'. Defaults to 'keep'.\n" }, "unit": { "type": "string", "description": "Unit the values are shown in, such as 'percent', 'bytes' or 'ms'. Table charts use \u003cspan pulumi-lang-nodejs=\"`columnUnits`\" pulumi-lang-dotnet=\"`ColumnUnits`\" pulumi-lang-go=\"`columnUnits`\" pulumi-lang-python=\"`column_units`\" pulumi-lang-yaml=\"`columnUnits`\" pulumi-lang-java=\"`columnUnits`\" pulumi-lang-hcl=\"`column_units`\"\u003e`columnUnits`\u003c/span\u003e instead.\n" }, "valueCategories": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/ExplorationChartSettingsValueCategories:ExplorationChartSettingsValueCategories" }, "description": "Label and color of each cell value of a categorized heatmap.\n" }, "valueColumns": { "type": "array", "items": { "type": "string" }, "description": "Result columns that hold the values to chart.\n" }, "xAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationChartSettingsXAxisAnnotation:ExplorationChartSettingsXAxisAnnotation" }, "description": "Vertical lines drawn at values on the X axis, each with a label and color. A value is a time or a number, as the X axis reads it.\n" }, "xAxisType": { "type": "string", "description": "How the X axis is read. Usually 'time', \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" }, "yAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationChartSettingsYAxisAnnotation:ExplorationChartSettingsYAxisAnnotation" }, "description": "Horizontal lines drawn at values on the Y axis, each with a label and color.\n" }, "yAxisAutoRange": { "type": "string", "description": "How a line chart fits its Y axis when no bounds are set. Usually 'include_zero' or 'fit_data'.\n" }, "yAxisMax": { "type": "number", "description": "Highest value on the Y axis.\n" }, "yAxisMin": { "type": "number", "description": "Lowest value on the Y axis.\n" }, "yAxisScale": { "type": "string", "description": "Scale of the Y axis. Usually 'linear' or 'log'.\n" }, "yAxisType": { "type": "string", "description": "How the Y axis of a scatter chart is read. Usually \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "colorGreenWords", "colorLowerThreshold", "colorMode", "colorRedWords", "colorUpperThreshold", "colorYellowWords", "columnUnits", "columnWidths", "customUnit", "decimalPlaces", "filteredReleases", "filteredSeries", "forceSourceSeries", "fresh", "funnelUnitName", "groupByColumns", "guessedSeriesColors", "heatmapColorMode", "label", "labelColumn", "legend", "linkTemplate", "locationColumn", "locationLabel", "max", "maxValue", "min", "minValue", "orientation", "palette", "percentageHighlightColumns", "pointSizeColumn", "projection", "publishedCacheFor", "publishedFormat", "rowTemplates", "sampling", "seriesColors", "seriesColumn", "seriesCustomUnit", "seriesOrder", "seriesUnit", "showPreviousPeriod", "stacking", "tableWidth", "text", "timeColumn", "treatMissingValues", "treatZeroValues", "unit", "valueCategories", "valueColumns", "xAxisAnnotations", "xAxisType", "yAxisAnnotations", "yAxisAutoRange", "yAxisMax", "yAxisMin", "yAxisScale", "yAxisType" ] } } }, "betterstack:index/ExplorationChartSettingsColumnUnits:ExplorationChartSettingsColumnUnits": { "properties": { "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "unit": { "type": "string", "description": "Unit the column's values are shown in, such as 'auto', 'percent' or 'bytes'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "customUnit", "unit" ] } } }, "betterstack:index/ExplorationChartSettingsValueCategories:ExplorationChartSettingsValueCategories": { "properties": { "color": { "type": "string", "description": "Color of the cells with the value, as a hex color such as `#22c55e`.\n" }, "label": { "type": "string", "description": "Text shown for the value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "color", "label" ] } } }, "betterstack:index/ExplorationChartSettingsXAxisAnnotation:ExplorationChartSettingsXAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "string", "description": "The X axis value the line is drawn at, a time or a number.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "color", "label", "value" ] } } }, "betterstack:index/ExplorationChartSettingsYAxisAnnotation:ExplorationChartSettingsYAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "number", "description": "The Y axis value the line is drawn at.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "color", "label", "value" ] } } }, "betterstack:index/ExplorationQuery:ExplorationQuery": { "properties": { "coordinates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryCoordinate:ExplorationQueryCoordinate" }, "description": "Coordinate blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryFilter:ExplorationQueryFilter" }, "description": "Filter blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "funnelQuery": { "$ref": "#/types/betterstack:index/ExplorationQueryFunnelQuery:ExplorationQueryFunnelQuery", "description": "A funnel's steps, session field and breakdown. Present only for \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e queries. An update changes only the fields you send.\n" }, "groupBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryGroupBy:ExplorationQueryGroupBy" }, "description": "Grouping blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "having": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryHaving:ExplorationQueryHaving" }, "description": "Having blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "id": { "type": "string", "description": "The query's ID.\n" }, "name": { "type": "string", "description": "The query's name.\n" }, "orderBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryOrderBy:ExplorationQueryOrderBy" }, "description": "Ordering blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "pointSize": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryPointSize:ExplorationQueryPointSize" }, "description": "Point size blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "pqlQuery": { "type": "string", "description": "The PQL the query is written in. Present only for 'pql_expression' queries.\n" }, "queryType": { "type": "string", "description": "Query type. A read-only query can't be edited, only replaced with a writable one. Responses can also hold 'promql_query', 'promql_v2_query' and 'promql_via_llm' for queries made in the web app. 'sql_expression': A query written in SQL. You can write it through the API. 'tail_query': The filter of a tail chart. You can write it through the API. \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e: The text of a 'static_text_chart'. You can write it through the API. 'pql_expression': A query written in PQL. Read-only. 'tail_query_builder': A tail chart's query made in the query builder. Read-only. 'query_builder': A query made in the query builder. Read-only. \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e: A funnel's one query. You can write it through the API.\n" }, "sourceVariable": { "type": "string", "description": "The sources the query reads, either the name of a 'source' variable, such as 'source', or `source:` followed by specific sources. Defaults to 'source' on create. Omitted when not set.\n" }, "sqlQuery": { "type": "string", "description": "The SQL the query runs. Present for 'sql_expression', 'pql_expression', 'query_builder', 'tail_query_builder' and \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e queries, and omitted when not set. Read-only except for 'sql_expression'.\n" }, "staticText": { "type": "string", "description": "The query's Markdown content. Present only for \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e queries, and omitted when not set.\n" }, "where": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryWhere:ExplorationQueryWhere" }, "description": "Where blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "whereCondition": { "type": "string", "description": "The query's filter. Present only for 'tail_query' and 'tail_query_builder' queries, and omitted when not set.\n" }, "xAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryXAxis:ExplorationQueryXAxis" }, "description": "X-axis blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "yAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryYAxis:ExplorationQueryYAxis" }, "description": "Y-axis blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "coordinates", "filters", "funnelQuery", "groupBy", "having", "id", "name", "orderBy", "pointSize", "pqlQuery", "queryType", "sourceVariable", "sqlQuery", "staticText", "where", "whereCondition", "xAxes", "yAxes" ] } } }, "betterstack:index/ExplorationQueryCoordinate:ExplorationQueryCoordinate": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryFilter:ExplorationQueryFilter": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryFunnelQuery:ExplorationQueryFunnelQuery": { "properties": { "breakdown": { "$ref": "#/types/betterstack:index/ExplorationQueryFunnelQueryBreakdown:ExplorationQueryFunnelQueryBreakdown", "description": "The breakdown the funnel is split by, with its field in \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e.\n" }, "breakdownField": { "type": "string", "description": "Field each step is split by, such as `contexts.browser.name`. An empty value removes the breakdown.\n" }, "sessionField": { "type": "string", "description": "Field that ties one journey's events together. Defaults to 'session_id'. Use `user.id` to follow an identified user. An empty value resets it to 'session_id'.\n" }, "steps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQueryFunnelQueryStep:ExplorationQueryFunnelQueryStep" }, "description": "The funnel's steps in journey order, 2 to 32. An update with \u003cspan pulumi-lang-nodejs=\"`steps`\" pulumi-lang-dotnet=\"`Steps`\" pulumi-lang-go=\"`steps`\" pulumi-lang-python=\"`steps`\" pulumi-lang-yaml=\"`steps`\" pulumi-lang-java=\"`steps`\" pulumi-lang-hcl=\"`steps`\"\u003e`steps`\u003c/span\u003e replaces every step.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "breakdown", "breakdownField", "sessionField", "steps" ] } } }, "betterstack:index/ExplorationQueryFunnelQueryBreakdown:ExplorationQueryFunnelQueryBreakdown": { "properties": { "type": { "type": "string", "description": "The type of the breakdown field, always 'string'.\n" }, "value": { "type": "string", "description": "The field each step is split by, such as `contexts.browser.name`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "type", "value" ] } } }, "betterstack:index/ExplorationQueryFunnelQueryStep:ExplorationQueryFunnelQueryStep": { "properties": { "conditions": { "type": "string", "description": "Live tail query that the step's events match, such as `payload.meta.path=\"/cart\"`.\n" }, "name": { "type": "string", "description": "Step name shown on the chart. Defaults to `Step \u003cn\u003e`.\n" } }, "type": "object", "required": [ "conditions" ], "language": { "nodejs": { "requiredOutputs": [ "conditions", "name" ] } } }, "betterstack:index/ExplorationQueryGroupBy:ExplorationQueryGroupBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryHaving:ExplorationQueryHaving": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryOrderBy:ExplorationQueryOrderBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryPointSize:ExplorationQueryPointSize": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryWhere:ExplorationQueryWhere": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryXAxis:ExplorationQueryXAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationQueryYAxis:ExplorationQueryYAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ] } } }, "betterstack:index/ExplorationVariable:ExplorationVariable": { "properties": { "allowMultipleValues": { "type": "boolean", "description": "Whether a 'select_value' or 'select_with_sql' variable accepts more than one value at a time.\n" }, "defaultValues": { "type": "array", "items": { "type": "string" }, "description": "The variable's default values as strings, or an empty array when it has none.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationVariableFilter:ExplorationVariableFilter" }, "description": "The saved filters of a 'select_predefined_sql' variable.\n" }, "name": { "type": "string", "description": "The variable's name, used as `{{name}}` in queries.\n" }, "selectedLabel": { "type": "string", "description": "The label of the selected filter of a 'select_predefined_sql' variable. When not sent, the first filter is selected. A label that matches none of \u003cspan pulumi-lang-nodejs=\"`filters`\" pulumi-lang-dotnet=\"`Filters`\" pulumi-lang-go=\"`filters`\" pulumi-lang-python=\"`filters`\" pulumi-lang-yaml=\"`filters`\" pulumi-lang-java=\"`filters`\" pulumi-lang-hcl=\"`filters`\"\u003e`filters`\u003c/span\u003e is refused.\n" }, "sourceIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the sources a 'source' variable selects. Each must be one of your sources.\n" }, "sqlDefinition": { "type": "string", "description": "The SQL expression whose distinct values are the options of a 'select_with_sql' variable, such as `JSONExtractString(raw, 'service')`. The expression runs against the variable's source over the selected range.\n" }, "structuredValue": { "$ref": "#/types/betterstack:index/ExplorationVariableStructuredValue:ExplorationVariableStructuredValue", "description": "The variable's other settings, such as the selected sources of a 'source' variable in `canonicalSourceIds` and its services in `serviceIds`, or the saved filters of a 'select_predefined_sql' variable. Left out when not set.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "The variable's current values as strings, or an empty array when it has none. For a 'source' variable, these are the IDs of the selected sources.\n" }, "variableType": { "type": "string", "description": "Variable kind. Valid values: 'source', 'date', 'datetime', 'string', 'number', 'sql_expression', 'select_value', 'boolean', 'select_with_sql', 'multi_select_with_sql', 'select_predefined_sql'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "allowMultipleValues", "defaultValues", "filters", "name", "selectedLabel", "sourceIds", "sqlDefinition", "structuredValue", "values", "variableType" ] } } }, "betterstack:index/ExplorationVariableFilter:ExplorationVariableFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "label", "sql" ] } } }, "betterstack:index/ExplorationVariableStructuredValue:ExplorationVariableStructuredValue": { "properties": { "canonicalSourceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected sources of a 'source' variable. Source IDs in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e set them.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationVariableStructuredValueFilter:ExplorationVariableStructuredValueFilter" }, "description": "Saved filters, each a label and the SQL that lists its values.\n" }, "selectedLabel": { "type": "string", "description": "Label of the selected value.\n" }, "serviceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected services of a 'source' variable.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "canonicalSourceIds", "filters", "selectedLabel", "serviceIds" ] } } }, "betterstack:index/ExplorationVariableStructuredValueFilter:ExplorationVariableStructuredValueFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "label", "sql" ] } } }, "betterstack:index/FirewallRuleSummary:FirewallRuleSummary": { "properties": { "direction": { "type": "string", "description": "Which traffic the rule matches, 'inbound' or 'outbound'.\n" }, "id": { "type": "string", "description": "The rule's ID, a UUID.\n" }, "ipAddresses": { "type": "array", "items": { "type": "string" }, "description": "The addresses the rule applies to, in CIDR notation.\n" }, "portFrom": { "type": "integer", "description": "The first port of the range.\n" }, "portTo": { "type": "integer", "description": "The last port of the range, or null when the rule matches only \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e.\n" }, "protocol": { "type": "string", "description": "The IP protocol the rule matches. 'any' matches every protocol.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "direction", "id", "ipAddresses", "portFrom", "portTo", "protocol" ] } } }, "betterstack:index/HeartbeatMetadata:HeartbeatMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/HeartbeatMetadataValue:HeartbeatMetadataValue" } } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "values" ] } } }, "betterstack:index/HeartbeatMetadataValue:HeartbeatMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField:IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedRule:IncidentsAmazonSnsIntegrationAcknowledgedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Which part of the notification the rule checks. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationCauseField:IncidentsAmazonSnsIntegrationCauseField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationMetadata:IncidentsAmazonSnsIntegrationMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationMetadataValue:IncidentsAmazonSnsIntegrationMetadataValue" } } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "values" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationMetadataValue:IncidentsAmazonSnsIntegrationMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationOtherAcknowledgedField:IncidentsAmazonSnsIntegrationOtherAcknowledgedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationOtherResolvedField:IncidentsAmazonSnsIntegrationOtherResolvedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationOtherStartedField:IncidentsAmazonSnsIntegrationOtherStartedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationResolvedAlertIdField:IncidentsAmazonSnsIntegrationResolvedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationResolvedRule:IncidentsAmazonSnsIntegrationResolvedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Which part of the notification the rule checks. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationStartedAlertIdField:IncidentsAmazonSnsIntegrationStartedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationStartedRule:IncidentsAmazonSnsIntegrationStartedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Which part of the notification the rule checks. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ] } } }, "betterstack:index/IncidentsAmazonSnsIntegrationTitleField:IncidentsAmazonSnsIntegrationTitleField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField:IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedRule:IncidentsIncomingEmailIntegrationAcknowledgedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the e-mail this rule matches. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "updatedAt" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationCauseField:IncidentsIncomingEmailIntegrationCauseField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationMetadata:IncidentsIncomingEmailIntegrationMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationMetadataValue:IncidentsIncomingEmailIntegrationMetadataValue" } } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "values" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationMetadataValue:IncidentsIncomingEmailIntegrationMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationOtherAcknowledgedField:IncidentsIncomingEmailIntegrationOtherAcknowledgedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationOtherResolvedField:IncidentsIncomingEmailIntegrationOtherResolvedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationOtherStartedField:IncidentsIncomingEmailIntegrationOtherStartedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationResolvedAlertIdField:IncidentsIncomingEmailIntegrationResolvedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationResolvedRule:IncidentsIncomingEmailIntegrationResolvedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the e-mail this rule matches. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "updatedAt" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationStartedAlertIdField:IncidentsIncomingEmailIntegrationStartedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationStartedRule:IncidentsIncomingEmailIntegrationStartedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the e-mail this rule matches. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "updatedAt" ] } } }, "betterstack:index/IncidentsIncomingEmailIntegrationTitleField:IncidentsIncomingEmailIntegrationTitleField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField:IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedRule:IncidentsIncomingWebhookIntegrationAcknowledgedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the payload this rule matches. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationCauseField:IncidentsIncomingWebhookIntegrationCauseField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationMetadata:IncidentsIncomingWebhookIntegrationMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationMetadataValue:IncidentsIncomingWebhookIntegrationMetadataValue" } } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "values" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationMetadataValue:IncidentsIncomingWebhookIntegrationMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationOtherAcknowledgedField:IncidentsIncomingWebhookIntegrationOtherAcknowledgedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationOtherResolvedField:IncidentsIncomingWebhookIntegrationOtherResolvedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationOtherStartedField:IncidentsIncomingWebhookIntegrationOtherStartedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType", "name" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationResolvedAlertIdField:IncidentsIncomingWebhookIntegrationResolvedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationResolvedRule:IncidentsIncomingWebhookIntegrationResolvedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the payload this rule matches. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationStartedAlertIdField:IncidentsIncomingWebhookIntegrationStartedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationStartedRule:IncidentsIncomingWebhookIntegrationStartedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the payload this rule matches. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "matchType", "ruleTarget" ], "language": { "nodejs": { "requiredOutputs": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ] } } }, "betterstack:index/IncidentsIncomingWebhookIntegrationTitleField:IncidentsIncomingWebhookIntegrationTitleField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "fieldTarget", "matchType" ], "language": { "nodejs": { "requiredOutputs": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ] } } }, "betterstack:index/IncidentsLinearIntegrationLinearLabel:IncidentsLinearIntegrationLinearLabel": { "properties": { "id": { "type": "string", "description": "ID of the Linear label.\n" }, "name": { "type": "string", "description": "The label's name in Linear when it was set.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "name" ] } } }, "betterstack:index/IncidentsOutgoingEmailIntegrationRecipient:IncidentsOutgoingEmailIntegrationRecipient": { "properties": { "email": { "type": "string", "description": "The recipient's e-mail address.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email" ] } } }, "betterstack:index/IncidentsOutgoingEmailIntegrationTemplate:IncidentsOutgoingEmailIntegrationTemplate": { "properties": { "body": { "type": "string", "description": "The e-mail body in Markdown, up to 20,000 characters. Supports the same variables as \u003cspan pulumi-lang-nodejs=\"`subject`\" pulumi-lang-dotnet=\"`Subject`\" pulumi-lang-go=\"`subject`\" pulumi-lang-python=\"`subject`\" pulumi-lang-yaml=\"`subject`\" pulumi-lang-java=\"`subject`\" pulumi-lang-hcl=\"`subject`\"\u003e`subject`\u003c/span\u003e. null uses the default template.\n" }, "incidentStage": { "type": "string", "description": "Incident stage this template applies to. Valid values: 'started', 'acknowledged', 'resolved', 'reopened', 'comment'.\n" }, "subject": { "type": "string", "description": "The e-mail subject, up to 500 characters. Supports incident variables such as `$NAME`, `$STATUS`, `$CAUSE` and `$INCIDENT_URL`, a metadata value as `$METADATA.Key`, all metadata as `$METADATA_ARRAY` and a recipient's attributes as `$RECIPIENT.\u003ckey\u003e`. null uses the default template.\n" }, "title": { "type": "string", "description": "The e-mail title, up to 500 characters. Supports the same variables as \u003cspan pulumi-lang-nodejs=\"`subject`\" pulumi-lang-dotnet=\"`Subject`\" pulumi-lang-go=\"`subject`\" pulumi-lang-python=\"`subject`\" pulumi-lang-yaml=\"`subject`\" pulumi-lang-java=\"`subject`\" pulumi-lang-hcl=\"`subject`\"\u003e`subject`\u003c/span\u003e. null uses the default template.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "body", "incidentStage", "subject", "title" ] } } }, "betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplate:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplate": { "properties": { "authUsername": { "type": "string", "description": "The username for basic authentication.\n", "secret": true }, "bodyTemplate": { "type": "string", "description": "Request body template, as text. Can use the [metadata variables](https://betterstack.com/docs/uptime/webhooks/#metadata-variables).\n" }, "headersTemplate": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate" }, "description": "Custom request headers, as a list of objects with \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. Header values are sent as written, without template variables.\n" }, "httpMethod": { "type": "string", "description": "The HTTP method of the request, 'post' by default. A GET request is sent without a body. Valid values: 'head', 'get', 'post', 'put', 'patch', 'options'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "authUsername", "bodyTemplate", "headersTemplate", "httpMethod" ] } } }, "betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes": { "properties": { "authPassword": { "type": "string", "description": "The password for basic authentication. Set both username and password, or neither.\n", "secret": true }, "authUsername": { "type": "string", "description": "The username for basic authentication. Set both username and password, or neither.\n", "secret": true }, "bodyTemplate": { "type": "string", "description": "Request body template, as text or as a JSON object. Reads return it as text. An 'incident_change' template can use `$INCIDENT_ID`, `$INCIDENT_URL`, `$NAME`, `$STATUS`, `$CAUSE`, `$URL`, `$HTTP_METHOD`, `$MONITOR_ID`, `$RESOURCE_ID`, `$RESOURCE_TYPE`, `$TEAM_ID`, `$TEAM_NAME`, `$INCIDENT_GROUP_ID`, `$REQUESTER`, `$STARTED_AT`, `$ACKNOWLEDGED_AT`, `$ACKNOWLEDGED_BY`, `$RESOLVED_AT`, `$RESOLVED_BY`, `$RESPONSE_URL`, `$RESPONSE_CONTENT`, `$RESPONSE_OPTIONS`, `$SCREENSHOT_URL`, `$INTEGRATION_IMAGE_URL`, `$REGIONS`, `$ESCALATION_POLICY_ID`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$INTEGRATION_ALERT_ID`, `$PLAYWRIGHT_SUMMARY`, `$COMMENT_ID`, `$COMMENT_CONTENT`, `$COMMENT_CREATED_AT`, `$COMMENT_AUTHOR_NAME` and `$COMMENT_AUTHOR_EMAIL`. A 'monitor_change' template can use `$MONITOR_ID`, `$PRONOUNCEABLE_NAME`, `$URL`, `$MONITOR_TYPE`, `$STATUS`, `$MONITOR_GROUP_ID`, `$ESCALATION_POLICY_ID`, `$EXPIRATION_ESCALATION_POLICY_ID`, `$LAST_CHECKED_AT`, `$REQUIRED_KEYWORD`, `$VERIFY_SSL`, `$CHECK_FREQUENCY`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$TEAM_WAIT`, `$HTTP_METHOD`, `$REQUEST_TIMEOUT`, `$RECOVERY_PERIOD`, `$REQUEST_BODY`, `$PAUSED_AT`, `$SSL_EXPIRATION`, `$DOMAIN_EXPIRATION`, `$REGIONS` and `$PORT`. An 'on_call_change' template can use `$MESSAGE`, `$EMAILS`, `$EMAILS_JSON_ARRAY`, `$ON_HOLIDAY_EMAILS`, `$ON_HOLIDAY_EMAILS_JSON_ARRAY`, `$CHANGE`, `$ON_CALL_CALENDAR_ID`, `$ON_CALL_CALENDAR_NAME` and `$DEFAULT_ON_CALL_CALENDAR`. Incident and monitor templates can also use the [metadata variables](https://betterstack.com/docs/uptime/webhooks/#metadata-variables). A time such as `$STARTED_AT` renders like `2026-07-01 12:00:00 UTC`, and the same name ending in `_ISO8601` renders it in ISO 8601. A variable that holds a list, such as `$REGIONS` or `$EMAILS_JSON_ARRAY`, renders as JSON, so put it in the template without quotes.\n" }, "headersTemplate": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate" }, "description": "Custom request headers, as a list of objects with \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. Header values are sent as written, without template variables.\n" }, "httpMethod": { "type": "string", "description": "The HTTP method of the request, 'post' by default. A GET request is sent without a body. Valid values: 'head', 'get', 'post', 'put', 'patch', 'options'.\n" }, "id": { "type": "string", "description": "ID of the template saved on the integration.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "authPassword", "authUsername", "bodyTemplate", "headersTemplate", "httpMethod", "id" ] } } }, "betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate": { "properties": { "name": { "type": "string", "description": "The header's name, such as `Content-Type`.\n" }, "value": { "type": "string", "description": "The header's value, sent as written.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "name", "value" ] } } }, "betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate": { "properties": { "name": { "type": "string", "description": "The header's name, such as `Content-Type`.\n" }, "value": { "type": "string", "description": "The header's value, sent as written.\n", "secret": true } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "name", "value" ] } } }, "betterstack:index/KafkaBroker:KafkaBroker": { "properties": { "diskUsedBytes": { "type": "integer" }, "hostname": { "type": "string" }, "id": { "type": "string" }, "lastSeenAt": { "type": "string" }, "nodeId": { "type": "string" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaBrokerPrivateIp:KafkaBrokerPrivateIp" } }, "status": { "type": "string", "description": "Valid values: 'provisioning', 'starting', 'running', 'down'.\n" }, "underReplicatedPartitions": { "type": "integer" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "diskUsedBytes", "hostname", "id", "lastSeenAt", "nodeId", "privateIps", "status", "underReplicatedPartitions" ] } } }, "betterstack:index/KafkaBrokerPrivateIp:KafkaBrokerPrivateIp": { "properties": { "ipAddress": { "type": "string" }, "networkId": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/KafkaEndpoint:KafkaEndpoint": { "properties": { "bootstrapServers": { "type": "string" }, "brokers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaEndpointBroker:KafkaEndpointBroker" } }, "hostname": { "type": "string" }, "port": { "type": "integer" }, "publicBootstrapServers": { "type": "string" }, "publicBrokers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaEndpointPublicBroker:KafkaEndpointPublicBroker" } }, "publicHostname": { "type": "string" }, "publicPort": { "type": "integer" }, "saslMechanism": { "type": "string" }, "securityProtocol": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "bootstrapServers", "brokers", "hostname", "port", "publicBootstrapServers", "publicBrokers", "publicHostname", "publicPort", "saslMechanism", "securityProtocol" ] } } }, "betterstack:index/KafkaEndpointBroker:KafkaEndpointBroker": { "properties": { "hostname": { "type": "string" }, "nodeId": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "hostname", "nodeId" ] } } }, "betterstack:index/KafkaEndpointPublicBroker:KafkaEndpointPublicBroker": { "properties": { "hostname": { "type": "string" }, "nodeId": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "hostname", "nodeId" ] } } }, "betterstack:index/KafkaTopicSummary:KafkaTopicSummary": { "properties": { "budgetBytes": { "type": "integer" }, "cleanupPolicy": { "type": "string", "description": "Valid values: 'delete', 'compact', 'compact_delete'.\n" }, "createdAt": { "type": "string" }, "id": { "type": "string" }, "maxMessageBytes": { "type": "integer" }, "name": { "type": "string" }, "partitions": { "type": "integer" }, "replicationFactor": { "type": "integer" }, "retentionBytes": { "type": "integer" }, "retentionMs": { "type": "integer" }, "updatedAt": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "budgetBytes", "cleanupPolicy", "createdAt", "id", "maxMessageBytes", "name", "partitions", "replicationFactor", "retentionBytes", "retentionMs", "updatedAt" ] } } }, "betterstack:index/KafkaUserPrivilege:KafkaUserPrivilege": { "properties": { "permission": { "type": "string", "description": "What the user can do on the matching topics. 'consume': Read and describe the matching topics, and join consumer groups. 'produce': Write and describe the matching topics, and use transactions and the `enable.idempotence` producer setting. 'produce_consume': Both 'consume' and 'produce'.\n" }, "topicPattern": { "type": "string", "description": "A topic name, or a prefix followed by a trailing `*`, made of letters, digits, dots, hyphens and underscores, up to 249 characters. `*` alone matches every topic.\n" } }, "type": "object", "required": [ "permission", "topicPattern" ] }, "betterstack:index/KafkaUserSummary:KafkaUserSummary": { "properties": { "createdAt": { "type": "string" }, "defaultUser": { "type": "boolean" }, "id": { "type": "string" }, "privileges": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaUserSummaryPrivilege:KafkaUserSummaryPrivilege" } }, "updatedAt": { "type": "string" }, "username": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "createdAt", "defaultUser", "id", "privileges", "updatedAt", "username" ] } } }, "betterstack:index/KafkaUserSummaryPrivilege:KafkaUserSummaryPrivilege": { "properties": { "permission": { "type": "string", "description": "Valid values: 'consume', 'produce', 'produce_consume'.\n" }, "topicPattern": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "permission", "topicPattern" ] } } }, "betterstack:index/KubernetesClusterEndpoint:KubernetesClusterEndpoint": { "properties": { "apiAllowedCidrs": { "type": "array", "items": { "type": "string" }, "description": "The IP ranges allowed to reach the cluster's Kubernetes API, as 1 to 50 IPv4 or IPv6 CIDRs.\n" }, "hostname": { "type": "string", "description": "The host name of the Kubernetes API.\n" }, "port": { "type": "integer", "description": "The port of the Kubernetes API, always '6443'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "apiAllowedCidrs", "hostname", "port" ] } } }, "betterstack:index/KubernetesClusterNodePool:KubernetesClusterNodePool": { "properties": { "id": { "type": "string", "description": "The node pool's ID, a UUID.\n" }, "labels": { "type": "string", "description": "The Kubernetes labels of the workers, as string pairs. Written as JSON, with jsonencode().\n" }, "name": { "type": "string", "description": "The node pool's name.\n" }, "nodeCount": { "type": "integer", "description": "How many workers the node pool should have.\n" }, "nodes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesClusterNodePoolNode:KubernetesClusterNodePoolNode" }, "description": "The node pool's workers.\n" }, "nodesReady": { "type": "integer", "description": "How many workers of the node pool are 'ready'.\n" }, "scaling": { "$ref": "#/types/betterstack:index/KubernetesClusterNodePoolScaling:KubernetesClusterNodePoolScaling", "description": "How a change of size is going while the node pool is \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e, or null otherwise.\n" }, "serverType": { "type": "string", "description": "The server type of the workers.\n" }, "status": { "type": "string", "description": "The node pool's state. A node pool that's 'active' can still have workers that aren't ready. Valid values: 'active', 'scaling', 'deleting', 'destroyed'.\n" }, "statusMessage": { "type": "string", "description": "Why the node pool has fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, or null.\n" }, "taints": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesClusterNodePoolTaint:KubernetesClusterNodePoolTaint" }, "description": "The Kubernetes taints of the workers.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "labels", "name", "nodeCount", "nodes", "nodesReady", "scaling", "serverType", "status", "statusMessage", "taints" ] } } }, "betterstack:index/KubernetesClusterNodePoolNode:KubernetesClusterNodePoolNode": { "properties": { "id": { "type": "string", "description": "The worker's ID.\n" }, "lastSeenAt": { "type": "string", "description": "When we last saw the worker ready.\n" }, "name": { "type": "string", "description": "The worker's name in Kubernetes.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the worker, or null while the worker is 'queued'.\n" }, "status": { "type": "string", "description": "The worker's state. Valid values: 'queued', 'provisioning', 'joining', 'ready', 'not_ready', 'draining', 'replacing', 'destroyed'.\n" }, "version": { "type": "string", "description": "The Kubernetes version the worker reports.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "lastSeenAt", "name", "serverId", "status", "version" ] } } }, "betterstack:index/KubernetesClusterNodePoolScaling:KubernetesClusterNodePoolScaling": { "properties": { "estimatedReadyAt": { "type": "string", "description": "When we expect the change to be done.\n" }, "from": { "type": "integer", "description": "The number of workers before the change.\n" }, "startedAt": { "type": "string", "description": "When the change started.\n" }, "to": { "type": "integer", "description": "The \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e to reach.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "estimatedReadyAt", "from", "startedAt", "to" ] } } }, "betterstack:index/KubernetesClusterNodePoolTaint:KubernetesClusterNodePoolTaint": { "properties": { "effect": { "type": "string", "description": "What the taint does to pods that don't tolerate it, as in Kubernetes. Valid values: `NoSchedule`, `PreferNoSchedule`, `NoExecute`.\n" }, "key": { "type": "string", "description": "The taint's key.\n" }, "value": { "type": "string", "description": "The taint's value, or null when the taint has none.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "effect", "key", "value" ] } } }, "betterstack:index/KubernetesNodePoolNode:KubernetesNodePoolNode": { "properties": { "id": { "type": "string", "description": "The worker's ID. Use it to recycle the worker.\n" }, "lastSeenAt": { "type": "string", "description": "When we last saw the worker ready.\n" }, "name": { "type": "string", "description": "The worker's name in Kubernetes.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the worker, or null while the worker is 'queued'.\n" }, "status": { "type": "string", "description": "The worker's state. 'queued': We'll create the worker. 'provisioning': We're creating the worker's server. 'joining': The worker is joining the cluster. 'ready': The worker is ready in Kubernetes. 'not_ready': The worker joined, but Kubernetes reports it as not ready. 'draining': We're moving pods off the worker before we remove it. 'replacing': We're creating a new worker to replace this one. 'destroyed': The worker is removed.\n" }, "version": { "type": "string", "description": "The Kubernetes version the worker reports.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "lastSeenAt", "name", "serverId", "status", "version" ] } } }, "betterstack:index/KubernetesNodePoolScaling:KubernetesNodePoolScaling": { "properties": { "estimatedReadyAt": { "type": "string", "description": "When we expect the change to be done.\n" }, "from": { "type": "integer", "description": "The number of workers before the change.\n" }, "startedAt": { "type": "string", "description": "When the change started.\n" }, "to": { "type": "integer", "description": "The \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e to reach.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "estimatedReadyAt", "from", "startedAt", "to" ] } } }, "betterstack:index/KubernetesNodePoolTaint:KubernetesNodePoolTaint": { "properties": { "effect": { "type": "string", "description": "What the taint does to pods that don't tolerate it, as in Kubernetes. Valid values: `NoSchedule`, `PreferNoSchedule`, `NoExecute`.\n" }, "key": { "type": "string", "description": "The taint's key.\n" }, "value": { "type": "string", "description": "The taint's value, or null when the taint has none.\n" } }, "type": "object", "required": [ "effect", "key" ], "language": { "nodejs": { "requiredOutputs": [ "effect", "key", "value" ] } } }, "betterstack:index/LoadBalancerPrivateIp:LoadBalancerPrivateIp": { "properties": { "ipAddress": { "type": "string" }, "networkId": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/LoadBalancerPublicIp:LoadBalancerPublicIp": { "properties": { "ip": { "type": "string" }, "type": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ip", "type" ] } } }, "betterstack:index/LoadBalancerServiceHealthCheck:LoadBalancerServiceHealthCheck": { "properties": { "domain": { "type": "string", "description": "The hostname we send in the `Host` header of an HTTP check.\n" }, "intervalSeconds": { "type": "integer", "description": "How often we check each target, 2–3600 seconds.\n" }, "path": { "type": "string", "description": "The path an HTTP check requests, starting with `/`, with no spaces or quotes.\n" }, "port": { "type": "integer", "description": "The port we check, 1–65535. Defaults to 'destination_port'.\n" }, "protocol": { "type": "string", "description": "How we check the targets. 'tcp': Checks that the target accepts a TCP connection. The default for 'tcp' and 'udp' services. 'http': Sends an HTTP request to the target. The default for 'http' and 'https' services. On a 'tcp' or 'udp' service, an 'http' check needs its own \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e, different from \u003cspan pulumi-lang-nodejs=\"`destinationPort`\" pulumi-lang-dotnet=\"`DestinationPort`\" pulumi-lang-go=\"`destinationPort`\" pulumi-lang-python=\"`destination_port`\" pulumi-lang-yaml=\"`destinationPort`\" pulumi-lang-java=\"`destinationPort`\" pulumi-lang-hcl=\"`destination_port`\"\u003e`destinationPort`\u003c/span\u003e.\n" }, "response": { "type": "string", "description": "Text the response must contain, at most 255 characters with no line breaks or quotes.\n" }, "retries": { "type": "integer", "description": "How many checks in a row must fail before a target is down, 1–10.\n" }, "statusCodes": { "type": "string", "description": "The status codes that pass, separated by commas. In a pattern, `?` matches one digit and `*` any number of digits.\n" }, "timeoutSeconds": { "type": "integer", "description": "The check timeout in seconds, 1–60.\n" }, "tls": { "type": "boolean", "description": "Whether checks connect with TLS.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "domain", "intervalSeconds", "path", "port", "protocol", "response", "retries", "statusCodes", "timeoutSeconds", "tls" ] } } }, "betterstack:index/LoadBalancerServiceSummary:LoadBalancerServiceSummary": { "properties": { "certificateIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the certificates the service presents.\n" }, "createdAt": { "type": "string", "description": "When the service was created.\n" }, "destinationPort": { "type": "integer", "description": "The port on the targets that traffic goes to.\n" }, "healthCheck": { "$ref": "#/types/betterstack:index/LoadBalancerServiceSummaryHealthCheck:LoadBalancerServiceSummaryHealthCheck", "description": "How the service checks that its targets are healthy.\n" }, "httpTimeoutSeconds": { "type": "integer", "description": "How long the service waits for a client or a target to send data during an HTTP request, in seconds.\n" }, "id": { "type": "string", "description": "The service's ID.\n" }, "listenPort": { "type": "integer", "description": "The port the service listens on.\n" }, "protocol": { "type": "string", "description": "The protocol the service listens for. 'tcp': Forwards TCP connections. 'http': Forwards HTTP requests. 'https': Decrypts HTTPS traffic with the service's certificates and forwards HTTP requests. 'udp': Forwards UDP traffic.\n" }, "proxyProtocol": { "type": "string", "description": "The PROXY protocol version the targets accept, or 'disabled'. Valid values: 'disabled', 'v1', 'v2'.\n" }, "redirectHttp": { "type": "boolean", "description": "Whether HTTP requests are redirected to this HTTPS service.\n" }, "stickyCookieLifetimeSeconds": { "type": "integer", "description": "How long the sticky session cookie lasts, in seconds.\n" }, "stickyCookieName": { "type": "string", "description": "The name of the sticky session cookie.\n" }, "stickySessions": { "type": "boolean", "description": "Whether a cookie sends each client to the same target.\n" }, "targetHealths": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerServiceSummaryTargetHealth:LoadBalancerServiceSummaryTargetHealth" }, "description": "The latest health of each target, updated about every 30 seconds.\n" }, "updatedAt": { "type": "string", "description": "When the service was last updated.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "certificateIds", "createdAt", "destinationPort", "healthCheck", "httpTimeoutSeconds", "id", "listenPort", "protocol", "proxyProtocol", "redirectHttp", "stickyCookieLifetimeSeconds", "stickyCookieName", "stickySessions", "targetHealths", "updatedAt" ] } } }, "betterstack:index/LoadBalancerServiceSummaryHealthCheck:LoadBalancerServiceSummaryHealthCheck": { "properties": { "domain": { "type": "string", "description": "The hostname we send in the `Host` header of an HTTP check.\n" }, "intervalSeconds": { "type": "integer", "description": "How often we check each target, in seconds.\n" }, "path": { "type": "string", "description": "The path an HTTP check requests.\n" }, "port": { "type": "integer", "description": "The port we check.\n" }, "protocol": { "type": "string", "description": "How we check the targets. 'tcp': Checks that the target accepts a TCP connection. 'http': Sends an HTTP request to the target.\n" }, "response": { "type": "string", "description": "Text the response must contain.\n" }, "retries": { "type": "integer", "description": "How many checks in a row must fail before a target is down.\n" }, "statusCodes": { "type": "string", "description": "The status codes that pass, separated by commas. In a pattern, `?` matches one digit and `*` any number of digits.\n" }, "timeoutSeconds": { "type": "integer", "description": "The check timeout in seconds.\n" }, "tls": { "type": "boolean", "description": "Whether checks connect with TLS.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "domain", "intervalSeconds", "path", "port", "protocol", "response", "retries", "statusCodes", "timeoutSeconds", "tls" ] } } }, "betterstack:index/LoadBalancerServiceSummaryTargetHealth:LoadBalancerServiceSummaryTargetHealth": { "properties": { "serverId": { "type": "string", "description": "The ID of the target server.\n" }, "serviceId": { "type": "string", "description": "The ID of the service.\n" }, "state": { "type": "string", "description": "Whether the target is healthy. 'up': The target passes its checks. 'down': The target fails its checks. 'unknown': We have no result for the target yet.\n" }, "stateChangedAt": { "type": "string", "description": "When \u003cspan pulumi-lang-nodejs=\"`state`\" pulumi-lang-dotnet=\"`State`\" pulumi-lang-go=\"`state`\" pulumi-lang-python=\"`state`\" pulumi-lang-yaml=\"`state`\" pulumi-lang-java=\"`state`\" pulumi-lang-hcl=\"`state`\"\u003e`state`\u003c/span\u003e last changed, or null.\n" }, "statusMessage": { "type": "string", "description": "Why the target is down, or null.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "serverId", "serviceId", "state", "stateChangedAt", "statusMessage" ] } } }, "betterstack:index/LoadBalancerServiceTargetHealth:LoadBalancerServiceTargetHealth": { "properties": { "serverId": { "type": "string", "description": "The ID of the target server.\n" }, "serviceId": { "type": "string", "description": "The ID of the service.\n" }, "state": { "type": "string", "description": "Whether the target is healthy. 'up': The target passes its checks. 'down': The target fails its checks. 'unknown': We have no result for the target yet.\n" }, "stateChangedAt": { "type": "string", "description": "When \u003cspan pulumi-lang-nodejs=\"`state`\" pulumi-lang-dotnet=\"`State`\" pulumi-lang-go=\"`state`\" pulumi-lang-python=\"`state`\" pulumi-lang-yaml=\"`state`\" pulumi-lang-java=\"`state`\" pulumi-lang-hcl=\"`state`\"\u003e`state`\u003c/span\u003e last changed, or null.\n" }, "statusMessage": { "type": "string", "description": "Why the target is down, or null.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "serverId", "serviceId", "state", "stateChangedAt", "statusMessage" ] } } }, "betterstack:index/LoadBalancerTargetSummary:LoadBalancerTargetSummary": { "properties": { "createdAt": { "type": "string", "description": "When the target was added.\n" }, "id": { "type": "string", "description": "The target's ID.\n" }, "selector": { "type": "string", "description": "The tags a server must have to receive traffic, as string pairs. A server must have every pair. Written as JSON, with jsonencode().\n" }, "serverId": { "type": "string", "description": "The ID of the server to send traffic to.\n" }, "type": { "type": "string", "description": "What the target points at. 'server': One server, in \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e. 'label_selector': Every server that has the tags in \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the target was last updated.\n" }, "usePrivateIp": { "type": "boolean", "description": "Whether to send traffic to the servers' private IP on a network they share with the load balancer, instead of their public IP.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "createdAt", "id", "selector", "serverId", "type", "updatedAt", "usePrivateIp" ] } } }, "betterstack:index/MetadataValue:MetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/MonitorMetadata:MonitorMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MonitorMetadataValue:MonitorMetadataValue" } } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "values" ] } } }, "betterstack:index/MonitorMetadataValue:MonitorMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/MonitorRequestHeader:MonitorRequestHeader": { "properties": { "id": { "type": "string", "description": "The header's ID.\n" }, "name": { "type": "string", "description": "The header name, like `Content-Type`.\n" }, "value": { "type": "string", "description": "The header value, like `application/json`.\n", "secret": true } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "name", "value" ] } } }, "betterstack:index/MySQLEndpoint:MySQLEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. Resolves to the primary's addresses in your private networks.\n" }, "port": { "type": "integer", "description": "The port to connect to, '3306'.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MySQLEndpointPrivateIp:MySQLEndpointPrivateIp" }, "description": "The primary's addresses in your private networks.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off. Resolves to the primary's public addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MySQLEndpointPublicIp:MySQLEndpointPublicIp" }, "description": "The primary's public addresses, empty when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "hostname", "port", "privateIps", "publicHostname", "publicIps" ] } } }, "betterstack:index/MySQLEndpointPrivateIp:MySQLEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/MySQLEndpointPublicIp:MySQLEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public address.\n" }, "type": { "type": "string", "description": "Whether it's an 'ipv4' or 'ipv6' address.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ip", "type" ] } } }, "betterstack:index/MySQLMember:MySQLMember": { "properties": { "createdAt": { "type": "string" }, "diskUsedBytes": { "type": "integer" }, "id": { "type": "string" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MySQLMemberPrivateIp:MySQLMemberPrivateIp" } }, "replicationLagSeconds": { "type": "number" }, "role": { "type": "string", "description": "Valid values: 'primary', 'replica'.\n" }, "status": { "type": "string", "description": "Valid values: 'provisioning', 'syncing', 'running', 'down'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "createdAt", "diskUsedBytes", "id", "privateIps", "replicationLagSeconds", "role", "status" ] } } }, "betterstack:index/MySQLMemberPrivateIp:MySQLMemberPrivateIp": { "properties": { "ipAddress": { "type": "string" }, "networkId": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/ObjectCacheBucketSummary:ObjectCacheBucketSummary": { "properties": { "name": { "type": "string", "description": "The bucket name clients use with the object cache, 3–63 lowercase letters, digits, dots and hyphens, starting and ending with a letter or digit. Must be unique in the object cache. Defaults to 'origin_bucket'.\n" }, "originAccessKeyId": { "type": "string", "description": "The access key ID for your storage provider.\n", "secret": true }, "originBucket": { "type": "string", "description": "The name of the bucket at your storage provider, at most 255 characters.\n" }, "originEndpoint": { "type": "string", "description": "The HTTPS URL of your storage provider's S3 endpoint, such as `https://s3.eu-central-1.amazonaws.com`. Must use a hostname, not an IP address. Can't have credentials, a path, a query or a fragment.\n" }, "originForcePathStyle": { "type": "boolean", "description": "Whether we send the bucket name in the URL path to your storage provider, instead of in the hostname. Defaults to true.\n" }, "originPrefix": { "type": "string", "description": "A folder in the bucket at your storage provider to serve as the whole bucket, such as `tenant-a/`. Clients see only the objects under it. Leave it out to serve the whole bucket.\n" }, "originRegion": { "type": "string", "description": "The region of your storage provider, such as `us-east-1` or 'auto'. Defaults to `us-east-1`.\n" }, "originSecretAccessKey": { "type": "string", "description": "The secret key for your storage provider.\n", "secret": true } }, "type": "object", "required": [ "originAccessKeyId", "originBucket", "originEndpoint", "originSecretAccessKey" ], "language": { "nodejs": { "requiredOutputs": [ "name", "originAccessKeyId", "originBucket", "originEndpoint", "originForcePathStyle", "originPrefix", "originRegion", "originSecretAccessKey" ] } } }, "betterstack:index/ObjectCacheEndpoints:ObjectCacheEndpoints": { "properties": { "privates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ObjectCacheEndpointsPrivate:ObjectCacheEndpointsPrivate" }, "description": "An HTTP endpoint in each attached network.\n" }, "public": { "$ref": "#/types/betterstack:index/ObjectCacheEndpointsPublic:ObjectCacheEndpointsPublic", "description": "The public HTTPS endpoint, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is false.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "privates", "public" ] } } }, "betterstack:index/ObjectCacheEndpointsPrivate:ObjectCacheEndpointsPrivate": { "properties": { "ipAddress": { "type": "string", "description": "The object cache's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the network.\n" }, "url": { "type": "string", "description": "The endpoint's HTTP URL.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId", "url" ] } } }, "betterstack:index/ObjectCacheEndpointsPublic:ObjectCacheEndpointsPublic": { "properties": { "hostname": { "type": "string", "description": "The public hostname.\n" }, "records": { "type": "array", "items": { "type": "string" }, "description": "The DNS records the hostname has, `AAAA`, and also `A` when \u003cspan pulumi-lang-nodejs=\"`publicIpv4`\" pulumi-lang-dotnet=\"`PublicIpv4`\" pulumi-lang-go=\"`publicIpv4`\" pulumi-lang-python=\"`public_ipv4`\" pulumi-lang-yaml=\"`publicIpv4`\" pulumi-lang-java=\"`publicIpv4`\" pulumi-lang-hcl=\"`public_ipv4`\"\u003e`publicIpv4`\u003c/span\u003e is true.\n" }, "url": { "type": "string", "description": "The endpoint's HTTPS URL.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "hostname", "records", "url" ] } } }, "betterstack:index/OnCallRotationWorkingHour:OnCallRotationWorkingHour": { "properties": { "day": { "type": "string", "description": "The day of the week the window is on. Valid values: 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'.\n" }, "endTime": { "type": "string", "description": "When the window ends, as `HH:MM` in 24-hour time.\n" }, "startTime": { "type": "string", "description": "When the window starts, as `HH:MM` in 24-hour time.\n" } }, "type": "object", "required": [ "day", "endTime", "startTime" ] }, "betterstack:index/OnCallScheduleOnCallUser:OnCallScheduleOnCallUser": { "properties": { "email": { "type": "string", "description": "The person's e-mail address.\n" }, "firstName": { "type": "string", "description": "The person's first name, or null when it isn't set.\n" }, "id": { "type": "string", "description": "The person's ID as 'u123'.\n" }, "lastName": { "type": "string", "description": "The person's last name, or null when it isn't set.\n" }, "phoneNumbers": { "type": "array", "items": { "type": "string" }, "description": "The person's phone numbers, such as `+420737123456`, sorted.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "firstName", "id", "lastName", "phoneNumbers" ] } } }, "betterstack:index/OnCallScheduleShift:OnCallScheduleShift": { "properties": { "endsAt": { "type": "string", "description": "When this part of the shift ends. Can be after 'to'.\n" }, "override": { "type": "boolean", "description": "Whether an override puts these people on call instead of the rotation.\n" }, "overrideId": { "type": "string", "description": "The ID of the override's on-call event, to use with [Delete an on-call event](https://betterstack.com/docs/uptime/api/delete-on-call-calendar-event/), or null for a shift from the rotation.\n" }, "startsAt": { "type": "string", "description": "When this part of the shift starts. Can be before 'from'.\n" }, "users": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleShiftUser:OnCallScheduleShiftUser" }, "description": "The people on call.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "endsAt", "override", "overrideId", "startsAt", "users" ] } } }, "betterstack:index/OnCallScheduleShiftUser:OnCallScheduleShiftUser": { "properties": { "email": { "type": "string", "description": "The person's e-mail address.\n" }, "firstName": { "type": "string", "description": "The person's first name, or null when it isn't set.\n" }, "holidayEndsAt": { "type": "string", "description": "When that holiday ends, or null.\n" }, "id": { "type": "string", "description": "The person's ID as 'u123'.\n" }, "lastName": { "type": "string", "description": "The person's last name, or null when it isn't set.\n" }, "onHoliday": { "type": "boolean", "description": "Whether the person is on holiday during part of this shift. For a shift running now, only the rest of the shift counts. Escalations skip someone on holiday.\n" }, "phoneNumbers": { "type": "array", "items": { "type": "string" }, "description": "The person's phone numbers, sorted.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "firstName", "holidayEndsAt", "id", "lastName", "onHoliday", "phoneNumbers" ] } } }, "betterstack:index/OnCallScheduleSlackGroup:OnCallScheduleSlackGroup": { "properties": { "error": { "type": "string", "description": "What's wrong and what to do about it. null when status is 'active' or 'pending'.\n" }, "slackWorkspaceId": { "type": "string", "description": "ID of the Slack workspace.\n" }, "slackWorkspaceName": { "type": "string", "description": "Name of the Slack workspace.\n" }, "status": { "type": "string", "description": "The group's state in the workspace. When the group doesn't follow who's on call, \u003cspan pulumi-lang-nodejs=\"`error`\" pulumi-lang-dotnet=\"`Error`\" pulumi-lang-go=\"`error`\" pulumi-lang-python=\"`error`\" pulumi-lang-yaml=\"`error`\" pulumi-lang-java=\"`error`\" pulumi-lang-hcl=\"`error`\"\u003e`error`\u003c/span\u003e says why. 'pending': The group is being set up. 'active': The group follows who's on call. 'permission_denied': The Slack workspace lets only admins manage user groups. 'plan_required': User groups need a paid Slack plan. 'name_conflict': Another Slack user group already uses the handle. 'failed': The group couldn't be synced with Slack. 'no_slack_users': Nobody on call has connected Slack, so the group tags nobody from this schedule. 'reinstall_required': The Slack integration was connected before user groups were supported. Reinstall the integration to set the group up.\n" }, "unconnectedUsers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleSlackGroupUnconnectedUser:OnCallScheduleSlackGroupUnconnectedUser" }, "description": "The on-call users the group doesn't include. Present only when you get a single schedule.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "error", "slackWorkspaceId", "slackWorkspaceName", "status", "unconnectedUsers" ] } } }, "betterstack:index/OnCallScheduleSlackGroupUnconnectedUser:OnCallScheduleSlackGroupUnconnectedUser": { "properties": { "email": { "type": "string", "description": "The user's e-mail address.\n" }, "firstName": { "type": "string", "description": "The user's first name, or null when it isn't set.\n" }, "id": { "type": "string", "description": "The user's ID as 'u123'.\n" }, "lastName": { "type": "string", "description": "The user's last name, or null when it isn't set.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "firstName", "id", "lastName" ] } } }, "betterstack:index/PostgresEndpoint:PostgresEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. Resolves to the primary's addresses in your private networks.\n" }, "pooledPort": { "type": "integer", "description": "The port for connecting through PgBouncer, '6432'.\n" }, "port": { "type": "integer", "description": "The port for connecting straight to PostgreSQL, '5432'.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/PostgresEndpointPrivateIp:PostgresEndpointPrivateIp" }, "description": "The primary's addresses in your private networks.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off. Resolves to the primary's public addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/PostgresEndpointPublicIp:PostgresEndpointPublicIp" }, "description": "The primary's public addresses, when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is on.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "hostname", "pooledPort", "port", "privateIps", "publicHostname", "publicIps" ] } } }, "betterstack:index/PostgresEndpointPrivateIp:PostgresEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/PostgresEndpointPublicIp:PostgresEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public address.\n" }, "type": { "type": "string", "description": "Whether it's an 'ipv4' or 'ipv6' address.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ip", "type" ] } } }, "betterstack:index/PostgresMember:PostgresMember": { "properties": { "createdAt": { "type": "string", "description": "When the node was created.\n" }, "diskUsedBytes": { "type": "integer", "description": "The disk space the node uses, in bytes.\n" }, "id": { "type": "string", "description": "The node's ID.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/PostgresMemberPrivateIp:PostgresMemberPrivateIp" }, "description": "The node's addresses in your private networks.\n" }, "replicationLagSeconds": { "type": "number", "description": "How far the replica is behind the primary, in seconds, or null on the primary.\n" }, "role": { "type": "string", "description": "Whether the node is the primary or a replica. 'primary': The node that accepts writes. 'replica': A read-only copy of the primary.\n" }, "status": { "type": "string", "description": "The node's status. Valid values: 'provisioning', 'syncing', 'running', 'down'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "createdAt", "diskUsedBytes", "id", "privateIps", "replicationLagSeconds", "role", "status" ] } } }, "betterstack:index/PostgresMemberPrivateIp:PostgresMemberPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/PostgresUserSummary:PostgresUserSummary": { "properties": { "createdAt": { "type": "string" }, "defaultUser": { "type": "boolean" }, "id": { "type": "string" }, "privileges": { "type": "object", "additionalProperties": { "type": "string" } }, "username": { "type": "string" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "createdAt", "defaultUser", "id", "privileges", "username" ] } } }, "betterstack:index/ReservedIpServer:ReservedIpServer": { "properties": { "id": { "type": "string", "description": "The server's ID.\n" }, "name": { "type": "string", "description": "The server's name.\n" }, "status": { "type": "string", "description": "The server's status, such as 'running'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "name", "status" ] } } }, "betterstack:index/ServerCloudflareRecord:ServerCloudflareRecord": { "properties": { "aRecord": { "type": "string", "description": "The record's name.\n" }, "domain": { "type": "string", "description": "The Cloudflare zone of the record.\n" }, "id": { "type": "string", "description": "The record's ID.\n" }, "proxied": { "type": "boolean", "description": "Whether Cloudflare proxies the record.\n" }, "status": { "type": "string", "description": "Whether we've created the record, 'pending', 'created' or 'failed'.\n" }, "ttl": { "type": "integer", "description": "The record's TTL in seconds. '1' means automatic.\n" }, "type": { "type": "string", "description": "The record type, `A`, `AAAA` or `CNAME`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "aRecord", "domain", "id", "proxied", "status", "ttl", "type" ] } } }, "betterstack:index/ServerConnectionTracking:ServerConnectionTracking": { "properties": { "budget": { "type": "integer", "description": "The most connections the server can have at once, 60,000 per vCPU of its type.\n" }, "entries": { "type": "integer", "description": "How many connections the server had at the last count. null before the first count.\n" }, "measuredAt": { "type": "string", "description": "When we last counted the connections. We count once a minute.\n" }, "overBudget": { "type": "boolean", "description": "Whether the server has more connections than its \u003cspan pulumi-lang-nodejs=\"`budget`\" pulumi-lang-dotnet=\"`Budget`\" pulumi-lang-go=\"`budget`\" pulumi-lang-python=\"`budget`\" pulumi-lang-yaml=\"`budget`\" pulumi-lang-java=\"`budget`\" pulumi-lang-hcl=\"`budget`\"\u003e`budget`\u003c/span\u003e. New connections are dropped until it's back under the budget.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "budget", "entries", "measuredAt", "overBudget" ] } } }, "betterstack:index/ServerIpAddress:ServerIpAddress": { "properties": { "id": { "type": "string", "description": "The ID of the address on the server.\n" }, "ip": { "type": "string", "description": "The address.\n" }, "ptrRecord": { "type": "string", "description": "The reverse DNS name. null when none is set.\n" }, "reservedIp": { "type": "boolean", "description": "Whether it's a reserved IP.\n" }, "type": { "type": "string", "description": "Whether it's an 'ipv4' or 'ipv6' address.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "ip", "ptrRecord", "reservedIp", "type" ] } } }, "betterstack:index/ServerLock:ServerLock": { "properties": { "details": { "type": "string", "description": "More about the lock, or null.\n" }, "lockedAt": { "type": "string", "description": "When we locked the server.\n" }, "reason": { "type": "string", "description": "Why we locked the server. Valid values: 'fraud', 'non_payment', 'abuse', 'legal', 'security', 'maintenance', 'other'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "details", "lockedAt", "reason" ] } } }, "betterstack:index/ServerPoolDefaults:ServerPoolDefaults": { "properties": { "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls to attach.\n" }, "metadata": { "type": "string", "description": "Your own tags, as string keys and values. Written as JSON, with jsonencode().\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks to join.\n" }, "sshKeys": { "type": "array", "items": { "type": "string" }, "description": "The 'slug' of each SSH key to add.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "firewallIds", "metadata", "networkIds", "sshKeys" ] } } }, "betterstack:index/ServerPrivateIpItem:ServerPrivateIpItem": { "properties": { "id": { "type": "string", "description": "The ID of the address on the server.\n" }, "ip": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "ip", "networkId" ] } } }, "betterstack:index/SourceCustomBucket:SourceCustomBucket": { "properties": { "accessKeyId": { "type": "string", "description": "The access key ID Better Stack uses to write to the bucket.\n" }, "endpoint": { "type": "string", "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set.\n" }, "keepDataAfterRetention": { "type": "boolean", "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set.\n" }, "name": { "type": "string", "description": "The bucket's name, taken from \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e.\n" }, "secretAccessKey": { "type": "string", "description": "The secret access key for \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e. Write-only, so it's never returned.\n", "secret": true } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "accessKeyId", "endpoint", "keepDataAfterRetention", "name", "secretAccessKey" ] } } }, "betterstack:index/SourceGcpMetricsFilter:SourceGcpMetricsFilter": { "properties": { "exclude": { "type": "string", "description": "A regular expression for metric types to leave out. Every other metric is collected.\n" }, "include": { "type": "string", "description": "A regular expression for metric types to collect, or `*` for every metric.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "exclude", "include" ] } } }, "betterstack:index/SourceQueryCollections:SourceQueryCollections": { "properties": { "appFilter": { "type": "string", "description": "The condition that keeps only the source's rows in its parent's raw collections. null unless the source is connected to a source.\n" }, "database": { "type": "string", "description": "The ClickHouse database that holds the source's data.\n" }, "metricsAppFilter": { "type": "string", "description": "The condition that keeps only the source's rows in its parent's metrics collection. null unless the source is connected to a source.\n" }, "recent": { "type": "object", "additionalProperties": { "type": "string" }, "description": "The collection with the last 30 minutes of data, keyed by the kind of data, such as 'logs' or 'metrics'.\n" }, "s3": { "type": "string", "description": "The collection that holds older rows of every type.\n" }, "table": { "type": "string", "description": "The physical table, as `database.table`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "appFilter", "database", "metricsAppFilter", "recent", "s3", "table" ] } } }, "betterstack:index/SourceScrapeRequestHeader:SourceScrapeRequestHeader": { "properties": { "name": { "type": "string", "description": "The header's name.\n" }, "value": { "type": "string", "description": "The header's value.\n", "secret": true } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "name", "value" ] } } }, "betterstack:index/SourceServiceField:SourceServiceField": { "properties": { "nameKey": { "type": "string", "description": "The field to extract the service name from, such as `service.name`.\n" }, "typeKey": { "type": "string", "description": "The field to extract the service's platform from, such as `service.type`. Platforms such as Nginx, PostgreSQL or Redis are recognized in its value.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "nameKey", "typeKey" ] } } }, "betterstack:index/StatusPageNavigationLink:StatusPageNavigationLink": { "properties": { "href": { "type": "string", "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages.\n" }, "text": { "type": "string", "description": "The link's text, such as `Maintenance`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "href", "text" ] } } }, "betterstack:index/StatusPageSection:StatusPageSection": { "properties": { "id": { "type": "string", "description": "The section's ID. Leave it out for a new section. Send the ID to keep the section, even when you move it.\n" }, "name": { "type": "string", "description": "Section name.\n" }, "resources": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageSectionResource:StatusPageSectionResource" }, "description": "The section's resources, in display order. Leave it out to keep the section's resources as they are. A new section starts empty. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`resourceType`\" pulumi-lang-dotnet=\"`ResourceType`\" pulumi-lang-go=\"`resourceType`\" pulumi-lang-python=\"`resource_type`\" pulumi-lang-yaml=\"`resourceType`\" pulumi-lang-java=\"`resourceType`\" pulumi-lang-hcl=\"`resource_type`\"\u003e`resourceType`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e, or else the same \u003cspan pulumi-lang-nodejs=\"`resourceType`\" pulumi-lang-dotnet=\"`ResourceType`\" pulumi-lang-go=\"`resourceType`\" pulumi-lang-python=\"`resource_type`\" pulumi-lang-yaml=\"`resourceType`\" pulumi-lang-java=\"`resourceType`\" pulumi-lang-hcl=\"`resource_type`\"\u003e`resourceType`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`publicName`\" pulumi-lang-dotnet=\"`PublicName`\" pulumi-lang-go=\"`publicName`\" pulumi-lang-python=\"`public_name`\" pulumi-lang-yaml=\"`publicName`\" pulumi-lang-java=\"`publicName`\" pulumi-lang-hcl=\"`public_name`\"\u003e`publicName`\u003c/span\u003e, so a reorder or a move updates it in place.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "id", "name", "resources" ] } } }, "betterstack:index/StatusPageSectionResource:StatusPageSectionResource": { "properties": { "catalogReference": { "$ref": "#/types/betterstack:index/StatusPageSectionResourceCatalogReference:StatusPageSectionResourceCatalogReference", "description": "For a `CatalogReference` resource, the catalog value it shows, as on a status page resource. We find or create the catalog value, and it sets the resource's \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e. A \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e sent along with it is ignored. null for every other type.\n" }, "chartId": { "type": "string", "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows, as on a status page resource. The chart must be on one of your organization's dashboards. The chart decides the resource's \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e, so a \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e sent with \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e is ignored. null for every other type.\n" }, "explanation": { "type": "string", "description": "Text shown to visitors in a tooltip next to the resource.\n" }, "id": { "type": "string", "description": "The resource's ID. Leave it out for a new resource. Send the ID to keep the resource and its subscribers, even when you move it to another section.\n" }, "markAsDegradedFor": { "type": "string", "description": "When an incident marks this resource as degraded. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents. 'no_incident': No incident marks the resource degraded. 'any_incident': Every open incident of the resource marks it degraded. 'incident_matching_metadata': An open incident marks the resource degraded when its metadata matches \u003cspan pulumi-lang-nodejs=\"`markAsDegradedMetadataRule`\" pulumi-lang-dotnet=\"`MarkAsDegradedMetadataRule`\" pulumi-lang-go=\"`markAsDegradedMetadataRule`\" pulumi-lang-python=\"`mark_as_degraded_metadata_rule`\" pulumi-lang-yaml=\"`markAsDegradedMetadataRule`\" pulumi-lang-java=\"`markAsDegradedMetadataRule`\" pulumi-lang-hcl=\"`mark_as_degraded_metadata_rule`\"\u003e`markAsDegradedMetadataRule`\u003c/span\u003e.\n" }, "markAsDegradedMetadataRule": { "$ref": "#/types/betterstack:index/StatusPageSectionResourceMarkAsDegradedMetadataRule:StatusPageSectionResourceMarkAsDegradedMetadataRule", "description": "Metadata rule used when \u003cspan pulumi-lang-nodejs=\"`markAsDegradedFor`\" pulumi-lang-dotnet=\"`MarkAsDegradedFor`\" pulumi-lang-go=\"`markAsDegradedFor`\" pulumi-lang-python=\"`mark_as_degraded_for`\" pulumi-lang-yaml=\"`markAsDegradedFor`\" pulumi-lang-java=\"`markAsDegradedFor`\" pulumi-lang-hcl=\"`mark_as_degraded_for`\"\u003e`markAsDegradedFor`\u003c/span\u003e is 'incident_matching_metadata', in the shape of \u003cspan pulumi-lang-nodejs=\"`markAsDownMetadataRule`\" pulumi-lang-dotnet=\"`MarkAsDownMetadataRule`\" pulumi-lang-go=\"`markAsDownMetadataRule`\" pulumi-lang-python=\"`mark_as_down_metadata_rule`\" pulumi-lang-yaml=\"`markAsDownMetadataRule`\" pulumi-lang-java=\"`markAsDownMetadataRule`\" pulumi-lang-hcl=\"`mark_as_down_metadata_rule`\"\u003e`markAsDownMetadataRule`\u003c/span\u003e. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n" }, "markAsDownFor": { "type": "string", "description": "When an incident marks this resource as down. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents. 'no_incident': No incident marks the resource down. 'any_incident': Every open incident of the resource marks it down. 'incident_matching_metadata': An open incident marks the resource down when its metadata matches \u003cspan pulumi-lang-nodejs=\"`markAsDownMetadataRule`\" pulumi-lang-dotnet=\"`MarkAsDownMetadataRule`\" pulumi-lang-go=\"`markAsDownMetadataRule`\" pulumi-lang-python=\"`mark_as_down_metadata_rule`\" pulumi-lang-yaml=\"`markAsDownMetadataRule`\" pulumi-lang-java=\"`markAsDownMetadataRule`\" pulumi-lang-hcl=\"`mark_as_down_metadata_rule`\"\u003e`markAsDownMetadataRule`\u003c/span\u003e.\n" }, "markAsDownMetadataRule": { "$ref": "#/types/betterstack:index/StatusPageSectionResourceMarkAsDownMetadataRule:StatusPageSectionResourceMarkAsDownMetadataRule", "description": "Metadata rule used when \u003cspan pulumi-lang-nodejs=\"`markAsDownFor`\" pulumi-lang-dotnet=\"`MarkAsDownFor`\" pulumi-lang-go=\"`markAsDownFor`\" pulumi-lang-python=\"`mark_as_down_for`\" pulumi-lang-yaml=\"`markAsDownFor`\" pulumi-lang-java=\"`markAsDownFor`\" pulumi-lang-hcl=\"`mark_as_down_for`\"\u003e`markAsDownFor`\u003c/span\u003e is 'incident_matching_metadata', as on a status page resource. A user is 'u123' or their e-mail, and a team is 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n" }, "publicName": { "type": "string", "description": "Name shown publicly. Required for a new resource.\n" }, "resourceId": { "type": "string", "description": "ID of the underlying monitor, heartbeat, group or other record. Required for a new resource. A `ManuallyTrackedItem` doesn't need it, since we create the item for you. Neither does a resource whose \u003cspan pulumi-lang-nodejs=\"`catalogReference`\" pulumi-lang-dotnet=\"`CatalogReference`\" pulumi-lang-go=\"`catalogReference`\" pulumi-lang-python=\"`catalog_reference`\" pulumi-lang-yaml=\"`catalogReference`\" pulumi-lang-java=\"`catalogReference`\" pulumi-lang-hcl=\"`catalog_reference`\"\u003e`catalogReference`\u003c/span\u003e names a catalog value or whose \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e names a dashboard chart.\n" }, "resourceType": { "type": "string", "description": "Type of the underlying resource. Required for a new resource. `Monitor`: Shows a monitor. `MonitorGroup`: Shows a monitor group. `Heartbeat`: Shows a heartbeat. `HeartbeatGroup`: Shows a heartbeat group. `WebhookIntegration`: Shows an integration that creates incidents from another tool's alerts, such as Datadog or Grafana. `EmailIntegration`: Shows an e-mail integration. `IncomingWebhook`: Shows an incoming webhook. `AmazonSnsIntegration`: Shows an Amazon SNS integration. `ManuallyTrackedItem`: Shows a manually tracked item, which we create when you leave out \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e. `LogsChart`: Shows a dashboard chart, given in \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e. `CatalogReference`: Shows a catalog value, given in \u003cspan pulumi-lang-nodejs=\"`catalogReference`\" pulumi-lang-dotnet=\"`CatalogReference`\" pulumi-lang-go=\"`catalogReference`\" pulumi-lang-python=\"`catalog_reference`\" pulumi-lang-yaml=\"`catalogReference`\" pulumi-lang-java=\"`catalogReference`\" pulumi-lang-hcl=\"`catalog_reference`\"\u003e`catalogReference`\u003c/span\u003e. `ThirdPartyService`: Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, it keeps the services it shows.\n" }, "widgetType": { "type": "string", "description": "How the resource is shown on the page. 'plain': Shows only the current status. \u003cspan pulumi-lang-nodejs=\"`history`\" pulumi-lang-dotnet=\"`History`\" pulumi-lang-go=\"`history`\" pulumi-lang-python=\"`history`\" pulumi-lang-yaml=\"`history`\" pulumi-lang-java=\"`history`\" pulumi-lang-hcl=\"`history`\"\u003e`history`\u003c/span\u003e: Shows the current status and a history of it. 'intraday_history': Shows the current status and a detailed history of it. 'response_times': Shows a history of the status and a response times chart, for a monitor or a logs chart. 'intraday_response_times': Shows a detailed history of the status and a response times chart, for a monitor or a logs chart. 'chart_only': Shows only the chart, for a logs chart.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "catalogReference", "chartId", "explanation", "id", "markAsDegradedFor", "markAsDegradedMetadataRule", "markAsDownFor", "markAsDownMetadataRule", "publicName", "resourceId", "resourceType", "widgetType" ] } } }, "betterstack:index/StatusPageSectionResourceCatalogReference:StatusPageSectionResourceCatalogReference": { "properties": { "key": { "type": "string", "description": "The catalog relation's name.\n" }, "value": { "$ref": "#/types/betterstack:index/StatusPageSectionResourceCatalogReferenceValue:StatusPageSectionResourceCatalogReferenceValue", "description": "The catalog value to show, a plain string or a catalog item.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "key", "value" ] } } }, "betterstack:index/StatusPageSectionResourceCatalogReferenceValue:StatusPageSectionResourceCatalogReferenceValue": { "properties": { "email": { "type": "string", "description": "The user's e-mail, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `User`. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the user.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e isn't `String`. A user is 'u123' or their e-mail, and a team is 't123'.\n" }, "name": { "type": "string", "description": "The catalog item's name. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the item.\n" }, "type": { "type": "string", "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`.\n" }, "value": { "type": "string", "description": "The plain value, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/StatusPageSectionResourceMarkAsDegradedMetadataRule:StatusPageSectionResourceMarkAsDegradedMetadataRule": { "properties": { "key": { "type": "string", "description": "The incident metadata key to match.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageSectionResourceMarkAsDegradedMetadataRuleValue:StatusPageSectionResourceMarkAsDegradedMetadataRuleValue" }, "description": "The values to match. An incident matches when its metadata under \u003cspan pulumi-lang-nodejs=\"`key`\" pulumi-lang-dotnet=\"`Key`\" pulumi-lang-go=\"`key`\" pulumi-lang-python=\"`key`\" pulumi-lang-yaml=\"`key`\" pulumi-lang-java=\"`key`\" pulumi-lang-hcl=\"`key`\"\u003e`key`\u003c/span\u003e holds one of them.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "key", "values" ] } } }, "betterstack:index/StatusPageSectionResourceMarkAsDegradedMetadataRuleValue:StatusPageSectionResourceMarkAsDegradedMetadataRuleValue": { "properties": { "email": { "type": "string", "description": "The user's e-mail, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `User`. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the user.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e isn't `String`. A user is 'u123' or their e-mail, and a team is 't123'. Get the user ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/).\n" }, "name": { "type": "string", "description": "The catalog item's name. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the item.\n" }, "type": { "type": "string", "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`.\n" }, "value": { "type": "string", "description": "The plain value, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/StatusPageSectionResourceMarkAsDownMetadataRule:StatusPageSectionResourceMarkAsDownMetadataRule": { "properties": { "key": { "type": "string", "description": "The incident metadata key to match.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageSectionResourceMarkAsDownMetadataRuleValue:StatusPageSectionResourceMarkAsDownMetadataRuleValue" }, "description": "The values to match. An incident matches when its metadata under \u003cspan pulumi-lang-nodejs=\"`key`\" pulumi-lang-dotnet=\"`Key`\" pulumi-lang-go=\"`key`\" pulumi-lang-python=\"`key`\" pulumi-lang-yaml=\"`key`\" pulumi-lang-java=\"`key`\" pulumi-lang-hcl=\"`key`\"\u003e`key`\u003c/span\u003e holds one of them.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "key", "values" ] } } }, "betterstack:index/StatusPageSectionResourceMarkAsDownMetadataRuleValue:StatusPageSectionResourceMarkAsDownMetadataRuleValue": { "properties": { "email": { "type": "string", "description": "The user's e-mail, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `User`. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the user.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e isn't `String`. A user is 'u123' or their e-mail, and a team is 't123'. Get the user ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/).\n" }, "name": { "type": "string", "description": "The catalog item's name. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the item.\n" }, "type": { "type": "string", "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`.\n" }, "value": { "type": "string", "description": "The plain value, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "email", "itemId", "name", "type", "value" ] } } }, "betterstack:index/ValkeyEndpoint:ValkeyEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. Always points at the current primary's addresses in those networks.\n" }, "port": { "type": "integer", "description": "The port without TLS on private networks, '6379'.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ValkeyEndpointPrivateIp:ValkeyEndpointPrivateIp" }, "description": "The primary's addresses in the attached private networks.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, on the public TLS endpoint, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off. Always points at the current primary's public IP addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ValkeyEndpointPublicIp:ValkeyEndpointPublicIp" }, "description": "The primary's public IP addresses, empty when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off.\n" }, "tlsPort": { "type": "integer", "description": "The public TLS port, '6380', or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "hostname", "port", "privateIps", "publicHostname", "publicIps", "tlsPort" ] } } }, "betterstack:index/ValkeyEndpointPrivateIp:ValkeyEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The primary's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/ValkeyEndpointPublicIp:ValkeyEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public IP address.\n" }, "type": { "type": "string", "description": "The address type, 'ipv4' or 'ipv6'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ip", "type" ] } } }, "betterstack:index/ValkeyMember:ValkeyMember": { "properties": { "createdAt": { "type": "string", "description": "When the node was created.\n" }, "id": { "type": "string", "description": "The node's ID.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ValkeyMemberPrivateIp:ValkeyMemberPrivateIp" }, "description": "The node's addresses in the attached private networks.\n" }, "replicationLagBytes": { "type": "integer", "description": "How far the replica is behind the primary, in bytes, or null for the primary.\n" }, "role": { "type": "string", "description": "The node's role. 'primary': The node accepts writes. 'replica': The node copies the primary and serves reads.\n" }, "status": { "type": "string", "description": "The node's state. Send traffic to a node only while it's 'running'. 'provisioning': We're creating the node. 'syncing': The replica is copying the primary's data. 'running': The node serves traffic. 'down': The node doesn't respond.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "createdAt", "id", "privateIps", "replicationLagBytes", "role", "status" ] } } }, "betterstack:index/ValkeyMemberPrivateIp:ValkeyMemberPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The node's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "ipAddress", "networkId" ] } } }, "betterstack:index/VolumeLock:VolumeLock": { "properties": { "details": { "type": "string", "description": "More about the lock, or null.\n" }, "lockedAt": { "type": "string", "description": "When we locked the volume.\n" }, "reason": { "type": "string", "description": "Why we locked the volume. Valid values: 'fraud', 'non_payment', 'abuse', 'legal', 'security', 'maintenance', 'other'.\n" } }, "type": "object", "language": { "nodejs": { "requiredOutputs": [ "details", "lockedAt", "reason" ] } } }, "betterstack:index/alertAnomalyTrigger:AlertAnomalyTrigger": { "type": "string", "enum": [ { "name": "Any", "value": "any" }, { "name": "Higher", "value": "higher" }, { "name": "Lower", "value": "lower" } ] }, "betterstack:index/alertOnMissingData:AlertOnMissingData": { "type": "string", "enum": [ { "name": "TreatAsZero", "value": "treat_as_zero" }, { "name": "DontFire", "value": "dont_fire" }, { "name": "TreatAsPrevious", "value": "treat_as_previous" }, { "name": "StartIncident", "value": "start_incident" } ] }, "betterstack:index/alertOperator:AlertOperator": { "type": "string", "enum": [ { "name": "Equal", "value": "equal" }, { "name": "NotEqual", "value": "not_equal" }, { "name": "HigherThan", "value": "higher_than" }, { "name": "HigherThanOrEqual", "value": "higher_than_or_equal" }, { "name": "LowerThan", "value": "lower_than" }, { "name": "LowerThanOrEqual", "value": "lower_than_or_equal" }, { "name": "IncreasesBy", "value": "increases_by" }, { "name": "DecreasesBy", "value": "decreases_by" }, { "name": "ChangesBy", "value": "changes_by" } ] }, "betterstack:index/alertSourceMode:AlertSourceMode": { "type": "string", "enum": [ { "name": "SourceVariable", "value": "source_variable" }, { "name": "PlatformsSingleSource", "value": "platforms_single_source" }, { "name": "PlatformsAllSources", "value": "platforms_all_sources" } ] }, "betterstack:index/alertType:AlertType": { "type": "string", "enum": [ { "name": "Threshold", "value": "threshold" }, { "name": "Relative", "value": "relative" }, { "name": "AnomalyRrcf", "value": "anomaly_rrcf" } ] }, "betterstack:index/applicationPlatform:ApplicationPlatform": { "type": "string", "enum": [ { "name": "AiohttpErrors", "value": "aiohttp_errors" }, { "name": "AndroidErrors", "value": "android_errors" }, { "name": "AngularErrors", "value": "angular_errors" }, { "name": "AsgiErrors", "value": "asgi_errors" }, { "name": "AspDotNetCoreErrors", "value": "asp_dot_net_core_errors" }, { "name": "AspDotNetErrors", "value": "asp_dot_net_errors" }, { "name": "AstroErrors", "value": "astro_errors" }, { "name": "AwsLambdaDotNetErrors", "value": "aws_lambda_dot_net_errors" }, { "name": "AwsLambdaNodeErrors", "value": "aws_lambda_node_errors" }, { "name": "AwsLambdaPythonErrors", "value": "aws_lambda_python_errors" }, { "name": "AzureFunctionsNodeErrors", "value": "azure_functions_node_errors" }, { "name": "BottleErrors", "value": "bottle_errors" }, { "name": "BunErrors", "value": "bun_errors" }, { "name": "CeleryErrors", "value": "celery_errors" }, { "name": "ChaliceErrors", "value": "chalice_errors" }, { "name": "CliErrors", "value": "cli_errors" }, { "name": "CloudflarePagesErrors", "value": "cloudflare_pages_errors" }, { "name": "ConnectErrors", "value": "connect_errors" }, { "name": "DartErrors", "value": "dart_errors" }, { "name": "DenoErrors", "value": "deno_errors" }, { "name": "DjangoErrors", "value": "django_errors" }, { "name": "DotNetErrors", "value": "dot_net_errors" }, { "name": "DotNetHttpErrors", "value": "dot_net_http_errors" }, { "name": "DotNetMauiErrors", "value": "dot_net_maui_errors" }, { "name": "EchoErrors", "value": "echo_errors" }, { "name": "ElectronErrors", "value": "electron_errors" }, { "name": "ElixirErrors", "value": "elixir_errors" }, { "name": "EmberErrors", "value": "ember_errors" }, { "name": "ExpressErrors", "value": "express_errors" }, { "name": "FalconErrors", "value": "falcon_errors" }, { "name": "FastapiErrors", "value": "fastapi_errors" }, { "name": "FasthttpErrors", "value": "fasthttp_errors" }, { "name": "FastifyErrors", "value": "fastify_errors" }, { "name": "FiberErrors", "value": "fiber_errors" }, { "name": "FlaskErrors", "value": "flask_errors" }, { "name": "FlutterErrors", "value": "flutter_errors" }, { "name": "GatsbyErrors", "value": "gatsby_errors" }, { "name": "GinErrors", "value": "gin_errors" }, { "name": "GoErrors", "value": "go_errors" }, { "name": "GodotErrors", "value": "godot_errors" }, { "name": "GoogleCloudFunctionDotNetErrors", "value": "google_cloud_function_dot_net_errors" }, { "name": "GoogleCloudFunctionNodeErrors", "value": "google_cloud_function_node_errors" }, { "name": "GoogleCloudFunctionPythonErrors", "value": "google_cloud_function_python_errors" }, { "name": "HapiErrors", "value": "hapi_errors" }, { "name": "IosErrors", "value": "ios_errors" }, { "name": "IrisErrors", "value": "iris_errors" }, { "name": "JavaErrors", "value": "java_errors" }, { "name": "JavascriptErrors", "value": "javascript_errors" }, { "name": "KoaErrors", "value": "koa_errors" }, { "name": "KotlinErrors", "value": "kotlin_errors" }, { "name": "LaravelErrors", "value": "laravel_errors" }, { "name": "Log4jErrors", "value": "log4j_errors" }, { "name": "LogbackErrors", "value": "logback_errors" }, { "name": "MacosErrors", "value": "macos_errors" }, { "name": "MinidumpErrors", "value": "minidump_errors" }, { "name": "NativeErrors", "value": "native_errors" }, { "name": "NegroniErrors", "value": "negroni_errors" }, { "name": "NestJsErrors", "value": "nest_js_errors" }, { "name": "NextJsErrors", "value": "next_js_errors" }, { "name": "NodeErrors", "value": "node_errors" }, { "name": "NuxtErrors", "value": "nuxt_errors" }, { "name": "PhpErrors", "value": "php_errors" }, { "name": "PowershellErrors", "value": "powershell_errors" }, { "name": "PyramidErrors", "value": "pyramid_errors" }, { "name": "PythonErrors", "value": "python_errors" }, { "name": "QtErrors", "value": "qt_errors" }, { "name": "QuartErrors", "value": "quart_errors" }, { "name": "RackMiddlewareErrors", "value": "rack_middleware_errors" }, { "name": "RailsErrors", "value": "rails_errors" }, { "name": "ReactErrors", "value": "react_errors" }, { "name": "ReactNativeErrors", "value": "react_native_errors" }, { "name": "ReactRouterFrameworkErrors", "value": "react_router_framework_errors" }, { "name": "RemixErrors", "value": "remix_errors" }, { "name": "RqErrors", "value": "rq_errors" }, { "name": "RubyErrors", "value": "ruby_errors" }, { "name": "RustErrors", "value": "rust_errors" }, { "name": "SanicErrors", "value": "sanic_errors" }, { "name": "ServerlessPythonErrors", "value": "serverless_python_errors" }, { "name": "SolidErrors", "value": "solid_errors" }, { "name": "SolidstartErrors", "value": "solidstart_errors" }, { "name": "SpringBootErrors", "value": "spring_boot_errors" }, { "name": "SpringErrors", "value": "spring_errors" }, { "name": "StarletteErrors", "value": "starlette_errors" }, { "name": "SvelteErrors", "value": "svelte_errors" }, { "name": "SveltekitErrors", "value": "sveltekit_errors" }, { "name": "SymfonyErrors", "value": "symfony_errors" }, { "name": "TanstackStartReactErrors", "value": "tanstack_start_react_errors" }, { "name": "TornadoErrors", "value": "tornado_errors" }, { "name": "TrytonErrors", "value": "tryton_errors" }, { "name": "UnityErrors", "value": "unity_errors" }, { "name": "UnrealEngineErrors", "value": "unreal_engine_errors" }, { "name": "VueErrors", "value": "vue_errors" }, { "name": "WindowsFormsErrors", "value": "windows_forms_errors" }, { "name": "WpfErrors", "value": "wpf_errors" }, { "name": "WsgiErrors", "value": "wsgi_errors" } ] }, "betterstack:index/catalogRelationMatchMode:CatalogRelationMatchMode": { "type": "string", "enum": [ { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/certificateType:CertificateType": { "type": "string", "enum": [ { "name": "Uploaded", "value": "uploaded" }, { "name": "Managed", "value": "managed" } ] }, "betterstack:index/clickHouseScheduledSnapshotFrequency:ClickHouseScheduledSnapshotFrequency": { "type": "string", "enum": [ { "name": "Hourly", "value": "hourly" }, { "name": "Daily", "value": "daily" }, { "name": "Weekly", "value": "weekly" }, { "name": "Monthly", "value": "monthly" } ] }, "betterstack:index/clickHouseTerm:ClickHouseTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/collectorPlatform:CollectorPlatform": { "type": "string", "enum": [ { "name": "Docker", "value": "docker" }, { "name": "Swarm", "value": "swarm" }, { "name": "Kubernetes", "value": "kubernetes" } ] }, "betterstack:index/collectorTargetKind:CollectorTargetKind": { "type": "string", "enum": [ { "name": "Postgres", "value": "postgres" }, { "name": "Pgbouncer", "value": "pgbouncer" }, { "name": "Mysql", "value": "mysql" }, { "name": "Redis", "value": "redis" }, { "name": "Mongodb", "value": "mongodb" }, { "name": "Memcached", "value": "memcached" }, { "name": "Elasticsearch", "value": "elasticsearch" }, { "name": "Nginx", "value": "nginx" }, { "name": "Apache", "value": "apache" }, { "name": "Kafka", "value": "kafka" }, { "name": "Prometheus", "value": "prometheus" }, { "name": "Traefik", "value": "traefik" } ] }, "betterstack:index/collectorTargetScheme:CollectorTargetScheme": { "type": "string", "enum": [ { "name": "Http", "value": "http" }, { "name": "Https", "value": "https" } ] }, "betterstack:index/collectorTargetSslMode:CollectorTargetSslMode": { "type": "string", "enum": [ { "name": "Disable", "value": "disable" }, { "name": "Require", "value": "require" }, { "name": "VerifyCa", "value": "verify-ca" } ] }, "betterstack:index/collectorTargetTls:CollectorTargetTls": { "type": "string", "enum": [ { "name": "False", "value": "false" }, { "name": "True", "value": "true" }, { "name": "SkipVerify", "value": "skip-verify" }, { "name": "Preferred", "value": "preferred" } ] }, "betterstack:index/connectionClientType:ConnectionClientType": { "type": "string", "enum": [ { "name": "Clickhouse", "value": "clickhouse" }, { "name": "Grafana", "value": "grafana" } ] }, "betterstack:index/dashboardChartChartType:DashboardChartChartType": { "type": "string", "enum": [ { "name": "LineChart", "value": "line_chart" }, { "name": "BarChart", "value": "bar_chart" }, { "name": "PieChart", "value": "pie_chart" }, { "name": "ScatterChart", "value": "scatter_chart" }, { "name": "GaugeChart", "value": "gauge_chart" }, { "name": "NumberChart", "value": "number_chart" }, { "name": "HeatmapChart", "value": "heatmap_chart" }, { "name": "TableChart", "value": "table_chart" }, { "name": "MapChart", "value": "map_chart" }, { "name": "TextChart", "value": "text_chart" }, { "name": "TailChart", "value": "tail_chart" }, { "name": "StaticTextChart", "value": "static_text_chart" }, { "name": "FunnelChart", "value": "funnel_chart" }, { "name": "FunnelTrendChart", "value": "funnel_trend_chart" }, { "name": "AnomaliesChart", "value": "anomalies_chart" }, { "name": "HierarchyChart", "value": "hierarchy_chart" } ] }, "betterstack:index/dashboardProduct:DashboardProduct": { "type": "string", "enum": [ { "name": "Telemetry", "value": "telemetry" }, { "name": "Rum", "value": "rum" } ] }, "betterstack:index/errorsJiraIntegrationOccurrenceThresholdInterval:ErrorsJiraIntegrationOccurrenceThresholdInterval": { "type": "string", "enum": [ { "name": "Minute", "value": "minute" }, { "name": "Hour", "value": "hour" }, { "name": "Day", "value": "day" }, { "name": "Week", "value": "week" } ] }, "betterstack:index/errorsLinearIntegrationLinearPriority:ErrorsLinearIntegrationLinearPriority": { "type": "string", "enum": [ { "name": "NoPriority", "value": "no_priority" }, { "name": "Urgent", "value": "urgent" }, { "name": "High", "value": "high" }, { "name": "Medium", "value": "medium" }, { "name": "Low", "value": "low" } ] }, "betterstack:index/errorsLinearIntegrationOccurrenceThresholdInterval:ErrorsLinearIntegrationOccurrenceThresholdInterval": { "type": "string", "enum": [ { "name": "Minute", "value": "minute" }, { "name": "Hour", "value": "hour" }, { "name": "Day", "value": "day" }, { "name": "Week", "value": "week" } ] }, "betterstack:index/errorsMicrosoftTeamsIntegrationOccurrenceThresholdInterval:ErrorsMicrosoftTeamsIntegrationOccurrenceThresholdInterval": { "type": "string", "enum": [ { "name": "Minute", "value": "minute" }, { "name": "Hour", "value": "hour" }, { "name": "Day", "value": "day" }, { "name": "Week", "value": "week" } ] }, "betterstack:index/errorsSlackIntegrationOccurrenceThresholdInterval:ErrorsSlackIntegrationOccurrenceThresholdInterval": { "type": "string", "enum": [ { "name": "Minute", "value": "minute" }, { "name": "Hour", "value": "hour" }, { "name": "Day", "value": "day" }, { "name": "Week", "value": "week" } ] }, "betterstack:index/errorsSlackIntegrationPostUpdates:ErrorsSlackIntegrationPostUpdates": { "type": "string", "enum": [ { "name": "SingleChannel", "value": "single_channel" }, { "name": "ThreadBased", "value": "thread_based" } ] }, "betterstack:index/explorationProduct:ExplorationProduct": { "type": "string", "enum": [ { "name": "Telemetry", "value": "telemetry" }, { "name": "Rum", "value": "rum" } ] }, "betterstack:index/explorationSourceType:ExplorationSourceType": { "type": "string", "enum": [ { "name": "WebEvents", "value": "web_events" }, { "name": "Logs", "value": "logs" }, { "name": "Spans", "value": "spans" } ] }, "betterstack:index/extractedMetricBuildType:ExtractedMetricBuildType": { "type": "string", "enum": [ { "name": "NewData", "value": "new_data" }, { "name": "HistoricalLogs", "value": "historical_logs" } ] }, "betterstack:index/extractedMetricType:ExtractedMetricType": { "type": "string", "enum": [ { "name": "String", "value": "string" }, { "name": "StringLowCardinality", "value": "string_low_cardinality" }, { "name": "Int64Delta", "value": "int64_delta" }, { "name": "Int64", "value": "int64" }, { "name": "Uint64Delta", "value": "uint64_delta" }, { "name": "Uint64", "value": "uint64" }, { "name": "Float64Delta", "value": "float64_delta" }, { "name": "Datetime64Delta", "value": "datetime64_delta" }, { "name": "Boolean", "value": "boolean" } ] }, "betterstack:index/firewallRuleDirection:FirewallRuleDirection": { "type": "string", "enum": [ { "name": "Inbound", "value": "inbound" }, { "name": "Outbound", "value": "outbound" } ] }, "betterstack:index/firewallRuleProtocol:FirewallRuleProtocol": { "type": "string", "enum": [ { "name": "Tcp", "value": "tcp" }, { "name": "Udp", "value": "udp" }, { "name": "Icmp", "value": "icmp" }, { "name": "Gre", "value": "gre" }, { "name": "Esp", "value": "esp" }, { "name": "Any", "value": "any" } ] }, "betterstack:index/getAlertAdditionalCondition:getAlertAdditionalCondition": { "properties": { "alertType": { "type": "string", "description": "The type of the condition, 'threshold' or 'relative'.\n" }, "operator": { "type": "string", "description": "The comparison the condition makes, from the same values as \u003cspan pulumi-lang-nodejs=\"`operator`\" pulumi-lang-dotnet=\"`Operator`\" pulumi-lang-go=\"`operator`\" pulumi-lang-python=\"`operator`\" pulumi-lang-yaml=\"`operator`\" pulumi-lang-java=\"`operator`\" pulumi-lang-hcl=\"`operator`\"\u003e`operator`\u003c/span\u003e.\n" }, "seriesNames": { "type": "array", "items": { "type": "string" }, "description": "The series the condition is limited to. An empty list means every series.\n" }, "seriesNamesExcept": { "type": "array", "items": { "type": "string" }, "description": "The series the condition ignores while it watches every other series.\n" }, "stringValue": { "type": "string", "description": "Threshold value for a string series. null when the condition compares \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e.\n" }, "value": { "type": "number", "description": "Threshold value. null when the condition compares \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e.\n" } }, "type": "object", "required": [ "alertType", "operator", "seriesNames", "seriesNamesExcept", "stringValue", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getAlertEscalationTarget:getAlertEscalationTarget": { "properties": { "policyId": { "type": "string", "description": "Escalation policy ID.\n" }, "policyName": { "type": "string", "description": "Escalation policy name.\n" }, "teamId": { "type": "string", "description": "Team ID, such as 't123'.\n" }, "teamName": { "type": "string", "description": "Team name.\n" } }, "type": "object", "required": [ "policyId", "policyName", "teamId", "teamName" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getAlertVariableValue:getAlertVariableValue": { "properties": { "name": { "type": "string", "description": "The name of a variable on the alert's dashboard or exploration.\n" }, "selectedLabel": { "type": "string", "description": "For a 'select_predefined_sql' variable, the label of the filter the alert uses.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "The values the alert uses for the variable, as strings.\n" } }, "type": "object", "required": [ "name", "selectedLabel", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getApplicationCustomBucket:getApplicationCustomBucket": { "properties": { "accessKeyId": { "type": "string", "description": "The access key ID to write to the bucket with.\n" }, "endpoint": { "type": "string", "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set.\n" }, "keepDataAfterRetention": { "type": "boolean", "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set.\n" }, "name": { "type": "string", "description": "The bucket's name, taken from \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e.\n" }, "secretAccessKey": { "type": "string", "description": "The secret access key for \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e. Write-only.\n", "secret": true } }, "type": "object", "required": [ "accessKeyId", "endpoint", "keepDataAfterRetention", "name", "secretAccessKey" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getApplicationJsTagConfiguration:getApplicationJsTagConfiguration": { "properties": { "acceptIncomingSessions": { "type": "boolean", "description": "Continue sessions that arrive from your other domains.\n" }, "collect": { "$ref": "#/types/betterstack:index/getApplicationJsTagConfigurationCollect:getApplicationJsTagConfigurationCollect", "description": "The features the JavaScript tag collects, each on or off.\n" }, "customConfig": { "type": "string", "description": "JavaScript code the tag runs when it loads.\n" }, "decorateForms": { "type": "boolean", "description": "Also share sessions through forms that submit to your other domains.\n" }, "eventsBatchIntervalSeconds": { "type": "integer", "description": "Seconds between batches of events, at least 2.\n" }, "excludeSelectors": { "type": "array", "items": { "type": "string" }, "description": "CSS selectors of elements excluded from session replays and autocapture.\n" }, "maskSelectors": { "type": "array", "items": { "type": "string" }, "description": "CSS selectors of elements whose text session replays mask.\n" }, "ownDomain": { "type": "string", "description": "Your own subdomain to serve the tag from. The subdomain's CNAME record must point to `proxy.betterstack.net`.\n" }, "sampling": { "$ref": "#/types/betterstack:index/getApplicationJsTagConfigurationSampling:getApplicationJsTagConfigurationSampling", "description": "Sampling rates of the JavaScript tag, as percentages.\n" }, "sessionTimeoutMinutes": { "type": "integer", "description": "Session timeout in minutes, from 1 to 60.\n" }, "sharedSessionDomains": { "type": "array", "items": { "type": "string" }, "description": "Your other domains to share sessions with.\n" } }, "type": "object", "required": [ "acceptIncomingSessions", "collect", "customConfig", "decorateForms", "eventsBatchIntervalSeconds", "excludeSelectors", "maskSelectors", "ownDomain", "sampling", "sessionTimeoutMinutes", "sharedSessionDomains" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getApplicationJsTagConfigurationCollect:getApplicationJsTagConfigurationCollect": { "properties": { "analytics": { "type": "boolean", "description": "Record website analytics.\n" }, "anonymousEvents": { "type": "boolean", "description": "Capture anonymous user events.\n" }, "console": { "type": "boolean", "description": "Collect `console.log` calls.\n" }, "errors": { "type": "boolean", "description": "Collect frontend errors.\n" }, "fingerprint": { "type": "boolean", "description": "Collect the browser fingerprint.\n" }, "identifiedEvents": { "type": "boolean", "description": "Capture identified user events.\n" }, "memory": { "type": "boolean", "description": "Record JavaScript heap memory, in Chrome only.\n" }, "replays": { "type": "boolean", "description": "Record session replays.\n" }, "webVitals": { "type": "boolean", "description": "Record web vitals.\n" } }, "type": "object", "required": [ "analytics", "anonymousEvents", "console", "errors", "fingerprint", "identifiedEvents", "memory", "replays", "webVitals" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getApplicationJsTagConfigurationSampling:getApplicationJsTagConfigurationSampling": { "properties": { "errors": { "type": "integer", "description": "Percentage of errors sent, from 0 to 100.\n" }, "replays": { "type": "integer", "description": "Percentage of sessions recorded as session replays, from 0 to 100.\n" }, "webEvents": { "type": "integer", "description": "Percentage of sessions that send web events, from 0 to 100.\n" } }, "type": "object", "required": [ "errors", "replays", "webEvents" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getApplicationQueryCollections:getApplicationQueryCollections": { "properties": { "appFilter": { "type": "string", "description": "The condition that selects only this application's data in the collections of its connected source. null unless the application is connected to a source.\n" }, "database": { "type": "string", "description": "The ClickHouse database that holds the application's data.\n" }, "metricsAppFilter": { "type": "string", "description": "The condition that selects only this application's data in the metrics collection of its connected source. null unless the application is connected to a source.\n" }, "recent": { "type": "object", "additionalProperties": { "type": "string" }, "description": "The collections that hold the last 30 minutes of data, one for each kind of data the application holds, such as 'exceptions' or 'metrics'.\n" }, "s3": { "type": "string", "description": "The collection that holds older data of every kind.\n" }, "table": { "type": "string", "description": "The table that holds the application's data, as `database.table`.\n" } }, "type": "object", "required": [ "appFilter", "database", "metricsAppFilter", "recent", "s3", "table" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCatalogRecordAttribute:getCatalogRecordAttribute": { "properties": { "attribute": { "$ref": "#/types/betterstack:index/getCatalogRecordAttributeAttribute:getCatalogRecordAttributeAttribute", "description": "The catalog attribute to set, by ID or name. Responses include both.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getCatalogRecordAttributeValue:getCatalogRecordAttributeValue" }, "description": "Values to set for this attribute.\n" } }, "type": "object", "required": [ "attribute", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCatalogRecordAttributeAttribute:getCatalogRecordAttributeAttribute": { "properties": { "id": { "type": "string", "description": "The catalog attribute's ID.\n" }, "name": { "type": "string", "description": "The catalog attribute's name.\n" } }, "type": "object", "required": [ "id", "name" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCatalogRecordAttributeValue:getCatalogRecordAttributeValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A reference needs one of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e. A monitor, a Slack integration and a Zapier Zap can't be looked up by name.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of User, Team, EscalationPolicy, OnCallSchedule, Monitor, SlackIntegration, LinearIntegration, JiraIntegration, MicrosoftTeamsIntegration, ZapierZap, OutgoingWebhook, PagerDutyIntegration or Source. Required, unless you send a text value as `{value}` on its own.\n" }, "value": { "type": "string", "description": "The text of a String value. Required when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCatalogRelationAttribute:getCatalogRelationAttribute": { "properties": { "id": { "type": "string", "description": "ID of an existing attribute to keep. Leave it out to keep the attribute with the same name, or to add a new one.\n" }, "name": { "type": "string", "description": "Attribute name. Names must be unique within the relation.\n" }, "position": { "type": "integer", "description": "Display order, set by the order of the list. Primary attributes count from 0 and added attributes from 1000.\n" }, "primary": { "type": "boolean", "description": "Whether records are matched by this attribute. Defaults to false.\n" } }, "type": "object", "required": [ "id", "name", "position", "primary" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getClickHouseEndpoint:getClickHouseEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. The hostname resolves to the instance's addresses in those networks.\n" }, "ports": { "$ref": "#/types/betterstack:index/getClickHouseEndpointPorts:getClickHouseEndpointPorts", "description": "The ports the instance listens on.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getClickHouseEndpointPrivateIp:getClickHouseEndpointPrivateIp" }, "description": "The instance's addresses in the private networks attached to it.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is false. The hostname resolves to the instance's public IP addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getClickHouseEndpointPublicIp:getClickHouseEndpointPublicIp" }, "description": "The instance's public IP addresses. Empty when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is false.\n" } }, "type": "object", "required": [ "hostname", "ports", "privateIps", "publicHostname", "publicIps" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getClickHouseEndpointPorts:getClickHouseEndpointPorts": { "properties": { "http": { "type": "integer", "description": "The HTTP port, '8123'.\n" }, "https": { "type": "integer", "description": "The HTTPS port, '8443'.\n" }, "native": { "type": "integer", "description": "The native protocol port, '9000'.\n" }, "nativeTls": { "type": "integer", "description": "The native protocol port with TLS, '9440'.\n" } }, "type": "object", "required": [ "http", "https", "native", "nativeTls" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getClickHouseEndpointPrivateIp:getClickHouseEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The instance's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getClickHouseEndpointPublicIp:getClickHouseEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public IP address.\n" }, "type": { "type": "string", "description": "The address type, 'ipv4' or 'ipv6'.\n" } }, "type": "object", "required": [ "ip", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getClickHouseMember:getClickHouseMember": { "properties": { "createdAt": { "type": "string", "description": "When the node was created.\n" }, "diskUsedBytes": { "type": "integer", "description": "The disk space the node uses, in bytes.\n" }, "id": { "type": "string", "description": "The node's ID.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getClickHouseMemberPrivateIp:getClickHouseMemberPrivateIp" }, "description": "The node's addresses in the attached private networks.\n" }, "role": { "type": "string", "description": "The node's role, always 'primary'. Valid values: 'primary'.\n" }, "status": { "type": "string", "description": "The node's state. 'provisioning': We're creating the node. 'running': The node is up. 'down': The node doesn't respond.\n" } }, "type": "object", "required": [ "createdAt", "diskUsedBytes", "id", "privateIps", "role", "status" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getClickHouseMemberPrivateIp:getClickHouseMemberPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The node's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorConfiguration:getCollectorConfiguration": { "properties": { "bufferMaxEvents": { "type": "integer", "description": "How many events the collector's memory buffer holds before it moves them to disk. Defaults to 10000.\n" }, "components": { "$ref": "#/types/betterstack:index/getCollectorConfigurationComponents:getCollectorConfigurationComponents", "description": "Which components the collector runs, each true or false.\n" }, "diskBatchSizeMb": { "type": "integer", "description": "Size of the collector's disk buffer in MB, shown as **Batching on disk** in the web app. Defaults to 3000 and can't be less than 256.\n" }, "logLineLengthLimitKb": { "type": "integer", "description": "Maximum log line length in kB, from 4 to 128. Longer lines are dropped. Defaults to 8.\n" }, "logsSampleRate": { "type": "integer", "description": "Percentage of logs to keep, from 0 to 100. Defaults to 100.\n" }, "memoryBatchSizeMb": { "type": "integer", "description": "How much data the collector batches in memory before sending it, in MB, shown as **Batching in memory** in the web app. Defaults to 20.\n" }, "mergeLogs": { "type": "boolean", "description": "Whether the collector merges lines that continue a log entry, such as a stack trace, into the entry before them.\n" }, "mergeLogsConfig": { "type": "string", "description": "The VRL condition \u003cspan pulumi-lang-nodejs=\"`mergeLogs`\" pulumi-lang-dotnet=\"`MergeLogs`\" pulumi-lang-go=\"`mergeLogs`\" pulumi-lang-python=\"`merge_logs`\" pulumi-lang-yaml=\"`mergeLogs`\" pulumi-lang-java=\"`mergeLogs`\" pulumi-lang-hcl=\"`merge_logs`\"\u003e`mergeLogs`\u003c/span\u003e uses to tell whether a line starts a new log entry. Any other line joins the entry before it.\n" }, "namespacesOptions": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/getCollectorConfigurationNamespacesOptions:getCollectorConfigurationNamespacesOptions" }, "description": "Options per namespace, keyed by namespace name. Sending a map replaces the existing options, and an empty map clears them.\n" }, "servicesOptions": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/getCollectorConfigurationServicesOptions:getCollectorConfigurationServicesOptions" }, "description": "Options per service, keyed by service name. Sending a map replaces the existing options, and an empty map clears them.\n" }, "tracesSampleRate": { "type": "integer", "description": "Percentage of traces to keep, from 0 to 100. Defaults to 100, and 0 drops every trace.\n" }, "whenFull": { "type": "string", "description": "What the collector does when its disk buffer is full, 'drop_newest' to drop new events or 'block' to wait until there's room.\n" } }, "type": "object", "required": [ "bufferMaxEvents", "components", "diskBatchSizeMb", "logLineLengthLimitKb", "logsSampleRate", "memoryBatchSizeMb", "mergeLogs", "mergeLogsConfig", "namespacesOptions", "servicesOptions", "tracesSampleRate", "whenFull" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorConfigurationComponents:getCollectorConfigurationComponents": { "properties": { "ebpfJavaAgent": { "type": "boolean", "description": "Trace Java services with eBPF.\n" }, "ebpfMetrics": { "type": "boolean", "description": "Collect host metrics with eBPF.\n" }, "ebpfRedMetrics": { "type": "boolean", "description": "Service map and request rate, error and duration metrics with eBPF.\n" }, "ebpfTracingBasic": { "type": "boolean", "description": "Basic distributed tracing with eBPF.\n" }, "ebpfTracingFull": { "type": "boolean", "description": "Full distributed tracing with eBPF.\n" }, "logsCollectorInternals": { "type": "boolean", "description": "Collect the collector's own logs.\n" }, "logsDocker": { "type": "boolean", "description": "Collect logs of Docker containers that use the default json-file logging driver.\n" }, "logsHost": { "type": "boolean", "description": "Collect logs from the host's /var/log directory.\n" }, "logsKubernetes": { "type": "boolean", "description": "Collect Kubernetes container logs and events.\n" }, "metricsApache": { "type": "boolean", "description": "Collect Apache metrics.\n" }, "metricsCluster": { "type": "boolean", "description": "Collect Kubernetes object state metrics, such as pods, workloads, nodes and volumes.\n" }, "metricsDatabases": { "type": "boolean", "description": "Always the same as \u003cspan pulumi-lang-nodejs=\"`metricsCluster`\" pulumi-lang-dotnet=\"`MetricsCluster`\" pulumi-lang-go=\"`metricsCluster`\" pulumi-lang-python=\"`metrics_cluster`\" pulumi-lang-yaml=\"`metricsCluster`\" pulumi-lang-java=\"`metricsCluster`\" pulumi-lang-hcl=\"`metrics_cluster`\"\u003e`metricsCluster`\u003c/span\u003e. Send \u003cspan pulumi-lang-nodejs=\"`metricsCluster`\" pulumi-lang-dotnet=\"`MetricsCluster`\" pulumi-lang-go=\"`metricsCluster`\" pulumi-lang-python=\"`metrics_cluster`\" pulumi-lang-yaml=\"`metricsCluster`\" pulumi-lang-java=\"`metricsCluster`\" pulumi-lang-hcl=\"`metrics_cluster`\"\u003e`metricsCluster`\u003c/span\u003e instead.\n" }, "metricsElasticsearch": { "type": "boolean", "description": "Collect Elasticsearch metrics.\n" }, "metricsHostOs": { "type": "boolean", "description": "Collect CPU, memory, disk, filesystem and network metrics of the host.\n" }, "metricsMysql": { "type": "boolean", "description": "Collect MySQL metrics.\n" }, "metricsNginx": { "type": "boolean", "description": "Collect Nginx metrics.\n" }, "metricsOtherDatabases": { "type": "boolean", "description": "Collect Redis, MongoDB, Memcached and Kafka metrics.\n" }, "metricsPgbouncer": { "type": "boolean", "description": "Collect PgBouncer metrics.\n" }, "metricsPostgres": { "type": "boolean", "description": "Collect PostgreSQL metrics.\n" }, "metricsProcessStatistics": { "type": "boolean", "description": "Collect the host's process and thread counts. Counting them can use significant CPU on a host that runs very many processes.\n" }, "metricsTraefik": { "type": "boolean", "description": "Collect Traefik metrics.\n" }, "tracesOpentelemetry": { "type": "boolean", "description": "Accept OpenTelemetry traces from your SDKs over OTLP.\n" } }, "type": "object", "required": [ "ebpfJavaAgent", "ebpfMetrics", "ebpfRedMetrics", "ebpfTracingBasic", "ebpfTracingFull", "logsCollectorInternals", "logsDocker", "logsHost", "logsKubernetes", "metricsApache", "metricsCluster", "metricsDatabases", "metricsElasticsearch", "metricsHostOs", "metricsMysql", "metricsNginx", "metricsOtherDatabases", "metricsPgbouncer", "metricsPostgres", "metricsProcessStatistics", "metricsTraefik", "tracesOpentelemetry" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorConfigurationNamespacesOptions:getCollectorConfigurationNamespacesOptions": { "properties": { "ingestTraces": { "type": "boolean", "description": "Whether to ingest the namespace's traces.\n" }, "logSampling": { "type": "integer", "description": "Percentage of the namespace's logs to keep, from 0 to 100.\n" } }, "type": "object", "required": [ "ingestTraces", "logSampling" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorConfigurationServicesOptions:getCollectorConfigurationServicesOptions": { "properties": { "ingestTraces": { "type": "boolean", "description": "Whether to ingest the service's traces.\n" }, "logSampling": { "type": "integer", "description": "Percentage of the service's logs to keep, from 0 to 100.\n" } }, "type": "object", "required": [ "ingestTraces", "logSampling" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorCustomBucket:getCollectorCustomBucket": { "properties": { "accessKeyId": { "type": "string", "description": "The access key ID Better Stack uses to write to the bucket.\n" }, "endpoint": { "type": "string", "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set.\n" }, "keepDataAfterRetention": { "type": "boolean", "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set.\n" }, "name": { "type": "string", "description": "The bucket's name, taken from \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e.\n" }, "secretAccessKey": { "type": "string", "description": "The secret access key for \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e. Write-only, so it's never returned.\n", "secret": true } }, "type": "object", "required": [ "accessKeyId", "endpoint", "keepDataAfterRetention", "name", "secretAccessKey" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorServiceField:getCollectorServiceField": { "properties": { "nameKey": { "type": "string", "description": "The field to extract the service name from, such as `service.name`.\n" }, "typeKey": { "type": "string", "description": "The field to extract the service's platform from, such as `service.type`. Platforms such as Nginx, PostgreSQL or Redis are recognized in its value.\n" } }, "type": "object", "required": [ "nameKey", "typeKey" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorTargetAnnotations:getCollectorTargetAnnotations": { "properties": { "apiKey": { "$ref": "#/types/betterstack:index/getCollectorTargetAnnotationsApiKey:getCollectorTargetAnnotationsApiKey", "description": "Where the collector gets the API key. Present only for 'elasticsearch' targets.\n" }, "keys": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getCollectorTargetAnnotationsKey:getCollectorTargetAnnotationsKey" }, "description": "The annotation keys that apply to the target, each with the Kubernetes object it's on. A key whose value isn't valid is listed too, and the collector ignores it.\n" }, "password": { "$ref": "#/types/betterstack:index/getCollectorTargetAnnotationsPassword:getCollectorTargetAnnotationsPassword", "description": "Where the collector gets the password.\n" }, "scheme": { "type": "string", "description": "The connection scheme the collector uses, from an annotation or the default 'http'. Present only for 'elasticsearch' targets. Valid values: 'http', 'https'.\n" }, "sslMode": { "type": "string", "description": "The SSL mode the collector uses, from an annotation or the default 'disable'. Present only for 'postgres', 'pgbouncer' and 'pgcat' targets. 'disable': Connects without SSL. 'require': Connects over SSL without verifying the server's certificate. `verify-ca`: Connects over SSL and checks that a trusted certificate authority signed the server's certificate.\n" }, "tls": { "type": "string", "description": "The TLS mode the collector uses, from an annotation or the default false. Present only for 'mysql' targets. false: Connects without TLS. true: Connects over TLS and verifies the server's certificate. `skip-verify`: Connects over TLS without verifying the server's certificate. 'preferred': Uses TLS when the server supports it, without verifying the server's certificate.\n" }, "username": { "$ref": "#/types/betterstack:index/getCollectorTargetAnnotationsUsername:getCollectorTargetAnnotationsUsername", "description": "Where the collector gets the username.\n" } }, "type": "object", "required": [ "apiKey", "keys", "password", "scheme", "sslMode", "tls", "username" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorTargetAnnotationsApiKey:getCollectorTargetAnnotationsApiKey": { "properties": { "source": { "type": "string", "description": "Where the value comes from, or null when no annotation sets it. With null, the collector connects without the credential. 'annotation': An annotation sets the value directly. 'secret': The value comes from a Kubernetes Secret.\n" } }, "type": "object", "required": [ "source" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorTargetAnnotationsKey:getCollectorTargetAnnotationsKey": { "properties": { "key": { "type": "string", "description": "The annotation key, such as `betterstack.com/postgres-secret-name`.\n" }, "kind": { "type": "string", "description": "The kind of Kubernetes object the annotation is on, or null for an object of another kind. Valid values: `Deployment`, `StatefulSet`, `DaemonSet`, `Namespace`.\n" }, "name": { "type": "string", "description": "The name of the object. When \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is null, \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e holds the object's full reference, such as `shop/CronJob/backup`.\n" }, "namespace": { "type": "string", "description": "The namespace of the object. Present only for a `Deployment`, `StatefulSet` or `DaemonSet`.\n" } }, "type": "object", "required": [ "key", "kind", "name", "namespace" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorTargetAnnotationsPassword:getCollectorTargetAnnotationsPassword": { "properties": { "source": { "type": "string", "description": "Where the password comes from, or null when no annotation sets it. With null, the collector connects without the credential. 'annotation': An annotation sets the password directly. 'secret': The password comes from a Kubernetes Secret.\n" } }, "type": "object", "required": [ "source" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getCollectorTargetAnnotationsUsername:getCollectorTargetAnnotationsUsername": { "properties": { "source": { "type": "string", "description": "Where the username comes from, or null when no annotation sets it. With null, the collector connects without the credential. 'annotation': An annotation sets the username directly. 'secret': The username comes from a Kubernetes Secret.\n" }, "value": { "type": "string", "description": "The username when an annotation sets it directly, or null otherwise.\n" } }, "type": "object", "required": [ "source", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getConnectionCluster:getConnectionCluster": { "properties": { "host": { "type": "string", "description": "Host to connect to the cluster on.\n" }, "name": { "type": "string", "description": "The cluster's name.\n" } }, "type": "object", "required": [ "host", "name" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getConnectionCreatedBy:getConnectionCreatedBy": { "properties": { "email": { "type": "string", "description": "The creator's e-mail.\n" }, "id": { "type": "string", "description": "The creator's user ID, such as 'u123'.\n" } }, "type": "object", "required": [ "email", "id" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getConnectionDataSource:getConnectionDataSource": { "properties": { "connectionUrl": { "type": "string", "description": "The URL to connect to for this source's data.\n" }, "dataSources": { "type": "array", "items": { "type": "string" }, "description": "ClickHouse collection names you can query for this source.\n" }, "sourceId": { "type": "string", "description": "The source's ID.\n" }, "sourceName": { "type": "string", "description": "The source's name.\n" }, "teamName": { "type": "string", "description": "The name of the team the source belongs to.\n" } }, "type": "object", "required": [ "connectionUrl", "dataSources", "sourceId", "sourceName", "teamName" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQuery:getDashboardChartQuery": { "properties": { "coordinates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryCoordinate:getDashboardChartQueryCoordinate" }, "description": "Coordinate blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryFilter:getDashboardChartQueryFilter" }, "description": "Filter blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" }, "funnelQuery": { "$ref": "#/types/betterstack:index/getDashboardChartQueryFunnelQuery:getDashboardChartQueryFunnelQuery", "description": "Funnel definition of a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query. Read-only.\n" }, "groupBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryGroupBy:getDashboardChartQueryGroupBy" }, "description": "Grouping blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" }, "having": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryHaving:getDashboardChartQueryHaving" }, "description": "Having blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "id": { "type": "string", "description": "The query's ID.\n" }, "name": { "type": "string", "description": "The query's name. Left out when the query has none.\n" }, "orderBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryOrderBy:getDashboardChartQueryOrderBy" }, "description": "Ordering blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "pointSize": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryPointSize:getDashboardChartQueryPointSize" }, "description": "Point size blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" }, "pqlQuery": { "type": "string", "description": "PQL source of a 'pql_expression' query. Read-only.\n" }, "queryType": { "type": "string", "description": "The query's type. You can write 'sql_expression', 'tail_query' and \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e queries. Queries built in the web app's editor can also be 'pql_expression', 'query_builder', 'tail_query_builder', \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e, 'promql_query', 'promql_v2_query' or 'promql_via_llm', and can't be written.\n" }, "sourceVariable": { "type": "string", "description": "The sources the query reads, as the name of a 'source' variable, such as 'source', or a `source:` reference to specific sources. Defaults to 'source'.\n" }, "sqlQuery": { "type": "string", "description": "The SQL the query runs. Returned for 'sql_expression', 'pql_expression', 'query_builder', 'tail_query_builder' and \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e queries.\n" }, "staticText": { "type": "string", "description": "The Markdown text a \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query shows. Left out when not set.\n" }, "where": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryWhere:getDashboardChartQueryWhere" }, "description": "Where blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "whereCondition": { "type": "string", "description": "The filter of a 'tail_query' or 'tail_query_builder' query. Left out when not set.\n" }, "xAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryXAxis:getDashboardChartQueryXAxis" }, "description": "X-axis blocks of a 'query_builder' or 'tail_query_builder' query, as an empty list when there are none. Read-only.\n" }, "yAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryYAxis:getDashboardChartQueryYAxis" }, "description": "Y-axis blocks of a 'query_builder' or 'tail_query_builder' query. Left out when not set. Read-only.\n" } }, "type": "object", "required": [ "coordinates", "filters", "funnelQuery", "groupBy", "having", "id", "name", "orderBy", "pointSize", "pqlQuery", "queryType", "sourceVariable", "sqlQuery", "staticText", "where", "whereCondition", "xAxes", "yAxes" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryCoordinate:getDashboardChartQueryCoordinate": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryFilter:getDashboardChartQueryFilter": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryFunnelQuery:getDashboardChartQueryFunnelQuery": { "properties": { "breakdown": { "$ref": "#/types/betterstack:index/getDashboardChartQueryFunnelQueryBreakdown:getDashboardChartQueryFunnelQueryBreakdown", "description": "The field each step is split by, or null when the funnel has no breakdown.\n" }, "sessionField": { "type": "string", "description": "Field that ties one journey's events together, such as 'session_id' or `user.id`.\n" }, "steps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartQueryFunnelQueryStep:getDashboardChartQueryFunnelQueryStep" }, "description": "The funnel's steps in journey order.\n" } }, "type": "object", "required": [ "breakdown", "sessionField", "steps" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryFunnelQueryBreakdown:getDashboardChartQueryFunnelQueryBreakdown": { "properties": { "type": { "type": "string", "description": "The type of the breakdown field, always 'string'.\n" }, "value": { "type": "string", "description": "The field each step is split by, such as `contexts.browser.name`.\n" } }, "type": "object", "required": [ "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryFunnelQueryStep:getDashboardChartQueryFunnelQueryStep": { "properties": { "conditions": { "type": "string", "description": "Live tail query that the step's events match, such as `payload.meta.path=\"/cart\"`.\n" }, "name": { "type": "string", "description": "Step name shown on the chart.\n" } }, "type": "object", "required": [ "conditions", "name" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryGroupBy:getDashboardChartQueryGroupBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryHaving:getDashboardChartQueryHaving": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryOrderBy:getDashboardChartQueryOrderBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryPointSize:getDashboardChartQueryPointSize": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryWhere:getDashboardChartQueryWhere": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryXAxis:getDashboardChartQueryXAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartQueryYAxis:getDashboardChartQueryYAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartSettings:getDashboardChartSettings": { "properties": { "colorGreenWords": { "type": "string", "description": "Values a number chart shows in green, separated by commas.\n" }, "colorLowerThreshold": { "type": "number", "description": "Lower threshold of a number chart's colors.\n" }, "colorMode": { "type": "string", "description": "How a number chart colors its value. Usually 'auto', 'high_green', 'high_red' or 'specific_words'.\n" }, "colorRedWords": { "type": "string", "description": "Values a number chart shows in red, separated by commas.\n" }, "colorUpperThreshold": { "type": "number", "description": "Upper threshold of a number chart's colors.\n" }, "colorYellowWords": { "type": "string", "description": "Values a number chart shows in yellow, separated by commas.\n" }, "columnUnits": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/getDashboardChartSettingsColumnUnits:getDashboardChartSettingsColumnUnits" }, "description": "Unit of each table column, by column name.\n" }, "columnWidths": { "type": "object", "additionalProperties": { "type": "number" }, "description": "Width of each table column, by column name, as the chart editor saves it.\n" }, "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "decimalPlaces": { "type": "integer", "description": "Number of decimal places shown.\n" }, "filteredReleases": { "type": "array", "items": { "type": "string" }, "description": "Releases the chart shows.\n" }, "filteredSeries": { "type": "array", "items": { "type": "string" }, "description": "Series the chart shows, by name.\n" }, "forceSourceSeries": { "type": "boolean", "description": "Whether the chart shows one series per source.\n" }, "fresh": { "type": "boolean", "description": "Whether the chart skips cached results.\n" }, "funnelUnitName": { "type": "string", "description": "Word a funnel chart counts in, such as 'people'.\n" }, "groupByColumns": { "type": "array", "items": { "type": "string" }, "description": "Up to two columns a hierarchy chart groups its hexagons by.\n" }, "guessedSeriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Colors the chart picked for its series, keyed by \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e.\n" }, "heatmapColorMode": { "type": "string", "description": "How a heatmap colors its cells. Usually 'gradient' or 'categorized'.\n" }, "label": { "type": "string", "description": "A legend placement the chart editor saves next to \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e, such as 'shown_below'. Charts ignore it and place the legend by \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e.\n" }, "labelColumn": { "type": "string", "description": "Column that names each hexagon on a hierarchy chart.\n" }, "legend": { "type": "string", "description": "Where the legend is shown. Usually 'hidden', 'shown_below', 'shown_below_with_statistics' or 'shown_right'.\n" }, "linkTemplate": { "type": "string", "description": "Link a hierarchy chart opens when you click a hexagon, with `{{column}}` placeholders.\n" }, "locationColumn": { "type": "string", "description": "Column holding the location on a map chart.\n" }, "locationLabel": { "type": "string", "description": "What a map chart's tooltip names, either the closest city or country or the value as sent. Usually 'automatic' or 'original_value'.\n" }, "max": { "type": "number", "description": "Upper bound of a gauge, the goal value.\n" }, "maxValue": { "type": "number", "description": "Highest value of a hierarchy chart's color scale.\n" }, "min": { "type": "number", "description": "Lower bound of a gauge.\n" }, "minValue": { "type": "number", "description": "Lowest value of a hierarchy chart's color scale.\n" }, "orientation": { "type": "string", "description": "Direction of the bars on a bar chart. Usually 'vertical' or 'horizontal'.\n" }, "palette": { "type": "string", "description": "Color scale of a hierarchy chart. Usually 'green_to_red' or 'red_to_green'.\n" }, "percentageHighlightColumns": { "type": "array", "items": { "type": "string" }, "description": "Table columns holding ratios from 0 to 1, shown with a bar.\n" }, "pointSizeColumn": { "type": "string", "description": "Column that sets each point's size on a scatter chart.\n" }, "projection": { "type": "string", "description": "Map projection of a map chart, such as 'mercator'.\n" }, "publishedCacheFor": { "type": "integer", "description": "Seconds a published chart's results are cached, 3 by default.\n" }, "publishedFormat": { "type": "string", "description": "Format a published chart is served in, 'json' by default.\n" }, "rowTemplates": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Live tail row format of each source, by source ID.\n" }, "sampling": { "type": "integer", "description": "Percentage of data the chart samples.\n" }, "seriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Color of each series, keyed by its \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e, as a hex color such as `#22c55e`.\n" }, "seriesColumn": { "type": "string", "description": "Column that splits the data into series. On a heatmap it's the Y axis column.\n" }, "seriesCustomUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`seriesUnit`\" pulumi-lang-dotnet=\"`SeriesUnit`\" pulumi-lang-go=\"`seriesUnit`\" pulumi-lang-python=\"`series_unit`\" pulumi-lang-yaml=\"`seriesUnit`\" pulumi-lang-java=\"`seriesUnit`\" pulumi-lang-hcl=\"`series_unit`\"\u003e`seriesUnit`\u003c/span\u003e is your own suffix.\n" }, "seriesOrder": { "type": "array", "items": { "type": "string" }, "description": "Order the series are shown in, by name.\n" }, "seriesUnit": { "type": "string", "description": "Unit of a heatmap's Y axis labels.\n" }, "showPreviousPeriod": { "type": "boolean", "description": "Whether a line chart also shows the previous period.\n" }, "stacking": { "type": "string", "description": "How series are stacked. Usually 'dont_stack', 'stack' or 'stack_to_100'.\n" }, "tableWidth": { "type": "integer", "description": "Width of the table the \u003cspan pulumi-lang-nodejs=\"`columnWidths`\" pulumi-lang-dotnet=\"`ColumnWidths`\" pulumi-lang-go=\"`columnWidths`\" pulumi-lang-python=\"`column_widths`\" pulumi-lang-yaml=\"`columnWidths`\" pulumi-lang-java=\"`columnWidths`\" pulumi-lang-hcl=\"`column_widths`\"\u003e`columnWidths`\u003c/span\u003e were saved for.\n" }, "text": { "type": "string", "description": "Markdown text of a text chart.\n" }, "timeColumn": { "type": "string", "description": "Column on the X axis, 'time' by default. For a category bar chart it's the grouping column.\n" }, "treatMissingValues": { "type": "string", "description": "How gaps in the data are drawn. Usually 'connected', 'disconnected', 'zero' or 'previous'.\n" }, "treatZeroValues": { "type": "string", "description": "How zero values are drawn, 'keep' or 'drop_disconnected'. Defaults to 'keep'.\n" }, "unit": { "type": "string", "description": "Unit the values are shown in, such as 'percent', 'bytes' or 'ms'. Table charts use \u003cspan pulumi-lang-nodejs=\"`columnUnits`\" pulumi-lang-dotnet=\"`ColumnUnits`\" pulumi-lang-go=\"`columnUnits`\" pulumi-lang-python=\"`column_units`\" pulumi-lang-yaml=\"`columnUnits`\" pulumi-lang-java=\"`columnUnits`\" pulumi-lang-hcl=\"`column_units`\"\u003e`columnUnits`\u003c/span\u003e instead.\n" }, "valueCategories": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/getDashboardChartSettingsValueCategories:getDashboardChartSettingsValueCategories" }, "description": "Label and color of each cell value of a categorized heatmap.\n" }, "valueColumns": { "type": "array", "items": { "type": "string" }, "description": "Result columns that hold the values to chart.\n" }, "xAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartSettingsXAxisAnnotation:getDashboardChartSettingsXAxisAnnotation" }, "description": "Vertical lines drawn at values on the X axis, each with a label and color. A value is a time or a number, as the X axis reads it.\n" }, "xAxisType": { "type": "string", "description": "How the X axis is read. Usually 'time', \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" }, "yAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardChartSettingsYAxisAnnotation:getDashboardChartSettingsYAxisAnnotation" }, "description": "Horizontal lines drawn at values on the Y axis, each with a label and color.\n" }, "yAxisAutoRange": { "type": "string", "description": "How a line chart fits its Y axis when no bounds are set. Usually 'include_zero' or 'fit_data'.\n" }, "yAxisMax": { "type": "number", "description": "Highest value on the Y axis.\n" }, "yAxisMin": { "type": "number", "description": "Lowest value on the Y axis.\n" }, "yAxisScale": { "type": "string", "description": "Scale of the Y axis. Usually 'linear' or 'log'.\n" }, "yAxisType": { "type": "string", "description": "How the Y axis of a scatter chart is read. Usually \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" } }, "type": "object", "required": [ "colorGreenWords", "colorLowerThreshold", "colorMode", "colorRedWords", "colorUpperThreshold", "colorYellowWords", "columnUnits", "columnWidths", "customUnit", "decimalPlaces", "filteredReleases", "filteredSeries", "forceSourceSeries", "fresh", "funnelUnitName", "groupByColumns", "guessedSeriesColors", "heatmapColorMode", "label", "labelColumn", "legend", "linkTemplate", "locationColumn", "locationLabel", "max", "maxValue", "min", "minValue", "orientation", "palette", "percentageHighlightColumns", "pointSizeColumn", "projection", "publishedCacheFor", "publishedFormat", "rowTemplates", "sampling", "seriesColors", "seriesColumn", "seriesCustomUnit", "seriesOrder", "seriesUnit", "showPreviousPeriod", "stacking", "tableWidth", "text", "timeColumn", "treatMissingValues", "treatZeroValues", "unit", "valueCategories", "valueColumns", "xAxisAnnotations", "xAxisType", "yAxisAnnotations", "yAxisAutoRange", "yAxisMax", "yAxisMin", "yAxisScale", "yAxisType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartSettingsColumnUnits:getDashboardChartSettingsColumnUnits": { "properties": { "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "unit": { "type": "string", "description": "Unit the column's values are shown in, such as 'auto', 'percent' or 'bytes'.\n" } }, "type": "object", "required": [ "customUnit", "unit" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartSettingsValueCategories:getDashboardChartSettingsValueCategories": { "properties": { "color": { "type": "string", "description": "Color of the cells with the value, as a hex color such as `#22c55e`.\n" }, "label": { "type": "string", "description": "Text shown for the value.\n" } }, "type": "object", "required": [ "color", "label" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartSettingsXAxisAnnotation:getDashboardChartSettingsXAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "string", "description": "The X axis value the line is drawn at, a time or a number.\n" } }, "type": "object", "required": [ "color", "label", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartSettingsYAxisAnnotation:getDashboardChartSettingsYAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "number", "description": "The Y axis value the line is drawn at.\n" } }, "type": "object", "required": [ "color", "label", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardChartSummary:getDashboardChartSummary": { "properties": { "chartType": { "type": "string", "description": "The chart's type, 'line_chart', 'table_chart', 'bar_chart', 'number_chart', 'heatmap_chart', 'anomalies_chart', 'pie_chart', 'scatter_chart', 'gauge_chart', 'tail_chart', 'static_text_chart', 'map_chart', 'text_chart', 'funnel_chart', 'funnel_trend_chart' or 'hierarchy_chart'.\n" }, "h": { "type": "integer", "description": "The chart's height in grid rows.\n" }, "id": { "type": "string", "description": "The chart's ID.\n" }, "name": { "type": "string", "description": "The chart's name.\n" }, "w": { "type": "integer", "description": "The chart's width in grid columns, from '1' to '12'.\n" }, "x": { "type": "integer", "description": "The chart's horizontal position on the 12-column grid, from '0' at the left.\n" }, "y": { "type": "integer", "description": "The chart's vertical position on the grid, from '0' at the top.\n" } }, "type": "object", "required": [ "chartType", "h", "id", "name", "w", "x", "y" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardSectionSummary:getDashboardSectionSummary": { "properties": { "collapsed": { "type": "boolean", "description": "Whether the section is collapsed.\n" }, "id": { "type": "string", "description": "The section's ID.\n" }, "name": { "type": "string", "description": "The section's name.\n" }, "y": { "type": "integer", "description": "The section's vertical position on the grid, from '0' at the top. A section spans the full width.\n" } }, "type": "object", "required": [ "collapsed", "id", "name", "y" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardVariable:getDashboardVariable": { "properties": { "allowMultipleValues": { "type": "boolean", "description": "Whether a 'select_value' or 'select_with_sql' variable accepts more than one value at a time.\n" }, "defaultValues": { "type": "array", "items": { "type": "string" }, "description": "The variable's default values as strings, or an empty list when it has none.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardVariableFilter:getDashboardVariableFilter" }, "description": "The saved filters of a 'select_predefined_sql' variable.\n" }, "name": { "type": "string", "description": "The name of the variable, used as `{{name}}` in queries.\n" }, "selectedLabel": { "type": "string", "description": "The label of the selected filter of a 'select_predefined_sql' variable. When not sent, the first filter is selected. A label that matches none of \u003cspan pulumi-lang-nodejs=\"`filters`\" pulumi-lang-dotnet=\"`Filters`\" pulumi-lang-go=\"`filters`\" pulumi-lang-python=\"`filters`\" pulumi-lang-yaml=\"`filters`\" pulumi-lang-java=\"`filters`\" pulumi-lang-hcl=\"`filters`\"\u003e`filters`\u003c/span\u003e is refused.\n" }, "sourceIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the sources a 'source' variable selects. Each must be one of your sources.\n" }, "sqlDefinition": { "type": "string", "description": "The SQL expression whose distinct values are the options of a 'select_with_sql' variable, such as `JSONExtractString(raw, 'service')`. The expression runs against the variable's source over the selected range.\n" }, "structuredValue": { "$ref": "#/types/betterstack:index/getDashboardVariableStructuredValue:getDashboardVariableStructuredValue", "description": "The variable's other settings, such as the selected sources of a 'source' variable in `canonicalSourceIds` and its services in `serviceIds`, or the saved filters of a 'select_predefined_sql' variable. Left out when not set.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "The variable's current values as strings, or an empty list when it has none. For a 'source' variable, the IDs of the selected sources.\n" }, "variableType": { "type": "string", "description": "The type of the variable, 'source', 'date', 'datetime', 'string', 'number', 'sql_expression', 'select_value', 'boolean', 'select_with_sql' or 'select_predefined_sql'.\n" } }, "type": "object", "required": [ "allowMultipleValues", "defaultValues", "filters", "name", "selectedLabel", "sourceIds", "sqlDefinition", "structuredValue", "values", "variableType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardVariableFilter:getDashboardVariableFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "required": [ "label", "sql" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardVariableStructuredValue:getDashboardVariableStructuredValue": { "properties": { "canonicalSourceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected sources of a source variable. Source IDs in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e set them.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getDashboardVariableStructuredValueFilter:getDashboardVariableStructuredValueFilter" }, "description": "Saved filters, each a label and the SQL that lists its values.\n" }, "selectedLabel": { "type": "string", "description": "Label of the selected value.\n" }, "serviceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected services of a source variable.\n" } }, "type": "object", "required": [ "canonicalSourceIds", "filters", "selectedLabel", "serviceIds" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getDashboardVariableStructuredValueFilter:getDashboardVariableStructuredValueFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "required": [ "label", "sql" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsGitHubIntegrationRepository:getErrorsGitHubIntegrationRepository": { "properties": { "defaultBranch": { "type": "string", "description": "The repository's default branch.\n" }, "fullName": { "type": "string", "description": "The repository's owner and name, such as `acme/api`.\n" }, "id": { "type": "string", "description": "ID of the repository.\n" } }, "type": "object", "required": [ "defaultBranch", "fullName", "id" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsJiraIntegrationApplication:getErrorsJiraIntegrationApplication": { "properties": { "applicationId": { "type": "string", "description": "ID of an Error tracking application.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments whose errors the integration files work items for. Empty means every environment.\n" } }, "type": "object", "required": [ "applicationId", "environments" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsJiraIntegrationNotifications:getErrorsJiraIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users. When this integration already filed a Jira work item for the error, we comment on it instead.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Jira work item for the error, we comment on it instead.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e. When this integration already filed a Jira work item for the error, we comment on it instead.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "required": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "occurrenceMilestones", "occurrenceThreshold", "spikes" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsJiraIntegrationTagFilter:getErrorsJiraIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "required": [ "tag", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsLinearIntegrationApplication:getErrorsLinearIntegrationApplication": { "properties": { "applicationId": { "type": "string", "description": "ID of an Error tracking application.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments whose errors the integration files issues for. Empty means every environment.\n" } }, "type": "object", "required": [ "applicationId", "environments" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsLinearIntegrationNotifications:getErrorsLinearIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users. When this integration already filed a Linear issue for the error, we comment on it instead.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on. When this integration already filed a Linear issue for the error, we comment on it instead.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e. When this integration already filed a Linear issue for the error, we comment on it instead.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "required": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "occurrenceMilestones", "occurrenceThreshold", "spikes" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsLinearIntegrationTagFilter:getErrorsLinearIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "required": [ "tag", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsMicrosoftTeamsIntegrationNotifications:getErrorsMicrosoftTeamsIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "newReleases": { "type": "boolean", "description": "New release is observed.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e.\n" }, "spikeProtection": { "type": "boolean", "description": "Spike protection starts sampling exceptions.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "required": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "newReleases", "occurrenceMilestones", "occurrenceThreshold", "spikeProtection", "spikes" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsMicrosoftTeamsIntegrationRoute:getErrorsMicrosoftTeamsIntegrationRoute": { "properties": { "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getErrorsMicrosoftTeamsIntegrationRouteApplication:getErrorsMicrosoftTeamsIntegrationRouteApplication" }, "description": "Applications whose errors this route sends, each with its environments. Empty means any application.\n" }, "channels": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getErrorsMicrosoftTeamsIntegrationRouteChannel:getErrorsMicrosoftTeamsIntegrationRouteChannel" }, "description": "Channels the route posts to. At least one.\n" } }, "type": "object", "required": [ "applications", "channels" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsMicrosoftTeamsIntegrationRouteApplication:getErrorsMicrosoftTeamsIntegrationRouteApplication": { "properties": { "applicationId": { "type": "string", "description": "The ID of the application whose errors the route sends.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "The environments whose errors the route sends, such as 'production'. Empty means every environment.\n" } }, "type": "object", "required": [ "applicationId", "environments" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsMicrosoftTeamsIntegrationRouteChannel:getErrorsMicrosoftTeamsIntegrationRouteChannel": { "properties": { "id": { "type": "string", "description": "Microsoft Teams channel ID of a standard channel in the team the app was added to.\n" }, "name": { "type": "string", "description": "Channel name, as Teams lists it.\n" } }, "type": "object", "required": [ "id", "name" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsMicrosoftTeamsIntegrationTagFilter:getErrorsMicrosoftTeamsIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "required": [ "tag", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsSlackIntegrationApplication:getErrorsSlackIntegrationApplication": { "properties": { "applicationId": { "type": "string", "description": "ID of an Error tracking application.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments whose errors the integration posts. Empty means every environment.\n" } }, "type": "object", "required": [ "applicationId", "environments" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsSlackIntegrationNotifications:getErrorsSlackIntegrationNotifications": { "properties": { "affectedUsersThreshold": { "type": "boolean", "description": "Error reaches \u003cspan pulumi-lang-nodejs=\"`affectedUsersThresholdCount`\" pulumi-lang-dotnet=\"`AffectedUsersThresholdCount`\" pulumi-lang-go=\"`affectedUsersThresholdCount`\" pulumi-lang-python=\"`affected_users_threshold_count`\" pulumi-lang-yaml=\"`affectedUsersThresholdCount`\" pulumi-lang-java=\"`affectedUsersThresholdCount`\" pulumi-lang-hcl=\"`affected_users_threshold_count`\"\u003e`affectedUsersThresholdCount`\u003c/span\u003e affected users.\n" }, "automaticallyReopened": { "type": "boolean", "description": "Error is automatically re-opened.\n" }, "newErrors": { "type": "boolean", "description": "New error occurs.\n" }, "newReleases": { "type": "boolean", "description": "New release is observed.\n" }, "occurrenceMilestones": { "type": "boolean", "description": "Error reaches an occurrence milestone of 10, 100, 200, 500 and so on.\n" }, "occurrenceThreshold": { "type": "boolean", "description": "Error occurs \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdCount`\" pulumi-lang-dotnet=\"`OccurrenceThresholdCount`\" pulumi-lang-go=\"`occurrenceThresholdCount`\" pulumi-lang-python=\"`occurrence_threshold_count`\" pulumi-lang-yaml=\"`occurrenceThresholdCount`\" pulumi-lang-java=\"`occurrenceThresholdCount`\" pulumi-lang-hcl=\"`occurrence_threshold_count`\"\u003e`occurrenceThresholdCount`\u003c/span\u003e times within \u003cspan pulumi-lang-nodejs=\"`occurrenceThresholdInterval`\" pulumi-lang-dotnet=\"`OccurrenceThresholdInterval`\" pulumi-lang-go=\"`occurrenceThresholdInterval`\" pulumi-lang-python=\"`occurrence_threshold_interval`\" pulumi-lang-yaml=\"`occurrenceThresholdInterval`\" pulumi-lang-java=\"`occurrenceThresholdInterval`\" pulumi-lang-hcl=\"`occurrence_threshold_interval`\"\u003e`occurrenceThresholdInterval`\u003c/span\u003e.\n" }, "spikeProtection": { "type": "boolean", "description": "Spike protection starts sampling exceptions.\n" }, "spikes": { "type": "boolean", "description": "Application has a spike in errors.\n" } }, "type": "object", "required": [ "affectedUsersThreshold", "automaticallyReopened", "newErrors", "newReleases", "occurrenceMilestones", "occurrenceThreshold", "spikeProtection", "spikes" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getErrorsSlackIntegrationTagFilter:getErrorsSlackIntegrationTagFilter": { "properties": { "tag": { "type": "string", "description": "Exception tag, such as environment or level.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "Matches any of these values.\n" } }, "type": "object", "required": [ "tag", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getEscalationPolicyStep:getEscalationPolicyStep": { "properties": { "actionType": { "type": "string", "description": "What the step does. Required on 'resolve_remove' steps, which accept only resolving or removing. On branching steps, the action applies when the incident matches. Defaults to running another policy when you set \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e, and to stopping otherwise. 'escalate_to_policy': Runs the escalation policy in \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e and stops this policy. 'resolve_incident': Resolves the incident and stops this policy. 'remove_incident': Removes the incident for good and stops this policy. 'do_not_escalate': Stops this policy.\n" }, "days": { "type": "array", "items": { "type": "string" }, "description": "The days on which the time window applies, out of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. Used on 'time_branching' steps and defaults to every day.\n" }, "escalationPolicyId": { "type": "string", "description": "The ID of another escalation policy in your organization to run when the incident matches. Used on 'time_branching' and 'metadata_branching' steps. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e.\n" }, "instructionsComment": { "type": "string", "description": "The instructions posted as a comment into the incident timeline. Supports Markdown, checkboxes like `- [ ] Step 1`, and values from the incident's metadata as `{key}`, such as `{server_region}`. Required on 'instructions' steps.\n" }, "instructionsReminderEnabled": { "type": "boolean", "description": "Whether to post a reminder periodically until every checkbox in the instructions is checked. Defaults to false.\n" }, "instructionsReminderIntervalHours": { "type": "integer", "description": "How often the reminder is posted, in hours, on 'instructions' steps with \u003cspan pulumi-lang-nodejs=\"`instructionsReminderEnabled`\" pulumi-lang-dotnet=\"`InstructionsReminderEnabled`\" pulumi-lang-go=\"`instructionsReminderEnabled`\" pulumi-lang-python=\"`instructions_reminder_enabled`\" pulumi-lang-yaml=\"`instructionsReminderEnabled`\" pulumi-lang-java=\"`instructionsReminderEnabled`\" pulumi-lang-hcl=\"`instructions_reminder_enabled`\"\u003e`instructionsReminderEnabled`\u003c/span\u003e on. At least '1', and '4' by default.\n" }, "metadataKey": { "type": "string", "description": "The incident metadata key the step checks. Required on 'metadata_branching' steps.\n" }, "metadataValues": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getEscalationPolicyStepMetadataValue:getEscalationPolicyStepMetadataValue" }, "description": "The metadata values that match, at least one. Required on 'metadata_branching' steps. Each is `{type: \"String\", value}`, `{type: 'no_value'}` or a catalog item reference. 'no_value' matches when the key is missing or blank.\n" }, "policyMetadataKey": { "type": "string", "description": "A key in the incident's metadata that holds the escalation policy to run when the incident matches, instead of \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e. Used on 'time_branching' and 'metadata_branching' steps. If the key is missing or holds no policy, the policy stops.\n" }, "severityId": { "type": "string", "description": "The ID of the severity that sets how the step's members are notified. Required on 'escalation' steps. Get the severity ID via [List severities](https://betterstack.com/docs/uptime/api/list-all-severities/).\n" }, "stepMembers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getEscalationPolicyStepStepMember:getEscalationPolicyStepStepMember" }, "description": "Who or what the step notifies, at least one member. Required on 'escalation' steps. Each member has a \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e, plus an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`metadataKey`\" pulumi-lang-dotnet=\"`MetadataKey`\" pulumi-lang-go=\"`metadataKey`\" pulumi-lang-python=\"`metadata_key`\" pulumi-lang-yaml=\"`metadataKey`\" pulumi-lang-java=\"`metadataKey`\" pulumi-lang-hcl=\"`metadata_key`\"\u003e`metadataKey`\u003c/span\u003e depending on the type.\n" }, "timeFrom": { "type": "string", "description": "Start of the time window, in `HH:MM` format. Required on 'time_branching' steps.\n" }, "timeTo": { "type": "string", "description": "End of the time window, in `HH:MM` format. Required on 'time_branching' steps.\n" }, "timezone": { "type": "string", "description": "The time zone of the time window. Required on 'time_branching' steps.\n" }, "type": { "type": "string", "description": "The step type. 'escalation': Notifies people or integrations. 'time_branching': Acts when the incident happens in a time window, and otherwise continues with the next step. 'metadata_branching': Acts when the incident's metadata matches a value, and otherwise continues with the next step. 'instructions': Posts instructions into the incident timeline. 'resolve_remove': Resolves or removes the incident.\n" }, "waitBefore": { "type": "integer", "description": "How long the step waits after the previous step, in seconds, from '0' to '691200', which is 8 days. Defaults to '0'. Leave it out when the step waits until a time of day with \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e.\n" }, "waitUntilDays": { "type": "array", "items": { "type": "string" }, "description": "The days on which \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e applies, out of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. Defaults to every day.\n" }, "waitUntilTime": { "type": "string", "description": "The time of day the step runs, in `HH:MM` format, instead of waiting \u003cspan pulumi-lang-nodejs=\"`waitBefore`\" pulumi-lang-dotnet=\"`WaitBefore`\" pulumi-lang-go=\"`waitBefore`\" pulumi-lang-python=\"`wait_before`\" pulumi-lang-yaml=\"`waitBefore`\" pulumi-lang-java=\"`waitBefore`\" pulumi-lang-hcl=\"`wait_before`\"\u003e`waitBefore`\u003c/span\u003e. Requires \u003cspan pulumi-lang-nodejs=\"`waitUntilTimezone`\" pulumi-lang-dotnet=\"`WaitUntilTimezone`\" pulumi-lang-go=\"`waitUntilTimezone`\" pulumi-lang-python=\"`wait_until_timezone`\" pulumi-lang-yaml=\"`waitUntilTimezone`\" pulumi-lang-java=\"`waitUntilTimezone`\" pulumi-lang-hcl=\"`wait_until_timezone`\"\u003e`waitUntilTimezone`\u003c/span\u003e. Responses show it in place of \u003cspan pulumi-lang-nodejs=\"`waitBefore`\" pulumi-lang-dotnet=\"`WaitBefore`\" pulumi-lang-go=\"`waitBefore`\" pulumi-lang-python=\"`wait_before`\" pulumi-lang-yaml=\"`waitBefore`\" pulumi-lang-java=\"`waitBefore`\" pulumi-lang-hcl=\"`wait_before`\"\u003e`waitBefore`\u003c/span\u003e on such steps.\n" }, "waitUntilTimezone": { "type": "string", "description": "The time zone of \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e, as a time zone name such as `London` or `Eastern Time (US \u0026 Canada)`.\n" } }, "type": "object", "required": [ "actionType", "days", "escalationPolicyId", "instructionsComment", "instructionsReminderEnabled", "instructionsReminderIntervalHours", "metadataKey", "metadataValues", "policyMetadataKey", "severityId", "stepMembers", "timeFrom", "timeTo", "timezone", "type", "waitBefore", "waitUntilDays", "waitUntilTime", "waitUntilTimezone" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getEscalationPolicyStepMetadataValue:getEscalationPolicyStepMetadataValue": { "properties": { "email": { "type": "string", "description": "A User item's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "The catalog item's name. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, 'no_value', or a catalog item's type, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. 'no_value' matches when the incident's metadata doesn't have the key or the key is empty.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getEscalationPolicyStepStepMember:getEscalationPolicyStepStepMember": { "properties": { "email": { "type": "string", "description": "The e-mail of a 'user' member, instead of its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e.\n" }, "id": { "type": "string", "description": "The ID of the member's target. Required for 'user' unless \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e is set, and for 'policy', 'ai_sre' and every type that notifies one integration. A 'user' member is 'u123' or their e-mail, and responses return 'u123'. A 'current_on_call' member accepts the ID of an on-call schedule to notify instead of your team's default schedule. An 'entire_team' member accepts another team in the organization, as its ID such as 't123'. Responses return it the same way. Both come back without an ID when they use the policy's own team. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "metadataKey": { "type": "string", "description": "For an 'incident_metadata' member, the incident metadata key that says who to notify. The member notifies the users, teams, on-call schedules, escalation policies and integrations stored under that key.\n" }, "type": { "type": "string", "description": "The member type. 'current_on_call' notifies whoever is on call, and 'entire_team' everyone in the team. 'user' notifies one person, 'policy' runs another escalation policy, 'incident_metadata' notifies the people or integrations the incident's metadata names under \u003cspan pulumi-lang-nodejs=\"`metadataKey`\" pulumi-lang-dotnet=\"`MetadataKey`\" pulumi-lang-go=\"`metadataKey`\" pulumi-lang-python=\"`metadata_key`\" pulumi-lang-yaml=\"`metadataKey`\" pulumi-lang-java=\"`metadataKey`\" pulumi-lang-hcl=\"`metadata_key`\"\u003e`metadataKey`\u003c/span\u003e, and 'ai_sre' starts an AI SRE investigation. A member can also be one integration, with type 'webhook', 'email_integration', 'slack_integration', 'linear_integration', 'jira_integration', 'halo_psa_integration', 'microsoft_teams_integration', 'pagerduty_integration', 'zapier_webhook', 'zoom_integration' or 'google_meet_integration'. Or it can be every integration of one kind, with type 'all_slack_integrations', 'all_linear_integrations', 'all_jira_integrations', 'all_microsoft_teams_integrations', 'all_zapier_integrations', 'all_pagerduty_integrations', 'all_webhook_integrations', 'all_email_integrations', 'all_splunk_on_call_integrations', 'all_incident_io_integrations', 'all_zoom_integrations' or 'all_google_meet_integrations'.\n" } }, "type": "object", "required": [ "email", "id", "metadataKey", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationChart:getExplorationChart": { "properties": { "chartType": { "type": "string", "description": "Chart type. A funnel chart can only be switched to a funnel trend chart, which shows the funnel over time, and back. 'line_chart': Accepts 'sql_expression' and 'tail_query' queries. 'table_chart': Accepts 'sql_expression' queries. 'bar_chart': Accepts 'sql_expression' and 'tail_query' queries. 'number_chart': Accepts 'sql_expression' and 'tail_query' queries. 'heatmap_chart': Accepts 'sql_expression' queries. 'anomalies_chart': Accepts 'tail_query' queries. 'pie_chart': Accepts 'sql_expression' queries. 'scatter_chart': Accepts 'sql_expression' queries. 'gauge_chart': Accepts 'sql_expression' and 'tail_query' queries. 'tail_chart': Accepts 'tail_query' queries. 'static_text_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query. 'map_chart': Accepts 'sql_expression' queries. 'text_chart': Accepts 'sql_expression' and 'tail_query' queries. 'funnel_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query. 'funnel_trend_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query. 'hierarchy_chart': Accepts 'sql_expression' queries.\n" }, "description": { "type": "string", "description": "The chart's description, or null when it has none.\n" }, "name": { "type": "string", "description": "The chart's name. Until you name the exploration, \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e holds a generated name instead.\n" }, "settings": { "$ref": "#/types/betterstack:index/getExplorationChartSettings:getExplorationChartSettings", "description": "Display settings for the chart type, such as unit, axes, legend, stacking and decimal places. An update replaces all of them.\n" } }, "type": "object", "required": [ "chartType", "description", "name", "settings" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationChartSettings:getExplorationChartSettings": { "properties": { "colorGreenWords": { "type": "string", "description": "Values a number chart shows in green, separated by commas.\n" }, "colorLowerThreshold": { "type": "number", "description": "Lower threshold of a number chart's colors.\n" }, "colorMode": { "type": "string", "description": "How a number chart colors its value. Usually 'auto', 'high_green', 'high_red' or 'specific_words'.\n" }, "colorRedWords": { "type": "string", "description": "Values a number chart shows in red, separated by commas.\n" }, "colorUpperThreshold": { "type": "number", "description": "Upper threshold of a number chart's colors.\n" }, "colorYellowWords": { "type": "string", "description": "Values a number chart shows in yellow, separated by commas.\n" }, "columnUnits": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/getExplorationChartSettingsColumnUnits:getExplorationChartSettingsColumnUnits" }, "description": "Unit of each table column, by column name.\n" }, "columnWidths": { "type": "object", "additionalProperties": { "type": "number" }, "description": "Width of each table column, by column name, as the chart editor saves it.\n" }, "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "decimalPlaces": { "type": "integer", "description": "Number of decimal places shown.\n" }, "filteredReleases": { "type": "array", "items": { "type": "string" }, "description": "Releases the chart shows.\n" }, "filteredSeries": { "type": "array", "items": { "type": "string" }, "description": "Series the chart shows, by name.\n" }, "forceSourceSeries": { "type": "boolean", "description": "Whether the chart shows one series per source.\n" }, "fresh": { "type": "boolean", "description": "Whether the chart skips cached results.\n" }, "funnelUnitName": { "type": "string", "description": "Word a funnel chart counts in, such as 'people'.\n" }, "groupByColumns": { "type": "array", "items": { "type": "string" }, "description": "Up to two columns a hierarchy chart groups its hexagons by.\n" }, "guessedSeriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Colors the chart picked for its series, keyed by \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e.\n" }, "heatmapColorMode": { "type": "string", "description": "How a heatmap colors its cells. Usually 'gradient' or 'categorized'.\n" }, "label": { "type": "string", "description": "A legend placement the chart editor saves next to \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e, such as 'shown_below'. Charts ignore it and place the legend by \u003cspan pulumi-lang-nodejs=\"`legend`\" pulumi-lang-dotnet=\"`Legend`\" pulumi-lang-go=\"`legend`\" pulumi-lang-python=\"`legend`\" pulumi-lang-yaml=\"`legend`\" pulumi-lang-java=\"`legend`\" pulumi-lang-hcl=\"`legend`\"\u003e`legend`\u003c/span\u003e.\n" }, "labelColumn": { "type": "string", "description": "Column that names each hexagon on a hierarchy chart.\n" }, "legend": { "type": "string", "description": "Where the legend is shown. Usually 'hidden', 'shown_below', 'shown_below_with_statistics' or 'shown_right'.\n" }, "linkTemplate": { "type": "string", "description": "Link a hierarchy chart opens when you click a hexagon, with `{{column}}` placeholders.\n" }, "locationColumn": { "type": "string", "description": "Column holding the location on a map chart.\n" }, "locationLabel": { "type": "string", "description": "What a map chart's tooltip names, either the closest city or country or the value as sent. Usually 'automatic' or 'original_value'.\n" }, "max": { "type": "number", "description": "Upper bound of a gauge, the goal value.\n" }, "maxValue": { "type": "number", "description": "Highest value of a hierarchy chart's color scale.\n" }, "min": { "type": "number", "description": "Lower bound of a gauge.\n" }, "minValue": { "type": "number", "description": "Lowest value of a hierarchy chart's color scale.\n" }, "orientation": { "type": "string", "description": "Direction of the bars on a bar chart. Usually 'vertical' or 'horizontal'.\n" }, "palette": { "type": "string", "description": "Color scale of a hierarchy chart. Usually 'green_to_red' or 'red_to_green'.\n" }, "percentageHighlightColumns": { "type": "array", "items": { "type": "string" }, "description": "Table columns holding ratios from 0 to 1, shown with a bar.\n" }, "pointSizeColumn": { "type": "string", "description": "Column that sets each point's size on a scatter chart.\n" }, "projection": { "type": "string", "description": "Map projection of a map chart, such as 'mercator'.\n" }, "publishedCacheFor": { "type": "integer", "description": "Seconds a published chart's results are cached, 3 by default.\n" }, "publishedFormat": { "type": "string", "description": "Format a published chart is served in, 'json' by default.\n" }, "rowTemplates": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Live tail row format of each source, by source ID.\n" }, "sampling": { "type": "integer", "description": "Percentage of data the chart samples.\n" }, "seriesColors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Color of each series, keyed by its \u003cspan pulumi-lang-nodejs=\"`seriesName`\" pulumi-lang-dotnet=\"`SeriesName`\" pulumi-lang-go=\"`seriesName`\" pulumi-lang-python=\"`series_name`\" pulumi-lang-yaml=\"`seriesName`\" pulumi-lang-java=\"`seriesName`\" pulumi-lang-hcl=\"`series_name`\"\u003e`seriesName`\u003c/span\u003e, as a hex color such as `#22c55e`.\n" }, "seriesColumn": { "type": "string", "description": "Column that splits the data into series. On a heatmap it's the Y axis column.\n" }, "seriesCustomUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`seriesUnit`\" pulumi-lang-dotnet=\"`SeriesUnit`\" pulumi-lang-go=\"`seriesUnit`\" pulumi-lang-python=\"`series_unit`\" pulumi-lang-yaml=\"`seriesUnit`\" pulumi-lang-java=\"`seriesUnit`\" pulumi-lang-hcl=\"`series_unit`\"\u003e`seriesUnit`\u003c/span\u003e is your own suffix.\n" }, "seriesOrder": { "type": "array", "items": { "type": "string" }, "description": "Order the series are shown in, by name.\n" }, "seriesUnit": { "type": "string", "description": "Unit of a heatmap's Y axis labels.\n" }, "showPreviousPeriod": { "type": "boolean", "description": "Whether a line chart also shows the previous period.\n" }, "stacking": { "type": "string", "description": "How series are stacked. Usually 'dont_stack', 'stack' or 'stack_to_100'.\n" }, "tableWidth": { "type": "integer", "description": "Width of the table the \u003cspan pulumi-lang-nodejs=\"`columnWidths`\" pulumi-lang-dotnet=\"`ColumnWidths`\" pulumi-lang-go=\"`columnWidths`\" pulumi-lang-python=\"`column_widths`\" pulumi-lang-yaml=\"`columnWidths`\" pulumi-lang-java=\"`columnWidths`\" pulumi-lang-hcl=\"`column_widths`\"\u003e`columnWidths`\u003c/span\u003e were saved for.\n" }, "text": { "type": "string", "description": "Markdown text of a text chart.\n" }, "timeColumn": { "type": "string", "description": "Column on the X axis, 'time' by default. For a category bar chart it's the grouping column.\n" }, "treatMissingValues": { "type": "string", "description": "How gaps in the data are drawn. Usually 'connected', 'disconnected', 'zero' or 'previous'.\n" }, "treatZeroValues": { "type": "string", "description": "How zero values are drawn, 'keep' or 'drop_disconnected'. Defaults to 'keep'.\n" }, "unit": { "type": "string", "description": "Unit the values are shown in, such as 'percent', 'bytes' or 'ms'. Table charts use \u003cspan pulumi-lang-nodejs=\"`columnUnits`\" pulumi-lang-dotnet=\"`ColumnUnits`\" pulumi-lang-go=\"`columnUnits`\" pulumi-lang-python=\"`column_units`\" pulumi-lang-yaml=\"`columnUnits`\" pulumi-lang-java=\"`columnUnits`\" pulumi-lang-hcl=\"`column_units`\"\u003e`columnUnits`\u003c/span\u003e instead.\n" }, "valueCategories": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/getExplorationChartSettingsValueCategories:getExplorationChartSettingsValueCategories" }, "description": "Label and color of each cell value of a categorized heatmap.\n" }, "valueColumns": { "type": "array", "items": { "type": "string" }, "description": "Result columns that hold the values to chart.\n" }, "xAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationChartSettingsXAxisAnnotation:getExplorationChartSettingsXAxisAnnotation" }, "description": "Vertical lines drawn at values on the X axis, each with a label and color. A value is a time or a number, as the X axis reads it.\n" }, "xAxisType": { "type": "string", "description": "How the X axis is read. Usually 'time', \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" }, "yAxisAnnotations": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationChartSettingsYAxisAnnotation:getExplorationChartSettingsYAxisAnnotation" }, "description": "Horizontal lines drawn at values on the Y axis, each with a label and color.\n" }, "yAxisAutoRange": { "type": "string", "description": "How a line chart fits its Y axis when no bounds are set. Usually 'include_zero' or 'fit_data'.\n" }, "yAxisMax": { "type": "number", "description": "Highest value on the Y axis.\n" }, "yAxisMin": { "type": "number", "description": "Lowest value on the Y axis.\n" }, "yAxisScale": { "type": "string", "description": "Scale of the Y axis. Usually 'linear' or 'log'.\n" }, "yAxisType": { "type": "string", "description": "How the Y axis of a scatter chart is read. Usually \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or 'category'.\n" } }, "type": "object", "required": [ "colorGreenWords", "colorLowerThreshold", "colorMode", "colorRedWords", "colorUpperThreshold", "colorYellowWords", "columnUnits", "columnWidths", "customUnit", "decimalPlaces", "filteredReleases", "filteredSeries", "forceSourceSeries", "fresh", "funnelUnitName", "groupByColumns", "guessedSeriesColors", "heatmapColorMode", "label", "labelColumn", "legend", "linkTemplate", "locationColumn", "locationLabel", "max", "maxValue", "min", "minValue", "orientation", "palette", "percentageHighlightColumns", "pointSizeColumn", "projection", "publishedCacheFor", "publishedFormat", "rowTemplates", "sampling", "seriesColors", "seriesColumn", "seriesCustomUnit", "seriesOrder", "seriesUnit", "showPreviousPeriod", "stacking", "tableWidth", "text", "timeColumn", "treatMissingValues", "treatZeroValues", "unit", "valueCategories", "valueColumns", "xAxisAnnotations", "xAxisType", "yAxisAnnotations", "yAxisAutoRange", "yAxisMax", "yAxisMin", "yAxisScale", "yAxisType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationChartSettingsColumnUnits:getExplorationChartSettingsColumnUnits": { "properties": { "customUnit": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`unit`\" pulumi-lang-dotnet=\"`Unit`\" pulumi-lang-go=\"`unit`\" pulumi-lang-python=\"`unit`\" pulumi-lang-yaml=\"`unit`\" pulumi-lang-java=\"`unit`\" pulumi-lang-hcl=\"`unit`\"\u003e`unit`\u003c/span\u003e is your own suffix, shown after the value as written and never scaled.\n" }, "unit": { "type": "string", "description": "Unit the column's values are shown in, such as 'auto', 'percent' or 'bytes'.\n" } }, "type": "object", "required": [ "customUnit", "unit" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationChartSettingsValueCategories:getExplorationChartSettingsValueCategories": { "properties": { "color": { "type": "string", "description": "Color of the cells with the value, as a hex color such as `#22c55e`.\n" }, "label": { "type": "string", "description": "Text shown for the value.\n" } }, "type": "object", "required": [ "color", "label" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationChartSettingsXAxisAnnotation:getExplorationChartSettingsXAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "string", "description": "The X axis value the line is drawn at, a time or a number.\n" } }, "type": "object", "required": [ "color", "label", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationChartSettingsYAxisAnnotation:getExplorationChartSettingsYAxisAnnotation": { "properties": { "color": { "type": "string", "description": "The line's color, as a hex color such as `#22c55e`. Left out, the line is gray.\n" }, "label": { "type": "string", "description": "Text shown next to the line.\n" }, "value": { "type": "number", "description": "The Y axis value the line is drawn at.\n" } }, "type": "object", "required": [ "color", "label", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQuery:getExplorationQuery": { "properties": { "coordinates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryCoordinate:getExplorationQueryCoordinate" }, "description": "Coordinate blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryFilter:getExplorationQueryFilter" }, "description": "Filter blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "funnelQuery": { "$ref": "#/types/betterstack:index/getExplorationQueryFunnelQuery:getExplorationQueryFunnelQuery", "description": "A funnel's steps, session field and breakdown. Present only for \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e queries. An update changes only the fields you send.\n" }, "groupBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryGroupBy:getExplorationQueryGroupBy" }, "description": "Grouping blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "having": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryHaving:getExplorationQueryHaving" }, "description": "Having blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "id": { "type": "string", "description": "The query's ID.\n" }, "name": { "type": "string", "description": "The query's name.\n" }, "orderBy": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryOrderBy:getExplorationQueryOrderBy" }, "description": "Ordering blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "pointSize": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryPointSize:getExplorationQueryPointSize" }, "description": "Point size blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "pqlQuery": { "type": "string", "description": "The PQL the query is written in. Present only for 'pql_expression' queries.\n" }, "queryType": { "type": "string", "description": "Query type. A read-only query can't be edited, only replaced with a writable one. Responses can also hold 'promql_query', 'promql_v2_query' and 'promql_via_llm' for queries made in the web app. 'sql_expression': A query written in SQL. You can write it through the API. 'tail_query': The filter of a tail chart. You can write it through the API. \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e: The text of a 'static_text_chart'. You can write it through the API. 'pql_expression': A query written in PQL. Read-only. 'tail_query_builder': A tail chart's query made in the query builder. Read-only. 'query_builder': A query made in the query builder. Read-only. \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e: A funnel's one query. You can write it through the API.\n" }, "sourceVariable": { "type": "string", "description": "The sources the query reads, either the name of a 'source' variable, such as 'source', or `source:` followed by specific sources. Defaults to 'source' on create. Omitted when not set.\n" }, "sqlQuery": { "type": "string", "description": "The SQL the query runs. Present for 'sql_expression', 'pql_expression', 'query_builder', 'tail_query_builder' and \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e queries, and omitted when not set. Read-only except for 'sql_expression'.\n" }, "staticText": { "type": "string", "description": "The query's Markdown content. Present only for \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e queries, and omitted when not set.\n" }, "where": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryWhere:getExplorationQueryWhere" }, "description": "Where blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "whereCondition": { "type": "string", "description": "The query's filter. Present only for 'tail_query' and 'tail_query_builder' queries, and omitted when not set.\n" }, "xAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryXAxis:getExplorationQueryXAxis" }, "description": "X-axis blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" }, "yAxes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryYAxis:getExplorationQueryYAxis" }, "description": "Y-axis blocks of a 'query_builder' or 'tail_query_builder' query. Read-only.\n" } }, "type": "object", "required": [ "coordinates", "filters", "funnelQuery", "groupBy", "having", "id", "name", "orderBy", "pointSize", "pqlQuery", "queryType", "sourceVariable", "sqlQuery", "staticText", "where", "whereCondition", "xAxes", "yAxes" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryCoordinate:getExplorationQueryCoordinate": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryFilter:getExplorationQueryFilter": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryFunnelQuery:getExplorationQueryFunnelQuery": { "properties": { "breakdown": { "$ref": "#/types/betterstack:index/getExplorationQueryFunnelQueryBreakdown:getExplorationQueryFunnelQueryBreakdown", "description": "The breakdown the funnel is split by, with its field in \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e.\n" }, "breakdownField": { "type": "string", "description": "Field each step is split by, such as `contexts.browser.name`. An empty value removes the breakdown.\n" }, "sessionField": { "type": "string", "description": "Field that ties one journey's events together. Defaults to 'session_id'. Use `user.id` to follow an identified user. An empty value resets it to 'session_id'.\n" }, "steps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationQueryFunnelQueryStep:getExplorationQueryFunnelQueryStep" }, "description": "The funnel's steps in journey order, 2 to 32. An update with \u003cspan pulumi-lang-nodejs=\"`steps`\" pulumi-lang-dotnet=\"`Steps`\" pulumi-lang-go=\"`steps`\" pulumi-lang-python=\"`steps`\" pulumi-lang-yaml=\"`steps`\" pulumi-lang-java=\"`steps`\" pulumi-lang-hcl=\"`steps`\"\u003e`steps`\u003c/span\u003e replaces every step.\n" } }, "type": "object", "required": [ "breakdown", "breakdownField", "sessionField", "steps" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryFunnelQueryBreakdown:getExplorationQueryFunnelQueryBreakdown": { "properties": { "type": { "type": "string", "description": "The type of the breakdown field, always 'string'.\n" }, "value": { "type": "string", "description": "The field each step is split by, such as `contexts.browser.name`.\n" } }, "type": "object", "required": [ "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryFunnelQueryStep:getExplorationQueryFunnelQueryStep": { "properties": { "conditions": { "type": "string", "description": "Live tail query that the step's events match, such as `payload.meta.path=\"/cart\"`.\n" }, "name": { "type": "string", "description": "Step name shown on the chart. Defaults to `Step \u003cn\u003e`.\n" } }, "type": "object", "required": [ "conditions", "name" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryGroupBy:getExplorationQueryGroupBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryHaving:getExplorationQueryHaving": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryOrderBy:getExplorationQueryOrderBy": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryPointSize:getExplorationQueryPointSize": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryWhere:getExplorationQueryWhere": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryXAxis:getExplorationQueryXAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationQueryYAxis:getExplorationQueryYAxis": { "properties": { "conditionValue": { "type": "string", "description": "The value a filter block compares against.\n" }, "direction": { "type": "string", "description": "The sort direction of an order block, 'asc' or 'desc'.\n" }, "exploreBlockType": { "type": "string", "description": "What the block reads, such as 'count', 'field', 'json_value', 'json_value_from_column', 'special_column', 'virtual_field' or 'search'.\n" }, "intervalSeconds": { "type": "integer", "description": "The time bucket size in seconds, for a time block on the X axis.\n" }, "kind": { "type": "string", "description": "'metric' for an aggregated value, or \u003cspan pulumi-lang-nodejs=\"`label`\" pulumi-lang-dotnet=\"`Label`\" pulumi-lang-go=\"`label`\" pulumi-lang-python=\"`label`\" pulumi-lang-yaml=\"`label`\" pulumi-lang-java=\"`label`\" pulumi-lang-hcl=\"`label`\"\u003e`label`\u003c/span\u003e for a raw dimension.\n" }, "logicalOperator": { "type": "string", "description": "How a filter block joins the filters before it, 'and' or 'or'. Defaults to 'and'.\n" }, "measure": { "type": "string", "description": "The aggregation applied to the value, such as 'avg', 'count', 'uniq', \u003cspan pulumi-lang-nodejs=\"`max`\" pulumi-lang-dotnet=\"`Max`\" pulumi-lang-go=\"`max`\" pulumi-lang-python=\"`max`\" pulumi-lang-yaml=\"`max`\" pulumi-lang-java=\"`max`\" pulumi-lang-hcl=\"`max`\"\u003e`max`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`min`\" pulumi-lang-dotnet=\"`Min`\" pulumi-lang-go=\"`min`\" pulumi-lang-python=\"`min`\" pulumi-lang-yaml=\"`min`\" pulumi-lang-java=\"`min`\" pulumi-lang-hcl=\"`min`\"\u003e`min`\u003c/span\u003e, 'sum' or 'p95'.\n" }, "name": { "type": "string", "description": "The name the block is shown with. The editor shows \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e when it's empty.\n" }, "operator": { "type": "string", "description": "The comparison of a filter block.\n" }, "operatorSymbol": { "type": "string", "description": "The filter block's comparison written as a symbol.\n" }, "schema": { "type": "string", "description": "The source's storage layout, 'row_based' or 'column_based'.\n" }, "seriesName": { "type": "string", "description": "The name a Y-axis or coordinates block's series is shown as.\n" }, "type": { "type": "string", "description": "The value's data type, such as 'datetime'.\n" }, "value": { "type": "string", "description": "The column or field the block reads, such as 'dt'.\n" }, "valueType": { "type": "string", "description": "'rate' to chart the value's rate of change.\n" } }, "type": "object", "required": [ "conditionValue", "direction", "exploreBlockType", "intervalSeconds", "kind", "logicalOperator", "measure", "name", "operator", "operatorSymbol", "schema", "seriesName", "type", "value", "valueType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationVariable:getExplorationVariable": { "properties": { "allowMultipleValues": { "type": "boolean", "description": "Whether a 'select_value' or 'select_with_sql' variable accepts more than one value at a time.\n" }, "defaultValues": { "type": "array", "items": { "type": "string" }, "description": "The variable's default values as strings, or an empty array when it has none.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationVariableFilter:getExplorationVariableFilter" }, "description": "The saved filters of a 'select_predefined_sql' variable.\n" }, "name": { "type": "string", "description": "The variable's name, used as `{{name}}` in queries.\n" }, "selectedLabel": { "type": "string", "description": "The label of the selected filter of a 'select_predefined_sql' variable. When not sent, the first filter is selected. A label that matches none of \u003cspan pulumi-lang-nodejs=\"`filters`\" pulumi-lang-dotnet=\"`Filters`\" pulumi-lang-go=\"`filters`\" pulumi-lang-python=\"`filters`\" pulumi-lang-yaml=\"`filters`\" pulumi-lang-java=\"`filters`\" pulumi-lang-hcl=\"`filters`\"\u003e`filters`\u003c/span\u003e is refused.\n" }, "sourceIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the sources a 'source' variable selects. Each must be one of your sources.\n" }, "sqlDefinition": { "type": "string", "description": "The SQL expression whose distinct values are the options of a 'select_with_sql' variable, such as `JSONExtractString(raw, 'service')`. The expression runs against the variable's source over the selected range.\n" }, "structuredValue": { "$ref": "#/types/betterstack:index/getExplorationVariableStructuredValue:getExplorationVariableStructuredValue", "description": "The variable's other settings, such as the selected sources of a 'source' variable in `canonicalSourceIds` and its services in `serviceIds`, or the saved filters of a 'select_predefined_sql' variable. Left out when not set.\n" }, "values": { "type": "array", "items": { "type": "string" }, "description": "The variable's current values as strings, or an empty array when it has none. For a 'source' variable, these are the IDs of the selected sources.\n" }, "variableType": { "type": "string", "description": "Variable kind. Valid values: 'source', 'date', 'datetime', 'string', 'number', 'sql_expression', 'select_value', 'boolean', 'select_with_sql', 'multi_select_with_sql', 'select_predefined_sql'.\n" } }, "type": "object", "required": [ "allowMultipleValues", "defaultValues", "filters", "name", "selectedLabel", "sourceIds", "sqlDefinition", "structuredValue", "values", "variableType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationVariableFilter:getExplorationVariableFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "required": [ "label", "sql" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationVariableStructuredValue:getExplorationVariableStructuredValue": { "properties": { "canonicalSourceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected sources of a 'source' variable. Source IDs in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e set them.\n" }, "filters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getExplorationVariableStructuredValueFilter:getExplorationVariableStructuredValueFilter" }, "description": "Saved filters, each a label and the SQL that lists its values.\n" }, "selectedLabel": { "type": "string", "description": "Label of the selected value.\n" }, "serviceIds": { "type": "array", "items": { "type": "string" }, "description": "Selected services of a 'source' variable.\n" } }, "type": "object", "required": [ "canonicalSourceIds", "filters", "selectedLabel", "serviceIds" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getExplorationVariableStructuredValueFilter:getExplorationVariableStructuredValueFilter": { "properties": { "label": { "type": "string", "description": "The filter's label, shown in the variable's menu.\n" }, "sql": { "type": "string", "description": "A complete query that returns one column with the filter's options.\n" } }, "type": "object", "required": [ "label", "sql" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getFirewallRuleSummary:getFirewallRuleSummary": { "properties": { "direction": { "type": "string", "description": "Which traffic the rule matches, 'inbound' or 'outbound'.\n" }, "id": { "type": "string", "description": "The rule's ID, a UUID.\n" }, "ipAddresses": { "type": "array", "items": { "type": "string" }, "description": "The addresses the rule applies to, in CIDR notation.\n" }, "portFrom": { "type": "integer", "description": "The first port of the range.\n" }, "portTo": { "type": "integer", "description": "The last port of the range, or null when the rule matches only \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e.\n" }, "protocol": { "type": "string", "description": "The IP protocol the rule matches. 'any' matches every protocol.\n" } }, "type": "object", "required": [ "direction", "id", "ipAddresses", "portFrom", "portTo", "protocol" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getHeartbeatMetadata:getHeartbeatMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getHeartbeatMetadataValue:getHeartbeatMetadataValue" } } }, "type": "object", "required": [ "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getHeartbeatMetadataValue:getHeartbeatMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationAcknowledgedAlertIdField:getIncidentsAmazonSnsIntegrationAcknowledgedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationAcknowledgedRule:getIncidentsAmazonSnsIntegrationAcknowledgedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Which part of the notification the rule checks. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationCauseField:getIncidentsAmazonSnsIntegrationCauseField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationMetadata:getIncidentsAmazonSnsIntegrationMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationMetadataValue:getIncidentsAmazonSnsIntegrationMetadataValue" } } }, "type": "object", "required": [ "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationMetadataValue:getIncidentsAmazonSnsIntegrationMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationOtherAcknowledgedField:getIncidentsAmazonSnsIntegrationOtherAcknowledgedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationOtherResolvedField:getIncidentsAmazonSnsIntegrationOtherResolvedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationOtherStartedField:getIncidentsAmazonSnsIntegrationOtherStartedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationResolvedAlertIdField:getIncidentsAmazonSnsIntegrationResolvedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationResolvedRule:getIncidentsAmazonSnsIntegrationResolvedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Which part of the notification the rule checks. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationStartedAlertIdField:getIncidentsAmazonSnsIntegrationStartedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationStartedRule:getIncidentsAmazonSnsIntegrationStartedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Which part of the notification the rule checks. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsAmazonSnsIntegrationTitleField:getIncidentsAmazonSnsIntegrationTitleField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Which part of the notification to read. 'query_string': The query string of AWS's own HTTPS request, which never contains your message. 'header': A header of AWS's own HTTPS request, which never contains your message. 'body': The message your publisher sent, as plain text. 'json': A value in the message your publisher sent, read as JSON. 'xml': An element in the message your publisher sent, read as XML. 'sns_envelope': A value of the SNS envelope, such as its `Subject`.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Custom fields require it, and it must be unique within its list. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later notifications to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', a CSS selector for 'xml', or `TopicArn`, `MessageId` or `Subject` for 'sns_envelope'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationAcknowledgedAlertIdField:getIncidentsIncomingEmailIntegrationAcknowledgedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationAcknowledgedRule:getIncidentsIncomingEmailIntegrationAcknowledgedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the e-mail this rule matches. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationCauseField:getIncidentsIncomingEmailIntegrationCauseField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationMetadata:getIncidentsIncomingEmailIntegrationMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationMetadataValue:getIncidentsIncomingEmailIntegrationMetadataValue" } } }, "type": "object", "required": [ "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationMetadataValue:getIncidentsIncomingEmailIntegrationMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationOtherAcknowledgedField:getIncidentsIncomingEmailIntegrationOtherAcknowledgedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationOtherResolvedField:getIncidentsIncomingEmailIntegrationOtherResolvedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationOtherStartedField:getIncidentsIncomingEmailIntegrationOtherStartedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationResolvedAlertIdField:getIncidentsIncomingEmailIntegrationResolvedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationResolvedRule:getIncidentsIncomingEmailIntegrationResolvedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the e-mail this rule matches. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationStartedAlertIdField:getIncidentsIncomingEmailIntegrationStartedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationStartedRule:getIncidentsIncomingEmailIntegrationStartedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the e-mail this rule matches. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingEmailIntegrationTitleField:getIncidentsIncomingEmailIntegrationTitleField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the e-mail this field reads. 'from_email': The sender's e-mail address. 'subject': The e-mail's subject. 'body': The e-mail's body.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later e-mails to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField:getIncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationAcknowledgedRule:getIncidentsIncomingWebhookIntegrationAcknowledgedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the payload this rule matches. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationCauseField:getIncidentsIncomingWebhookIntegrationCauseField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationMetadata:getIncidentsIncomingWebhookIntegrationMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationMetadataValue:getIncidentsIncomingWebhookIntegrationMetadataValue" } } }, "type": "object", "required": [ "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationMetadataValue:getIncidentsIncomingWebhookIntegrationMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationOtherAcknowledgedField:getIncidentsIncomingWebhookIntegrationOtherAcknowledgedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationOtherResolvedField:getIncidentsIncomingWebhookIntegrationOtherResolvedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationOtherStartedField:getIncidentsIncomingWebhookIntegrationOtherStartedField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key to save the extracted value under. Required, and must be unique within the array.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationResolvedAlertIdField:getIncidentsIncomingWebhookIntegrationResolvedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationResolvedRule:getIncidentsIncomingWebhookIntegrationResolvedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the payload this rule matches. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationStartedAlertIdField:getIncidentsIncomingWebhookIntegrationStartedAlertIdField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationStartedRule:getIncidentsIncomingWebhookIntegrationStartedRule": { "properties": { "content": { "type": "string", "description": "The value to compare with. Must be a valid regular expression for 'matches_regex' and 'matches_regex_not'.\n" }, "createdAt": { "type": "string", "description": "When the rule was created.\n" }, "matchType": { "type": "string", "description": "How to compare the value with \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains': Matches when the value contains \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'contains_not': Matches when the value doesn't contain \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex': Matches when the value matches the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'matches_regex_not': Matches when the value doesn't match the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals': Matches when the value equals \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'equals_not': Matches when the value doesn't equal \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e.\n" }, "ruleTarget": { "type": "string", "description": "Part of the payload this rule matches. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" }, "updatedAt": { "type": "string", "description": "When the rule was last changed.\n" } }, "type": "object", "required": [ "content", "createdAt", "matchType", "ruleTarget", "targetField", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsIncomingWebhookIntegrationTitleField:getIncidentsIncomingWebhookIntegrationTitleField": { "properties": { "content": { "type": "string", "description": "The text to extract around for 'match_before' and 'match_after', or the regular expression for 'match_regex'. Required with 'match_before', 'match_after' and 'match_regex'.\n" }, "contentAfter": { "type": "string", "description": "Where extraction stops for 'match_between'. Leave it empty to extract to the end.\n" }, "contentBefore": { "type": "string", "description": "The start delimiter for 'match_between'.\n" }, "fieldTarget": { "type": "string", "description": "Part of the payload this field reads. 'query_string': A parameter in the request's query string. 'header': A request header. 'body': The whole request body, as plain text. 'json': A value in the request body, read as JSON. 'xml': An element in the request body, read as XML. 'sns_envelope': A value of the SNS envelope, which only Amazon SNS integrations receive.\n" }, "matchType": { "type": "string", "description": "What to extract. 'match_before': Extracts the text before \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_after': Extracts the text after \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e. 'match_between': Extracts the text between \u003cspan pulumi-lang-nodejs=\"`contentBefore`\" pulumi-lang-dotnet=\"`ContentBefore`\" pulumi-lang-go=\"`contentBefore`\" pulumi-lang-python=\"`content_before`\" pulumi-lang-yaml=\"`contentBefore`\" pulumi-lang-java=\"`contentBefore`\" pulumi-lang-hcl=\"`content_before`\"\u003e`contentBefore`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`contentAfter`\" pulumi-lang-dotnet=\"`ContentAfter`\" pulumi-lang-go=\"`contentAfter`\" pulumi-lang-python=\"`content_after`\" pulumi-lang-yaml=\"`contentAfter`\" pulumi-lang-java=\"`contentAfter`\" pulumi-lang-hcl=\"`content_after`\"\u003e`contentAfter`\u003c/span\u003e. 'match_regex': Extracts the match of the regular expression in \u003cspan pulumi-lang-nodejs=\"`content`\" pulumi-lang-dotnet=\"`Content`\" pulumi-lang-go=\"`content`\" pulumi-lang-python=\"`content`\" pulumi-lang-yaml=\"`content`\" pulumi-lang-java=\"`content`\" pulumi-lang-hcl=\"`content`\"\u003e`content`\u003c/span\u003e, or its capture group. 'match_everything': Extracts the whole value.\n" }, "name": { "type": "string", "description": "The metadata key a custom field's value is saved under. Required and unique within its list for custom fields. Not used by the cause, title and alert ID fields.\n" }, "specialType": { "type": "string", "description": "The built-in role of this field. null for a custom field. 'alert_id': Extracts the alert ID that ties later requests to the same incident. 'cause': Extracts the incident cause. 'title': Extracts the incident title.\n" }, "targetField": { "type": "string", "description": "Which value to read. Accepts a dot-separated path such as `alert.id` for 'json' and 'query_string', a header name for 'header', or a CSS selector for 'xml'. Not used with 'body'.\n" } }, "type": "object", "required": [ "content", "contentAfter", "contentBefore", "fieldTarget", "matchType", "name", "specialType", "targetField" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsLinearIntegrationLinearLabel:getIncidentsLinearIntegrationLinearLabel": { "properties": { "id": { "type": "string", "description": "ID of the Linear label.\n" }, "name": { "type": "string", "description": "The label's name in Linear when it was set.\n" } }, "type": "object", "required": [ "id", "name" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsOutgoingEmailIntegrationRecipient:getIncidentsOutgoingEmailIntegrationRecipient": { "properties": { "email": { "type": "string", "description": "The recipient's e-mail address.\n" } }, "type": "object", "required": [ "email" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsOutgoingEmailIntegrationTemplate:getIncidentsOutgoingEmailIntegrationTemplate": { "properties": { "body": { "type": "string", "description": "The e-mail body in Markdown, up to 20,000 characters. Supports the same variables as \u003cspan pulumi-lang-nodejs=\"`subject`\" pulumi-lang-dotnet=\"`Subject`\" pulumi-lang-go=\"`subject`\" pulumi-lang-python=\"`subject`\" pulumi-lang-yaml=\"`subject`\" pulumi-lang-java=\"`subject`\" pulumi-lang-hcl=\"`subject`\"\u003e`subject`\u003c/span\u003e. null uses the default template.\n" }, "incidentStage": { "type": "string", "description": "Incident stage this template applies to. Valid values: 'started', 'acknowledged', 'resolved', 'reopened', 'comment'.\n" }, "subject": { "type": "string", "description": "The e-mail subject, up to 500 characters. Supports incident variables such as `$NAME`, `$STATUS`, `$CAUSE` and `$INCIDENT_URL`, a metadata value as `$METADATA.Key`, all metadata as `$METADATA_ARRAY` and a recipient's attributes as `$RECIPIENT.\u003ckey\u003e`. null uses the default template.\n" }, "title": { "type": "string", "description": "The e-mail title, up to 500 characters. Supports the same variables as \u003cspan pulumi-lang-nodejs=\"`subject`\" pulumi-lang-dotnet=\"`Subject`\" pulumi-lang-go=\"`subject`\" pulumi-lang-python=\"`subject`\" pulumi-lang-yaml=\"`subject`\" pulumi-lang-java=\"`subject`\" pulumi-lang-hcl=\"`subject`\"\u003e`subject`\u003c/span\u003e. null uses the default template.\n" } }, "type": "object", "required": [ "body", "incidentStage", "subject", "title" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplate:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplate": { "properties": { "authUsername": { "type": "string", "description": "The username for basic authentication.\n", "secret": true }, "bodyTemplate": { "type": "string", "description": "Request body template, as text. Can use the [metadata variables](https://betterstack.com/docs/uptime/webhooks/#metadata-variables).\n" }, "headersTemplate": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate" }, "description": "Custom request headers, as a list of objects with \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. Header values are sent as written, without template variables.\n" }, "httpMethod": { "type": "string", "description": "The HTTP method of the request, 'post' by default. A GET request is sent without a body. Valid values: 'head', 'get', 'post', 'put', 'patch', 'options'.\n" } }, "type": "object", "required": [ "authUsername", "bodyTemplate", "headersTemplate", "httpMethod" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes": { "properties": { "authPassword": { "type": "string", "description": "The password for basic authentication. Set both username and password, or neither.\n", "secret": true }, "authUsername": { "type": "string", "description": "The username for basic authentication. Set both username and password, or neither.\n", "secret": true }, "bodyTemplate": { "type": "string", "description": "Request body template, as text or as a JSON object. Reads return it as text. An 'incident_change' template can use `$INCIDENT_ID`, `$INCIDENT_URL`, `$NAME`, `$STATUS`, `$CAUSE`, `$URL`, `$HTTP_METHOD`, `$MONITOR_ID`, `$RESOURCE_ID`, `$RESOURCE_TYPE`, `$TEAM_ID`, `$TEAM_NAME`, `$INCIDENT_GROUP_ID`, `$REQUESTER`, `$STARTED_AT`, `$ACKNOWLEDGED_AT`, `$ACKNOWLEDGED_BY`, `$RESOLVED_AT`, `$RESOLVED_BY`, `$RESPONSE_URL`, `$RESPONSE_CONTENT`, `$RESPONSE_OPTIONS`, `$SCREENSHOT_URL`, `$INTEGRATION_IMAGE_URL`, `$REGIONS`, `$ESCALATION_POLICY_ID`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$INTEGRATION_ALERT_ID`, `$PLAYWRIGHT_SUMMARY`, `$COMMENT_ID`, `$COMMENT_CONTENT`, `$COMMENT_CREATED_AT`, `$COMMENT_AUTHOR_NAME` and `$COMMENT_AUTHOR_EMAIL`. A 'monitor_change' template can use `$MONITOR_ID`, `$PRONOUNCEABLE_NAME`, `$URL`, `$MONITOR_TYPE`, `$STATUS`, `$MONITOR_GROUP_ID`, `$ESCALATION_POLICY_ID`, `$EXPIRATION_ESCALATION_POLICY_ID`, `$LAST_CHECKED_AT`, `$REQUIRED_KEYWORD`, `$VERIFY_SSL`, `$CHECK_FREQUENCY`, `$CALL`, `$SMS`, `$EMAIL`, `$PUSH`, `$CRITICAL_ALERT`, `$TEAM_WAIT`, `$HTTP_METHOD`, `$REQUEST_TIMEOUT`, `$RECOVERY_PERIOD`, `$REQUEST_BODY`, `$PAUSED_AT`, `$SSL_EXPIRATION`, `$DOMAIN_EXPIRATION`, `$REGIONS` and `$PORT`. An 'on_call_change' template can use `$MESSAGE`, `$EMAILS`, `$EMAILS_JSON_ARRAY`, `$ON_HOLIDAY_EMAILS`, `$ON_HOLIDAY_EMAILS_JSON_ARRAY`, `$CHANGE`, `$ON_CALL_CALENDAR_ID`, `$ON_CALL_CALENDAR_NAME` and `$DEFAULT_ON_CALL_CALENDAR`. Incident and monitor templates can also use the [metadata variables](https://betterstack.com/docs/uptime/webhooks/#metadata-variables). A time such as `$STARTED_AT` renders like `2026-07-01 12:00:00 UTC`, and the same name ending in `_ISO8601` renders it in ISO 8601. A variable that holds a list, such as `$REGIONS` or `$EMAILS_JSON_ARRAY`, renders as JSON, so put it in the template without quotes.\n" }, "headersTemplate": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate" }, "description": "Custom request headers, as a list of objects with \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. Header values are sent as written, without template variables.\n" }, "httpMethod": { "type": "string", "description": "The HTTP method of the request, 'post' by default. A GET request is sent without a body. Valid values: 'head', 'get', 'post', 'put', 'patch', 'options'.\n" }, "id": { "type": "string", "description": "ID of the template saved on the integration.\n" } }, "type": "object", "required": [ "authPassword", "authUsername", "bodyTemplate", "headersTemplate", "httpMethod", "id" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesHeadersTemplate": { "properties": { "name": { "type": "string", "description": "The header's name, such as `Content-Type`.\n" }, "value": { "type": "string", "description": "The header's value, sent as written.\n" } }, "type": "object", "required": [ "name", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateHeadersTemplate": { "properties": { "name": { "type": "string", "description": "The header's name, such as `Content-Type`.\n" }, "value": { "type": "string", "description": "The header's value, sent as written.\n", "secret": true } }, "type": "object", "required": [ "name", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsSlackIntegrationAlertOption:getIncidentsSlackIntegrationAlertOption": { "properties": { "call": { "type": "boolean", "description": "Whether to notify the team by phone call. Only on 'team' entries.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send the team a critical alert. Only on 'team' entries.\n" }, "email": { "type": "boolean", "description": "Whether to notify the team by e-mail. Only on 'team' entries.\n" }, "id": { "type": "string", "description": "A team's ID from [List teams](https://betterstack.com/docs/uptime/api/teams/list/), such as 't123', or an escalation policy's ID from [List escalation policies](https://betterstack.com/docs/uptime/api/list-all-escalation-policies/).\n" }, "name": { "type": "string", "description": "Team or escalation policy name.\n" }, "push": { "type": "boolean", "description": "Whether to send the team a push notification. Only on 'team' entries.\n" }, "sms": { "type": "boolean", "description": "Whether to notify the team by SMS. Only on 'team' entries.\n" }, "teamId": { "type": "string", "description": "The escalation policy's team, as its team ID such as 't123'. Only on policy entries.\n" }, "teamName": { "type": "string", "description": "The escalation policy's team name. Only on policy entries.\n" }, "type": { "type": "string", "description": "Type of routing target. 'team': A team, notified through the channels turned on in this entry. 'policy': An escalation policy. 'escalation_policy': An escalation policy, the same as 'policy'.\n" } }, "type": "object", "required": [ "call", "criticalAlert", "email", "id", "name", "push", "sms", "teamId", "teamName", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsSlackIntegrationChannelInvitee:getIncidentsSlackIntegrationChannelInvitee": { "properties": { "id": { "type": "string", "description": "ID of the on-call schedule or Slack user group. A user is 'u123' or their e-mail, and is returned as 'u123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/).\n" }, "type": { "type": "string", "description": "What is invited. Valid values: 'user', 'on_call_calendar', 'slack_user_group'.\n" } }, "type": "object", "required": [ "id", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getIncidentsSlackIntegrationStatusPageUpdateResource:getIncidentsSlackIntegrationStatusPageUpdateResource": { "properties": { "id": { "type": "string", "description": "The resource's ID.\n" }, "type": { "type": "string", "description": "Resource type. Valid values: 'status_page', 'monitor', 'heartbeat', 'monitor_group', 'heartbeat_group', 'webhook_integration', 'email_integration', 'incoming_webhook', 'amazon_sns_integration', 'manually_tracked_item', 'logs_chart', 'catalog_reference'.\n" } }, "type": "object", "required": [ "id", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaBroker:getKafkaBroker": { "properties": { "diskUsedBytes": { "type": "integer" }, "hostname": { "type": "string" }, "id": { "type": "string" }, "lastSeenAt": { "type": "string" }, "nodeId": { "type": "string" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getKafkaBrokerPrivateIp:getKafkaBrokerPrivateIp" } }, "status": { "type": "string", "description": "Valid values: 'provisioning', 'starting', 'running', 'down'.\n" }, "underReplicatedPartitions": { "type": "integer" } }, "type": "object", "required": [ "diskUsedBytes", "hostname", "id", "lastSeenAt", "nodeId", "privateIps", "status", "underReplicatedPartitions" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaBrokerPrivateIp:getKafkaBrokerPrivateIp": { "properties": { "ipAddress": { "type": "string" }, "networkId": { "type": "string" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaEndpoint:getKafkaEndpoint": { "properties": { "bootstrapServers": { "type": "string" }, "brokers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getKafkaEndpointBroker:getKafkaEndpointBroker" } }, "hostname": { "type": "string" }, "port": { "type": "integer" }, "publicBootstrapServers": { "type": "string" }, "publicBrokers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getKafkaEndpointPublicBroker:getKafkaEndpointPublicBroker" } }, "publicHostname": { "type": "string" }, "publicPort": { "type": "integer" }, "saslMechanism": { "type": "string" }, "securityProtocol": { "type": "string" } }, "type": "object", "required": [ "bootstrapServers", "brokers", "hostname", "port", "publicBootstrapServers", "publicBrokers", "publicHostname", "publicPort", "saslMechanism", "securityProtocol" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaEndpointBroker:getKafkaEndpointBroker": { "properties": { "hostname": { "type": "string" }, "nodeId": { "type": "string" } }, "type": "object", "required": [ "hostname", "nodeId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaEndpointPublicBroker:getKafkaEndpointPublicBroker": { "properties": { "hostname": { "type": "string" }, "nodeId": { "type": "string" } }, "type": "object", "required": [ "hostname", "nodeId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaTopicSummary:getKafkaTopicSummary": { "properties": { "budgetBytes": { "type": "integer" }, "cleanupPolicy": { "type": "string", "description": "Valid values: 'delete', 'compact', 'compact_delete'.\n" }, "createdAt": { "type": "string" }, "id": { "type": "string" }, "maxMessageBytes": { "type": "integer" }, "name": { "type": "string" }, "partitions": { "type": "integer" }, "replicationFactor": { "type": "integer" }, "retentionBytes": { "type": "integer" }, "retentionMs": { "type": "integer" }, "updatedAt": { "type": "string" } }, "type": "object", "required": [ "budgetBytes", "cleanupPolicy", "createdAt", "id", "maxMessageBytes", "name", "partitions", "replicationFactor", "retentionBytes", "retentionMs", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaUserPrivilege:getKafkaUserPrivilege": { "properties": { "permission": { "type": "string", "description": "What the user can do on the matching topics. 'consume': Read and describe the matching topics, and join consumer groups. 'produce': Write and describe the matching topics, and use transactions and the `enable.idempotence` producer setting. 'produce_consume': Both 'consume' and 'produce'.\n" }, "topicPattern": { "type": "string", "description": "A topic name, or a prefix followed by a trailing `*`, made of letters, digits, dots, hyphens and underscores, up to 249 characters. `*` alone matches every topic.\n" } }, "type": "object", "required": [ "permission", "topicPattern" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaUserSummary:getKafkaUserSummary": { "properties": { "createdAt": { "type": "string" }, "defaultUser": { "type": "boolean" }, "id": { "type": "string" }, "privileges": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getKafkaUserSummaryPrivilege:getKafkaUserSummaryPrivilege" } }, "updatedAt": { "type": "string" }, "username": { "type": "string" } }, "type": "object", "required": [ "createdAt", "defaultUser", "id", "privileges", "updatedAt", "username" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKafkaUserSummaryPrivilege:getKafkaUserSummaryPrivilege": { "properties": { "permission": { "type": "string", "description": "Valid values: 'consume', 'produce', 'produce_consume'.\n" }, "topicPattern": { "type": "string" } }, "type": "object", "required": [ "permission", "topicPattern" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesClusterEndpoint:getKubernetesClusterEndpoint": { "properties": { "apiAllowedCidrs": { "type": "array", "items": { "type": "string" }, "description": "The IP ranges allowed to reach the cluster's Kubernetes API, as 1 to 50 IPv4 or IPv6 CIDRs.\n" }, "hostname": { "type": "string", "description": "The host name of the Kubernetes API.\n" }, "port": { "type": "integer", "description": "The port of the Kubernetes API, always '6443'.\n" } }, "type": "object", "required": [ "apiAllowedCidrs", "hostname", "port" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesClusterNodePool:getKubernetesClusterNodePool": { "properties": { "id": { "type": "string", "description": "The node pool's ID, a UUID.\n" }, "labels": { "type": "string", "description": "The Kubernetes labels of the workers, as string pairs. Written as JSON, with jsonencode().\n" }, "name": { "type": "string", "description": "The node pool's name.\n" }, "nodeCount": { "type": "integer", "description": "How many workers the node pool should have.\n" }, "nodes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getKubernetesClusterNodePoolNode:getKubernetesClusterNodePoolNode" }, "description": "The node pool's workers.\n" }, "nodesReady": { "type": "integer", "description": "How many workers of the node pool are 'ready'.\n" }, "scaling": { "$ref": "#/types/betterstack:index/getKubernetesClusterNodePoolScaling:getKubernetesClusterNodePoolScaling", "description": "How a change of size is going while the node pool is \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e, or null otherwise.\n" }, "serverType": { "type": "string", "description": "The server type of the workers.\n" }, "status": { "type": "string", "description": "The node pool's state. A node pool that's 'active' can still have workers that aren't ready. Valid values: 'active', 'scaling', 'deleting', 'destroyed'.\n" }, "statusMessage": { "type": "string", "description": "Why the node pool has fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, or null.\n" }, "taints": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getKubernetesClusterNodePoolTaint:getKubernetesClusterNodePoolTaint" }, "description": "The Kubernetes taints of the workers.\n" } }, "type": "object", "required": [ "id", "labels", "name", "nodeCount", "nodes", "nodesReady", "scaling", "serverType", "status", "statusMessage", "taints" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesClusterNodePoolNode:getKubernetesClusterNodePoolNode": { "properties": { "id": { "type": "string", "description": "The worker's ID.\n" }, "lastSeenAt": { "type": "string", "description": "When we last saw the worker ready.\n" }, "name": { "type": "string", "description": "The worker's name in Kubernetes.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the worker, or null while the worker is 'queued'.\n" }, "status": { "type": "string", "description": "The worker's state. Valid values: 'queued', 'provisioning', 'joining', 'ready', 'not_ready', 'draining', 'replacing', 'destroyed'.\n" }, "version": { "type": "string", "description": "The Kubernetes version the worker reports.\n" } }, "type": "object", "required": [ "id", "lastSeenAt", "name", "serverId", "status", "version" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesClusterNodePoolScaling:getKubernetesClusterNodePoolScaling": { "properties": { "estimatedReadyAt": { "type": "string", "description": "When we expect the change to be done.\n" }, "from": { "type": "integer", "description": "The number of workers before the change.\n" }, "startedAt": { "type": "string", "description": "When the change started.\n" }, "to": { "type": "integer", "description": "The \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e to reach.\n" } }, "type": "object", "required": [ "estimatedReadyAt", "from", "startedAt", "to" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesClusterNodePoolTaint:getKubernetesClusterNodePoolTaint": { "properties": { "effect": { "type": "string", "description": "What the taint does to pods that don't tolerate it, as in Kubernetes. Valid values: `NoSchedule`, `PreferNoSchedule`, `NoExecute`.\n" }, "key": { "type": "string", "description": "The taint's key.\n" }, "value": { "type": "string", "description": "The taint's value, or null when the taint has none.\n" } }, "type": "object", "required": [ "effect", "key", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesNodePoolNode:getKubernetesNodePoolNode": { "properties": { "id": { "type": "string", "description": "The worker's ID. Use it to recycle the worker.\n" }, "lastSeenAt": { "type": "string", "description": "When we last saw the worker ready.\n" }, "name": { "type": "string", "description": "The worker's name in Kubernetes.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the worker, or null while the worker is 'queued'.\n" }, "status": { "type": "string", "description": "The worker's state. 'queued': We'll create the worker. 'provisioning': We're creating the worker's server. 'joining': The worker is joining the cluster. 'ready': The worker is ready in Kubernetes. 'not_ready': The worker joined, but Kubernetes reports it as not ready. 'draining': We're moving pods off the worker before we remove it. 'replacing': We're creating a new worker to replace this one. 'destroyed': The worker is removed.\n" }, "version": { "type": "string", "description": "The Kubernetes version the worker reports.\n" } }, "type": "object", "required": [ "id", "lastSeenAt", "name", "serverId", "status", "version" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesNodePoolScaling:getKubernetesNodePoolScaling": { "properties": { "estimatedReadyAt": { "type": "string", "description": "When we expect the change to be done.\n" }, "from": { "type": "integer", "description": "The number of workers before the change.\n" }, "startedAt": { "type": "string", "description": "When the change started.\n" }, "to": { "type": "integer", "description": "The \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e to reach.\n" } }, "type": "object", "required": [ "estimatedReadyAt", "from", "startedAt", "to" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getKubernetesNodePoolTaint:getKubernetesNodePoolTaint": { "properties": { "effect": { "type": "string", "description": "What the taint does to pods that don't tolerate it, as in Kubernetes. Valid values: `NoSchedule`, `PreferNoSchedule`, `NoExecute`.\n" }, "key": { "type": "string", "description": "The taint's key.\n" }, "value": { "type": "string", "description": "The taint's value, or null when the taint has none.\n" } }, "type": "object", "required": [ "effect", "key", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerPrivateIp:getLoadBalancerPrivateIp": { "properties": { "ipAddress": { "type": "string" }, "networkId": { "type": "string" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerPublicIp:getLoadBalancerPublicIp": { "properties": { "ip": { "type": "string" }, "type": { "type": "string" } }, "type": "object", "required": [ "ip", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerServiceHealthCheck:getLoadBalancerServiceHealthCheck": { "properties": { "domain": { "type": "string", "description": "The hostname we send in the `Host` header of an HTTP check.\n" }, "intervalSeconds": { "type": "integer", "description": "How often we check each target, 2–3600 seconds.\n" }, "path": { "type": "string", "description": "The path an HTTP check requests, starting with `/`, with no spaces or quotes.\n" }, "port": { "type": "integer", "description": "The port we check, 1–65535. Defaults to 'destination_port'.\n" }, "protocol": { "type": "string", "description": "How we check the targets. 'tcp': Checks that the target accepts a TCP connection. The default for 'tcp' and 'udp' services. 'http': Sends an HTTP request to the target. The default for 'http' and 'https' services. On a 'tcp' or 'udp' service, an 'http' check needs its own \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e, different from \u003cspan pulumi-lang-nodejs=\"`destinationPort`\" pulumi-lang-dotnet=\"`DestinationPort`\" pulumi-lang-go=\"`destinationPort`\" pulumi-lang-python=\"`destination_port`\" pulumi-lang-yaml=\"`destinationPort`\" pulumi-lang-java=\"`destinationPort`\" pulumi-lang-hcl=\"`destination_port`\"\u003e`destinationPort`\u003c/span\u003e.\n" }, "response": { "type": "string", "description": "Text the response must contain, at most 255 characters with no line breaks or quotes.\n" }, "retries": { "type": "integer", "description": "How many checks in a row must fail before a target is down, 1–10.\n" }, "statusCodes": { "type": "string", "description": "The status codes that pass, separated by commas. In a pattern, `?` matches one digit and `*` any number of digits.\n" }, "timeoutSeconds": { "type": "integer", "description": "The check timeout in seconds, 1–60.\n" }, "tls": { "type": "boolean", "description": "Whether checks connect with TLS.\n" } }, "type": "object", "required": [ "domain", "intervalSeconds", "path", "port", "protocol", "response", "retries", "statusCodes", "timeoutSeconds", "tls" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerServiceSummary:getLoadBalancerServiceSummary": { "properties": { "certificateIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the certificates the service presents.\n" }, "createdAt": { "type": "string", "description": "When the service was created.\n" }, "destinationPort": { "type": "integer", "description": "The port on the targets that traffic goes to.\n" }, "healthCheck": { "$ref": "#/types/betterstack:index/getLoadBalancerServiceSummaryHealthCheck:getLoadBalancerServiceSummaryHealthCheck", "description": "How the service checks that its targets are healthy.\n" }, "httpTimeoutSeconds": { "type": "integer", "description": "How long the service waits for a client or a target to send data during an HTTP request, in seconds.\n" }, "id": { "type": "string", "description": "The service's ID.\n" }, "listenPort": { "type": "integer", "description": "The port the service listens on.\n" }, "protocol": { "type": "string", "description": "The protocol the service listens for. 'tcp': Forwards TCP connections. 'http': Forwards HTTP requests. 'https': Decrypts HTTPS traffic with the service's certificates and forwards HTTP requests. 'udp': Forwards UDP traffic.\n" }, "proxyProtocol": { "type": "string", "description": "The PROXY protocol version the targets accept, or 'disabled'. Valid values: 'disabled', 'v1', 'v2'.\n" }, "redirectHttp": { "type": "boolean", "description": "Whether HTTP requests are redirected to this HTTPS service.\n" }, "stickyCookieLifetimeSeconds": { "type": "integer", "description": "How long the sticky session cookie lasts, in seconds.\n" }, "stickyCookieName": { "type": "string", "description": "The name of the sticky session cookie.\n" }, "stickySessions": { "type": "boolean", "description": "Whether a cookie sends each client to the same target.\n" }, "targetHealths": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getLoadBalancerServiceSummaryTargetHealth:getLoadBalancerServiceSummaryTargetHealth" }, "description": "The latest health of each target, updated about every 30 seconds.\n" }, "updatedAt": { "type": "string", "description": "When the service was last updated.\n" } }, "type": "object", "required": [ "certificateIds", "createdAt", "destinationPort", "healthCheck", "httpTimeoutSeconds", "id", "listenPort", "protocol", "proxyProtocol", "redirectHttp", "stickyCookieLifetimeSeconds", "stickyCookieName", "stickySessions", "targetHealths", "updatedAt" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerServiceSummaryHealthCheck:getLoadBalancerServiceSummaryHealthCheck": { "properties": { "domain": { "type": "string", "description": "The hostname we send in the `Host` header of an HTTP check.\n" }, "intervalSeconds": { "type": "integer", "description": "How often we check each target, in seconds.\n" }, "path": { "type": "string", "description": "The path an HTTP check requests.\n" }, "port": { "type": "integer", "description": "The port we check.\n" }, "protocol": { "type": "string", "description": "How we check the targets. 'tcp': Checks that the target accepts a TCP connection. 'http': Sends an HTTP request to the target.\n" }, "response": { "type": "string", "description": "Text the response must contain.\n" }, "retries": { "type": "integer", "description": "How many checks in a row must fail before a target is down.\n" }, "statusCodes": { "type": "string", "description": "The status codes that pass, separated by commas. In a pattern, `?` matches one digit and `*` any number of digits.\n" }, "timeoutSeconds": { "type": "integer", "description": "The check timeout in seconds.\n" }, "tls": { "type": "boolean", "description": "Whether checks connect with TLS.\n" } }, "type": "object", "required": [ "domain", "intervalSeconds", "path", "port", "protocol", "response", "retries", "statusCodes", "timeoutSeconds", "tls" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerServiceSummaryTargetHealth:getLoadBalancerServiceSummaryTargetHealth": { "properties": { "serverId": { "type": "string", "description": "The ID of the target server.\n" }, "serviceId": { "type": "string", "description": "The ID of the service.\n" }, "state": { "type": "string", "description": "Whether the target is healthy. 'up': The target passes its checks. 'down': The target fails its checks. 'unknown': We have no result for the target yet.\n" }, "stateChangedAt": { "type": "string", "description": "When \u003cspan pulumi-lang-nodejs=\"`state`\" pulumi-lang-dotnet=\"`State`\" pulumi-lang-go=\"`state`\" pulumi-lang-python=\"`state`\" pulumi-lang-yaml=\"`state`\" pulumi-lang-java=\"`state`\" pulumi-lang-hcl=\"`state`\"\u003e`state`\u003c/span\u003e last changed, or null.\n" }, "statusMessage": { "type": "string", "description": "Why the target is down, or null.\n" } }, "type": "object", "required": [ "serverId", "serviceId", "state", "stateChangedAt", "statusMessage" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerServiceTargetHealth:getLoadBalancerServiceTargetHealth": { "properties": { "serverId": { "type": "string", "description": "The ID of the target server.\n" }, "serviceId": { "type": "string", "description": "The ID of the service.\n" }, "state": { "type": "string", "description": "Whether the target is healthy. 'up': The target passes its checks. 'down': The target fails its checks. 'unknown': We have no result for the target yet.\n" }, "stateChangedAt": { "type": "string", "description": "When \u003cspan pulumi-lang-nodejs=\"`state`\" pulumi-lang-dotnet=\"`State`\" pulumi-lang-go=\"`state`\" pulumi-lang-python=\"`state`\" pulumi-lang-yaml=\"`state`\" pulumi-lang-java=\"`state`\" pulumi-lang-hcl=\"`state`\"\u003e`state`\u003c/span\u003e last changed, or null.\n" }, "statusMessage": { "type": "string", "description": "Why the target is down, or null.\n" } }, "type": "object", "required": [ "serverId", "serviceId", "state", "stateChangedAt", "statusMessage" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getLoadBalancerTargetSummary:getLoadBalancerTargetSummary": { "properties": { "createdAt": { "type": "string", "description": "When the target was added.\n" }, "id": { "type": "string", "description": "The target's ID.\n" }, "selector": { "type": "string", "description": "The tags a server must have to receive traffic, as string pairs. A server must have every pair. Written as JSON, with jsonencode().\n" }, "serverId": { "type": "string", "description": "The ID of the server to send traffic to.\n" }, "type": { "type": "string", "description": "What the target points at. 'server': One server, in \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e. 'label_selector': Every server that has the tags in \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the target was last updated.\n" }, "usePrivateIp": { "type": "boolean", "description": "Whether to send traffic to the servers' private IP on a network they share with the load balancer, instead of their public IP.\n" } }, "type": "object", "required": [ "createdAt", "id", "selector", "serverId", "type", "updatedAt", "usePrivateIp" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMetadataValue:getMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMonitorMetadata:getMonitorMetadata": { "properties": { "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getMonitorMetadataValue:getMonitorMetadataValue" } } }, "type": "object", "required": [ "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMonitorMetadataValue:getMonitorMetadataValue": { "properties": { "email": { "type": "string", "description": "Referenced user's e-mail, returned for a User. A user can also be found by e-mail.\n" }, "itemId": { "type": "string", "description": "ID of the referenced item. For a user it's 'u123' or their e-mail. For a team it's 't123', and for any other item it's the item's own ID. Responses return users and teams in this form. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "name": { "type": "string", "description": "Referenced item's name, or null when the item has no name or no longer exists. An item can also be found by its name instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e.\n" }, "type": { "type": "string", "description": "`String`, or the type of the referenced item, which is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`.\n" }, "value": { "type": "string", "description": "The text of a `String` value.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMonitorRequestHeader:getMonitorRequestHeader": { "properties": { "id": { "type": "string", "description": "The header's ID.\n" }, "name": { "type": "string", "description": "The header name, like `Content-Type`.\n" }, "value": { "type": "string", "description": "The header value, like `application/json`.\n", "secret": true } }, "type": "object", "required": [ "id", "name", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMySQLEndpoint:getMySQLEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. Resolves to the primary's addresses in your private networks.\n" }, "port": { "type": "integer", "description": "The port to connect to, '3306'.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getMySQLEndpointPrivateIp:getMySQLEndpointPrivateIp" }, "description": "The primary's addresses in your private networks.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off. Resolves to the primary's public addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getMySQLEndpointPublicIp:getMySQLEndpointPublicIp" }, "description": "The primary's public addresses, empty when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off.\n" } }, "type": "object", "required": [ "hostname", "port", "privateIps", "publicHostname", "publicIps" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMySQLEndpointPrivateIp:getMySQLEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMySQLEndpointPublicIp:getMySQLEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public address.\n" }, "type": { "type": "string", "description": "Whether it's an 'ipv4' or 'ipv6' address.\n" } }, "type": "object", "required": [ "ip", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMySQLMember:getMySQLMember": { "properties": { "createdAt": { "type": "string" }, "diskUsedBytes": { "type": "integer" }, "id": { "type": "string" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getMySQLMemberPrivateIp:getMySQLMemberPrivateIp" } }, "replicationLagSeconds": { "type": "number" }, "role": { "type": "string", "description": "Valid values: 'primary', 'replica'.\n" }, "status": { "type": "string", "description": "Valid values: 'provisioning', 'syncing', 'running', 'down'.\n" } }, "type": "object", "required": [ "createdAt", "diskUsedBytes", "id", "privateIps", "replicationLagSeconds", "role", "status" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getMySQLMemberPrivateIp:getMySQLMemberPrivateIp": { "properties": { "ipAddress": { "type": "string" }, "networkId": { "type": "string" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getObjectCacheBucketSummary:getObjectCacheBucketSummary": { "properties": { "name": { "type": "string", "description": "The bucket name clients use with the object cache, 3–63 lowercase letters, digits, dots and hyphens, starting and ending with a letter or digit. Must be unique in the object cache. Defaults to 'origin_bucket'.\n" }, "originAccessKeyId": { "type": "string", "description": "The access key ID for your storage provider.\n", "secret": true }, "originBucket": { "type": "string", "description": "The name of the bucket at your storage provider, at most 255 characters.\n" }, "originEndpoint": { "type": "string", "description": "The HTTPS URL of your storage provider's S3 endpoint, such as `https://s3.eu-central-1.amazonaws.com`. Must use a hostname, not an IP address. Can't have credentials, a path, a query or a fragment.\n" }, "originForcePathStyle": { "type": "boolean", "description": "Whether we send the bucket name in the URL path to your storage provider, instead of in the hostname. Defaults to true.\n" }, "originPrefix": { "type": "string", "description": "A folder in the bucket at your storage provider to serve as the whole bucket, such as `tenant-a/`. Clients see only the objects under it. Leave it out to serve the whole bucket.\n" }, "originRegion": { "type": "string", "description": "The region of your storage provider, such as `us-east-1` or 'auto'. Defaults to `us-east-1`.\n" }, "originSecretAccessKey": { "type": "string", "description": "The secret key for your storage provider.\n", "secret": true } }, "type": "object", "required": [ "name", "originAccessKeyId", "originBucket", "originEndpoint", "originForcePathStyle", "originPrefix", "originRegion", "originSecretAccessKey" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getObjectCacheEndpoints:getObjectCacheEndpoints": { "properties": { "privates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getObjectCacheEndpointsPrivate:getObjectCacheEndpointsPrivate" }, "description": "An HTTP endpoint in each attached network.\n" }, "public": { "$ref": "#/types/betterstack:index/getObjectCacheEndpointsPublic:getObjectCacheEndpointsPublic", "description": "The public HTTPS endpoint, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is false.\n" } }, "type": "object", "required": [ "privates", "public" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getObjectCacheEndpointsPrivate:getObjectCacheEndpointsPrivate": { "properties": { "ipAddress": { "type": "string", "description": "The object cache's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the network.\n" }, "url": { "type": "string", "description": "The endpoint's HTTP URL.\n" } }, "type": "object", "required": [ "ipAddress", "networkId", "url" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getObjectCacheEndpointsPublic:getObjectCacheEndpointsPublic": { "properties": { "hostname": { "type": "string", "description": "The public hostname.\n" }, "records": { "type": "array", "items": { "type": "string" }, "description": "The DNS records the hostname has, `AAAA`, and also `A` when \u003cspan pulumi-lang-nodejs=\"`publicIpv4`\" pulumi-lang-dotnet=\"`PublicIpv4`\" pulumi-lang-go=\"`publicIpv4`\" pulumi-lang-python=\"`public_ipv4`\" pulumi-lang-yaml=\"`publicIpv4`\" pulumi-lang-java=\"`publicIpv4`\" pulumi-lang-hcl=\"`public_ipv4`\"\u003e`publicIpv4`\u003c/span\u003e is true.\n" }, "url": { "type": "string", "description": "The endpoint's HTTPS URL.\n" } }, "type": "object", "required": [ "hostname", "records", "url" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getOnCallRotationWorkingHour:getOnCallRotationWorkingHour": { "properties": { "day": { "type": "string", "description": "The day of the week the window is on. Valid values: 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'.\n" }, "endTime": { "type": "string", "description": "When the window ends, as `HH:MM` in 24-hour time.\n" }, "startTime": { "type": "string", "description": "When the window starts, as `HH:MM` in 24-hour time.\n" } }, "type": "object", "required": [ "day", "endTime", "startTime" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getOnCallScheduleOnCallUser:getOnCallScheduleOnCallUser": { "properties": { "email": { "type": "string", "description": "The person's e-mail address.\n" }, "firstName": { "type": "string", "description": "The person's first name, or null when it isn't set.\n" }, "id": { "type": "string", "description": "The person's ID as 'u123'.\n" }, "lastName": { "type": "string", "description": "The person's last name, or null when it isn't set.\n" }, "phoneNumbers": { "type": "array", "items": { "type": "string" }, "description": "The person's phone numbers, such as `+420737123456`, sorted.\n" } }, "type": "object", "required": [ "email", "firstName", "id", "lastName", "phoneNumbers" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getOnCallScheduleShift:getOnCallScheduleShift": { "properties": { "endsAt": { "type": "string", "description": "When this part of the shift ends. Can be after 'to'.\n" }, "override": { "type": "boolean", "description": "Whether an override puts these people on call instead of the rotation.\n" }, "overrideId": { "type": "string", "description": "The ID of the override's on-call event, to use with [Delete an on-call event](https://betterstack.com/docs/uptime/api/delete-on-call-calendar-event/), or null for a shift from the rotation.\n" }, "startsAt": { "type": "string", "description": "When this part of the shift starts. Can be before 'from'.\n" }, "users": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getOnCallScheduleShiftUser:getOnCallScheduleShiftUser" }, "description": "The people on call.\n" } }, "type": "object", "required": [ "endsAt", "override", "overrideId", "startsAt", "users" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getOnCallScheduleShiftUser:getOnCallScheduleShiftUser": { "properties": { "email": { "type": "string", "description": "The person's e-mail address.\n" }, "firstName": { "type": "string", "description": "The person's first name, or null when it isn't set.\n" }, "holidayEndsAt": { "type": "string", "description": "When that holiday ends, or null.\n" }, "id": { "type": "string", "description": "The person's ID as 'u123'.\n" }, "lastName": { "type": "string", "description": "The person's last name, or null when it isn't set.\n" }, "onHoliday": { "type": "boolean", "description": "Whether the person is on holiday during part of this shift. For a shift running now, only the rest of the shift counts. Escalations skip someone on holiday.\n" }, "phoneNumbers": { "type": "array", "items": { "type": "string" }, "description": "The person's phone numbers, sorted.\n" } }, "type": "object", "required": [ "email", "firstName", "holidayEndsAt", "id", "lastName", "onHoliday", "phoneNumbers" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getOnCallScheduleSlackGroup:getOnCallScheduleSlackGroup": { "properties": { "error": { "type": "string", "description": "What's wrong and what to do about it. null when status is 'active' or 'pending'.\n" }, "slackWorkspaceId": { "type": "string", "description": "ID of the Slack workspace.\n" }, "slackWorkspaceName": { "type": "string", "description": "Name of the Slack workspace.\n" }, "status": { "type": "string", "description": "The group's state in the workspace. When the group doesn't follow who's on call, \u003cspan pulumi-lang-nodejs=\"`error`\" pulumi-lang-dotnet=\"`Error`\" pulumi-lang-go=\"`error`\" pulumi-lang-python=\"`error`\" pulumi-lang-yaml=\"`error`\" pulumi-lang-java=\"`error`\" pulumi-lang-hcl=\"`error`\"\u003e`error`\u003c/span\u003e says why. 'pending': The group is being set up. 'active': The group follows who's on call. 'permission_denied': The Slack workspace lets only admins manage user groups. 'plan_required': User groups need a paid Slack plan. 'name_conflict': Another Slack user group already uses the handle. 'failed': The group couldn't be synced with Slack. 'no_slack_users': Nobody on call has connected Slack, so the group tags nobody from this schedule. 'reinstall_required': The Slack integration was connected before user groups were supported. Reinstall the integration to set the group up.\n" }, "unconnectedUsers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getOnCallScheduleSlackGroupUnconnectedUser:getOnCallScheduleSlackGroupUnconnectedUser" }, "description": "The on-call users the group doesn't include. Present only when you get a single schedule.\n" } }, "type": "object", "required": [ "error", "slackWorkspaceId", "slackWorkspaceName", "status", "unconnectedUsers" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getOnCallScheduleSlackGroupUnconnectedUser:getOnCallScheduleSlackGroupUnconnectedUser": { "properties": { "email": { "type": "string", "description": "The user's e-mail address.\n" }, "firstName": { "type": "string", "description": "The user's first name, or null when it isn't set.\n" }, "id": { "type": "string", "description": "The user's ID as 'u123'.\n" }, "lastName": { "type": "string", "description": "The user's last name, or null when it isn't set.\n" } }, "type": "object", "required": [ "email", "firstName", "id", "lastName" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getPostgresEndpoint:getPostgresEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. Resolves to the primary's addresses in your private networks.\n" }, "pooledPort": { "type": "integer", "description": "The port for connecting through PgBouncer, '6432'.\n" }, "port": { "type": "integer", "description": "The port for connecting straight to PostgreSQL, '5432'.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getPostgresEndpointPrivateIp:getPostgresEndpointPrivateIp" }, "description": "The primary's addresses in your private networks.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off. Resolves to the primary's public addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getPostgresEndpointPublicIp:getPostgresEndpointPublicIp" }, "description": "The primary's public addresses, when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is on.\n" } }, "type": "object", "required": [ "hostname", "pooledPort", "port", "privateIps", "publicHostname", "publicIps" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getPostgresEndpointPrivateIp:getPostgresEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getPostgresEndpointPublicIp:getPostgresEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public address.\n" }, "type": { "type": "string", "description": "Whether it's an 'ipv4' or 'ipv6' address.\n" } }, "type": "object", "required": [ "ip", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getPostgresMember:getPostgresMember": { "properties": { "createdAt": { "type": "string", "description": "When the node was created.\n" }, "diskUsedBytes": { "type": "integer", "description": "The disk space the node uses, in bytes.\n" }, "id": { "type": "string", "description": "The node's ID.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getPostgresMemberPrivateIp:getPostgresMemberPrivateIp" }, "description": "The node's addresses in your private networks.\n" }, "replicationLagSeconds": { "type": "number", "description": "How far the replica is behind the primary, in seconds, or null on the primary.\n" }, "role": { "type": "string", "description": "Whether the node is the primary or a replica. 'primary': The node that accepts writes. 'replica': A read-only copy of the primary.\n" }, "status": { "type": "string", "description": "The node's status. Valid values: 'provisioning', 'syncing', 'running', 'down'.\n" } }, "type": "object", "required": [ "createdAt", "diskUsedBytes", "id", "privateIps", "replicationLagSeconds", "role", "status" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getPostgresMemberPrivateIp:getPostgresMemberPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getPostgresUserSummary:getPostgresUserSummary": { "properties": { "createdAt": { "type": "string" }, "defaultUser": { "type": "boolean" }, "id": { "type": "string" }, "privileges": { "type": "object", "additionalProperties": { "type": "string" } }, "username": { "type": "string" } }, "type": "object", "required": [ "createdAt", "defaultUser", "id", "privileges", "username" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaApiRequestsPerMinute:getQuotaApiRequestsPerMinute": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaCertificates:getQuotaCertificates": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaClickhouses:getQuotaClickhouses": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaCloudflareRecords:getQuotaCloudflareRecords": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaConsoleSessions:getQuotaConsoleSessions": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaDedicatedServers:getQuotaDedicatedServers": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaDedicatedVcpus:getQuotaDedicatedVcpus": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaFirewallRules:getQuotaFirewallRules": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaFirewalls:getQuotaFirewalls": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaKafkas:getQuotaKafkas": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaKubernetesControlPlanes:getQuotaKubernetesControlPlanes": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaLoadBalancers:getQuotaLoadBalancers": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaMysqls:getQuotaMysqls": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaNetworks:getQuotaNetworks": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaObjectProxies:getQuotaObjectProxies": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaOtlps:getQuotaOtlps": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaPlacementGroupCount:getQuotaPlacementGroupCount": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaPlacementGroupServers:getQuotaPlacementGroupServers": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaPostgresInstances:getQuotaPostgresInstances": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaPrivateIpsPerServerPerNetwork:getQuotaPrivateIpsPerServerPerNetwork": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaPublicIpv4Addresses:getQuotaPublicIpv4Addresses": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaPublicIpv6Addresses:getQuotaPublicIpv6Addresses": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaRamGb:getQuotaRamGb": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaRegularServers:getQuotaRegularServers": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaRegularVcpus:getQuotaRegularVcpus": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaRescalesPerMinute:getQuotaRescalesPerMinute": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaReservedIpv4Addresses:getQuotaReservedIpv4Addresses": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaReservedIpv6Addresses:getQuotaReservedIpv6Addresses": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaScheduledSnapshots:getQuotaScheduledSnapshots": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaScheduledVolumeSnapshots:getQuotaScheduledVolumeSnapshots": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaServerPoolSize:getQuotaServerPoolSize": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaServersPerMinute:getQuotaServersPerMinute": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaSnapshotStorageGb:getQuotaSnapshotStorageGb": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaSnapshots:getQuotaSnapshots": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaSnapshotsPerMinute:getQuotaSnapshotsPerMinute": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaSpotServers:getQuotaSpotServers": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaSpotVcpus:getQuotaSpotVcpus": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaSshKeys:getQuotaSshKeys": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaValkeys:getQuotaValkeys": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaVolumeSnapshotStorageGb:getQuotaVolumeSnapshotStorageGb": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaVolumeSnapshots:getQuotaVolumeSnapshots": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaVolumeSnapshotsPerMinute:getQuotaVolumeSnapshotsPerMinute": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaVolumeStorageGb:getQuotaVolumeStorageGb": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaVolumes:getQuotaVolumes": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getQuotaWebhooks:getQuotaWebhooks": { "properties": { "default": { "type": "integer", "description": "The default limit for an organization.\n" }, "limit": { "type": "integer", "description": "The limit that applies to the organization.\n" }, "used": { "type": "number", "description": "How much of the limit the organization uses in this zone, or null for a limit with no total, such as a rate.\n" } }, "type": "object", "required": [ "default", "limit", "used" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getReservedIpServer:getReservedIpServer": { "properties": { "id": { "type": "string", "description": "The server's ID.\n" }, "name": { "type": "string", "description": "The server's name.\n" }, "status": { "type": "string", "description": "The server's status, such as 'running'.\n" } }, "type": "object", "required": [ "id", "name", "status" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getServerCloudflareRecord:getServerCloudflareRecord": { "properties": { "aRecord": { "type": "string", "description": "The record's name.\n" }, "domain": { "type": "string", "description": "The Cloudflare zone of the record.\n" }, "id": { "type": "string", "description": "The record's ID.\n" }, "proxied": { "type": "boolean", "description": "Whether Cloudflare proxies the record.\n" }, "status": { "type": "string", "description": "Whether we've created the record, 'pending', 'created' or 'failed'.\n" }, "ttl": { "type": "integer", "description": "The record's TTL in seconds. '1' means automatic.\n" }, "type": { "type": "string", "description": "The record type, `A`, `AAAA` or `CNAME`.\n" } }, "type": "object", "required": [ "aRecord", "domain", "id", "proxied", "status", "ttl", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getServerConnectionTracking:getServerConnectionTracking": { "properties": { "budget": { "type": "integer", "description": "The most connections the server can have at once, 60,000 per vCPU of its type.\n" }, "entries": { "type": "integer", "description": "How many connections the server had at the last count. null before the first count.\n" }, "measuredAt": { "type": "string", "description": "When we last counted the connections. We count once a minute.\n" }, "overBudget": { "type": "boolean", "description": "Whether the server has more connections than its \u003cspan pulumi-lang-nodejs=\"`budget`\" pulumi-lang-dotnet=\"`Budget`\" pulumi-lang-go=\"`budget`\" pulumi-lang-python=\"`budget`\" pulumi-lang-yaml=\"`budget`\" pulumi-lang-java=\"`budget`\" pulumi-lang-hcl=\"`budget`\"\u003e`budget`\u003c/span\u003e. New connections are dropped until it's back under the budget.\n" } }, "type": "object", "required": [ "budget", "entries", "measuredAt", "overBudget" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getServerIpAddress:getServerIpAddress": { "properties": { "id": { "type": "string", "description": "The ID of the address on the server.\n" }, "ip": { "type": "string", "description": "The address.\n" }, "ptrRecord": { "type": "string", "description": "The reverse DNS name. null when none is set.\n" }, "reservedIp": { "type": "boolean", "description": "Whether it's a reserved IP.\n" }, "type": { "type": "string", "description": "Whether it's an 'ipv4' or 'ipv6' address.\n" } }, "type": "object", "required": [ "id", "ip", "ptrRecord", "reservedIp", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getServerLock:getServerLock": { "properties": { "details": { "type": "string", "description": "More about the lock, or null.\n" }, "lockedAt": { "type": "string", "description": "When we locked the server.\n" }, "reason": { "type": "string", "description": "Why we locked the server. Valid values: 'fraud', 'non_payment', 'abuse', 'legal', 'security', 'maintenance', 'other'.\n" } }, "type": "object", "required": [ "details", "lockedAt", "reason" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getServerPoolDefaults:getServerPoolDefaults": { "properties": { "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls to attach.\n" }, "metadata": { "type": "string", "description": "Your own tags, as string keys and values. Written as JSON, with jsonencode().\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks to join.\n" }, "sshKeys": { "type": "array", "items": { "type": "string" }, "description": "The 'slug' of each SSH key to add.\n" } }, "type": "object", "required": [ "firewallIds", "metadata", "networkIds", "sshKeys" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getServerPrivateIpItem:getServerPrivateIpItem": { "properties": { "id": { "type": "string", "description": "The ID of the address on the server.\n" }, "ip": { "type": "string", "description": "The address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the network.\n" } }, "type": "object", "required": [ "id", "ip", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getSourceCustomBucket:getSourceCustomBucket": { "properties": { "accessKeyId": { "type": "string", "description": "The access key ID Better Stack uses to write to the bucket.\n" }, "endpoint": { "type": "string", "description": "The S3-compatible endpoint URL of the bucket. Can't be changed after the bucket is set.\n" }, "keepDataAfterRetention": { "type": "boolean", "description": "Whether data stays in the bucket after the retention period. Can't be changed after the bucket is set.\n" }, "name": { "type": "string", "description": "The bucket's name, taken from \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e.\n" }, "secretAccessKey": { "type": "string", "description": "The secret access key for \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e. Write-only, so it's never returned.\n", "secret": true } }, "type": "object", "required": [ "accessKeyId", "endpoint", "keepDataAfterRetention", "name", "secretAccessKey" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getSourceGcpMetricsFilter:getSourceGcpMetricsFilter": { "properties": { "exclude": { "type": "string", "description": "A regular expression for metric types to leave out. Every other metric is collected.\n" }, "include": { "type": "string", "description": "A regular expression for metric types to collect, or `*` for every metric.\n" } }, "type": "object", "required": [ "exclude", "include" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getSourceQueryCollections:getSourceQueryCollections": { "properties": { "appFilter": { "type": "string", "description": "The condition that keeps only the source's rows in its parent's raw collections. null unless the source is connected to a source.\n" }, "database": { "type": "string", "description": "The ClickHouse database that holds the source's data.\n" }, "metricsAppFilter": { "type": "string", "description": "The condition that keeps only the source's rows in its parent's metrics collection. null unless the source is connected to a source.\n" }, "recent": { "type": "object", "additionalProperties": { "type": "string" }, "description": "The collection with the last 30 minutes of data, keyed by the kind of data, such as 'logs' or 'metrics'.\n" }, "s3": { "type": "string", "description": "The collection that holds older rows of every type.\n" }, "table": { "type": "string", "description": "The physical table, as `database.table`.\n" } }, "type": "object", "required": [ "appFilter", "database", "metricsAppFilter", "recent", "s3", "table" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getSourceScrapeRequestHeader:getSourceScrapeRequestHeader": { "properties": { "name": { "type": "string", "description": "The header's name.\n" }, "value": { "type": "string", "description": "The header's value.\n", "secret": true } }, "type": "object", "required": [ "name", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getSourceServiceField:getSourceServiceField": { "properties": { "nameKey": { "type": "string", "description": "The field to extract the service name from, such as `service.name`.\n" }, "typeKey": { "type": "string", "description": "The field to extract the service's platform from, such as `service.type`. Platforms such as Nginx, PostgreSQL or Redis are recognized in its value.\n" } }, "type": "object", "required": [ "nameKey", "typeKey" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageNavigationLink:getStatusPageNavigationLink": { "properties": { "href": { "type": "string", "description": "Where the link goes, a full URL, or `/`, `/maintenance` or `/incidents` for the status page's own pages.\n" }, "text": { "type": "string", "description": "The link's text, such as `Maintenance`.\n" } }, "type": "object", "required": [ "href", "text" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSection:getStatusPageSection": { "properties": { "id": { "type": "string", "description": "The section's ID. Leave it out for a new section. Send the ID to keep the section, even when you move it.\n" }, "name": { "type": "string", "description": "Section name.\n" }, "resources": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getStatusPageSectionResource:getStatusPageSectionResource" }, "description": "The section's resources, in display order. Leave it out to keep the section's resources as they are. A new section starts empty. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`resourceType`\" pulumi-lang-dotnet=\"`ResourceType`\" pulumi-lang-go=\"`resourceType`\" pulumi-lang-python=\"`resource_type`\" pulumi-lang-yaml=\"`resourceType`\" pulumi-lang-java=\"`resourceType`\" pulumi-lang-hcl=\"`resource_type`\"\u003e`resourceType`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e, or else the same \u003cspan pulumi-lang-nodejs=\"`resourceType`\" pulumi-lang-dotnet=\"`ResourceType`\" pulumi-lang-go=\"`resourceType`\" pulumi-lang-python=\"`resource_type`\" pulumi-lang-yaml=\"`resourceType`\" pulumi-lang-java=\"`resourceType`\" pulumi-lang-hcl=\"`resource_type`\"\u003e`resourceType`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`publicName`\" pulumi-lang-dotnet=\"`PublicName`\" pulumi-lang-go=\"`publicName`\" pulumi-lang-python=\"`public_name`\" pulumi-lang-yaml=\"`publicName`\" pulumi-lang-java=\"`publicName`\" pulumi-lang-hcl=\"`public_name`\"\u003e`publicName`\u003c/span\u003e, so a reorder or a move updates it in place.\n" } }, "type": "object", "required": [ "id", "name", "resources" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSectionResource:getStatusPageSectionResource": { "properties": { "catalogReference": { "$ref": "#/types/betterstack:index/getStatusPageSectionResourceCatalogReference:getStatusPageSectionResourceCatalogReference", "description": "For a `CatalogReference` resource, the catalog value it shows, as on a status page resource. We find or create the catalog value, and it sets the resource's \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e. A \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e sent along with it is ignored. null for every other type.\n" }, "chartId": { "type": "string", "description": "For a `LogsChart` resource, the ID of the dashboard chart it shows, as on a status page resource. The chart must be on one of your organization's dashboards. The chart decides the resource's \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e, so a \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e sent with \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e is ignored. null for every other type.\n" }, "explanation": { "type": "string", "description": "Text shown to visitors in a tooltip next to the resource.\n" }, "id": { "type": "string", "description": "The resource's ID. Leave it out for a new resource. Send the ID to keep the resource and its subscribers, even when you move it to another section.\n" }, "markAsDegradedFor": { "type": "string", "description": "When an incident marks this resource as degraded. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents. 'no_incident': No incident marks the resource degraded. 'any_incident': Every open incident of the resource marks it degraded. 'incident_matching_metadata': An open incident marks the resource degraded when its metadata matches \u003cspan pulumi-lang-nodejs=\"`markAsDegradedMetadataRule`\" pulumi-lang-dotnet=\"`MarkAsDegradedMetadataRule`\" pulumi-lang-go=\"`markAsDegradedMetadataRule`\" pulumi-lang-python=\"`mark_as_degraded_metadata_rule`\" pulumi-lang-yaml=\"`markAsDegradedMetadataRule`\" pulumi-lang-java=\"`markAsDegradedMetadataRule`\" pulumi-lang-hcl=\"`mark_as_degraded_metadata_rule`\"\u003e`markAsDegradedMetadataRule`\u003c/span\u003e.\n" }, "markAsDegradedMetadataRule": { "$ref": "#/types/betterstack:index/getStatusPageSectionResourceMarkAsDegradedMetadataRule:getStatusPageSectionResourceMarkAsDegradedMetadataRule", "description": "Metadata rule used when \u003cspan pulumi-lang-nodejs=\"`markAsDegradedFor`\" pulumi-lang-dotnet=\"`MarkAsDegradedFor`\" pulumi-lang-go=\"`markAsDegradedFor`\" pulumi-lang-python=\"`mark_as_degraded_for`\" pulumi-lang-yaml=\"`markAsDegradedFor`\" pulumi-lang-java=\"`markAsDegradedFor`\" pulumi-lang-hcl=\"`mark_as_degraded_for`\"\u003e`markAsDegradedFor`\u003c/span\u003e is 'incident_matching_metadata', in the shape of \u003cspan pulumi-lang-nodejs=\"`markAsDownMetadataRule`\" pulumi-lang-dotnet=\"`MarkAsDownMetadataRule`\" pulumi-lang-go=\"`markAsDownMetadataRule`\" pulumi-lang-python=\"`mark_as_down_metadata_rule`\" pulumi-lang-yaml=\"`markAsDownMetadataRule`\" pulumi-lang-java=\"`markAsDownMetadataRule`\" pulumi-lang-hcl=\"`mark_as_down_metadata_rule`\"\u003e`markAsDownMetadataRule`\u003c/span\u003e. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n" }, "markAsDownFor": { "type": "string", "description": "When an incident marks this resource as down. The setting has no effect on a `ManuallyTrackedItem`, which has no incidents. 'no_incident': No incident marks the resource down. 'any_incident': Every open incident of the resource marks it down. 'incident_matching_metadata': An open incident marks the resource down when its metadata matches \u003cspan pulumi-lang-nodejs=\"`markAsDownMetadataRule`\" pulumi-lang-dotnet=\"`MarkAsDownMetadataRule`\" pulumi-lang-go=\"`markAsDownMetadataRule`\" pulumi-lang-python=\"`mark_as_down_metadata_rule`\" pulumi-lang-yaml=\"`markAsDownMetadataRule`\" pulumi-lang-java=\"`markAsDownMetadataRule`\" pulumi-lang-hcl=\"`mark_as_down_metadata_rule`\"\u003e`markAsDownMetadataRule`\u003c/span\u003e.\n" }, "markAsDownMetadataRule": { "$ref": "#/types/betterstack:index/getStatusPageSectionResourceMarkAsDownMetadataRule:getStatusPageSectionResourceMarkAsDownMetadataRule", "description": "Metadata rule used when \u003cspan pulumi-lang-nodejs=\"`markAsDownFor`\" pulumi-lang-dotnet=\"`MarkAsDownFor`\" pulumi-lang-go=\"`markAsDownFor`\" pulumi-lang-python=\"`mark_as_down_for`\" pulumi-lang-yaml=\"`markAsDownFor`\" pulumi-lang-java=\"`markAsDownFor`\" pulumi-lang-hcl=\"`mark_as_down_for`\"\u003e`markAsDownFor`\u003c/span\u003e is 'incident_matching_metadata', as on a status page resource. A user is 'u123' or their e-mail, and a team is 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). The setting has no effect on a `ManuallyTrackedItem`, which has no incidents.\n" }, "publicName": { "type": "string", "description": "Name shown publicly. Required for a new resource.\n" }, "resourceId": { "type": "string", "description": "ID of the underlying monitor, heartbeat, group or other record. Required for a new resource. A `ManuallyTrackedItem` doesn't need it, since we create the item for you. Neither does a resource whose \u003cspan pulumi-lang-nodejs=\"`catalogReference`\" pulumi-lang-dotnet=\"`CatalogReference`\" pulumi-lang-go=\"`catalogReference`\" pulumi-lang-python=\"`catalog_reference`\" pulumi-lang-yaml=\"`catalogReference`\" pulumi-lang-java=\"`catalogReference`\" pulumi-lang-hcl=\"`catalog_reference`\"\u003e`catalogReference`\u003c/span\u003e names a catalog value or whose \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e names a dashboard chart.\n" }, "resourceType": { "type": "string", "description": "Type of the underlying resource. Required for a new resource. `Monitor`: Shows a monitor. `MonitorGroup`: Shows a monitor group. `Heartbeat`: Shows a heartbeat. `HeartbeatGroup`: Shows a heartbeat group. `WebhookIntegration`: Shows an integration that creates incidents from another tool's alerts, such as Datadog or Grafana. `EmailIntegration`: Shows an e-mail integration. `IncomingWebhook`: Shows an incoming webhook. `AmazonSnsIntegration`: Shows an Amazon SNS integration. `ManuallyTrackedItem`: Shows a manually tracked item, which we create when you leave out \u003cspan pulumi-lang-nodejs=\"`resourceId`\" pulumi-lang-dotnet=\"`ResourceId`\" pulumi-lang-go=\"`resourceId`\" pulumi-lang-python=\"`resource_id`\" pulumi-lang-yaml=\"`resourceId`\" pulumi-lang-java=\"`resourceId`\" pulumi-lang-hcl=\"`resource_id`\"\u003e`resourceId`\u003c/span\u003e. `LogsChart`: Shows a dashboard chart, given in \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e. `CatalogReference`: Shows a catalog value, given in \u003cspan pulumi-lang-nodejs=\"`catalogReference`\" pulumi-lang-dotnet=\"`CatalogReference`\" pulumi-lang-go=\"`catalogReference`\" pulumi-lang-python=\"`catalog_reference`\" pulumi-lang-yaml=\"`catalogReference`\" pulumi-lang-java=\"`catalogReference`\" pulumi-lang-hcl=\"`catalog_reference`\"\u003e`catalogReference`\u003c/span\u003e. `ThirdPartyService`: Shows the status of a third-party service. A third-party service resource can only be added in the status page editor. When you send the resource back with its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, it keeps the services it shows.\n" }, "widgetType": { "type": "string", "description": "How the resource is shown on the page. 'plain': Shows only the current status. \u003cspan pulumi-lang-nodejs=\"`history`\" pulumi-lang-dotnet=\"`History`\" pulumi-lang-go=\"`history`\" pulumi-lang-python=\"`history`\" pulumi-lang-yaml=\"`history`\" pulumi-lang-java=\"`history`\" pulumi-lang-hcl=\"`history`\"\u003e`history`\u003c/span\u003e: Shows the current status and a history of it. 'intraday_history': Shows the current status and a detailed history of it. 'response_times': Shows a history of the status and a response times chart, for a monitor or a logs chart. 'intraday_response_times': Shows a detailed history of the status and a response times chart, for a monitor or a logs chart. 'chart_only': Shows only the chart, for a logs chart.\n" } }, "type": "object", "required": [ "catalogReference", "chartId", "explanation", "id", "markAsDegradedFor", "markAsDegradedMetadataRule", "markAsDownFor", "markAsDownMetadataRule", "publicName", "resourceId", "resourceType", "widgetType" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSectionResourceCatalogReference:getStatusPageSectionResourceCatalogReference": { "properties": { "key": { "type": "string", "description": "The catalog relation's name.\n" }, "value": { "$ref": "#/types/betterstack:index/getStatusPageSectionResourceCatalogReferenceValue:getStatusPageSectionResourceCatalogReferenceValue", "description": "The catalog value to show, a plain string or a catalog item.\n" } }, "type": "object", "required": [ "key", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSectionResourceCatalogReferenceValue:getStatusPageSectionResourceCatalogReferenceValue": { "properties": { "email": { "type": "string", "description": "The user's e-mail, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `User`. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the user.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e isn't `String`. A user is 'u123' or their e-mail, and a team is 't123'.\n" }, "name": { "type": "string", "description": "The catalog item's name. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the item.\n" }, "type": { "type": "string", "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`.\n" }, "value": { "type": "string", "description": "The plain value, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSectionResourceMarkAsDegradedMetadataRule:getStatusPageSectionResourceMarkAsDegradedMetadataRule": { "properties": { "key": { "type": "string", "description": "The incident metadata key to match.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getStatusPageSectionResourceMarkAsDegradedMetadataRuleValue:getStatusPageSectionResourceMarkAsDegradedMetadataRuleValue" }, "description": "The values to match. An incident matches when its metadata under \u003cspan pulumi-lang-nodejs=\"`key`\" pulumi-lang-dotnet=\"`Key`\" pulumi-lang-go=\"`key`\" pulumi-lang-python=\"`key`\" pulumi-lang-yaml=\"`key`\" pulumi-lang-java=\"`key`\" pulumi-lang-hcl=\"`key`\"\u003e`key`\u003c/span\u003e holds one of them.\n" } }, "type": "object", "required": [ "key", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSectionResourceMarkAsDegradedMetadataRuleValue:getStatusPageSectionResourceMarkAsDegradedMetadataRuleValue": { "properties": { "email": { "type": "string", "description": "The user's e-mail, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `User`. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the user.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e isn't `String`. A user is 'u123' or their e-mail, and a team is 't123'. Get the user ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/).\n" }, "name": { "type": "string", "description": "The catalog item's name. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the item.\n" }, "type": { "type": "string", "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`.\n" }, "value": { "type": "string", "description": "The plain value, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSectionResourceMarkAsDownMetadataRule:getStatusPageSectionResourceMarkAsDownMetadataRule": { "properties": { "key": { "type": "string", "description": "The incident metadata key to match.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getStatusPageSectionResourceMarkAsDownMetadataRuleValue:getStatusPageSectionResourceMarkAsDownMetadataRuleValue" }, "description": "The values to match. An incident matches when its metadata under \u003cspan pulumi-lang-nodejs=\"`key`\" pulumi-lang-dotnet=\"`Key`\" pulumi-lang-go=\"`key`\" pulumi-lang-python=\"`key`\" pulumi-lang-yaml=\"`key`\" pulumi-lang-java=\"`key`\" pulumi-lang-hcl=\"`key`\"\u003e`key`\u003c/span\u003e holds one of them.\n" } }, "type": "object", "required": [ "key", "values" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getStatusPageSectionResourceMarkAsDownMetadataRuleValue:getStatusPageSectionResourceMarkAsDownMetadataRuleValue": { "properties": { "email": { "type": "string", "description": "The user's e-mail, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `User`. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the user.\n" }, "itemId": { "type": "string", "description": "The catalog item's ID, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e isn't `String`. A user is 'u123' or their e-mail, and a team is 't123'. Get the user ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/).\n" }, "name": { "type": "string", "description": "The catalog item's name. Set it instead of \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e to find the item.\n" }, "type": { "type": "string", "description": "`String` for a plain value, or the type of the catalog item, such as `User` or `Team`.\n" }, "value": { "type": "string", "description": "The plain value, when \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e is `String`.\n" } }, "type": "object", "required": [ "email", "itemId", "name", "type", "value" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getValkeyEndpoint:getValkeyEndpoint": { "properties": { "hostname": { "type": "string", "description": "The hostname to connect to from your private networks. Always points at the current primary's addresses in those networks.\n" }, "port": { "type": "integer", "description": "The port without TLS on private networks, '6379'.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getValkeyEndpointPrivateIp:getValkeyEndpointPrivateIp" }, "description": "The primary's addresses in the attached private networks.\n" }, "publicHostname": { "type": "string", "description": "The hostname to connect to from the internet, on the public TLS endpoint, or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off. Always points at the current primary's public IP addresses.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getValkeyEndpointPublicIp:getValkeyEndpointPublicIp" }, "description": "The primary's public IP addresses, empty when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off.\n" }, "tlsPort": { "type": "integer", "description": "The public TLS port, '6380', or null when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is off.\n" } }, "type": "object", "required": [ "hostname", "port", "privateIps", "publicHostname", "publicIps", "tlsPort" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getValkeyEndpointPrivateIp:getValkeyEndpointPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The primary's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getValkeyEndpointPublicIp:getValkeyEndpointPublicIp": { "properties": { "ip": { "type": "string", "description": "The public IP address.\n" }, "type": { "type": "string", "description": "The address type, 'ipv4' or 'ipv6'.\n" } }, "type": "object", "required": [ "ip", "type" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getValkeyMember:getValkeyMember": { "properties": { "createdAt": { "type": "string", "description": "When the node was created.\n" }, "id": { "type": "string", "description": "The node's ID.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/getValkeyMemberPrivateIp:getValkeyMemberPrivateIp" }, "description": "The node's addresses in the attached private networks.\n" }, "replicationLagBytes": { "type": "integer", "description": "How far the replica is behind the primary, in bytes, or null for the primary.\n" }, "role": { "type": "string", "description": "The node's role. 'primary': The node accepts writes. 'replica': The node copies the primary and serves reads.\n" }, "status": { "type": "string", "description": "The node's state. Send traffic to a node only while it's 'running'. 'provisioning': We're creating the node. 'syncing': The replica is copying the primary's data. 'running': The node serves traffic. 'down': The node doesn't respond.\n" } }, "type": "object", "required": [ "createdAt", "id", "privateIps", "replicationLagBytes", "role", "status" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getValkeyMemberPrivateIp:getValkeyMemberPrivateIp": { "properties": { "ipAddress": { "type": "string", "description": "The node's IP address in that network.\n" }, "networkId": { "type": "string", "description": "The ID of the private network.\n" } }, "type": "object", "required": [ "ipAddress", "networkId" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/getVolumeLock:getVolumeLock": { "properties": { "details": { "type": "string", "description": "More about the lock, or null.\n" }, "lockedAt": { "type": "string", "description": "When we locked the volume.\n" }, "reason": { "type": "string", "description": "Why we locked the volume. Valid values: 'fraud', 'non_payment', 'abuse', 'legal', 'security', 'maintenance', 'other'.\n" } }, "type": "object", "required": [ "details", "lockedAt", "reason" ], "language": { "nodejs": { "requiredInputs": [] } } }, "betterstack:index/incidentsAmazonSnsIntegrationAcknowledgedRuleType:IncidentsAmazonSnsIntegrationAcknowledgedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsAmazonSnsIntegrationResolvedRuleType:IncidentsAmazonSnsIntegrationResolvedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsAmazonSnsIntegrationStartedRuleType:IncidentsAmazonSnsIntegrationStartedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsDatadogIntegrationAlertingRule:IncidentsDatadogIntegrationAlertingRule": { "type": "string", "enum": [ { "name": "Alert", "value": "alert" }, { "name": "AlertAndWarn", "value": "alert_and_warn" } ] }, "betterstack:index/incidentsIncomingEmailIntegrationAcknowledgedRuleType:IncidentsIncomingEmailIntegrationAcknowledgedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsIncomingEmailIntegrationResolvedRuleType:IncidentsIncomingEmailIntegrationResolvedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsIncomingEmailIntegrationStartedRuleType:IncidentsIncomingEmailIntegrationStartedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsIncomingWebhookIntegrationAcknowledgedRuleType:IncidentsIncomingWebhookIntegrationAcknowledgedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsIncomingWebhookIntegrationResolvedRuleType:IncidentsIncomingWebhookIntegrationResolvedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsIncomingWebhookIntegrationStartedRuleType:IncidentsIncomingWebhookIntegrationStartedRuleType": { "type": "string", "enum": [ { "name": "Unused", "value": "unused" }, { "name": "Any", "value": "any" }, { "name": "All", "value": "all" } ] }, "betterstack:index/incidentsLinearIntegrationLinearPriority:IncidentsLinearIntegrationLinearPriority": { "type": "string", "enum": [ { "name": "NoPriority", "value": "no_priority" }, { "name": "Urgent", "value": "urgent" }, { "name": "High", "value": "high" }, { "name": "Medium", "value": "medium" }, { "name": "Low", "value": "low" } ] }, "betterstack:index/incidentsNewRelicIntegrationAlertingRule:IncidentsNewRelicIntegrationAlertingRule": { "type": "string", "enum": [ { "name": "Alert", "value": "alert" }, { "name": "AlertAndWarn", "value": "alert_and_warn" } ] }, "betterstack:index/incidentsOutgoingPagerDutyIntegrationSeverity:IncidentsOutgoingPagerDutyIntegrationSeverity": { "type": "string", "enum": [ { "name": "Info", "value": "info" }, { "name": "Warning", "value": "warning" }, { "name": "Error", "value": "error" }, { "name": "Critical", "value": "critical" } ] }, "betterstack:index/incidentsOutgoingWebhookIntegrationMetadataApiVersion:IncidentsOutgoingWebhookIntegrationMetadataApiVersion": { "type": "string", "enum": [ { "name": "V2", "value": "v2" }, { "name": "V3", "value": "v3" } ] }, "betterstack:index/incidentsOutgoingWebhookIntegrationTriggerType:IncidentsOutgoingWebhookIntegrationTriggerType": { "type": "string", "enum": [ { "name": "IncidentChange", "value": "incident_change" }, { "name": "OnCallChange", "value": "on_call_change" }, { "name": "MonitorChange", "value": "monitor_change" } ] }, "betterstack:index/kafkaTerm:KafkaTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/kafkaTopicCleanupPolicy:KafkaTopicCleanupPolicy": { "type": "string", "enum": [ { "name": "Delete", "value": "delete" }, { "name": "Compact", "value": "compact" }, { "name": "CompactDelete", "value": "compact_delete" } ] }, "betterstack:index/kubernetesScheduledSnapshotFrequency:KubernetesScheduledSnapshotFrequency": { "type": "string", "enum": [ { "name": "Hourly", "value": "hourly" }, { "name": "Daily", "value": "daily" }, { "name": "Weekly", "value": "weekly" }, { "name": "Monthly", "value": "monthly" } ] }, "betterstack:index/loadBalancerAlgorithm:LoadBalancerAlgorithm": { "type": "string", "enum": [ { "name": "RoundRobin", "value": "round_robin" }, { "name": "LeastConnections", "value": "least_connections" }, { "name": "SourceIp", "value": "source_ip" } ] }, "betterstack:index/loadBalancerServiceProtocol:LoadBalancerServiceProtocol": { "type": "string", "enum": [ { "name": "Tcp", "value": "tcp" }, { "name": "Http", "value": "http" }, { "name": "Https", "value": "https" }, { "name": "Udp", "value": "udp" } ] }, "betterstack:index/loadBalancerServiceProxyProtocol:LoadBalancerServiceProxyProtocol": { "type": "string", "enum": [ { "name": "Disabled", "value": "disabled" }, { "name": "V1", "value": "v1" }, { "name": "V2", "value": "v2" } ] }, "betterstack:index/loadBalancerTargetType:LoadBalancerTargetType": { "type": "string", "enum": [ { "name": "Server", "value": "server" }, { "name": "LabelSelector", "value": "label_selector" } ] }, "betterstack:index/loadBalancerTerm:LoadBalancerTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/metadataMode:MetadataMode": { "type": "string", "enum": [ { "name": "Replace", "value": "replace" }, { "name": "Merge", "value": "merge" } ] }, "betterstack:index/monitorIpVersion:MonitorIpVersion": { "type": "string", "enum": [ { "name": "Ipv4", "value": "ipv4" }, { "name": "Ipv6", "value": "ipv6" } ] }, "betterstack:index/monitorType:MonitorType": { "type": "string", "enum": [ { "name": "Status", "value": "status" }, { "name": "ExpectedStatusCode", "value": "expected_status_code" }, { "name": "Keyword", "value": "keyword" }, { "name": "KeywordAbsence", "value": "keyword_absence" }, { "name": "Ping", "value": "ping" }, { "name": "Tcp", "value": "tcp" }, { "name": "Udp", "value": "udp" }, { "name": "Smtp", "value": "smtp" }, { "name": "Pop", "value": "pop" }, { "name": "Imap", "value": "imap" }, { "name": "Dns", "value": "dns" }, { "name": "Playwright", "value": "playwright" } ] }, "betterstack:index/mySQLScheduledSnapshotFrequency:MySQLScheduledSnapshotFrequency": { "type": "string", "enum": [ { "name": "Hourly", "value": "hourly" }, { "name": "Daily", "value": "daily" }, { "name": "Weekly", "value": "weekly" }, { "name": "Monthly", "value": "monthly" } ] }, "betterstack:index/mySQLTerm:MySQLTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/objectCacheEvictionPolicy:ObjectCacheEvictionPolicy": { "type": "string", "enum": [ { "name": "LeastFrequentlyUsed", "value": "least_frequently_used" }, { "name": "LeastRecentlyUsed", "value": "least_recently_used" } ] }, "betterstack:index/objectCacheTerm:ObjectCacheTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/onCallRotationRotationInterval:OnCallRotationRotationInterval": { "type": "string", "enum": [ { "name": "Hour", "value": "hour" }, { "name": "Day", "value": "day" }, { "name": "Week", "value": "week" } ] }, "betterstack:index/otlpStatus:OtlpStatus": { "type": "string", "enum": [ { "name": "Active", "value": "active" }, { "name": "Paused", "value": "paused" } ] }, "betterstack:index/otlpTemporality:OtlpTemporality": { "type": "string", "enum": [ { "name": "Cumulative", "value": "cumulative" }, { "name": "Delta", "value": "delta" } ] }, "betterstack:index/placementGroupPlacementType:PlacementGroupPlacementType": { "type": "string", "enum": [ { "name": "Spread", "value": "spread" }, { "name": "Compact", "value": "compact" } ] }, "betterstack:index/postgresScheduledSnapshotFrequency:PostgresScheduledSnapshotFrequency": { "type": "string", "enum": [ { "name": "Hourly", "value": "hourly" }, { "name": "Daily", "value": "daily" }, { "name": "Weekly", "value": "weekly" }, { "name": "Monthly", "value": "monthly" } ] }, "betterstack:index/postgresTerm:PostgresTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/reservedIpTerm:ReservedIpTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/reservedIpType:ReservedIpType": { "type": "string", "enum": [ { "name": "Ipv4", "value": "ipv4" }, { "name": "Ipv6", "value": "ipv6" } ] }, "betterstack:index/scheduledSnapshotFrequency:ScheduledSnapshotFrequency": { "type": "string", "enum": [ { "name": "Hourly", "value": "hourly" }, { "name": "Daily", "value": "daily" }, { "name": "Weekly", "value": "weekly" }, { "name": "Monthly", "value": "monthly" } ] }, "betterstack:index/scheduledVolumeSnapshotFrequency:ScheduledVolumeSnapshotFrequency": { "type": "string", "enum": [ { "name": "Hourly", "value": "hourly" }, { "name": "Daily", "value": "daily" }, { "name": "Weekly", "value": "weekly" }, { "name": "Monthly", "value": "monthly" } ] }, "betterstack:index/serverTerm:ServerTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/sourcePlatform:SourcePlatform": { "type": "string", "enum": [ { "name": "Apache2", "value": "apache2" }, { "name": "Aws", "value": "aws" }, { "name": "AwsCloudwatch", "value": "aws_cloudwatch" }, { "name": "AwsEcs", "value": "aws_ecs" }, { "name": "AwsElb", "value": "aws_elb" }, { "name": "AwsFargate", "value": "aws_fargate" }, { "name": "Azure", "value": "azure" }, { "name": "AzureLogs", "value": "azure_logs" }, { "name": "ClaudePlatform", "value": "claude_platform" }, { "name": "CloudflareLogpush", "value": "cloudflare_logpush" }, { "name": "CloudflarePrometheusExporter", "value": "cloudflare_prometheus_exporter" }, { "name": "CloudflareWorker", "value": "cloudflare_worker" }, { "name": "DatadogAgent", "value": "datadog_agent" }, { "name": "Digitalocean", "value": "digitalocean" }, { "name": "Docker", "value": "docker" }, { "name": "Dokku", "value": "dokku" }, { "name": "Dotnet", "value": "dotnet" }, { "name": "Elasticsearch", "value": "elasticsearch" }, { "name": "Erlang", "value": "erlang" }, { "name": "Fastly", "value": "fastly" }, { "name": "Filebeat", "value": "filebeat" }, { "name": "Flights", "value": "flights" }, { "name": "Fluentbit", "value": "fluentbit" }, { "name": "Fluentd", "value": "fluentd" }, { "name": "FlyIo", "value": "fly_io" }, { "name": "Gcp", "value": "gcp" }, { "name": "Go", "value": "go" }, { "name": "GoogleCloudPubsub", "value": "google_cloud_pubsub" }, { "name": "Haproxy", "value": "haproxy" }, { "name": "Heroku", "value": "heroku" }, { "name": "Http", "value": "http" }, { "name": "Java", "value": "java" }, { "name": "Javascript", "value": "javascript" }, { "name": "Kubernetes", "value": "kubernetes" }, { "name": "Logstash", "value": "logstash" }, { "name": "Minio", "value": "minio" }, { "name": "Mongodb", "value": "mongodb" }, { "name": "Mysql", "value": "mysql" }, { "name": "Nginx", "value": "nginx" }, { "name": "OpenTelemetry", "value": "open_telemetry" }, { "name": "OracleCloud", "value": "oracle_cloud" }, { "name": "Php", "value": "php" }, { "name": "Postgresql", "value": "postgresql" }, { "name": "Prometheus", "value": "prometheus" }, { "name": "PrometheusScrape", "value": "prometheus_scrape" }, { "name": "Python", "value": "python" }, { "name": "Rabbitmq", "value": "rabbitmq" }, { "name": "Redis", "value": "redis" }, { "name": "Render", "value": "render" }, { "name": "Rsyslog", "value": "rsyslog" }, { "name": "Ruby", "value": "ruby" }, { "name": "SyslogNg", "value": "syslog-ng" }, { "name": "Traefik", "value": "traefik" }, { "name": "Ubuntu", "value": "ubuntu" }, { "name": "Vector", "value": "vector" }, { "name": "VercelIntegration", "value": "vercel_integration" }, { "name": "Winlogbeat", "value": "winlogbeat" } ] }, "betterstack:index/statusPageDesign:StatusPageDesign": { "type": "string", "enum": [ { "name": "V1", "value": "v1" }, { "name": "V2", "value": "v2" } ] }, "betterstack:index/statusPageLayout:StatusPageLayout": { "type": "string", "enum": [ { "name": "Vertical", "value": "vertical" }, { "name": "Horizontal", "value": "horizontal" } ] }, "betterstack:index/statusPageTheme:StatusPageTheme": { "type": "string", "enum": [ { "name": "Light", "value": "light" }, { "name": "Dark", "value": "dark" }, { "name": "System", "value": "system" } ] }, "betterstack:index/teamMemberRole:TeamMemberRole": { "type": "string", "enum": [ { "name": "Admin", "value": "admin" }, { "name": "BillingAdmin", "value": "billing_admin" }, { "name": "TeamLead", "value": "team_lead" }, { "name": "Responder", "value": "responder" }, { "name": "Member", "value": "member" }, { "name": "Custom", "value": "custom" } ] }, "betterstack:index/valkeyEvictionPolicy:ValkeyEvictionPolicy": { "type": "string", "enum": [ { "name": "Noeviction", "value": "noeviction" }, { "name": "AllkeysLru", "value": "allkeys-lru" }, { "name": "AllkeysLfu", "value": "allkeys-lfu" }, { "name": "AllkeysRandom", "value": "allkeys-random" }, { "name": "VolatileLru", "value": "volatile-lru" }, { "name": "VolatileLfu", "value": "volatile-lfu" }, { "name": "VolatileRandom", "value": "volatile-random" }, { "name": "VolatileTtl", "value": "volatile-ttl" } ] }, "betterstack:index/valkeyPersistence:ValkeyPersistence": { "type": "string", "enum": [ { "name": "Rdb", "value": "rdb" }, { "name": "None", "value": "none" } ] }, "betterstack:index/valkeyScheduledSnapshotFrequency:ValkeyScheduledSnapshotFrequency": { "type": "string", "enum": [ { "name": "Hourly", "value": "hourly" }, { "name": "Daily", "value": "daily" }, { "name": "Weekly", "value": "weekly" }, { "name": "Monthly", "value": "monthly" } ] }, "betterstack:index/valkeyTerm:ValkeyTerm": { "type": "string", "enum": [ { "name": "Monthly", "value": "monthly" }, { "name": "Annual", "value": "annual" } ] }, "betterstack:index/volumeFormat:VolumeFormat": { "type": "string", "enum": [ { "name": "Ext4", "value": "ext4" }, { "name": "Xfs", "value": "xfs" } ] }, "betterstack:index/volumeType:VolumeType": { "type": "string", "enum": [ { "name": "Nvme", "value": "nvme" } ] }, "betterstack:index/webhookStatus:WebhookStatus": { "type": "string", "enum": [ { "name": "Active", "value": "active" }, { "name": "Paused", "value": "paused" } ] } }, "provider": { "description": "The provider type for the betterstack package. By default, resources use package-wide configuration\nsettings, however an explicit `Provider` instance may be created and passed during resource\nconstruction to achieve fine-grained programmatic control over provider settings. See the\n[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.\n", "properties": { "apiRateBurst": { "type": "integer", "description": "How many requests may go out at once above the rate. Defaults to twice the rate, at least 10, when set to 0." }, "apiRateLimit": { "type": "integer", "description": "The most requests per second. Defaults to 8, and 0 turns the limit off." }, "apiRetryMax": { "type": "integer", "description": "How many times a failed request is retried. Defaults to 4." }, "apiRetryWaitMax": { "type": "integer", "description": "The longest wait before a retry, in seconds, also when Better Stack asks to wait longer. Defaults to 300." }, "apiRetryWaitMin": { "type": "integer", "description": "The shortest wait before a retry, in seconds. Defaults to 10." }, "apiTimeout": { "type": "integer", "description": "How long one request may take, in seconds. Defaults to 60, and 0 turns the timeout off." }, "apiToken": { "type": "string", "description": "Better Stack API token. Falls back to the BETTERSTACK_API_TOKEN environment variable.", "secret": true }, "availabilityZone": { "type": "string", "description": "Use the zone your resources are in, such as us-west-2a. Each zone is separate. Falls back to the BETTERSTACK_AVAILABILITY_ZONE environment variable." }, "endpoint": { "type": "string", "description": "The API base URL to use instead of Better Stack's, such as a test server." }, "teamId": { "type": "string", "description": "Selects the team when the API token can reach several." } }, "inputProperties": { "apiRateBurst": { "type": "integer", "description": "How many requests may go out at once above the rate. Defaults to twice the rate, at least 10, when set to 0." }, "apiRateLimit": { "type": "integer", "description": "The most requests per second. Defaults to 8, and 0 turns the limit off." }, "apiRetryMax": { "type": "integer", "description": "How many times a failed request is retried. Defaults to 4." }, "apiRetryWaitMax": { "type": "integer", "description": "The longest wait before a retry, in seconds, also when Better Stack asks to wait longer. Defaults to 300." }, "apiRetryWaitMin": { "type": "integer", "description": "The shortest wait before a retry, in seconds. Defaults to 10." }, "apiTimeout": { "type": "integer", "description": "How long one request may take, in seconds. Defaults to 60, and 0 turns the timeout off." }, "apiToken": { "type": "string", "description": "Better Stack API token. Falls back to the BETTERSTACK_API_TOKEN environment variable.", "secret": true }, "availabilityZone": { "type": "string", "description": "Use the zone your resources are in, such as us-west-2a. Each zone is separate. Falls back to the BETTERSTACK_AVAILABILITY_ZONE environment variable." }, "endpoint": { "type": "string", "description": "The API base URL to use instead of Better Stack's, such as a test server." }, "teamId": { "type": "string", "description": "Selects the team when the API token can reach several." } }, "methods": { "terraformConfig": "pulumi:providers:betterstack/terraformConfig" } }, "resources": { "betterstack:index/alert:Alert": { "description": "An alert on a dashboard chart or a saved exploration that opens an incident when its condition is met.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Source(\"app\", {\n name: \"Production app\",\n platform: betterstack.SourcePlatform.Ubuntu,\n});\nconst appDashboard = new betterstack.Dashboard(\"app\", {name: \"Production app\"});\nconst errors = new betterstack.DashboardChart(\"errors\", {\n dashboardId: appDashboard.id,\n chartType: betterstack.DashboardChartChartType.LineChart,\n name: \"Errors\",\n queries: [{\n queryType: \"sql_expression\",\n sqlQuery: \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }],\n});\nconst errorSpike = new betterstack.Alert(\"error_spike\", {\n dashboardId: appDashboard.id,\n chartId: errors.id,\n name: \"Error spike\",\n alertType: betterstack.AlertType.Threshold,\n operator: betterstack.AlertOperator.HigherThan,\n value: 100,\n sourceVariable: pulumi.interpolate`source:${app.tableName}`,\n aggregationInterval: 300,\n checkPeriod: 60,\n confirmationPeriod: 300,\n recoveryPeriod: 300,\n email: true,\n push: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Source(\"app\",\n name=\"Production app\",\n platform=betterstack.SourcePlatform.UBUNTU)\napp_dashboard = betterstack.Dashboard(\"app\", name=\"Production app\")\nerrors = betterstack.DashboardChart(\"errors\",\n dashboard_id=app_dashboard.id,\n chart_type=betterstack.DashboardChartChartType.LINE_CHART,\n name=\"Errors\",\n queries=[{\n \"query_type\": \"sql_expression\",\n \"sql_query\": \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }])\nerror_spike = betterstack.Alert(\"error_spike\",\n dashboard_id=app_dashboard.id,\n chart_id=errors.id,\n name=\"Error spike\",\n alert_type=betterstack.AlertType.THRESHOLD,\n operator=betterstack.AlertOperator.HIGHER_THAN,\n value=float(100),\n source_variable=app.table_name.apply(lambda table_name: f\"source:{table_name}\"),\n aggregation_interval=300,\n check_period=60,\n confirmation_period=300,\n recovery_period=300,\n email=True,\n push=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Source(\"app\", new()\n {\n Name = \"Production app\",\n Platform = BetterStack.SourcePlatform.Ubuntu,\n });\n\n var appDashboard = new BetterStack.Dashboard(\"app\", new()\n {\n Name = \"Production app\",\n });\n\n var errors = new BetterStack.DashboardChart(\"errors\", new()\n {\n DashboardId = appDashboard.Id,\n ChartType = BetterStack.DashboardChartChartType.LineChart,\n Name = \"Errors\",\n Queries = new[]\n {\n new BetterStack.Inputs.DashboardChartQueryArgs\n {\n QueryType = \"sql_expression\",\n SqlQuery = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n },\n },\n });\n\n var errorSpike = new BetterStack.Alert(\"error_spike\", new()\n {\n DashboardId = appDashboard.Id,\n ChartId = errors.Id,\n Name = \"Error spike\",\n AlertType = BetterStack.AlertType.Threshold,\n Operator = BetterStack.AlertOperator.HigherThan,\n Value = 100.0,\n SourceVariable = app.TableName.Apply(tableName =\u003e $\"source:{tableName}\"),\n AggregationInterval = 300,\n CheckPeriod = 60,\n ConfirmationPeriod = 300,\n RecoveryPeriod = 300,\n Email = true,\n Push = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewSource(ctx, \"app\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformUbuntu),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tappDashboard, err := betterstack.NewDashboard(ctx, \"app\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\terrors, err := betterstack.NewDashboardChart(ctx, \"errors\", \u0026betterstack.DashboardChartArgs{\n\t\t\tDashboardId: appDashboard.ID(),\n\t\t\tChartType: pulumi.String(betterstack.DashboardChartChartTypeLineChart),\n\t\t\tName: pulumi.String(\"Errors\"),\n\t\t\tQueries: betterstack.DashboardChartQueryArray{\n\t\t\t\t\u0026betterstack.DashboardChartQueryArgs{\n\t\t\t\t\tQueryType: pulumi.String(\"sql_expression\"),\n\t\t\t\t\tSqlQuery: pulumi.String(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewAlert(ctx, \"error_spike\", \u0026betterstack.AlertArgs{\n\t\t\tDashboardId: appDashboard.ID(),\n\t\t\tChartId: errors.ID(),\n\t\t\tName: pulumi.String(\"Error spike\"),\n\t\t\tAlertType: pulumi.String(betterstack.AlertTypeThreshold),\n\t\t\tOperator: pulumi.String(betterstack.AlertOperatorHigherThan),\n\t\t\tValue: pulumi.Float64(100),\n\t\t\tSourceVariable: app.TableName.ApplyT(func(tableName string) (string, error) {\n\t\t\t\treturn fmt.Sprintf(\"source:%v\", tableName), nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tAggregationInterval: pulumi.Int(300),\n\t\t\tCheckPeriod: pulumi.Int(60),\n\t\t\tConfirmationPeriod: pulumi.Int(300),\n\t\t\tRecoveryPeriod: pulumi.Int(300),\n\t\t\tEmail: pulumi.Bool(true),\n\t\t\tPush: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n platform = \"ubuntu\"\n}\nresource \"betterstack_dashboard\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n}\nresource \"betterstack_dashboard_chart\" \"errors\" {\n lifecycle {\n create_before_destroy = true\n }\n dashboard_id = betterstack_dashboard.app.id\n chart_type = \"line_chart\"\n name = \"Errors\"\n queries = [{\n query_type = \"sql_expression\"\n sql_query = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"\n }]\n}\nresource \"betterstack_alert\" \"error_spike\" {\n lifecycle {\n create_before_destroy = true\n }\n dashboard_id = betterstack_dashboard.app.id\n chart_id = betterstack_dashboard_chart.errors.id\n name = \"Error spike\"\n alert_type = \"threshold\"\n operator = \"higher_than\"\n value = 100\n source_variable =\"source:${betterstack_source.app.table_name}\"\n aggregation_interval = 300\n check_period = 60\n confirmation_period = 300\n recovery_period = 300\n email = true\n push = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport com.betterstack.pulumi.DashboardChart;\nimport com.betterstack.pulumi.DashboardChartArgs;\nimport com.betterstack.pulumi.inputs.DashboardChartQueryArgs;\nimport com.betterstack.pulumi.Alert;\nimport com.betterstack.pulumi.AlertArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Source(\"app\", SourceArgs.builder()\n .name(\"Production app\")\n .platform(\"ubuntu\")\n .build());\n\n var appDashboard = new Dashboard(\"appDashboard\", DashboardArgs.builder()\n .name(\"Production app\")\n .build());\n\n var errors = new DashboardChart(\"errors\", DashboardChartArgs.builder()\n .dashboardId(appDashboard.id())\n .chartType(\"line_chart\")\n .name(\"Errors\")\n .queries(DashboardChartQueryArgs.builder()\n .queryType(\"sql_expression\")\n .sqlQuery(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\")\n .build())\n .build());\n\n var errorSpike = new Alert(\"errorSpike\", AlertArgs.builder()\n .dashboardId(appDashboard.id())\n .chartId(errors.id())\n .name(\"Error spike\")\n .alertType(\"threshold\")\n .operator(\"higher_than\")\n .value(100.0)\n .sourceVariable(app.tableName().applyValue(_tableName -\u003e String.format(\"source:%s\", _tableName)))\n .aggregationInterval(300)\n .checkPeriod(60)\n .confirmationPeriod(300)\n .recoveryPeriod(300)\n .email(true)\n .push(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Source\n properties:\n name: Production app\n platform: ubuntu\n appDashboard:\n type: betterstack:Dashboard\n name: app\n properties:\n name: Production app\n errors:\n type: betterstack:DashboardChart\n properties:\n dashboardId: ${appDashboard.id}\n chartType: line_chart\n name: Errors\n queries:\n - queryType: sql_expression\n sqlQuery: SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\n errorSpike:\n type: betterstack:Alert\n name: error_spike\n properties:\n dashboardId: ${appDashboard.id}\n chartId: ${errors.id}\n name: Error spike\n alertType: threshold\n operator: higher_than\n value: 100\n sourceVariable: source:${app.tableName}\n aggregationInterval: 300\n checkPeriod: 60\n confirmationPeriod: 300\n recoveryPeriod: 300\n email: true\n push: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nConfigure exactly one of these: \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e with \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e. The provider checks this when it plans the resource, before it creates or replaces anything.\n\n\u003e To pause an alert, update it with `paused: true`.\n\n\u003e The \u003cspan pulumi-lang-nodejs=\"`escalationTarget`\" pulumi-lang-dotnet=\"`EscalationTarget`\" pulumi-lang-go=\"`escalationTarget`\" pulumi-lang-python=\"`escalation_target`\" pulumi-lang-yaml=\"`escalationTarget`\" pulumi-lang-java=\"`escalationTarget`\" pulumi-lang-hcl=\"`escalation_target`\"\u003e`escalationTarget`\u003c/span\u003e attribute holds the ID of an escalation policy in Incidents.\n\n## Import\n\nImport an existing alert by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/alert:Alert example 12345\n```\n\n", "properties": { "additionalConditions": { "type": "array", "items": { "$ref": "#/types/betterstack:index/AlertAdditionalCondition:AlertAdditionalCondition" }, "description": "Up to 4 more conditions on top of the alert's own. A series fires only when it breaches the alert's own condition and every other condition that covers it, in the same time bucket. A condition limited to other series counts as met when any of its own series breaches it. Anomaly detection can't be an additional condition. An empty list removes them all.\n" }, "aggregationInterval": { "type": "integer", "description": "The size of the buckets the data is aggregated into before each bucket is evaluated, in seconds. Defaults to 'query_period', then \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e, then 60.\n" }, "alertType": { "type": "string", "description": "Alert type. An update can change it. 'threshold': Fires when the value crosses a threshold. 'relative': Compares the value with the previous period as a percentage change. 'anomaly_rrcf': Uses machine learning anomaly detection. Table charts don't accept it.\n" }, "anomalySensitivity": { "type": "number", "description": "How far a value must deviate from its prediction to trigger the alert, for 'anomaly_rrcf' alerts only. Shown as **Significance** in the web app. A higher value needs a larger deviation, so the alert fires less often. Left out for threshold and relative alerts. Defaults to `5.0` on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it.\n" }, "anomalyTrainingRangeDays": { "type": "integer", "description": "Days of history the anomaly model is first trained on, from 1 to 30. For 'anomaly_rrcf' alerts only. Left out of the response on threshold and relative alerts. Defaults to '7' on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it.\n" }, "anomalyTrigger": { "type": "string", "description": "Which direction of anomaly fires the alert, for 'anomaly_rrcf' alerts only. Left out of the response on threshold and relative alerts. Defaults to 'any' on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it. 'any': Fires on values above or below the prediction. 'higher': Fires on values above the prediction. 'lower': Fires on values below the prediction.\n" }, "call": { "type": "boolean", "description": "Trigger phone-call alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without phone call alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "chartId": { "type": "string", "description": "Chart this alert watches, on the dashboard in \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e. null for an alert on an exploration. Can't be changed after the alert is created.\n" }, "checkPeriod": { "type": "integer", "description": "How often the alert is checked, in seconds. Not returned for 'anomaly_rrcf' alerts. An update that sends \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e without \u003cspan pulumi-lang-nodejs=\"`queryPeriod`\" pulumi-lang-dotnet=\"`QueryPeriod`\" pulumi-lang-go=\"`queryPeriod`\" pulumi-lang-python=\"`query_period`\" pulumi-lang-yaml=\"`queryPeriod`\" pulumi-lang-java=\"`queryPeriod`\" pulumi-lang-hcl=\"`query_period`\"\u003e`queryPeriod`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`aggregationInterval`\" pulumi-lang-dotnet=\"`AggregationInterval`\" pulumi-lang-go=\"`aggregationInterval`\" pulumi-lang-python=\"`aggregation_interval`\" pulumi-lang-yaml=\"`aggregationInterval`\" pulumi-lang-java=\"`aggregationInterval`\" pulumi-lang-hcl=\"`aggregation_interval`\"\u003e`aggregationInterval`\u003c/span\u003e sets both of them to the same value. A create that leaves it out checks every \u003cspan pulumi-lang-nodejs=\"`aggregationInterval`\" pulumi-lang-dotnet=\"`AggregationInterval`\" pulumi-lang-go=\"`aggregationInterval`\" pulumi-lang-python=\"`aggregation_interval`\" pulumi-lang-yaml=\"`aggregationInterval`\" pulumi-lang-java=\"`aggregationInterval`\" pulumi-lang-hcl=\"`aggregation_interval`\"\u003e`aggregationInterval`\u003c/span\u003e, or on a tail chart every 60 to 900 seconds, longer for a longer \u003cspan pulumi-lang-nodejs=\"`queryPeriod`\" pulumi-lang-dotnet=\"`QueryPeriod`\" pulumi-lang-go=\"`queryPeriod`\" pulumi-lang-python=\"`query_period`\" pulumi-lang-yaml=\"`queryPeriod`\" pulumi-lang-java=\"`queryPeriod`\" pulumi-lang-hcl=\"`query_period`\"\u003e`queryPeriod`\u003c/span\u003e.\n" }, "confirmationPeriod": { "type": "integer", "description": "How long the condition must hold before an incident starts, in seconds, from '0' to '86400'. '0' starts it at once. Defaults to '60'.\n" }, "createdAt": { "type": "string", "description": "When the alert was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Trigger critical push alerts that bypass silent mode. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without critical alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "dashboardId": { "type": "string", "description": "Dashboard of the chart this alert watches. null for an alert on an exploration. Set it with \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e for an alert on a dashboard chart, or set \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e instead. Can't be changed after the alert is created. At least one of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e must be configured.\n" }, "email": { "type": "boolean", "description": "Trigger e-mail alerts. Left out of responses when the alert routes to an escalation policy. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "escalationTarget": { "$ref": "#/types/betterstack:index/AlertEscalationTarget:AlertEscalationTarget", "description": "Where the incident is routed. Can be the string 'current_team', which is the default, an object with \u003cspan pulumi-lang-nodejs=\"`policyId`\" pulumi-lang-dotnet=\"`PolicyId`\" pulumi-lang-go=\"`policyId`\" pulumi-lang-python=\"`policy_id`\" pulumi-lang-yaml=\"`policyId`\" pulumi-lang-java=\"`policyId`\" pulumi-lang-hcl=\"`policy_id`\"\u003e`policyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`policyName`\" pulumi-lang-dotnet=\"`PolicyName`\" pulumi-lang-go=\"`policyName`\" pulumi-lang-python=\"`policy_name`\" pulumi-lang-yaml=\"`policyName`\" pulumi-lang-java=\"`policyName`\" pulumi-lang-hcl=\"`policy_name`\"\u003e`policyName`\u003c/span\u003e, or an object with \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`teamName`\" pulumi-lang-dotnet=\"`TeamName`\" pulumi-lang-go=\"`teamName`\" pulumi-lang-python=\"`team_name`\" pulumi-lang-yaml=\"`teamName`\" pulumi-lang-java=\"`teamName`\" pulumi-lang-hcl=\"`team_name`\"\u003e`teamName`\u003c/span\u003e. The string 'unknown' means the target can't be found or no longer exists. Name a policy by ID, by name or both, and a team by \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. An empty object routes to the current team too. A request is refused when it names both a policy and a team, names one that doesn't exist, or gives a policy name several policies share without an ID. Defaults to 'current_team'.\n" }, "explorationId": { "type": "string", "description": "Exploration this alert watches. null for an alert on a dashboard chart. Set it instead of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e for an alert on an exploration. Can't be changed after the alert is created. At least one of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e must be configured.\n" }, "incidentCause": { "type": "string", "description": "A custom description for the incidents the alert starts, in Markdown, or null when none is set. Accepts the same template variables as \u003cspan pulumi-lang-nodejs=\"`incidentName`\" pulumi-lang-dotnet=\"`IncidentName`\" pulumi-lang-go=\"`incidentName`\" pulumi-lang-python=\"`incident_name`\" pulumi-lang-yaml=\"`incidentName`\" pulumi-lang-java=\"`incidentName`\" pulumi-lang-hcl=\"`incident_name`\"\u003e`incidentName`\u003c/span\u003e, such as `{{current_value}}` and `{{threshold_value}}`.\n" }, "incidentName": { "type": "string", "description": "A custom name for the incidents the alert starts, in plain text, or null when none is set. Accepts template variables such as `{{alert_name}}`, `{{series_name}}`, `{{current_value}}`, `{{threshold_value}}`, `{{team_name}}`, the chart's variables and the columns its query returns.\n" }, "incidentPerSeries": { "type": "boolean", "description": "Whether each series that breaches the condition starts its own incident, rather than one incident for the whole alert. Defaults to false.\n" }, "metadata": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Custom incident metadata, where each key you choose holds a list of strings. A single string is accepted too and saved as a one-item list. The metadata is added to the alert's incidents. An update replaces all the metadata. An empty object clears the metadata, which then reads back as null.\n" }, "name": { "type": "string", "description": "Alert name. Until you rename the alert, its name follows the chart's name.\n" }, "onMissingData": { "type": "string", "description": "What a check does when the query returns no data. Can't be sent for 'anomaly_rrcf' alerts, and is left out of their responses. Defaults to 'dont_fire' on threshold and relative alerts. Anomaly alerts don't accept it. 'treat_as_zero': Checks the missing data as if the value were 0. 'dont_fire': Starts no incident for missing data. 'treat_as_previous': Checks the missing data as if it had the previous value. 'start_incident': Starts an incident when the query returns no data.\n" }, "operator": { "type": "string", "description": "How the value is compared. Required for threshold and relative alerts. 'anomaly_rrcf' alerts don't use it, and it's left out of their responses. 'equal': A 'threshold' alert fires when the value equals \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. 'not_equal': A 'threshold' alert fires when the value differs from \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. 'higher_than': A 'threshold' alert fires when the value is above \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'higher_than_or_equal': A 'threshold' alert fires when the value is at or above \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'lower_than': A 'threshold' alert fires when the value is below \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'lower_than_or_equal': A 'threshold' alert fires when the value is at or below \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'increases_by': A 'relative' alert fires when the value rises by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more. 'decreases_by': A 'relative' alert fires when the value falls by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more. 'changes_by': A 'relative' alert fires when the value rises or falls by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more.\n" }, "paused": { "type": "boolean", "description": "Whether the alert is paused. Defaults to false.\n" }, "pausedReason": { "type": "string", "description": "Why the alert is paused. `Manually paused` for an alert paused by hand, or a sentence that says why Better Stack paused it. null when the alert isn't paused.\n" }, "push": { "type": "boolean", "description": "Trigger mobile push alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without push notifications, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "queryPeriod": { "type": "integer", "description": "The time window of data each check looks at, in seconds. Defaults to 'aggregation_interval', then \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e, then 60.\n" }, "recoveryPeriod": { "type": "integer", "description": "Seconds the value must stay recovered before the incident resolves on its own, or null to never resolve it automatically. Defaults to '60'. Set it to `-1` to clear it.\n" }, "seriesNames": { "type": "array", "items": { "type": "string" }, "description": "The series the alert is limited to. An empty list means every series. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`seriesNamesExcept`\" pulumi-lang-dotnet=\"`SeriesNamesExcept`\" pulumi-lang-go=\"`seriesNamesExcept`\" pulumi-lang-python=\"`series_names_except`\" pulumi-lang-yaml=\"`seriesNamesExcept`\" pulumi-lang-java=\"`seriesNamesExcept`\" pulumi-lang-hcl=\"`series_names_except`\"\u003e`seriesNamesExcept`\u003c/span\u003e. Setting either one replaces both.\n" }, "seriesNamesExcept": { "type": "array", "items": { "type": "string" }, "description": "The series the alert ignores while it watches every other series. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`seriesNames`\" pulumi-lang-dotnet=\"`SeriesNames`\" pulumi-lang-go=\"`seriesNames`\" pulumi-lang-python=\"`series_names`\" pulumi-lang-yaml=\"`seriesNames`\" pulumi-lang-java=\"`seriesNames`\" pulumi-lang-hcl=\"`series_names`\"\u003e`seriesNames`\u003c/span\u003e, so it's empty when \u003cspan pulumi-lang-nodejs=\"`seriesNames`\" pulumi-lang-dotnet=\"`SeriesNames`\" pulumi-lang-go=\"`seriesNames`\" pulumi-lang-python=\"`series_names`\" pulumi-lang-yaml=\"`seriesNames`\" pulumi-lang-java=\"`seriesNames`\" pulumi-lang-hcl=\"`series_names`\"\u003e`seriesNames`\u003c/span\u003e is used. Setting either one replaces both.\n" }, "shownInterval": { "type": "integer", "description": "Interval in seconds the anomaly chart shows, for 'anomaly_rrcf' alerts only. One of 30, 60, 120, 300, 600, 1800, 3600, 7200, 10800, 21600, 43200 or 86400. Left out of the response on threshold and relative alerts. Defaults to 10800 when an anomaly alert is created.\n" }, "sms": { "type": "boolean", "description": "Trigger SMS alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without SMS alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "sourceMode": { "type": "string", "description": "How the alert picks its sources. Defaults to 'source_variable'. \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e: Runs on the sources in \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. 'platforms_single_source': Runs on the one source in \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e, limited to \u003cspan pulumi-lang-nodejs=\"`sourcePlatforms`\" pulumi-lang-dotnet=\"`SourcePlatforms`\" pulumi-lang-go=\"`sourcePlatforms`\" pulumi-lang-python=\"`source_platforms`\" pulumi-lang-yaml=\"`sourcePlatforms`\" pulumi-lang-java=\"`sourcePlatforms`\" pulumi-lang-hcl=\"`source_platforms`\"\u003e`sourcePlatforms`\u003c/span\u003e. 'platforms_all_sources': Runs on every source that matches \u003cspan pulumi-lang-nodejs=\"`sourcePlatforms`\" pulumi-lang-dotnet=\"`SourcePlatforms`\" pulumi-lang-go=\"`sourcePlatforms`\" pulumi-lang-python=\"`source_platforms`\" pulumi-lang-yaml=\"`sourcePlatforms`\" pulumi-lang-java=\"`sourcePlatforms`\" pulumi-lang-hcl=\"`source_platforms`\"\u003e`sourcePlatforms`\u003c/span\u003e.\n" }, "sourcePlatforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms that limit the sources and services the alert runs on, for the 'platforms_single_source' and 'platforms_all_sources' source modes. Defaults to `[]`.\n" }, "sourceVariable": { "type": "string", "description": "The sources the alert runs on, as `source:` followed by comma-separated source table names, or null when none is set. With the \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e and 'platforms_single_source' modes, the value must start with `source:`.\n" }, "stringValue": { "type": "string", "description": "The exact text a 'threshold' alert compares, instead of \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e, with 'equal' or 'not_equal' only. When it's set, \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e isn't needed and is null. Returned for threshold alerts only.\n" }, "teamId": { "type": "string", "description": "Team that owns the alert's dashboard or exploration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "updatedAt": { "type": "string", "description": "When the alert was last updated.\n" }, "value": { "type": "number", "description": "The threshold for 'threshold' alerts, or the percentage change for 'relative' alerts. '0' is a valid value. null when the alert compares \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. Creating a threshold or relative alert needs \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. Left out for 'anomaly_rrcf' alerts.\n" }, "variableValues": { "type": "array", "items": { "$ref": "#/types/betterstack:index/AlertVariableValue:AlertVariableValue" }, "description": "Values this alert sets for the template variables of its dashboard or exploration. Each \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e must be a variable defined there. Source variables aren't accepted, so use \u003cspan pulumi-lang-nodejs=\"`sourceMode`\" pulumi-lang-dotnet=\"`SourceMode`\" pulumi-lang-go=\"`sourceMode`\" pulumi-lang-python=\"`source_mode`\" pulumi-lang-yaml=\"`sourceMode`\" pulumi-lang-java=\"`sourceMode`\" pulumi-lang-hcl=\"`source_mode`\"\u003e`sourceMode`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e instead.\n" } }, "required": [ "additionalConditions", "aggregationInterval", "alertType", "anomalySensitivity", "anomalyTrainingRangeDays", "anomalyTrigger", "call", "checkPeriod", "confirmationPeriod", "createdAt", "criticalAlert", "email", "escalationTarget", "incidentPerSeries", "name", "onMissingData", "operator", "paused", "pausedReason", "push", "queryPeriod", "recoveryPeriod", "seriesNames", "seriesNamesExcept", "shownInterval", "sms", "sourceMode", "sourcePlatforms", "sourceVariable", "teamId", "updatedAt", "variableValues" ], "inputProperties": { "additionalConditions": { "type": "array", "items": { "$ref": "#/types/betterstack:index/AlertAdditionalCondition:AlertAdditionalCondition" }, "description": "Up to 4 more conditions on top of the alert's own. A series fires only when it breaches the alert's own condition and every other condition that covers it, in the same time bucket. A condition limited to other series counts as met when any of its own series breaches it. Anomaly detection can't be an additional condition. An empty list removes them all.\n" }, "aggregationInterval": { "type": "integer", "description": "The size of the buckets the data is aggregated into before each bucket is evaluated, in seconds. Defaults to 'query_period', then \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e, then 60.\n" }, "alertType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertType:AlertType" } ], "description": "Alert type. An update can change it. 'threshold': Fires when the value crosses a threshold. 'relative': Compares the value with the previous period as a percentage change. 'anomaly_rrcf': Uses machine learning anomaly detection. Table charts don't accept it.\n" }, "anomalySensitivity": { "type": "number", "description": "How far a value must deviate from its prediction to trigger the alert, for 'anomaly_rrcf' alerts only. Shown as **Significance** in the web app. A higher value needs a larger deviation, so the alert fires less often. Left out for threshold and relative alerts. Defaults to `5.0` on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it.\n" }, "anomalyTrainingRangeDays": { "type": "integer", "description": "Days of history the anomaly model is first trained on, from 1 to 30. For 'anomaly_rrcf' alerts only. Left out of the response on threshold and relative alerts. Defaults to '7' on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it.\n" }, "anomalyTrigger": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertAnomalyTrigger:AlertAnomalyTrigger" } ], "description": "Which direction of anomaly fires the alert, for 'anomaly_rrcf' alerts only. Left out of the response on threshold and relative alerts. Defaults to 'any' on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it. 'any': Fires on values above or below the prediction. 'higher': Fires on values above the prediction. 'lower': Fires on values below the prediction.\n" }, "call": { "type": "boolean", "description": "Trigger phone-call alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without phone call alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "chartId": { "type": "string", "description": "Chart this alert watches, on the dashboard in \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e. null for an alert on an exploration. Can't be changed after the alert is created.\n" }, "checkPeriod": { "type": "integer", "description": "How often the alert is checked, in seconds. Not returned for 'anomaly_rrcf' alerts. An update that sends \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e without \u003cspan pulumi-lang-nodejs=\"`queryPeriod`\" pulumi-lang-dotnet=\"`QueryPeriod`\" pulumi-lang-go=\"`queryPeriod`\" pulumi-lang-python=\"`query_period`\" pulumi-lang-yaml=\"`queryPeriod`\" pulumi-lang-java=\"`queryPeriod`\" pulumi-lang-hcl=\"`query_period`\"\u003e`queryPeriod`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`aggregationInterval`\" pulumi-lang-dotnet=\"`AggregationInterval`\" pulumi-lang-go=\"`aggregationInterval`\" pulumi-lang-python=\"`aggregation_interval`\" pulumi-lang-yaml=\"`aggregationInterval`\" pulumi-lang-java=\"`aggregationInterval`\" pulumi-lang-hcl=\"`aggregation_interval`\"\u003e`aggregationInterval`\u003c/span\u003e sets both of them to the same value. A create that leaves it out checks every \u003cspan pulumi-lang-nodejs=\"`aggregationInterval`\" pulumi-lang-dotnet=\"`AggregationInterval`\" pulumi-lang-go=\"`aggregationInterval`\" pulumi-lang-python=\"`aggregation_interval`\" pulumi-lang-yaml=\"`aggregationInterval`\" pulumi-lang-java=\"`aggregationInterval`\" pulumi-lang-hcl=\"`aggregation_interval`\"\u003e`aggregationInterval`\u003c/span\u003e, or on a tail chart every 60 to 900 seconds, longer for a longer \u003cspan pulumi-lang-nodejs=\"`queryPeriod`\" pulumi-lang-dotnet=\"`QueryPeriod`\" pulumi-lang-go=\"`queryPeriod`\" pulumi-lang-python=\"`query_period`\" pulumi-lang-yaml=\"`queryPeriod`\" pulumi-lang-java=\"`queryPeriod`\" pulumi-lang-hcl=\"`query_period`\"\u003e`queryPeriod`\u003c/span\u003e.\n" }, "confirmationPeriod": { "type": "integer", "description": "How long the condition must hold before an incident starts, in seconds, from '0' to '86400'. '0' starts it at once. Defaults to '60'.\n" }, "criticalAlert": { "type": "boolean", "description": "Trigger critical push alerts that bypass silent mode. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without critical alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "dashboardId": { "type": "string", "description": "Dashboard of the chart this alert watches. null for an alert on an exploration. Set it with \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e for an alert on a dashboard chart, or set \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e instead. Can't be changed after the alert is created. At least one of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e must be configured.\n" }, "email": { "type": "boolean", "description": "Trigger e-mail alerts. Left out of responses when the alert routes to an escalation policy. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "escalationTarget": { "$ref": "#/types/betterstack:index/AlertEscalationTarget:AlertEscalationTarget", "description": "Where the incident is routed. Can be the string 'current_team', which is the default, an object with \u003cspan pulumi-lang-nodejs=\"`policyId`\" pulumi-lang-dotnet=\"`PolicyId`\" pulumi-lang-go=\"`policyId`\" pulumi-lang-python=\"`policy_id`\" pulumi-lang-yaml=\"`policyId`\" pulumi-lang-java=\"`policyId`\" pulumi-lang-hcl=\"`policy_id`\"\u003e`policyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`policyName`\" pulumi-lang-dotnet=\"`PolicyName`\" pulumi-lang-go=\"`policyName`\" pulumi-lang-python=\"`policy_name`\" pulumi-lang-yaml=\"`policyName`\" pulumi-lang-java=\"`policyName`\" pulumi-lang-hcl=\"`policy_name`\"\u003e`policyName`\u003c/span\u003e, or an object with \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`teamName`\" pulumi-lang-dotnet=\"`TeamName`\" pulumi-lang-go=\"`teamName`\" pulumi-lang-python=\"`team_name`\" pulumi-lang-yaml=\"`teamName`\" pulumi-lang-java=\"`teamName`\" pulumi-lang-hcl=\"`team_name`\"\u003e`teamName`\u003c/span\u003e. The string 'unknown' means the target can't be found or no longer exists. Name a policy by ID, by name or both, and a team by \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. An empty object routes to the current team too. A request is refused when it names both a policy and a team, names one that doesn't exist, or gives a policy name several policies share without an ID. Defaults to 'current_team'.\n" }, "explorationId": { "type": "string", "description": "Exploration this alert watches. null for an alert on a dashboard chart. Set it instead of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e for an alert on an exploration. Can't be changed after the alert is created. At least one of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e must be configured.\n" }, "incidentCause": { "type": "string", "description": "A custom description for the incidents the alert starts, in Markdown, or null when none is set. Accepts the same template variables as \u003cspan pulumi-lang-nodejs=\"`incidentName`\" pulumi-lang-dotnet=\"`IncidentName`\" pulumi-lang-go=\"`incidentName`\" pulumi-lang-python=\"`incident_name`\" pulumi-lang-yaml=\"`incidentName`\" pulumi-lang-java=\"`incidentName`\" pulumi-lang-hcl=\"`incident_name`\"\u003e`incidentName`\u003c/span\u003e, such as `{{current_value}}` and `{{threshold_value}}`.\n" }, "incidentName": { "type": "string", "description": "A custom name for the incidents the alert starts, in plain text, or null when none is set. Accepts template variables such as `{{alert_name}}`, `{{series_name}}`, `{{current_value}}`, `{{threshold_value}}`, `{{team_name}}`, the chart's variables and the columns its query returns.\n" }, "incidentPerSeries": { "type": "boolean", "description": "Whether each series that breaches the condition starts its own incident, rather than one incident for the whole alert. Defaults to false.\n" }, "metadata": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Custom incident metadata, where each key you choose holds a list of strings. A single string is accepted too and saved as a one-item list. The metadata is added to the alert's incidents. An update replaces all the metadata. An empty object clears the metadata, which then reads back as null.\n" }, "name": { "type": "string", "description": "Alert name. Until you rename the alert, its name follows the chart's name.\n" }, "onMissingData": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertOnMissingData:AlertOnMissingData" } ], "description": "What a check does when the query returns no data. Can't be sent for 'anomaly_rrcf' alerts, and is left out of their responses. Defaults to 'dont_fire' on threshold and relative alerts. Anomaly alerts don't accept it. 'treat_as_zero': Checks the missing data as if the value were 0. 'dont_fire': Starts no incident for missing data. 'treat_as_previous': Checks the missing data as if it had the previous value. 'start_incident': Starts an incident when the query returns no data.\n" }, "operator": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertOperator:AlertOperator" } ], "description": "How the value is compared. Required for threshold and relative alerts. 'anomaly_rrcf' alerts don't use it, and it's left out of their responses. 'equal': A 'threshold' alert fires when the value equals \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. 'not_equal': A 'threshold' alert fires when the value differs from \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. 'higher_than': A 'threshold' alert fires when the value is above \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'higher_than_or_equal': A 'threshold' alert fires when the value is at or above \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'lower_than': A 'threshold' alert fires when the value is below \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'lower_than_or_equal': A 'threshold' alert fires when the value is at or below \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'increases_by': A 'relative' alert fires when the value rises by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more. 'decreases_by': A 'relative' alert fires when the value falls by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more. 'changes_by': A 'relative' alert fires when the value rises or falls by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more.\n" }, "paused": { "type": "boolean", "description": "Whether the alert is paused. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Trigger mobile push alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without push notifications, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "queryPeriod": { "type": "integer", "description": "The time window of data each check looks at, in seconds. Defaults to 'aggregation_interval', then \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e, then 60.\n" }, "recoveryPeriod": { "type": "integer", "description": "Seconds the value must stay recovered before the incident resolves on its own, or null to never resolve it automatically. Defaults to '60'. Set it to `-1` to clear it.\n" }, "seriesNames": { "type": "array", "items": { "type": "string" }, "description": "The series the alert is limited to. An empty list means every series. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`seriesNamesExcept`\" pulumi-lang-dotnet=\"`SeriesNamesExcept`\" pulumi-lang-go=\"`seriesNamesExcept`\" pulumi-lang-python=\"`series_names_except`\" pulumi-lang-yaml=\"`seriesNamesExcept`\" pulumi-lang-java=\"`seriesNamesExcept`\" pulumi-lang-hcl=\"`series_names_except`\"\u003e`seriesNamesExcept`\u003c/span\u003e. Setting either one replaces both.\n" }, "seriesNamesExcept": { "type": "array", "items": { "type": "string" }, "description": "The series the alert ignores while it watches every other series. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`seriesNames`\" pulumi-lang-dotnet=\"`SeriesNames`\" pulumi-lang-go=\"`seriesNames`\" pulumi-lang-python=\"`series_names`\" pulumi-lang-yaml=\"`seriesNames`\" pulumi-lang-java=\"`seriesNames`\" pulumi-lang-hcl=\"`series_names`\"\u003e`seriesNames`\u003c/span\u003e, so it's empty when \u003cspan pulumi-lang-nodejs=\"`seriesNames`\" pulumi-lang-dotnet=\"`SeriesNames`\" pulumi-lang-go=\"`seriesNames`\" pulumi-lang-python=\"`series_names`\" pulumi-lang-yaml=\"`seriesNames`\" pulumi-lang-java=\"`seriesNames`\" pulumi-lang-hcl=\"`series_names`\"\u003e`seriesNames`\u003c/span\u003e is used. Setting either one replaces both.\n" }, "shownInterval": { "type": "integer", "description": "Interval in seconds the anomaly chart shows, for 'anomaly_rrcf' alerts only. One of 30, 60, 120, 300, 600, 1800, 3600, 7200, 10800, 21600, 43200 or 86400. Left out of the response on threshold and relative alerts. Defaults to 10800 when an anomaly alert is created.\n" }, "sms": { "type": "boolean", "description": "Trigger SMS alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without SMS alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "sourceMode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertSourceMode:AlertSourceMode" } ], "description": "How the alert picks its sources. Defaults to 'source_variable'. \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e: Runs on the sources in \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. 'platforms_single_source': Runs on the one source in \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e, limited to \u003cspan pulumi-lang-nodejs=\"`sourcePlatforms`\" pulumi-lang-dotnet=\"`SourcePlatforms`\" pulumi-lang-go=\"`sourcePlatforms`\" pulumi-lang-python=\"`source_platforms`\" pulumi-lang-yaml=\"`sourcePlatforms`\" pulumi-lang-java=\"`sourcePlatforms`\" pulumi-lang-hcl=\"`source_platforms`\"\u003e`sourcePlatforms`\u003c/span\u003e. 'platforms_all_sources': Runs on every source that matches \u003cspan pulumi-lang-nodejs=\"`sourcePlatforms`\" pulumi-lang-dotnet=\"`SourcePlatforms`\" pulumi-lang-go=\"`sourcePlatforms`\" pulumi-lang-python=\"`source_platforms`\" pulumi-lang-yaml=\"`sourcePlatforms`\" pulumi-lang-java=\"`sourcePlatforms`\" pulumi-lang-hcl=\"`source_platforms`\"\u003e`sourcePlatforms`\u003c/span\u003e.\n" }, "sourcePlatforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms that limit the sources and services the alert runs on, for the 'platforms_single_source' and 'platforms_all_sources' source modes. Defaults to `[]`.\n" }, "sourceVariable": { "type": "string", "description": "The sources the alert runs on, as `source:` followed by comma-separated source table names, or null when none is set. With the \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e and 'platforms_single_source' modes, the value must start with `source:`.\n" }, "stringValue": { "type": "string", "description": "The exact text a 'threshold' alert compares, instead of \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e, with 'equal' or 'not_equal' only. When it's set, \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e isn't needed and is null. Returned for threshold alerts only.\n" }, "teamId": { "type": "string", "description": "Team that owns the alert's dashboard or exploration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "value": { "type": "number", "description": "The threshold for 'threshold' alerts, or the percentage change for 'relative' alerts. '0' is a valid value. null when the alert compares \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. Creating a threshold or relative alert needs \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. Left out for 'anomaly_rrcf' alerts.\n" }, "variableValues": { "type": "array", "items": { "$ref": "#/types/betterstack:index/AlertVariableValue:AlertVariableValue" }, "description": "Values this alert sets for the template variables of its dashboard or exploration. Each \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e must be a variable defined there. Source variables aren't accepted, so use \u003cspan pulumi-lang-nodejs=\"`sourceMode`\" pulumi-lang-dotnet=\"`SourceMode`\" pulumi-lang-go=\"`sourceMode`\" pulumi-lang-python=\"`source_mode`\" pulumi-lang-yaml=\"`sourceMode`\" pulumi-lang-java=\"`sourceMode`\" pulumi-lang-hcl=\"`source_mode`\"\u003e`sourceMode`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e instead.\n" } }, "requiredInputs": [ "alertType", "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering Alert resources.\n", "properties": { "additionalConditions": { "type": "array", "items": { "$ref": "#/types/betterstack:index/AlertAdditionalCondition:AlertAdditionalCondition" }, "description": "Up to 4 more conditions on top of the alert's own. A series fires only when it breaches the alert's own condition and every other condition that covers it, in the same time bucket. A condition limited to other series counts as met when any of its own series breaches it. Anomaly detection can't be an additional condition. An empty list removes them all.\n" }, "aggregationInterval": { "type": "integer", "description": "The size of the buckets the data is aggregated into before each bucket is evaluated, in seconds. Defaults to 'query_period', then \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e, then 60.\n" }, "alertType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertType:AlertType" } ], "description": "Alert type. An update can change it. 'threshold': Fires when the value crosses a threshold. 'relative': Compares the value with the previous period as a percentage change. 'anomaly_rrcf': Uses machine learning anomaly detection. Table charts don't accept it.\n" }, "anomalySensitivity": { "type": "number", "description": "How far a value must deviate from its prediction to trigger the alert, for 'anomaly_rrcf' alerts only. Shown as **Significance** in the web app. A higher value needs a larger deviation, so the alert fires less often. Left out for threshold and relative alerts. Defaults to `5.0` on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it.\n" }, "anomalyTrainingRangeDays": { "type": "integer", "description": "Days of history the anomaly model is first trained on, from 1 to 30. For 'anomaly_rrcf' alerts only. Left out of the response on threshold and relative alerts. Defaults to '7' on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it.\n" }, "anomalyTrigger": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertAnomalyTrigger:AlertAnomalyTrigger" } ], "description": "Which direction of anomaly fires the alert, for 'anomaly_rrcf' alerts only. Left out of the response on threshold and relative alerts. Defaults to 'any' on 'anomaly_rrcf' alerts. Threshold and relative alerts don't accept it. 'any': Fires on values above or below the prediction. 'higher': Fires on values above the prediction. 'lower': Fires on values below the prediction.\n" }, "call": { "type": "boolean", "description": "Trigger phone-call alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without phone call alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "chartId": { "type": "string", "description": "Chart this alert watches, on the dashboard in \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e. null for an alert on an exploration. Can't be changed after the alert is created.\n" }, "checkPeriod": { "type": "integer", "description": "How often the alert is checked, in seconds. Not returned for 'anomaly_rrcf' alerts. An update that sends \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e without \u003cspan pulumi-lang-nodejs=\"`queryPeriod`\" pulumi-lang-dotnet=\"`QueryPeriod`\" pulumi-lang-go=\"`queryPeriod`\" pulumi-lang-python=\"`query_period`\" pulumi-lang-yaml=\"`queryPeriod`\" pulumi-lang-java=\"`queryPeriod`\" pulumi-lang-hcl=\"`query_period`\"\u003e`queryPeriod`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`aggregationInterval`\" pulumi-lang-dotnet=\"`AggregationInterval`\" pulumi-lang-go=\"`aggregationInterval`\" pulumi-lang-python=\"`aggregation_interval`\" pulumi-lang-yaml=\"`aggregationInterval`\" pulumi-lang-java=\"`aggregationInterval`\" pulumi-lang-hcl=\"`aggregation_interval`\"\u003e`aggregationInterval`\u003c/span\u003e sets both of them to the same value. A create that leaves it out checks every \u003cspan pulumi-lang-nodejs=\"`aggregationInterval`\" pulumi-lang-dotnet=\"`AggregationInterval`\" pulumi-lang-go=\"`aggregationInterval`\" pulumi-lang-python=\"`aggregation_interval`\" pulumi-lang-yaml=\"`aggregationInterval`\" pulumi-lang-java=\"`aggregationInterval`\" pulumi-lang-hcl=\"`aggregation_interval`\"\u003e`aggregationInterval`\u003c/span\u003e, or on a tail chart every 60 to 900 seconds, longer for a longer \u003cspan pulumi-lang-nodejs=\"`queryPeriod`\" pulumi-lang-dotnet=\"`QueryPeriod`\" pulumi-lang-go=\"`queryPeriod`\" pulumi-lang-python=\"`query_period`\" pulumi-lang-yaml=\"`queryPeriod`\" pulumi-lang-java=\"`queryPeriod`\" pulumi-lang-hcl=\"`query_period`\"\u003e`queryPeriod`\u003c/span\u003e.\n" }, "confirmationPeriod": { "type": "integer", "description": "How long the condition must hold before an incident starts, in seconds, from '0' to '86400'. '0' starts it at once. Defaults to '60'.\n" }, "createdAt": { "type": "string", "description": "When the alert was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Trigger critical push alerts that bypass silent mode. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without critical alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "dashboardId": { "type": "string", "description": "Dashboard of the chart this alert watches. null for an alert on an exploration. Set it with \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e for an alert on a dashboard chart, or set \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e instead. Can't be changed after the alert is created. At least one of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e must be configured.\n" }, "email": { "type": "boolean", "description": "Trigger e-mail alerts. Left out of responses when the alert routes to an escalation policy. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "escalationTarget": { "$ref": "#/types/betterstack:index/AlertEscalationTarget:AlertEscalationTarget", "description": "Where the incident is routed. Can be the string 'current_team', which is the default, an object with \u003cspan pulumi-lang-nodejs=\"`policyId`\" pulumi-lang-dotnet=\"`PolicyId`\" pulumi-lang-go=\"`policyId`\" pulumi-lang-python=\"`policy_id`\" pulumi-lang-yaml=\"`policyId`\" pulumi-lang-java=\"`policyId`\" pulumi-lang-hcl=\"`policy_id`\"\u003e`policyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`policyName`\" pulumi-lang-dotnet=\"`PolicyName`\" pulumi-lang-go=\"`policyName`\" pulumi-lang-python=\"`policy_name`\" pulumi-lang-yaml=\"`policyName`\" pulumi-lang-java=\"`policyName`\" pulumi-lang-hcl=\"`policy_name`\"\u003e`policyName`\u003c/span\u003e, or an object with \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`teamName`\" pulumi-lang-dotnet=\"`TeamName`\" pulumi-lang-go=\"`teamName`\" pulumi-lang-python=\"`team_name`\" pulumi-lang-yaml=\"`teamName`\" pulumi-lang-java=\"`teamName`\" pulumi-lang-hcl=\"`team_name`\"\u003e`teamName`\u003c/span\u003e. The string 'unknown' means the target can't be found or no longer exists. Name a policy by ID, by name or both, and a team by \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. An empty object routes to the current team too. A request is refused when it names both a policy and a team, names one that doesn't exist, or gives a policy name several policies share without an ID. Defaults to 'current_team'.\n" }, "explorationId": { "type": "string", "description": "Exploration this alert watches. null for an alert on a dashboard chart. Set it instead of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e for an alert on an exploration. Can't be changed after the alert is created. At least one of \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`explorationId`\" pulumi-lang-dotnet=\"`ExplorationId`\" pulumi-lang-go=\"`explorationId`\" pulumi-lang-python=\"`exploration_id`\" pulumi-lang-yaml=\"`explorationId`\" pulumi-lang-java=\"`explorationId`\" pulumi-lang-hcl=\"`exploration_id`\"\u003e`explorationId`\u003c/span\u003e must be configured.\n" }, "incidentCause": { "type": "string", "description": "A custom description for the incidents the alert starts, in Markdown, or null when none is set. Accepts the same template variables as \u003cspan pulumi-lang-nodejs=\"`incidentName`\" pulumi-lang-dotnet=\"`IncidentName`\" pulumi-lang-go=\"`incidentName`\" pulumi-lang-python=\"`incident_name`\" pulumi-lang-yaml=\"`incidentName`\" pulumi-lang-java=\"`incidentName`\" pulumi-lang-hcl=\"`incident_name`\"\u003e`incidentName`\u003c/span\u003e, such as `{{current_value}}` and `{{threshold_value}}`.\n" }, "incidentName": { "type": "string", "description": "A custom name for the incidents the alert starts, in plain text, or null when none is set. Accepts template variables such as `{{alert_name}}`, `{{series_name}}`, `{{current_value}}`, `{{threshold_value}}`, `{{team_name}}`, the chart's variables and the columns its query returns.\n" }, "incidentPerSeries": { "type": "boolean", "description": "Whether each series that breaches the condition starts its own incident, rather than one incident for the whole alert. Defaults to false.\n" }, "metadata": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } }, "description": "Custom incident metadata, where each key you choose holds a list of strings. A single string is accepted too and saved as a one-item list. The metadata is added to the alert's incidents. An update replaces all the metadata. An empty object clears the metadata, which then reads back as null.\n" }, "name": { "type": "string", "description": "Alert name. Until you rename the alert, its name follows the chart's name.\n" }, "onMissingData": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertOnMissingData:AlertOnMissingData" } ], "description": "What a check does when the query returns no data. Can't be sent for 'anomaly_rrcf' alerts, and is left out of their responses. Defaults to 'dont_fire' on threshold and relative alerts. Anomaly alerts don't accept it. 'treat_as_zero': Checks the missing data as if the value were 0. 'dont_fire': Starts no incident for missing data. 'treat_as_previous': Checks the missing data as if it had the previous value. 'start_incident': Starts an incident when the query returns no data.\n" }, "operator": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertOperator:AlertOperator" } ], "description": "How the value is compared. Required for threshold and relative alerts. 'anomaly_rrcf' alerts don't use it, and it's left out of their responses. 'equal': A 'threshold' alert fires when the value equals \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. 'not_equal': A 'threshold' alert fires when the value differs from \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. 'higher_than': A 'threshold' alert fires when the value is above \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'higher_than_or_equal': A 'threshold' alert fires when the value is at or above \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'lower_than': A 'threshold' alert fires when the value is below \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'lower_than_or_equal': A 'threshold' alert fires when the value is at or below \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. 'increases_by': A 'relative' alert fires when the value rises by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more. 'decreases_by': A 'relative' alert fires when the value falls by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more. 'changes_by': A 'relative' alert fires when the value rises or falls by \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e percent or more.\n" }, "paused": { "type": "boolean", "description": "Whether the alert is paused. Defaults to false.\n" }, "pausedReason": { "type": "string", "description": "Why the alert is paused. `Manually paused` for an alert paused by hand, or a sentence that says why Better Stack paused it. null when the alert isn't paused.\n" }, "push": { "type": "boolean", "description": "Trigger mobile push alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without push notifications, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "queryPeriod": { "type": "integer", "description": "The time window of data each check looks at, in seconds. Defaults to 'aggregation_interval', then \u003cspan pulumi-lang-nodejs=\"`checkPeriod`\" pulumi-lang-dotnet=\"`CheckPeriod`\" pulumi-lang-go=\"`checkPeriod`\" pulumi-lang-python=\"`check_period`\" pulumi-lang-yaml=\"`checkPeriod`\" pulumi-lang-java=\"`checkPeriod`\" pulumi-lang-hcl=\"`check_period`\"\u003e`checkPeriod`\u003c/span\u003e, then 60.\n" }, "recoveryPeriod": { "type": "integer", "description": "Seconds the value must stay recovered before the incident resolves on its own, or null to never resolve it automatically. Defaults to '60'. Set it to `-1` to clear it.\n" }, "seriesNames": { "type": "array", "items": { "type": "string" }, "description": "The series the alert is limited to. An empty list means every series. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`seriesNamesExcept`\" pulumi-lang-dotnet=\"`SeriesNamesExcept`\" pulumi-lang-go=\"`seriesNamesExcept`\" pulumi-lang-python=\"`series_names_except`\" pulumi-lang-yaml=\"`seriesNamesExcept`\" pulumi-lang-java=\"`seriesNamesExcept`\" pulumi-lang-hcl=\"`series_names_except`\"\u003e`seriesNamesExcept`\u003c/span\u003e. Setting either one replaces both.\n" }, "seriesNamesExcept": { "type": "array", "items": { "type": "string" }, "description": "The series the alert ignores while it watches every other series. Can't be combined with \u003cspan pulumi-lang-nodejs=\"`seriesNames`\" pulumi-lang-dotnet=\"`SeriesNames`\" pulumi-lang-go=\"`seriesNames`\" pulumi-lang-python=\"`series_names`\" pulumi-lang-yaml=\"`seriesNames`\" pulumi-lang-java=\"`seriesNames`\" pulumi-lang-hcl=\"`series_names`\"\u003e`seriesNames`\u003c/span\u003e, so it's empty when \u003cspan pulumi-lang-nodejs=\"`seriesNames`\" pulumi-lang-dotnet=\"`SeriesNames`\" pulumi-lang-go=\"`seriesNames`\" pulumi-lang-python=\"`series_names`\" pulumi-lang-yaml=\"`seriesNames`\" pulumi-lang-java=\"`seriesNames`\" pulumi-lang-hcl=\"`series_names`\"\u003e`seriesNames`\u003c/span\u003e is used. Setting either one replaces both.\n" }, "shownInterval": { "type": "integer", "description": "Interval in seconds the anomaly chart shows, for 'anomaly_rrcf' alerts only. One of 30, 60, 120, 300, 600, 1800, 3600, 7200, 10800, 21600, 43200 or 86400. Left out of the response on threshold and relative alerts. Defaults to 10800 when an anomaly alert is created.\n" }, "sms": { "type": "boolean", "description": "Trigger SMS alerts. Left out of responses when the alert routes to an escalation policy. Sending true is refused on a plan without SMS alerts, unless the alert already has them on. Defaults to false on create. An alert that routes to an escalation policy doesn't use it.\n" }, "sourceMode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/alertSourceMode:AlertSourceMode" } ], "description": "How the alert picks its sources. Defaults to 'source_variable'. \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e: Runs on the sources in \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. 'platforms_single_source': Runs on the one source in \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e, limited to \u003cspan pulumi-lang-nodejs=\"`sourcePlatforms`\" pulumi-lang-dotnet=\"`SourcePlatforms`\" pulumi-lang-go=\"`sourcePlatforms`\" pulumi-lang-python=\"`source_platforms`\" pulumi-lang-yaml=\"`sourcePlatforms`\" pulumi-lang-java=\"`sourcePlatforms`\" pulumi-lang-hcl=\"`source_platforms`\"\u003e`sourcePlatforms`\u003c/span\u003e. 'platforms_all_sources': Runs on every source that matches \u003cspan pulumi-lang-nodejs=\"`sourcePlatforms`\" pulumi-lang-dotnet=\"`SourcePlatforms`\" pulumi-lang-go=\"`sourcePlatforms`\" pulumi-lang-python=\"`source_platforms`\" pulumi-lang-yaml=\"`sourcePlatforms`\" pulumi-lang-java=\"`sourcePlatforms`\" pulumi-lang-hcl=\"`source_platforms`\"\u003e`sourcePlatforms`\u003c/span\u003e.\n" }, "sourcePlatforms": { "type": "array", "items": { "type": "string" }, "description": "Platforms that limit the sources and services the alert runs on, for the 'platforms_single_source' and 'platforms_all_sources' source modes. Defaults to `[]`.\n" }, "sourceVariable": { "type": "string", "description": "The sources the alert runs on, as `source:` followed by comma-separated source table names, or null when none is set. With the \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e and 'platforms_single_source' modes, the value must start with `source:`.\n" }, "stringValue": { "type": "string", "description": "The exact text a 'threshold' alert compares, instead of \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e, with 'equal' or 'not_equal' only. When it's set, \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e isn't needed and is null. Returned for threshold alerts only.\n" }, "teamId": { "type": "string", "description": "Team that owns the alert's dashboard or exploration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "updatedAt": { "type": "string", "description": "When the alert was last updated.\n" }, "value": { "type": "number", "description": "The threshold for 'threshold' alerts, or the percentage change for 'relative' alerts. '0' is a valid value. null when the alert compares \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. Creating a threshold or relative alert needs \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`stringValue`\" pulumi-lang-dotnet=\"`StringValue`\" pulumi-lang-go=\"`stringValue`\" pulumi-lang-python=\"`string_value`\" pulumi-lang-yaml=\"`stringValue`\" pulumi-lang-java=\"`stringValue`\" pulumi-lang-hcl=\"`string_value`\"\u003e`stringValue`\u003c/span\u003e. Left out for 'anomaly_rrcf' alerts.\n" }, "variableValues": { "type": "array", "items": { "$ref": "#/types/betterstack:index/AlertVariableValue:AlertVariableValue" }, "description": "Values this alert sets for the template variables of its dashboard or exploration. Each \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e must be a variable defined there. Source variables aren't accepted, so use \u003cspan pulumi-lang-nodejs=\"`sourceMode`\" pulumi-lang-dotnet=\"`SourceMode`\" pulumi-lang-go=\"`sourceMode`\" pulumi-lang-python=\"`source_mode`\" pulumi-lang-yaml=\"`sourceMode`\" pulumi-lang-java=\"`sourceMode`\" pulumi-lang-hcl=\"`source_mode`\"\u003e`sourceMode`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e instead.\n" } }, "type": "object" }, "listInputs": { "properties": { "chartId": { "type": "string", "description": "Use it with \u003cspan pulumi-lang-nodejs=\"`dashboardId`\" pulumi-lang-dotnet=\"`DashboardId`\" pulumi-lang-go=\"`dashboardId`\" pulumi-lang-python=\"`dashboard_id`\" pulumi-lang-yaml=\"`dashboardId`\" pulumi-lang-java=\"`dashboardId`\" pulumi-lang-hcl=\"`dashboard_id`\"\u003e`dashboardId`\u003c/span\u003e to list only the alerts on that dashboard chart.\n" }, "dashboardId": { "type": "string", "description": "Use it with \u003cspan pulumi-lang-nodejs=\"`chartId`\" pulumi-lang-dotnet=\"`ChartId`\" pulumi-lang-go=\"`chartId`\" pulumi-lang-python=\"`chart_id`\" pulumi-lang-yaml=\"`chartId`\" pulumi-lang-java=\"`chartId`\" pulumi-lang-hcl=\"`chart_id`\"\u003e`chartId`\u003c/span\u003e to list only the alerts on that dashboard chart.\n" }, "explorationId": { "type": "string", "description": "Only the alerts on this exploration.\n" } }, "type": "object" } }, "betterstack:index/application:Application": { "description": "An error-tracking application collects the exceptions, releases and web events of one service.\n\n\u003e Destroying an application deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Create an application\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Application(\"example\", {\n name: \"new-web-app\",\n platform: betterstack.ApplicationPlatform.RubyErrors,\n dataRegion: \"us\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Application(\"example\",\n name=\"new-web-app\",\n platform=betterstack.ApplicationPlatform.RUBY_ERRORS,\n data_region=\"us\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Application(\"example\", new()\n {\n Name = \"new-web-app\",\n Platform = BetterStack.ApplicationPlatform.RubyErrors,\n DataRegion = \"us\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewApplication(ctx, \"example\", \u0026betterstack.ApplicationArgs{\n\t\t\tName: pulumi.String(\"new-web-app\"),\n\t\t\tPlatform: pulumi.String(betterstack.ApplicationPlatformRubyErrors),\n\t\t\tDataRegion: pulumi.String(\"us\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_application\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"new-web-app\"\n platform = \"ruby_errors\"\n data_region = \"us\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Application;\nimport com.betterstack.pulumi.ApplicationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Application(\"example\", ApplicationArgs.builder()\n .name(\"new-web-app\")\n .platform(\"ruby_errors\")\n .dataRegion(\"us\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Application\n properties:\n name: new-web-app\n platform: ruby_errors\n dataRegion: us\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### With source-code mapping\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst withSourceCodeMapping = new betterstack.Application(\"with_source_code_mapping\", {\n name: \"new-web-app\",\n platform: betterstack.ApplicationPlatform.RubyErrors,\n dataRegion: \"us\",\n githubRepositoryName: \"acme/web\",\n codeMappingStackRoot: \"/usr/src/app/\",\n codeMappingSourceRoot: \"apps/backend/\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nwith_source_code_mapping = betterstack.Application(\"with_source_code_mapping\",\n name=\"new-web-app\",\n platform=betterstack.ApplicationPlatform.RUBY_ERRORS,\n data_region=\"us\",\n github_repository_name=\"acme/web\",\n code_mapping_stack_root=\"/usr/src/app/\",\n code_mapping_source_root=\"apps/backend/\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var withSourceCodeMapping = new BetterStack.Application(\"with_source_code_mapping\", new()\n {\n Name = \"new-web-app\",\n Platform = BetterStack.ApplicationPlatform.RubyErrors,\n DataRegion = \"us\",\n GithubRepositoryName = \"acme/web\",\n CodeMappingStackRoot = \"/usr/src/app/\",\n CodeMappingSourceRoot = \"apps/backend/\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewApplication(ctx, \"with_source_code_mapping\", \u0026betterstack.ApplicationArgs{\n\t\t\tName: pulumi.String(\"new-web-app\"),\n\t\t\tPlatform: pulumi.String(betterstack.ApplicationPlatformRubyErrors),\n\t\t\tDataRegion: pulumi.String(\"us\"),\n\t\t\tGithubRepositoryName: pulumi.String(\"acme/web\"),\n\t\t\tCodeMappingStackRoot: pulumi.String(\"/usr/src/app/\"),\n\t\t\tCodeMappingSourceRoot: pulumi.String(\"apps/backend/\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_application\" \"with_source_code_mapping\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"new-web-app\"\n platform = \"ruby_errors\"\n data_region = \"us\"\n github_repository_name = \"acme/web\"\n code_mapping_stack_root = \"/usr/src/app/\"\n code_mapping_source_root = \"apps/backend/\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Application;\nimport com.betterstack.pulumi.ApplicationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var withSourceCodeMapping = new Application(\"withSourceCodeMapping\", ApplicationArgs.builder()\n .name(\"new-web-app\")\n .platform(\"ruby_errors\")\n .dataRegion(\"us\")\n .githubRepositoryName(\"acme/web\")\n .codeMappingStackRoot(\"/usr/src/app/\")\n .codeMappingSourceRoot(\"apps/backend/\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n withSourceCodeMapping:\n type: betterstack:Application\n name: with_source_code_mapping\n properties:\n name: new-web-app\n platform: ruby_errors\n dataRegion: us\n githubRepositoryName: acme/web\n codeMappingStackRoot: /usr/src/app/\n codeMappingSourceRoot: apps/backend/\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### In an application group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ApplicationGroup(\"example\", {name: \"Production apps\"});\nconst inApplicationGroup = new betterstack.Application(\"in_application_group\", {\n name: \"new-web-app\",\n platform: betterstack.ApplicationPlatform.RubyErrors,\n dataRegion: \"us\",\n applicationGroupId: example.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ApplicationGroup(\"example\", name=\"Production apps\")\nin_application_group = betterstack.Application(\"in_application_group\",\n name=\"new-web-app\",\n platform=betterstack.ApplicationPlatform.RUBY_ERRORS,\n data_region=\"us\",\n application_group_id=example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ApplicationGroup(\"example\", new()\n {\n Name = \"Production apps\",\n });\n\n var inApplicationGroup = new BetterStack.Application(\"in_application_group\", new()\n {\n Name = \"new-web-app\",\n Platform = BetterStack.ApplicationPlatform.RubyErrors,\n DataRegion = \"us\",\n ApplicationGroupId = example.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewApplicationGroup(ctx, \"example\", \u0026betterstack.ApplicationGroupArgs{\n\t\t\tName: pulumi.String(\"Production apps\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewApplication(ctx, \"in_application_group\", \u0026betterstack.ApplicationArgs{\n\t\t\tName: pulumi.String(\"new-web-app\"),\n\t\t\tPlatform: pulumi.String(betterstack.ApplicationPlatformRubyErrors),\n\t\t\tDataRegion: pulumi.String(\"us\"),\n\t\t\tApplicationGroupId: example.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_application_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production apps\"\n}\nresource \"betterstack_application\" \"in_application_group\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"new-web-app\"\n platform = \"ruby_errors\"\n data_region = \"us\"\n application_group_id = betterstack_application_group.example.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ApplicationGroup;\nimport com.betterstack.pulumi.ApplicationGroupArgs;\nimport com.betterstack.pulumi.Application;\nimport com.betterstack.pulumi.ApplicationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ApplicationGroup(\"example\", ApplicationGroupArgs.builder()\n .name(\"Production apps\")\n .build());\n\n var inApplicationGroup = new Application(\"inApplicationGroup\", ApplicationArgs.builder()\n .name(\"new-web-app\")\n .platform(\"ruby_errors\")\n .dataRegion(\"us\")\n .applicationGroupId(example.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ApplicationGroup\n properties:\n name: Production apps\n inApplicationGroup:\n type: betterstack:Application\n name: in_application_group\n properties:\n name: new-web-app\n platform: ruby_errors\n dataRegion: us\n applicationGroupId: ${example.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n'aiohttp_errors', 'android_errors', 'angular_errors', 'asgi_errors', 'asp_dot_net_core_errors', 'asp_dot_net_errors', 'astro_errors', 'aws_lambda_dot_net_errors', 'aws_lambda_node_errors', 'aws_lambda_python_errors', 'azure_functions_node_errors', 'bottle_errors', 'bun_errors', 'celery_errors', 'chalice_errors', 'cli_errors', 'cloudflare_pages_errors', 'connect_errors', 'dart_errors', 'deno_errors', 'django_errors', 'dot_net_errors', 'dot_net_http_errors', 'dot_net_maui_errors', 'echo_errors', 'electron_errors', 'elixir_errors', 'ember_errors', 'express_errors', 'falcon_errors', 'fastapi_errors', 'fasthttp_errors', 'fastify_errors', 'fiber_errors', 'flask_errors', 'flutter_errors', 'gatsby_errors', 'gin_errors', 'go_errors', 'godot_errors', 'google_cloud_function_dot_net_errors', 'google_cloud_function_node_errors', 'google_cloud_function_python_errors', 'hapi_errors', 'ios_errors', 'iris_errors', 'java_errors', 'javascript_errors', 'koa_errors', 'kotlin_errors', 'laravel_errors', 'log4j_errors', 'logback_errors', 'macos_errors', 'minidump_errors', 'native_errors', 'negroni_errors', 'nest_js_errors', 'next_js_errors', 'node_errors', 'nuxt_errors', 'php_errors', 'powershell_errors', 'pyramid_errors', 'python_errors', 'qt_errors', 'quart_errors', 'rack_middleware_errors', 'rails_errors', 'react_errors', 'react_native_errors', 'react_router_framework_errors', 'remix_errors', 'rq_errors', 'ruby_errors', 'rust_errors', 'sanic_errors', 'serverless_python_errors', 'solid_errors', 'solidstart_errors', 'spring_boot_errors', 'spring_errors', 'starlette_errors', 'svelte_errors', 'sveltekit_errors', 'symfony_errors', 'tanstack_start_react_errors', 'tornado_errors', 'tryton_errors', 'unity_errors', 'unreal_engine_errors', 'vue_errors', 'windows_forms_errors', 'wpf_errors', 'wsgi_errors'\n\n'aiohttp_errors', 'android_errors', 'angular_errors', 'asgi_errors', 'asp_dot_net_core_errors', 'asp_dot_net_errors', 'astro_errors', 'aws_lambda_dot_net_errors', 'aws_lambda_node_errors', 'aws_lambda_python_errors', 'azure_functions_node_errors', 'bottle_errors', 'bun_errors', 'celery_errors', 'chalice_errors', 'cli_errors', 'cloudflare_pages_errors', 'connect_errors', 'dart_errors', 'deno_errors', 'django_errors', 'dot_net_errors', 'dot_net_http_errors', 'dot_net_maui_errors', 'echo_errors', 'electron_errors', 'elixir_errors', 'ember_errors', 'express_errors', 'falcon_errors', 'fastapi_errors', 'fasthttp_errors', 'fastify_errors', 'fiber_errors', 'flask_errors', 'flutter_errors', 'gatsby_errors', 'gin_errors', 'go_errors', 'godot_errors', 'google_cloud_function_dot_net_errors', 'google_cloud_function_node_errors', 'google_cloud_function_python_errors', 'hapi_errors', 'ios_errors', 'iris_errors', 'java_errors', 'javascript_errors', 'koa_errors', 'kotlin_errors', 'laravel_errors', 'log4j_errors', 'logback_errors', 'macos_errors', 'minidump_errors', 'native_errors', 'negroni_errors', 'nest_js_errors', 'next_js_errors', 'node_errors', 'nuxt_errors', 'php_errors', 'powershell_errors', 'pyramid_errors', 'python_errors', 'qt_errors', 'quart_errors', 'rack_middleware_errors', 'rails_errors', 'react_errors', 'react_native_errors', 'react_router_framework_errors', 'remix_errors', 'rq_errors', 'ruby_errors', 'rust_errors', 'sanic_errors', 'serverless_python_errors', 'solid_errors', 'solidstart_errors', 'spring_boot_errors', 'spring_errors', 'starlette_errors', 'svelte_errors', 'sveltekit_errors', 'symfony_errors', 'tanstack_start_react_errors', 'tornado_errors', 'tryton_errors', 'unity_errors', 'unreal_engine_errors', 'vue_errors', 'windows_forms_errors', 'wpf_errors', 'wsgi_errors'\n\n## Import\n\nImport an existing application by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/application:Application example 12345\n```\n\n", "properties": { "aiPromptTemplate": { "type": "string", "description": "The AI prompt used to fix this application's errors, or the default prompt when the application has none of its own. A blank prompt is refused.\n" }, "applicationGroupId": { "type": "string", "description": "The ID of the application group to put this application in, from [List application groups](https://betterstack.com/docs/errors/api/applications-groups/list/). Remove the argument to move it out of its group.\n" }, "codeMappingSourceRoot": { "type": "string", "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under \u003cspan pulumi-lang-nodejs=\"`codeMappingStackRoot`\" pulumi-lang-dotnet=\"`CodeMappingStackRoot`\" pulumi-lang-go=\"`codeMappingStackRoot`\" pulumi-lang-python=\"`code_mapping_stack_root`\" pulumi-lang-yaml=\"`codeMappingStackRoot`\" pulumi-lang-java=\"`codeMappingStackRoot`\" pulumi-lang-hcl=\"`code_mapping_stack_root`\"\u003e`codeMappingStackRoot`\u003c/span\u003e is looked up under this path in the linked repository.\n" }, "codeMappingStackRoot": { "type": "string", "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.\n" }, "correlateWithSourceId": { "type": "string", "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/).\n" }, "createdAt": { "type": "string", "description": "When the application was created.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/ApplicationCustomBucket:ApplicationCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the application uses Better Stack storage. Changing only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e rotates the bucket's key pair. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/errors/api/data-regions/). An application created with \u003cspan pulumi-lang-nodejs=\"`correlateWithSourceId`\" pulumi-lang-dotnet=\"`CorrelateWithSourceId`\" pulumi-lang-go=\"`correlateWithSourceId`\" pulumi-lang-python=\"`correlate_with_source_id`\" pulumi-lang-yaml=\"`correlateWithSourceId`\" pulumi-lang-java=\"`correlateWithSourceId`\" pulumi-lang-hcl=\"`correlate_with_source_id`\"\u003e`correlateWithSourceId`\u003c/span\u003e uses that source's region, and a different region here is refused. Omit it to use the organization's default.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this application is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "errorsRetention": { "type": "integer", "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set. Defaults to your plan's default retention, or to a longer one your other applications already use.\n" }, "githubRepositoryName": { "type": "string", "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](https://betterstack.com/docs/errors/integrations/github/) first. Set it to an empty string to disconnect it. Can't be set together with \u003cspan pulumi-lang-nodejs=\"`gitlabRepositoryName`\" pulumi-lang-dotnet=\"`GitlabRepositoryName`\" pulumi-lang-go=\"`gitlabRepositoryName`\" pulumi-lang-python=\"`gitlab_repository_name`\" pulumi-lang-yaml=\"`gitlabRepositoryName`\" pulumi-lang-java=\"`gitlabRepositoryName`\" pulumi-lang-hcl=\"`gitlab_repository_name`\"\u003e`gitlabRepositoryName`\u003c/span\u003e.\n" }, "gitlabRepositoryName": { "type": "string", "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories. Set it to an empty string to disconnect it. Can't be set together with \u003cspan pulumi-lang-nodejs=\"`githubRepositoryName`\" pulumi-lang-dotnet=\"`GithubRepositoryName`\" pulumi-lang-go=\"`githubRepositoryName`\" pulumi-lang-python=\"`github_repository_name`\" pulumi-lang-yaml=\"`githubRepositoryName`\" pulumi-lang-java=\"`githubRepositoryName`\" pulumi-lang-hcl=\"`github_repository_name`\"\u003e`githubRepositoryName`\u003c/span\u003e.\n" }, "ingestingHost": { "type": "string", "description": "Host to send data to.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this application. Defaults to false.\n" }, "jsTagConfiguration": { "$ref": "#/types/betterstack:index/ApplicationJsTagConfiguration:ApplicationJsTagConfiguration", "description": "Settings of the JavaScript tag, as on the application's **Frontend** page. null for an application without a JavaScript tag.\n" }, "jsTagOwnDomainStatus": { "type": "string", "description": "Whether the CNAME record of your own subdomain points to `proxy.betterstack.net`. null when \u003cspan pulumi-lang-nodejs=\"`jsTagConfiguration`\" pulumi-lang-dotnet=\"`JsTagConfiguration`\" pulumi-lang-go=\"`jsTagConfiguration`\" pulumi-lang-python=\"`js_tag_configuration`\" pulumi-lang-yaml=\"`jsTagConfiguration`\" pulumi-lang-java=\"`jsTagConfiguration`\" pulumi-lang-hcl=\"`js_tag_configuration`\"\u003e`jsTagConfiguration`\u003c/span\u003e has no \u003cspan pulumi-lang-nodejs=\"`ownDomain`\" pulumi-lang-dotnet=\"`OwnDomain`\" pulumi-lang-go=\"`ownDomain`\" pulumi-lang-python=\"`own_domain`\" pulumi-lang-yaml=\"`ownDomain`\" pulumi-lang-java=\"`ownDomain`\" pulumi-lang-hcl=\"`own_domain`\"\u003e`ownDomain`\u003c/span\u003e. 'checking': The CNAME record hasn't been checked yet since the subdomain last changed. 'missing': The subdomain has no CNAME record. 'invalid': The CNAME record doesn't point to `proxy.betterstack.net`. 'valid': The CNAME record points to `proxy.betterstack.net`, so the tag is served from the subdomain.\n" }, "jsTagToken": { "type": "string", "description": "The token of the browser tag, separate from \u003cspan pulumi-lang-nodejs=\"`token`\" pulumi-lang-dotnet=\"`Token`\" pulumi-lang-go=\"`token`\" pulumi-lang-python=\"`token`\" pulumi-lang-yaml=\"`token`\" pulumi-lang-java=\"`token`\" pulumi-lang-hcl=\"`token`\"\u003e`token`\u003c/span\u003e. Pass it as the `?t=` value when you load the `/b.js` browser tag. null for a platform without a browser tag. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "name": { "type": "string", "description": "Application name.\n" }, "parentSourceId": { "type": "string", "description": "The ID of the telemetry source this application is connected to. \u003cspan pulumi-lang-nodejs=\"`queryCollections`\" pulumi-lang-dotnet=\"`QueryCollections`\" pulumi-lang-go=\"`queryCollections`\" pulumi-lang-python=\"`query_collections`\" pulumi-lang-yaml=\"`queryCollections`\" pulumi-lang-java=\"`queryCollections`\" pulumi-lang-hcl=\"`query_collections`\"\u003e`queryCollections`\u003c/span\u003e names that source's collections. null when the application isn't connected to a source.\n" }, "platform": { "type": "string", "description": "The SDK or framework the application reports errors from.\n" }, "queryCollections": { "$ref": "#/types/betterstack:index/ApplicationQueryCollections:ApplicationQueryCollections", "description": "The ClickHouse database, table and collections to use when you query the application's data.\n" }, "replaysRetention": { "type": "integer", "description": "Days to keep session replays. Accepts one of the retention periods your plan offers, or the value already set. A change applies to every application connected to the same source. Only an application that records session replays accepts it.\n" }, "sourceTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of data the application holds, such as 'exceptions', 'logs', 'metrics', \u003cspan pulumi-lang-nodejs=\"`replays`\" pulumi-lang-dotnet=\"`Replays`\" pulumi-lang-go=\"`replays`\" pulumi-lang-python=\"`replays`\" pulumi-lang-yaml=\"`replays`\" pulumi-lang-java=\"`replays`\" pulumi-lang-hcl=\"`replays`\"\u003e`replays`\u003c/span\u003e, 'spans' or \u003cspan pulumi-lang-nodejs=\"`webEvents`\" pulumi-lang-dotnet=\"`WebEvents`\" pulumi-lang-go=\"`webEvents`\" pulumi-lang-python=\"`web_events`\" pulumi-lang-yaml=\"`webEvents`\" pulumi-lang-java=\"`webEvents`\" pulumi-lang-hcl=\"`web_events`\"\u003e`webEvents`\u003c/span\u003e, sorted by name.\n" }, "spikeProtectionBaselineMultiplier": { "type": "integer", "description": "The baseline multiplier of spike protection, from 0 to 100. Lower values start sampling sooner, and higher values allow bigger bursts before sampling starts. null while spike protection is off. Remove the argument to turn spike protection off.\n" }, "tableName": { "type": "string", "description": "The application's table name, which identifies its data in SQL queries.\n" }, "teamId": { "type": "string", "description": "The team that owns the application, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the application.\n" }, "token": { "type": "string", "description": "Ingestion token, the DSN to configure your SDK with. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "updatedAt": { "type": "string", "description": "When the application was last updated.\n" }, "vrlTransformationExceptions": { "type": "string", "description": "The VRL program that groups incoming exceptions into errors. A new application starts with its platform's default grouping, which groups exceptions by error name and call stack on most platforms. Read more about [exception grouping](https://betterstack.com/docs/errors/using-the-product/exception-grouping/). Set it to an empty string to remove it.\n" }, "vrlTransformationLogs": { "type": "string", "description": "The VRL program applied to logs collected alongside errors, during ingestion. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/). Set it to an empty string to remove it.\n" }, "vrlTransformationReplays": { "type": "string", "description": "The VRL program applied to session replays during ingestion. Set it to an empty string to remove it.\n" }, "vrlTransformationSpans": { "type": "string", "description": "The VRL program applied to spans collected alongside errors, during ingestion. Set it to an empty string to remove it.\n" }, "vrlTransformationWebEvents": { "type": "string", "description": "The VRL program applied to web events, such as page views and web vitals, during ingestion. A new application starts with the default web events program. Set it to an empty string to remove it.\n" }, "webEventsRetention": { "type": "integer", "description": "Days to keep web events. Accepts one of the retention periods your plan offers, or the value already set. A connected application's web events retention is set on its connected source.\n" } }, "required": [ "aiPromptTemplate", "correlateWithSourceId", "createdAt", "dataRegion", "deletionProtection", "errorsRetention", "ingestingHost", "ingestingPaused", "jsTagConfiguration", "jsTagOwnDomainStatus", "jsTagToken", "name", "parentSourceId", "platform", "queryCollections", "replaysRetention", "sourceTypes", "tableName", "teamId", "teamName", "token", "updatedAt", "vrlTransformationExceptions", "vrlTransformationLogs", "vrlTransformationReplays", "vrlTransformationSpans", "vrlTransformationWebEvents", "webEventsRetention" ], "inputProperties": { "aiPromptTemplate": { "type": "string", "description": "The AI prompt used to fix this application's errors, or the default prompt when the application has none of its own. A blank prompt is refused.\n" }, "applicationGroupId": { "type": "string", "description": "The ID of the application group to put this application in, from [List application groups](https://betterstack.com/docs/errors/api/applications-groups/list/). Remove the argument to move it out of its group.\n" }, "codeMappingSourceRoot": { "type": "string", "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under \u003cspan pulumi-lang-nodejs=\"`codeMappingStackRoot`\" pulumi-lang-dotnet=\"`CodeMappingStackRoot`\" pulumi-lang-go=\"`codeMappingStackRoot`\" pulumi-lang-python=\"`code_mapping_stack_root`\" pulumi-lang-yaml=\"`codeMappingStackRoot`\" pulumi-lang-java=\"`codeMappingStackRoot`\" pulumi-lang-hcl=\"`code_mapping_stack_root`\"\u003e`codeMappingStackRoot`\u003c/span\u003e is looked up under this path in the linked repository.\n" }, "codeMappingStackRoot": { "type": "string", "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.\n" }, "correlateWithSourceId": { "type": "string", "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/).\n" }, "customBucket": { "$ref": "#/types/betterstack:index/ApplicationCustomBucket:ApplicationCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the application uses Better Stack storage. Changing only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e rotates the bucket's key pair. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/errors/api/data-regions/). An application created with \u003cspan pulumi-lang-nodejs=\"`correlateWithSourceId`\" pulumi-lang-dotnet=\"`CorrelateWithSourceId`\" pulumi-lang-go=\"`correlateWithSourceId`\" pulumi-lang-python=\"`correlate_with_source_id`\" pulumi-lang-yaml=\"`correlateWithSourceId`\" pulumi-lang-java=\"`correlateWithSourceId`\" pulumi-lang-hcl=\"`correlate_with_source_id`\"\u003e`correlateWithSourceId`\u003c/span\u003e uses that source's region, and a different region here is refused. Omit it to use the organization's default.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this application is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "errorsRetention": { "type": "integer", "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set. Defaults to your plan's default retention, or to a longer one your other applications already use.\n" }, "githubRepositoryName": { "type": "string", "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](https://betterstack.com/docs/errors/integrations/github/) first. Set it to an empty string to disconnect it. Can't be set together with \u003cspan pulumi-lang-nodejs=\"`gitlabRepositoryName`\" pulumi-lang-dotnet=\"`GitlabRepositoryName`\" pulumi-lang-go=\"`gitlabRepositoryName`\" pulumi-lang-python=\"`gitlab_repository_name`\" pulumi-lang-yaml=\"`gitlabRepositoryName`\" pulumi-lang-java=\"`gitlabRepositoryName`\" pulumi-lang-hcl=\"`gitlab_repository_name`\"\u003e`gitlabRepositoryName`\u003c/span\u003e.\n" }, "gitlabRepositoryName": { "type": "string", "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories. Set it to an empty string to disconnect it. Can't be set together with \u003cspan pulumi-lang-nodejs=\"`githubRepositoryName`\" pulumi-lang-dotnet=\"`GithubRepositoryName`\" pulumi-lang-go=\"`githubRepositoryName`\" pulumi-lang-python=\"`github_repository_name`\" pulumi-lang-yaml=\"`githubRepositoryName`\" pulumi-lang-java=\"`githubRepositoryName`\" pulumi-lang-hcl=\"`github_repository_name`\"\u003e`githubRepositoryName`\u003c/span\u003e.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this application. Defaults to false.\n" }, "jsTagConfiguration": { "$ref": "#/types/betterstack:index/ApplicationJsTagConfiguration:ApplicationJsTagConfiguration", "description": "Settings of the JavaScript tag, as on the application's **Frontend** page. null for an application without a JavaScript tag.\n" }, "name": { "type": "string", "description": "Application name.\n" }, "platform": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/applicationPlatform:ApplicationPlatform" } ], "description": "The SDK or framework the application reports errors from.\n" }, "replaysRetention": { "type": "integer", "description": "Days to keep session replays. Accepts one of the retention periods your plan offers, or the value already set. A change applies to every application connected to the same source. Only an application that records session replays accepts it.\n" }, "spikeProtectionBaselineMultiplier": { "type": "integer", "description": "The baseline multiplier of spike protection, from 0 to 100. Lower values start sampling sooner, and higher values allow bigger bursts before sampling starts. null while spike protection is off. Remove the argument to turn spike protection off.\n" }, "teamId": { "type": "string", "description": "The team that owns the application, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "vrlTransformationExceptions": { "type": "string", "description": "The VRL program that groups incoming exceptions into errors. A new application starts with its platform's default grouping, which groups exceptions by error name and call stack on most platforms. Read more about [exception grouping](https://betterstack.com/docs/errors/using-the-product/exception-grouping/). Set it to an empty string to remove it.\n" }, "vrlTransformationLogs": { "type": "string", "description": "The VRL program applied to logs collected alongside errors, during ingestion. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/). Set it to an empty string to remove it.\n" }, "vrlTransformationReplays": { "type": "string", "description": "The VRL program applied to session replays during ingestion. Set it to an empty string to remove it.\n" }, "vrlTransformationSpans": { "type": "string", "description": "The VRL program applied to spans collected alongside errors, during ingestion. Set it to an empty string to remove it.\n" }, "vrlTransformationWebEvents": { "type": "string", "description": "The VRL program applied to web events, such as page views and web vitals, during ingestion. A new application starts with the default web events program. Set it to an empty string to remove it.\n" }, "webEventsRetention": { "type": "integer", "description": "Days to keep web events. Accepts one of the retention periods your plan offers, or the value already set. A connected application's web events retention is set on its connected source.\n" } }, "requiredInputs": [ "name", "platform" ], "stateInputs": { "description": "Input properties used for looking up and filtering Application resources.\n", "properties": { "aiPromptTemplate": { "type": "string", "description": "The AI prompt used to fix this application's errors, or the default prompt when the application has none of its own. A blank prompt is refused.\n" }, "applicationGroupId": { "type": "string", "description": "The ID of the application group to put this application in, from [List application groups](https://betterstack.com/docs/errors/api/applications-groups/list/). Remove the argument to move it out of its group.\n" }, "codeMappingSourceRoot": { "type": "string", "description": "The path from your repository's root to the deployed source code, such as `apps/backend/`. A stack frame's path under \u003cspan pulumi-lang-nodejs=\"`codeMappingStackRoot`\" pulumi-lang-dotnet=\"`CodeMappingStackRoot`\" pulumi-lang-go=\"`codeMappingStackRoot`\" pulumi-lang-python=\"`code_mapping_stack_root`\" pulumi-lang-yaml=\"`codeMappingStackRoot`\" pulumi-lang-java=\"`codeMappingStackRoot`\" pulumi-lang-hcl=\"`code_mapping_stack_root`\"\u003e`codeMappingStackRoot`\u003c/span\u003e is looked up under this path in the linked repository.\n" }, "codeMappingStackRoot": { "type": "string", "description": "The absolute path to the root of the stack trace on your server, such as `/usr/src/app/`. Stack frames under it are mapped to files in the linked repository.\n" }, "correlateWithSourceId": { "type": "string", "description": "The ID of the telemetry source whose logs and traces are linked to these errors. Get it via [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/).\n" }, "createdAt": { "type": "string", "description": "When the application was created.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/ApplicationCustomBucket:ApplicationCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the application uses Better Stack storage. Changing only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e rotates the bucket's key pair. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/errors/api/data-regions/). An application created with \u003cspan pulumi-lang-nodejs=\"`correlateWithSourceId`\" pulumi-lang-dotnet=\"`CorrelateWithSourceId`\" pulumi-lang-go=\"`correlateWithSourceId`\" pulumi-lang-python=\"`correlate_with_source_id`\" pulumi-lang-yaml=\"`correlateWithSourceId`\" pulumi-lang-java=\"`correlateWithSourceId`\" pulumi-lang-hcl=\"`correlate_with_source_id`\"\u003e`correlateWithSourceId`\u003c/span\u003e uses that source's region, and a different region here is refused. Omit it to use the organization's default.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this application is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "errorsRetention": { "type": "integer", "description": "Days to keep errors. Accepts one of the retention periods your plan offers, or the value already set. Defaults to your plan's default retention, or to a longer one your other applications already use.\n" }, "githubRepositoryName": { "type": "string", "description": "The linked GitHub repository for source-code mapping, as `owner/name`, such as `acme/web`. Connect it to your team with the [GitHub integration](https://betterstack.com/docs/errors/integrations/github/) first. Set it to an empty string to disconnect it. Can't be set together with \u003cspan pulumi-lang-nodejs=\"`gitlabRepositoryName`\" pulumi-lang-dotnet=\"`GitlabRepositoryName`\" pulumi-lang-go=\"`gitlabRepositoryName`\" pulumi-lang-python=\"`gitlab_repository_name`\" pulumi-lang-yaml=\"`gitlabRepositoryName`\" pulumi-lang-java=\"`gitlabRepositoryName`\" pulumi-lang-hcl=\"`gitlab_repository_name`\"\u003e`gitlabRepositoryName`\u003c/span\u003e.\n" }, "gitlabRepositoryName": { "type": "string", "description": "The linked GitLab repository for source-code mapping, as `group/name`, such as `acme/web`, from your connected repositories. Set it to an empty string to disconnect it. Can't be set together with \u003cspan pulumi-lang-nodejs=\"`githubRepositoryName`\" pulumi-lang-dotnet=\"`GithubRepositoryName`\" pulumi-lang-go=\"`githubRepositoryName`\" pulumi-lang-python=\"`github_repository_name`\" pulumi-lang-yaml=\"`githubRepositoryName`\" pulumi-lang-java=\"`githubRepositoryName`\" pulumi-lang-hcl=\"`github_repository_name`\"\u003e`githubRepositoryName`\u003c/span\u003e.\n" }, "ingestingHost": { "type": "string", "description": "Host to send data to.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this application. Defaults to false.\n" }, "jsTagConfiguration": { "$ref": "#/types/betterstack:index/ApplicationJsTagConfiguration:ApplicationJsTagConfiguration", "description": "Settings of the JavaScript tag, as on the application's **Frontend** page. null for an application without a JavaScript tag.\n" }, "jsTagOwnDomainStatus": { "type": "string", "description": "Whether the CNAME record of your own subdomain points to `proxy.betterstack.net`. null when \u003cspan pulumi-lang-nodejs=\"`jsTagConfiguration`\" pulumi-lang-dotnet=\"`JsTagConfiguration`\" pulumi-lang-go=\"`jsTagConfiguration`\" pulumi-lang-python=\"`js_tag_configuration`\" pulumi-lang-yaml=\"`jsTagConfiguration`\" pulumi-lang-java=\"`jsTagConfiguration`\" pulumi-lang-hcl=\"`js_tag_configuration`\"\u003e`jsTagConfiguration`\u003c/span\u003e has no \u003cspan pulumi-lang-nodejs=\"`ownDomain`\" pulumi-lang-dotnet=\"`OwnDomain`\" pulumi-lang-go=\"`ownDomain`\" pulumi-lang-python=\"`own_domain`\" pulumi-lang-yaml=\"`ownDomain`\" pulumi-lang-java=\"`ownDomain`\" pulumi-lang-hcl=\"`own_domain`\"\u003e`ownDomain`\u003c/span\u003e. 'checking': The CNAME record hasn't been checked yet since the subdomain last changed. 'missing': The subdomain has no CNAME record. 'invalid': The CNAME record doesn't point to `proxy.betterstack.net`. 'valid': The CNAME record points to `proxy.betterstack.net`, so the tag is served from the subdomain.\n" }, "jsTagToken": { "type": "string", "description": "The token of the browser tag, separate from \u003cspan pulumi-lang-nodejs=\"`token`\" pulumi-lang-dotnet=\"`Token`\" pulumi-lang-go=\"`token`\" pulumi-lang-python=\"`token`\" pulumi-lang-yaml=\"`token`\" pulumi-lang-java=\"`token`\" pulumi-lang-hcl=\"`token`\"\u003e`token`\u003c/span\u003e. Pass it as the `?t=` value when you load the `/b.js` browser tag. null for a platform without a browser tag. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "name": { "type": "string", "description": "Application name.\n" }, "parentSourceId": { "type": "string", "description": "The ID of the telemetry source this application is connected to. \u003cspan pulumi-lang-nodejs=\"`queryCollections`\" pulumi-lang-dotnet=\"`QueryCollections`\" pulumi-lang-go=\"`queryCollections`\" pulumi-lang-python=\"`query_collections`\" pulumi-lang-yaml=\"`queryCollections`\" pulumi-lang-java=\"`queryCollections`\" pulumi-lang-hcl=\"`query_collections`\"\u003e`queryCollections`\u003c/span\u003e names that source's collections. null when the application isn't connected to a source.\n" }, "platform": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/applicationPlatform:ApplicationPlatform" } ], "description": "The SDK or framework the application reports errors from.\n" }, "queryCollections": { "$ref": "#/types/betterstack:index/ApplicationQueryCollections:ApplicationQueryCollections", "description": "The ClickHouse database, table and collections to use when you query the application's data.\n" }, "replaysRetention": { "type": "integer", "description": "Days to keep session replays. Accepts one of the retention periods your plan offers, or the value already set. A change applies to every application connected to the same source. Only an application that records session replays accepts it.\n" }, "sourceTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of data the application holds, such as 'exceptions', 'logs', 'metrics', \u003cspan pulumi-lang-nodejs=\"`replays`\" pulumi-lang-dotnet=\"`Replays`\" pulumi-lang-go=\"`replays`\" pulumi-lang-python=\"`replays`\" pulumi-lang-yaml=\"`replays`\" pulumi-lang-java=\"`replays`\" pulumi-lang-hcl=\"`replays`\"\u003e`replays`\u003c/span\u003e, 'spans' or \u003cspan pulumi-lang-nodejs=\"`webEvents`\" pulumi-lang-dotnet=\"`WebEvents`\" pulumi-lang-go=\"`webEvents`\" pulumi-lang-python=\"`web_events`\" pulumi-lang-yaml=\"`webEvents`\" pulumi-lang-java=\"`webEvents`\" pulumi-lang-hcl=\"`web_events`\"\u003e`webEvents`\u003c/span\u003e, sorted by name.\n" }, "spikeProtectionBaselineMultiplier": { "type": "integer", "description": "The baseline multiplier of spike protection, from 0 to 100. Lower values start sampling sooner, and higher values allow bigger bursts before sampling starts. null while spike protection is off. Remove the argument to turn spike protection off.\n" }, "tableName": { "type": "string", "description": "The application's table name, which identifies its data in SQL queries.\n" }, "teamId": { "type": "string", "description": "The team that owns the application, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the application.\n" }, "token": { "type": "string", "description": "Ingestion token, the DSN to configure your SDK with. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "updatedAt": { "type": "string", "description": "When the application was last updated.\n" }, "vrlTransformationExceptions": { "type": "string", "description": "The VRL program that groups incoming exceptions into errors. A new application starts with its platform's default grouping, which groups exceptions by error name and call stack on most platforms. Read more about [exception grouping](https://betterstack.com/docs/errors/using-the-product/exception-grouping/). Set it to an empty string to remove it.\n" }, "vrlTransformationLogs": { "type": "string", "description": "The VRL program applied to logs collected alongside errors, during ingestion. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/). Set it to an empty string to remove it.\n" }, "vrlTransformationReplays": { "type": "string", "description": "The VRL program applied to session replays during ingestion. Set it to an empty string to remove it.\n" }, "vrlTransformationSpans": { "type": "string", "description": "The VRL program applied to spans collected alongside errors, during ingestion. Set it to an empty string to remove it.\n" }, "vrlTransformationWebEvents": { "type": "string", "description": "The VRL program applied to web events, such as page views and web vitals, during ingestion. A new application starts with the default web events program. Set it to an empty string to remove it.\n" }, "webEventsRetention": { "type": "integer", "description": "Days to keep web events. Accepts one of the retention periods your plan offers, or the value already set. A connected application's web events retention is set on its connected source.\n" } }, "type": "object" } }, "betterstack:index/applicationGroup:ApplicationGroup": { "description": "A group that organizes related error-tracking applications together.\n\n## Example Usage\n\n### Create an application group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ApplicationGroup(\"example\", {name: \"Production apps\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ApplicationGroup(\"example\", name=\"Production apps\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ApplicationGroup(\"example\", new()\n {\n Name = \"Production apps\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewApplicationGroup(ctx, \"example\", \u0026betterstack.ApplicationGroupArgs{\n\t\t\tName: pulumi.String(\"Production apps\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_application_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production apps\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ApplicationGroup;\nimport com.betterstack.pulumi.ApplicationGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ApplicationGroup(\"example\", ApplicationGroupArgs.builder()\n .name(\"Production apps\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ApplicationGroup\n properties:\n name: Production apps\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Set the display order\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst setTheDisplayOrder = new betterstack.ApplicationGroup(\"set_the_display_order\", {\n name: \"Mobile apps\",\n sortIndex: 2,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nset_the_display_order = betterstack.ApplicationGroup(\"set_the_display_order\",\n name=\"Mobile apps\",\n sort_index=2)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var setTheDisplayOrder = new BetterStack.ApplicationGroup(\"set_the_display_order\", new()\n {\n Name = \"Mobile apps\",\n SortIndex = 2,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewApplicationGroup(ctx, \"set_the_display_order\", \u0026betterstack.ApplicationGroupArgs{\n\t\t\tName: pulumi.String(\"Mobile apps\"),\n\t\t\tSortIndex: pulumi.Int(2),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_application_group\" \"set_the_display_order\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Mobile apps\"\n sort_index = 2\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ApplicationGroup;\nimport com.betterstack.pulumi.ApplicationGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var setTheDisplayOrder = new ApplicationGroup(\"setTheDisplayOrder\", ApplicationGroupArgs.builder()\n .name(\"Mobile apps\")\n .sortIndex(2)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n setTheDisplayOrder:\n type: betterstack:ApplicationGroup\n name: set_the_display_order\n properties:\n name: Mobile apps\n sortIndex: 2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing application group by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/applicationGroup:ApplicationGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order among your application groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order among your application groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering ApplicationGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order among your application groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/awsLogGroupSubscription:AwsLogGroupSubscription": { "description": "An override that subscribes a CloudWatch log group to an AWS source or keeps it unsubscribed, even before the source has found the group.\n\n## Example Usage\n\n### Create a log group subscription\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.AwsLogGroupSubscription(\"example\", {\n sourceId: \"123456\",\n region: \"us-east-1\",\n name: \"/aws/lambda/checkout\",\n subscribed: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.AwsLogGroupSubscription(\"example\",\n source_id=\"123456\",\n region=\"us-east-1\",\n name=\"/aws/lambda/checkout\",\n subscribed=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.AwsLogGroupSubscription(\"example\", new()\n {\n SourceId = \"123456\",\n Region = \"us-east-1\",\n Name = \"/aws/lambda/checkout\",\n Subscribed = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewAwsLogGroupSubscription(ctx, \"example\", \u0026betterstack.AwsLogGroupSubscriptionArgs{\n\t\t\tSourceId: pulumi.String(\"123456\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tName: pulumi.String(\"/aws/lambda/checkout\"),\n\t\t\tSubscribed: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_aws_log_group_subscription\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n source_id = \"123456\"\n region = \"us-east-1\"\n name = \"/aws/lambda/checkout\"\n subscribed = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.AwsLogGroupSubscription;\nimport com.betterstack.pulumi.AwsLogGroupSubscriptionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new AwsLogGroupSubscription(\"example\", AwsLogGroupSubscriptionArgs.builder()\n .sourceId(\"123456\")\n .region(\"us-east-1\")\n .name(\"/aws/lambda/checkout\")\n .subscribed(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:AwsLogGroupSubscription\n properties:\n sourceId: '123456'\n region: us-east-1\n name: /aws/lambda/checkout\n subscribed: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Keep a noisy log group unsubscribed\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst keepANoisyLogGroupUnsubscribed = new betterstack.AwsLogGroupSubscription(\"keep_a_noisy_log_group_unsubscribed\", {\n sourceId: \"123456\",\n region: \"eu-west-1\",\n name: \"/aws/lambda/healthcheck\",\n subscribed: false,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nkeep_a_noisy_log_group_unsubscribed = betterstack.AwsLogGroupSubscription(\"keep_a_noisy_log_group_unsubscribed\",\n source_id=\"123456\",\n region=\"eu-west-1\",\n name=\"/aws/lambda/healthcheck\",\n subscribed=False)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var keepANoisyLogGroupUnsubscribed = new BetterStack.AwsLogGroupSubscription(\"keep_a_noisy_log_group_unsubscribed\", new()\n {\n SourceId = \"123456\",\n Region = \"eu-west-1\",\n Name = \"/aws/lambda/healthcheck\",\n Subscribed = false,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewAwsLogGroupSubscription(ctx, \"keep_a_noisy_log_group_unsubscribed\", \u0026betterstack.AwsLogGroupSubscriptionArgs{\n\t\t\tSourceId: pulumi.String(\"123456\"),\n\t\t\tRegion: pulumi.String(\"eu-west-1\"),\n\t\t\tName: pulumi.String(\"/aws/lambda/healthcheck\"),\n\t\t\tSubscribed: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_aws_log_group_subscription\" \"keep_a_noisy_log_group_unsubscribed\" {\n lifecycle {\n create_before_destroy = true\n }\n source_id = \"123456\"\n region = \"eu-west-1\"\n name = \"/aws/lambda/healthcheck\"\n subscribed = false\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.AwsLogGroupSubscription;\nimport com.betterstack.pulumi.AwsLogGroupSubscriptionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var keepANoisyLogGroupUnsubscribed = new AwsLogGroupSubscription(\"keepANoisyLogGroupUnsubscribed\", AwsLogGroupSubscriptionArgs.builder()\n .sourceId(\"123456\")\n .region(\"eu-west-1\")\n .name(\"/aws/lambda/healthcheck\")\n .subscribed(false)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n keepANoisyLogGroupUnsubscribed:\n type: betterstack:AwsLogGroupSubscription\n name: keep_a_noisy_log_group_unsubscribed\n properties:\n sourceId: '123456'\n region: eu-west-1\n name: /aws/lambda/healthcheck\n subscribed: false\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing AWS log group subscription by its ID as `source_id/id`.\n\n```sh\n$ pulumi import betterstack:index/awsLogGroupSubscription:AwsLogGroupSubscription example \u003csource_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the override was created.\n" }, "name": { "type": "string", "description": "CloudWatch log-group name.\n" }, "region": { "type": "string", "description": "AWS region of the log group.\n" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "subscribed": { "type": "boolean", "description": "true subscribes the log group. false keeps it unsubscribed, even when automatic subscription is on.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "updatedAt": { "type": "string", "description": "When the override was last updated.\n" } }, "required": [ "createdAt", "name", "region", "sourceId", "subscribed", "teamId", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "CloudWatch log-group name.\n" }, "region": { "type": "string", "description": "AWS region of the log group.\n" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "subscribed": { "type": "boolean", "description": "true subscribes the log group. false keeps it unsubscribed, even when automatic subscription is on.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name", "region", "sourceId", "subscribed" ], "stateInputs": { "description": "Input properties used for looking up and filtering AwsLogGroupSubscription resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the override was created.\n" }, "name": { "type": "string", "description": "CloudWatch log-group name.\n" }, "region": { "type": "string", "description": "AWS region of the log group.\n" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "subscribed": { "type": "boolean", "description": "true subscribes the log group. false keeps it unsubscribed, even when automatic subscription is on.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "updatedAt": { "type": "string", "description": "When the override was last updated.\n" } }, "type": "object" } }, "betterstack:index/catalogRecord:CatalogRecord": { "description": "A catalog record is one entry in a catalog relation, with values for its attributes.\n\n## Example Usage\n\n### Name the team that owns a service\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst services = new betterstack.CatalogRelation(\"services\", {\n name: \"Services\",\n attributes: [\n {\n name: \"Service\",\n primary: true,\n },\n {\n name: \"Owner\",\n },\n ],\n});\nconst checkout = new betterstack.CatalogRecord(\"checkout\", {\n catalogRelationId: services.id,\n attributes: [\n {\n attribute: {\n name: \"Service\",\n },\n values: [{\n type: \"String\",\n value: \"checkout-api\",\n }],\n },\n {\n attribute: {\n name: \"Owner\",\n },\n values: [{\n type: \"String\",\n value: \"Payments team\",\n }],\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nservices = betterstack.CatalogRelation(\"services\",\n name=\"Services\",\n attributes=[\n {\n \"name\": \"Service\",\n \"primary\": True,\n },\n {\n \"name\": \"Owner\",\n },\n ])\ncheckout = betterstack.CatalogRecord(\"checkout\",\n catalog_relation_id=services.id,\n attributes=[\n {\n \"attribute\": {\n \"name\": \"Service\",\n },\n \"values\": [{\n \"type\": \"String\",\n \"value\": \"checkout-api\",\n }],\n },\n {\n \"attribute\": {\n \"name\": \"Owner\",\n },\n \"values\": [{\n \"type\": \"String\",\n \"value\": \"Payments team\",\n }],\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var services = new BetterStack.CatalogRelation(\"services\", new()\n {\n Name = \"Services\",\n Attributes = new[]\n {\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Service\",\n Primary = true,\n },\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Owner\",\n },\n },\n });\n\n var checkout = new BetterStack.CatalogRecord(\"checkout\", new()\n {\n CatalogRelationId = services.Id,\n Attributes = new[]\n {\n new BetterStack.Inputs.CatalogRecordAttributeArgs\n {\n Attribute = new BetterStack.Inputs.CatalogRecordAttributeAttributeArgs\n {\n Name = \"Service\",\n },\n Values = new[]\n {\n new BetterStack.Inputs.CatalogRecordAttributeValueArgs\n {\n Type = \"String\",\n Value = \"checkout-api\",\n },\n },\n },\n new BetterStack.Inputs.CatalogRecordAttributeArgs\n {\n Attribute = new BetterStack.Inputs.CatalogRecordAttributeAttributeArgs\n {\n Name = \"Owner\",\n },\n Values = new[]\n {\n new BetterStack.Inputs.CatalogRecordAttributeValueArgs\n {\n Type = \"String\",\n Value = \"Payments team\",\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tservices, err := betterstack.NewCatalogRelation(ctx, \"services\", \u0026betterstack.CatalogRelationArgs{\n\t\t\tName: pulumi.String(\"Services\"),\n\t\t\tAttributes: betterstack.CatalogRelationAttributeArray{\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Service\"),\n\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Owner\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewCatalogRecord(ctx, \"checkout\", \u0026betterstack.CatalogRecordArgs{\n\t\t\tCatalogRelationId: services.ID(),\n\t\t\tAttributes: betterstack.CatalogRecordAttributeArray{\n\t\t\t\t\u0026betterstack.CatalogRecordAttributeArgs{\n\t\t\t\t\tAttribute: \u0026betterstack.CatalogRecordAttributeAttributeArgs{\n\t\t\t\t\t\tName: pulumi.String(\"Service\"),\n\t\t\t\t\t},\n\t\t\t\t\tValues: betterstack.CatalogRecordAttributeValueArray{\n\t\t\t\t\t\t\u0026betterstack.CatalogRecordAttributeValueArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"String\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"checkout-api\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRecordAttributeArgs{\n\t\t\t\t\tAttribute: \u0026betterstack.CatalogRecordAttributeAttributeArgs{\n\t\t\t\t\t\tName: pulumi.String(\"Owner\"),\n\t\t\t\t\t},\n\t\t\t\t\tValues: betterstack.CatalogRecordAttributeValueArray{\n\t\t\t\t\t\t\u0026betterstack.CatalogRecordAttributeValueArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"String\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"Payments team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_catalog_relation\" \"services\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Services\"\n attributes = [{\n name = \"Service\"\n primary = true\n }, {\n name = \"Owner\"\n }]\n}\nresource \"betterstack_catalog_record\" \"checkout\" {\n lifecycle {\n create_before_destroy = true\n }\n catalog_relation_id = betterstack_catalog_relation.services.id\n attributes = [{\n attribute = {\n name = \"Service\"\n }\n values = [{\n type = \"String\"\n value = \"checkout-api\"\n }]\n }, {\n attribute = {\n name = \"Owner\"\n }\n values = [{\n type = \"String\"\n value = \"Payments team\"\n }]\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.CatalogRelation;\nimport com.betterstack.pulumi.CatalogRelationArgs;\nimport com.betterstack.pulumi.inputs.CatalogRelationAttributeArgs;\nimport com.betterstack.pulumi.CatalogRecord;\nimport com.betterstack.pulumi.CatalogRecordArgs;\nimport com.betterstack.pulumi.inputs.CatalogRecordAttributeArgs;\nimport com.betterstack.pulumi.inputs.CatalogRecordAttributeAttributeArgs;\nimport com.betterstack.pulumi.inputs.CatalogRecordAttributeValueArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var services = new CatalogRelation(\"services\", CatalogRelationArgs.builder()\n .name(\"Services\")\n .attributes( \n CatalogRelationAttributeArgs.builder()\n .name(\"Service\")\n .primary(true)\n .build(),\n CatalogRelationAttributeArgs.builder()\n .name(\"Owner\")\n .build())\n .build());\n\n var checkout = new CatalogRecord(\"checkout\", CatalogRecordArgs.builder()\n .catalogRelationId(services.id())\n .attributes( \n CatalogRecordAttributeArgs.builder()\n .attribute(CatalogRecordAttributeAttributeArgs.builder()\n .name(\"Service\")\n .build())\n .values(CatalogRecordAttributeValueArgs.builder()\n .type(\"String\")\n .value(\"checkout-api\")\n .build())\n .build(),\n CatalogRecordAttributeArgs.builder()\n .attribute(CatalogRecordAttributeAttributeArgs.builder()\n .name(\"Owner\")\n .build())\n .values(CatalogRecordAttributeValueArgs.builder()\n .type(\"String\")\n .value(\"Payments team\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n services:\n type: betterstack:CatalogRelation\n properties:\n name: Services\n attributes:\n - name: Service\n primary: true\n - name: Owner\n checkout:\n type: betterstack:CatalogRecord\n properties:\n catalogRelationId: ${services.id}\n attributes:\n - attribute:\n name: Service\n values:\n - type: String\n value: checkout-api\n - attribute:\n name: Owner\n values:\n - type: String\n value: Payments team\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Route a service to its escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst payments = new betterstack.EscalationPolicy(\"payments\", {\n name: \"Payments on-call\",\n steps: [{\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n }],\n});\nconst routing = new betterstack.CatalogRelation(\"routing\", {\n name: \"Service routing\",\n attributes: [\n {\n name: \"Service\",\n primary: true,\n },\n {\n name: \"Escalation policy\",\n },\n ],\n});\nconst paymentsCatalogRecord = new betterstack.CatalogRecord(\"payments\", {\n catalogRelationId: routing.id,\n attributes: [\n {\n attribute: {\n name: \"Service\",\n },\n values: [{\n type: \"String\",\n value: \"payments-api\",\n }],\n },\n {\n attribute: {\n name: \"Escalation policy\",\n },\n values: [{\n type: \"EscalationPolicy\",\n itemId: payments.id,\n }],\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\npayments = betterstack.EscalationPolicy(\"payments\",\n name=\"Payments on-call\",\n steps=[{\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n }])\nrouting = betterstack.CatalogRelation(\"routing\",\n name=\"Service routing\",\n attributes=[\n {\n \"name\": \"Service\",\n \"primary\": True,\n },\n {\n \"name\": \"Escalation policy\",\n },\n ])\npayments_catalog_record = betterstack.CatalogRecord(\"payments\",\n catalog_relation_id=routing.id,\n attributes=[\n {\n \"attribute\": {\n \"name\": \"Service\",\n },\n \"values\": [{\n \"type\": \"String\",\n \"value\": \"payments-api\",\n }],\n },\n {\n \"attribute\": {\n \"name\": \"Escalation policy\",\n },\n \"values\": [{\n \"type\": \"EscalationPolicy\",\n \"item_id\": payments.id,\n }],\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var payments = new BetterStack.EscalationPolicy(\"payments\", new()\n {\n Name = \"Payments on-call\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n },\n });\n\n var routing = new BetterStack.CatalogRelation(\"routing\", new()\n {\n Name = \"Service routing\",\n Attributes = new[]\n {\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Service\",\n Primary = true,\n },\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Escalation policy\",\n },\n },\n });\n\n var paymentsCatalogRecord = new BetterStack.CatalogRecord(\"payments\", new()\n {\n CatalogRelationId = routing.Id,\n Attributes = new[]\n {\n new BetterStack.Inputs.CatalogRecordAttributeArgs\n {\n Attribute = new BetterStack.Inputs.CatalogRecordAttributeAttributeArgs\n {\n Name = \"Service\",\n },\n Values = new[]\n {\n new BetterStack.Inputs.CatalogRecordAttributeValueArgs\n {\n Type = \"String\",\n Value = \"payments-api\",\n },\n },\n },\n new BetterStack.Inputs.CatalogRecordAttributeArgs\n {\n Attribute = new BetterStack.Inputs.CatalogRecordAttributeAttributeArgs\n {\n Name = \"Escalation policy\",\n },\n Values = new[]\n {\n new BetterStack.Inputs.CatalogRecordAttributeValueArgs\n {\n Type = \"EscalationPolicy\",\n ItemId = payments.Id,\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tpayments, err := betterstack.NewEscalationPolicy(ctx, \"payments\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"Payments on-call\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\trouting, err := betterstack.NewCatalogRelation(ctx, \"routing\", \u0026betterstack.CatalogRelationArgs{\n\t\t\tName: pulumi.String(\"Service routing\"),\n\t\t\tAttributes: betterstack.CatalogRelationAttributeArray{\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Service\"),\n\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Escalation policy\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewCatalogRecord(ctx, \"payments\", \u0026betterstack.CatalogRecordArgs{\n\t\t\tCatalogRelationId: routing.ID(),\n\t\t\tAttributes: betterstack.CatalogRecordAttributeArray{\n\t\t\t\t\u0026betterstack.CatalogRecordAttributeArgs{\n\t\t\t\t\tAttribute: \u0026betterstack.CatalogRecordAttributeAttributeArgs{\n\t\t\t\t\t\tName: pulumi.String(\"Service\"),\n\t\t\t\t\t},\n\t\t\t\t\tValues: betterstack.CatalogRecordAttributeValueArray{\n\t\t\t\t\t\t\u0026betterstack.CatalogRecordAttributeValueArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"String\"),\n\t\t\t\t\t\t\tValue: pulumi.String(\"payments-api\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRecordAttributeArgs{\n\t\t\t\t\tAttribute: \u0026betterstack.CatalogRecordAttributeAttributeArgs{\n\t\t\t\t\t\tName: pulumi.String(\"Escalation policy\"),\n\t\t\t\t\t},\n\t\t\t\t\tValues: betterstack.CatalogRecordAttributeValueArray{\n\t\t\t\t\t\t\u0026betterstack.CatalogRecordAttributeValueArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"EscalationPolicy\"),\n\t\t\t\t\t\t\tItemId: payments.ID(),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"payments\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Payments on-call\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }]\n}\nresource \"betterstack_catalog_relation\" \"routing\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Service routing\"\n attributes = [{\n name = \"Service\"\n primary = true\n }, {\n name = \"Escalation policy\"\n }]\n}\nresource \"betterstack_catalog_record\" \"payments\" {\n lifecycle {\n create_before_destroy = true\n }\n catalog_relation_id = betterstack_catalog_relation.routing.id\n attributes = [{\n attribute = {\n name = \"Service\"\n }\n values = [{\n type = \"String\"\n value = \"payments-api\"\n }]\n }, {\n attribute = {\n name = \"Escalation policy\"\n }\n values = [{\n type = \"EscalationPolicy\"\n item_id = betterstack_escalation_policy.payments.id\n }]\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.CatalogRelation;\nimport com.betterstack.pulumi.CatalogRelationArgs;\nimport com.betterstack.pulumi.inputs.CatalogRelationAttributeArgs;\nimport com.betterstack.pulumi.CatalogRecord;\nimport com.betterstack.pulumi.CatalogRecordArgs;\nimport com.betterstack.pulumi.inputs.CatalogRecordAttributeArgs;\nimport com.betterstack.pulumi.inputs.CatalogRecordAttributeAttributeArgs;\nimport com.betterstack.pulumi.inputs.CatalogRecordAttributeValueArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var payments = new EscalationPolicy(\"payments\", EscalationPolicyArgs.builder()\n .name(\"Payments on-call\")\n .steps(EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build())\n .build());\n\n var routing = new CatalogRelation(\"routing\", CatalogRelationArgs.builder()\n .name(\"Service routing\")\n .attributes( \n CatalogRelationAttributeArgs.builder()\n .name(\"Service\")\n .primary(true)\n .build(),\n CatalogRelationAttributeArgs.builder()\n .name(\"Escalation policy\")\n .build())\n .build());\n\n var paymentsCatalogRecord = new CatalogRecord(\"paymentsCatalogRecord\", CatalogRecordArgs.builder()\n .catalogRelationId(routing.id())\n .attributes( \n CatalogRecordAttributeArgs.builder()\n .attribute(CatalogRecordAttributeAttributeArgs.builder()\n .name(\"Service\")\n .build())\n .values(CatalogRecordAttributeValueArgs.builder()\n .type(\"String\")\n .value(\"payments-api\")\n .build())\n .build(),\n CatalogRecordAttributeArgs.builder()\n .attribute(CatalogRecordAttributeAttributeArgs.builder()\n .name(\"Escalation policy\")\n .build())\n .values(CatalogRecordAttributeValueArgs.builder()\n .type(\"EscalationPolicy\")\n .itemId(payments.id())\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n payments:\n type: betterstack:EscalationPolicy\n properties:\n name: Payments on-call\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n routing:\n type: betterstack:CatalogRelation\n properties:\n name: Service routing\n attributes:\n - name: Service\n primary: true\n - name: Escalation policy\n paymentsCatalogRecord:\n type: betterstack:CatalogRecord\n name: payments\n properties:\n catalogRelationId: ${routing.id}\n attributes:\n - attribute:\n name: Service\n values:\n - type: String\n value: payments-api\n - attribute:\n name: Escalation policy\n values:\n - type: EscalationPolicy\n itemId: ${payments.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n\u003e A value is `{type: \"String\", value: \"...\"}` or a reference to an item in the organization. Write a reference as `{type: \u003cItemType\u003e, item_id: \u003cid\u003e}`, or look the item up with `{type:, name:}` or `{type: \"User\", email:}`. Responses always return `{type:, item_id:, name:}`, plus \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e for a User. A reference's type is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. In requests and responses, a user's \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e is 'u123' or their e-mail, and a team's is 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n\n## Import\n\nImport an existing catalog record by its ID as `catalog_relation_id/id`. Get the ID via [List catalog records](https://betterstack.com/docs/uptime/api/list-all-catalog-records/).\n\n```sh\n$ pulumi import betterstack:index/catalogRecord:CatalogRecord example \u003ccatalog_relation_id\u003e/12345\n```\n\n", "properties": { "attributes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CatalogRecordAttribute:CatalogRecordAttribute" }, "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.\n" }, "catalogRelationId": { "type": "string", "description": "The ID of the parent this catalog relation belongs to. Changing it replaces the resource.\n" } }, "required": [ "attributes", "catalogRelationId" ], "inputProperties": { "attributes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CatalogRecordAttribute:CatalogRecordAttribute" }, "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.\n" }, "catalogRelationId": { "type": "string", "description": "The ID of the parent this catalog relation belongs to. Changing it replaces the resource.\n" } }, "requiredInputs": [ "attributes", "catalogRelationId" ], "stateInputs": { "description": "Input properties used for looking up and filtering CatalogRecord resources.\n", "properties": { "attributes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CatalogRecordAttribute:CatalogRecordAttribute" }, "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.\n" }, "catalogRelationId": { "type": "string", "description": "The ID of the parent this catalog relation belongs to. Changing it replaces the resource.\n" } }, "type": "object" } }, "betterstack:index/catalogRelation:CatalogRelation": { "description": "A catalog relation is a table in your on-call catalog, such as your services or teams. When an incident's metadata matches a record's primary attributes, the incident gets the record's other attributes as metadata.\n\n## Example Usage\n\n### Track who owns each service\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst services = new betterstack.CatalogRelation(\"services\", {\n name: \"Services\",\n attributes: [\n {\n name: \"Service\",\n primary: true,\n },\n {\n name: \"Owner\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nservices = betterstack.CatalogRelation(\"services\",\n name=\"Services\",\n attributes=[\n {\n \"name\": \"Service\",\n \"primary\": True,\n },\n {\n \"name\": \"Owner\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var services = new BetterStack.CatalogRelation(\"services\", new()\n {\n Name = \"Services\",\n Attributes = new[]\n {\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Service\",\n Primary = true,\n },\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Owner\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewCatalogRelation(ctx, \"services\", \u0026betterstack.CatalogRelationArgs{\n\t\t\tName: pulumi.String(\"Services\"),\n\t\t\tAttributes: betterstack.CatalogRelationAttributeArray{\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Service\"),\n\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Owner\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_catalog_relation\" \"services\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Services\"\n attributes = [{\n name = \"Service\"\n primary = true\n }, {\n name = \"Owner\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.CatalogRelation;\nimport com.betterstack.pulumi.CatalogRelationArgs;\nimport com.betterstack.pulumi.inputs.CatalogRelationAttributeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var services = new CatalogRelation(\"services\", CatalogRelationArgs.builder()\n .name(\"Services\")\n .attributes( \n CatalogRelationAttributeArgs.builder()\n .name(\"Service\")\n .primary(true)\n .build(),\n CatalogRelationAttributeArgs.builder()\n .name(\"Owner\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n services:\n type: betterstack:CatalogRelation\n properties:\n name: Services\n attributes:\n - name: Service\n primary: true\n - name: Owner\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Match alerts by service and environment together\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst serviceEnvironments = new betterstack.CatalogRelation(\"service_environments\", {\n name: \"Service environments\",\n description: \"Who owns each service in each environment\",\n matchMode: betterstack.CatalogRelationMatchMode.All,\n attributes: [\n {\n name: \"Service\",\n primary: true,\n },\n {\n name: \"Environment\",\n primary: true,\n },\n {\n name: \"Owner\",\n },\n {\n name: \"Escalation policy\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nservice_environments = betterstack.CatalogRelation(\"service_environments\",\n name=\"Service environments\",\n description=\"Who owns each service in each environment\",\n match_mode=betterstack.CatalogRelationMatchMode.ALL,\n attributes=[\n {\n \"name\": \"Service\",\n \"primary\": True,\n },\n {\n \"name\": \"Environment\",\n \"primary\": True,\n },\n {\n \"name\": \"Owner\",\n },\n {\n \"name\": \"Escalation policy\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var serviceEnvironments = new BetterStack.CatalogRelation(\"service_environments\", new()\n {\n Name = \"Service environments\",\n Description = \"Who owns each service in each environment\",\n MatchMode = BetterStack.CatalogRelationMatchMode.All,\n Attributes = new[]\n {\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Service\",\n Primary = true,\n },\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Environment\",\n Primary = true,\n },\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Owner\",\n },\n new BetterStack.Inputs.CatalogRelationAttributeArgs\n {\n Name = \"Escalation policy\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewCatalogRelation(ctx, \"service_environments\", \u0026betterstack.CatalogRelationArgs{\n\t\t\tName: pulumi.String(\"Service environments\"),\n\t\t\tDescription: pulumi.String(\"Who owns each service in each environment\"),\n\t\t\tMatchMode: pulumi.String(betterstack.CatalogRelationMatchModeAll),\n\t\t\tAttributes: betterstack.CatalogRelationAttributeArray{\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Service\"),\n\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Environment\"),\n\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Owner\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.CatalogRelationAttributeArgs{\n\t\t\t\t\tName: pulumi.String(\"Escalation policy\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_catalog_relation\" \"service_environments\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Service environments\"\n description = \"Who owns each service in each environment\"\n match_mode = \"all\"\n attributes = [{\n name = \"Service\"\n primary = true\n }, {\n name = \"Environment\"\n primary = true\n }, {\n name = \"Owner\"\n }, {\n name = \"Escalation policy\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.CatalogRelation;\nimport com.betterstack.pulumi.CatalogRelationArgs;\nimport com.betterstack.pulumi.inputs.CatalogRelationAttributeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var serviceEnvironments = new CatalogRelation(\"serviceEnvironments\", CatalogRelationArgs.builder()\n .name(\"Service environments\")\n .description(\"Who owns each service in each environment\")\n .matchMode(\"all\")\n .attributes( \n CatalogRelationAttributeArgs.builder()\n .name(\"Service\")\n .primary(true)\n .build(),\n CatalogRelationAttributeArgs.builder()\n .name(\"Environment\")\n .primary(true)\n .build(),\n CatalogRelationAttributeArgs.builder()\n .name(\"Owner\")\n .build(),\n CatalogRelationAttributeArgs.builder()\n .name(\"Escalation policy\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n serviceEnvironments:\n type: betterstack:CatalogRelation\n name: service_environments\n properties:\n name: Service environments\n description: Who owns each service in each environment\n matchMode: all\n attributes:\n - name: Service\n primary: true\n - name: Environment\n primary: true\n - name: Owner\n - name: Escalation policy\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing catalog relation by its ID. Get the ID via [List catalog relations](https://betterstack.com/docs/uptime/api/list-all-catalog-relations/).\n\n```sh\n$ pulumi import betterstack:index/catalogRelation:CatalogRelation example 12345\n```\n\n", "properties": { "attributes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CatalogRelationAttribute:CatalogRelationAttribute" }, "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e out of an update to keep the attributes as they are. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, so a reorder or a move updates it in place. An item that matches none keeps the id of the existing item at its position when no other item took that one, so a rename updates it in place too.\n" }, "description": { "type": "string", "description": "What this catalog relation describes.\n" }, "matchMode": { "type": "string", "description": "How an incident is matched to a record when the relation has several primary attributes. Defaults to 'any'. 'any': Matches a record when any primary attribute matches. 'all': Matches a record when every primary attribute matches.\n" }, "name": { "type": "string", "description": "Catalog relation name.\n" }, "organizationId": { "type": "string", "description": "Organization that owns this catalog relation, such as '123'. Defaults to the token's own organization. Required when you sign in with OAuth and can access more than one organization. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "recordsCount": { "type": "integer", "description": "Number of catalog records in this catalog relation.\n" } }, "required": [ "attributes", "matchMode", "name", "organizationId", "recordsCount" ], "inputProperties": { "attributes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CatalogRelationAttribute:CatalogRelationAttribute" }, "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e out of an update to keep the attributes as they are. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, so a reorder or a move updates it in place. An item that matches none keeps the id of the existing item at its position when no other item took that one, so a rename updates it in place too.\n" }, "description": { "type": "string", "description": "What this catalog relation describes.\n" }, "matchMode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/catalogRelationMatchMode:CatalogRelationMatchMode" } ], "description": "How an incident is matched to a record when the relation has several primary attributes. Defaults to 'any'. 'any': Matches a record when any primary attribute matches. 'all': Matches a record when every primary attribute matches.\n" }, "name": { "type": "string", "description": "Catalog relation name.\n" }, "organizationId": { "type": "string", "description": "Organization that owns this catalog relation, such as '123'. Defaults to the token's own organization. Required when you sign in with OAuth and can access more than one organization. Better Stack never returns it, so Pulumi keeps the value you set.\n" } }, "requiredInputs": [ "attributes", "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering CatalogRelation resources.\n", "properties": { "attributes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CatalogRelationAttribute:CatalogRelationAttribute" }, "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e out of an update to keep the attributes as they are. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, so a reorder or a move updates it in place. An item that matches none keeps the id of the existing item at its position when no other item took that one, so a rename updates it in place too.\n" }, "description": { "type": "string", "description": "What this catalog relation describes.\n" }, "matchMode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/catalogRelationMatchMode:CatalogRelationMatchMode" } ], "description": "How an incident is matched to a record when the relation has several primary attributes. Defaults to 'any'. 'any': Matches a record when any primary attribute matches. 'all': Matches a record when every primary attribute matches.\n" }, "name": { "type": "string", "description": "Catalog relation name.\n" }, "organizationId": { "type": "string", "description": "Organization that owns this catalog relation, such as '123'. Defaults to the token's own organization. Required when you sign in with OAuth and can access more than one organization. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "recordsCount": { "type": "integer", "description": "Number of catalog records in this catalog relation.\n" } }, "type": "object" } }, "betterstack:index/certificate:Certificate": { "description": "A TLS certificate for the 'https' services of your load balancers. You either upload the certificate, or we issue and renew it with Let's Encrypt. A certificate works in every availability zone.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Certificate(\"example\", {\n teamId: \"t123\",\n name: \"example\",\n certificateType: betterstack.CertificateType.Managed,\n domainNames: [\"example.com\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Certificate(\"example\",\n team_id=\"t123\",\n name=\"example\",\n certificate_type=betterstack.CertificateType.MANAGED,\n domain_names=[\"example.com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Certificate(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"example\",\n CertificateType = BetterStack.CertificateType.Managed,\n DomainNames = new[]\n {\n \"example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewCertificate(ctx, \"example\", \u0026betterstack.CertificateArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tCertificateType: pulumi.String(betterstack.CertificateTypeManaged),\n\t\t\tDomainNames: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"example.com\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_certificate\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"example\"\n certificate_type = \"managed\"\n domain_names = [\"example.com\"]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Certificate;\nimport com.betterstack.pulumi.CertificateArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Certificate(\"example\", CertificateArgs.builder()\n .teamId(\"t123\")\n .name(\"example\")\n .certificateType(\"managed\")\n .domainNames(\"example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Certificate\n properties:\n teamId: t123\n name: example\n certificateType: managed\n domainNames:\n - example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing certificate by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/certificate:Certificate example 12345\n```\n\n", "properties": { "certificate": { "type": "string", "description": "The certificate chain in PEM format, with the certificate first. An uploaded certificate requires it. A managed certificate has none until we issue it.\n", "language": { "csharp": { "name": "CertificateValue" } } }, "certificateType": { "type": "string", "description": "Whether you upload the certificate or we issue it. Defaults to 'uploaded'. 'uploaded': You upload the certificate. Send \u003cspan pulumi-lang-nodejs=\"`certificate`\" pulumi-lang-dotnet=\"`Certificate`\" pulumi-lang-go=\"`certificate`\" pulumi-lang-python=\"`certificate`\" pulumi-lang-yaml=\"`certificate`\" pulumi-lang-java=\"`certificate`\" pulumi-lang-hcl=\"`certificate`\"\u003e`certificate`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`privateKey`\" pulumi-lang-dotnet=\"`PrivateKey`\" pulumi-lang-go=\"`privateKey`\" pulumi-lang-python=\"`private_key`\" pulumi-lang-yaml=\"`privateKey`\" pulumi-lang-java=\"`privateKey`\" pulumi-lang-hcl=\"`private_key`\"\u003e`privateKey`\u003c/span\u003e. 'managed': We issue and renew the certificate with Let's Encrypt. Send \u003cspan pulumi-lang-nodejs=\"`domainNames`\" pulumi-lang-dotnet=\"`DomainNames`\" pulumi-lang-go=\"`domainNames`\" pulumi-lang-python=\"`domain_names`\" pulumi-lang-yaml=\"`domainNames`\" pulumi-lang-java=\"`domainNames`\" pulumi-lang-hcl=\"`domain_names`\"\u003e`domainNames`\u003c/span\u003e.\n" }, "createdAt": { "type": "string", "description": "When the certificate was created.\n" }, "domainNames": { "type": "array", "items": { "type": "string" }, "description": "The domains the certificate covers, from 1 to 100. A managed certificate requires them and can't use wildcard domains. An uploaded certificate gets its domains from the certificate itself.\n" }, "fingerprint": { "type": "string", "description": "The certificate's SHA-256 fingerprint.\n" }, "lastIssuedAt": { "type": "string", "description": "When we last issued or renewed a managed certificate. Always null for an uploaded certificate.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The certificate's name.\n" }, "notValidAfter": { "type": "string", "description": "When the certificate expires.\n" }, "notValidBefore": { "type": "string", "description": "When the certificate becomes valid.\n" }, "privateKey": { "type": "string", "description": "The certificate's private key in PEM format, without a passphrase. An uploaded certificate requires a private key. The key isn't returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "status": { "type": "string", "description": "Whether the certificate is ready. 'pending': We haven't issued the certificate yet. 'issued': The certificate is ready. An uploaded certificate starts in this state. 'failed': We couldn't issue the certificate. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why, and we try again every day.\n" }, "statusMessage": { "type": "string", "description": "Why the certificate isn't issued yet, or why issuing it failed.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the certificate. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the certificate was last changed.\n" } }, "required": [ "certificateType", "createdAt", "domainNames", "fingerprint", "lastIssuedAt", "metadata", "name", "notValidAfter", "notValidBefore", "privateKey", "status", "statusMessage", "teamId", "updatedAt" ], "inputProperties": { "certificate": { "type": "string", "description": "The certificate chain in PEM format, with the certificate first. An uploaded certificate requires it. A managed certificate has none until we issue it.\n", "language": { "csharp": { "name": "CertificateValue" } } }, "certificateType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/certificateType:CertificateType" } ], "description": "Whether you upload the certificate or we issue it. Defaults to 'uploaded'. 'uploaded': You upload the certificate. Send \u003cspan pulumi-lang-nodejs=\"`certificate`\" pulumi-lang-dotnet=\"`Certificate`\" pulumi-lang-go=\"`certificate`\" pulumi-lang-python=\"`certificate`\" pulumi-lang-yaml=\"`certificate`\" pulumi-lang-java=\"`certificate`\" pulumi-lang-hcl=\"`certificate`\"\u003e`certificate`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`privateKey`\" pulumi-lang-dotnet=\"`PrivateKey`\" pulumi-lang-go=\"`privateKey`\" pulumi-lang-python=\"`private_key`\" pulumi-lang-yaml=\"`privateKey`\" pulumi-lang-java=\"`privateKey`\" pulumi-lang-hcl=\"`private_key`\"\u003e`privateKey`\u003c/span\u003e. 'managed': We issue and renew the certificate with Let's Encrypt. Send \u003cspan pulumi-lang-nodejs=\"`domainNames`\" pulumi-lang-dotnet=\"`DomainNames`\" pulumi-lang-go=\"`domainNames`\" pulumi-lang-python=\"`domain_names`\" pulumi-lang-yaml=\"`domainNames`\" pulumi-lang-java=\"`domainNames`\" pulumi-lang-hcl=\"`domain_names`\"\u003e`domainNames`\u003c/span\u003e.\n" }, "domainNames": { "type": "array", "items": { "type": "string" }, "description": "The domains the certificate covers, from 1 to 100. A managed certificate requires them and can't use wildcard domains. An uploaded certificate gets its domains from the certificate itself.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The certificate's name.\n" }, "privateKey": { "type": "string", "description": "The certificate's private key in PEM format, without a passphrase. An uploaded certificate requires a private key. The key isn't returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "teamId": { "type": "string", "description": "The ID of the team that owns the certificate. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" } }, "requiredInputs": [ "name", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering Certificate resources.\n", "properties": { "certificate": { "type": "string", "description": "The certificate chain in PEM format, with the certificate first. An uploaded certificate requires it. A managed certificate has none until we issue it.\n", "language": { "csharp": { "name": "CertificateValue" } } }, "certificateType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/certificateType:CertificateType" } ], "description": "Whether you upload the certificate or we issue it. Defaults to 'uploaded'. 'uploaded': You upload the certificate. Send \u003cspan pulumi-lang-nodejs=\"`certificate`\" pulumi-lang-dotnet=\"`Certificate`\" pulumi-lang-go=\"`certificate`\" pulumi-lang-python=\"`certificate`\" pulumi-lang-yaml=\"`certificate`\" pulumi-lang-java=\"`certificate`\" pulumi-lang-hcl=\"`certificate`\"\u003e`certificate`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`privateKey`\" pulumi-lang-dotnet=\"`PrivateKey`\" pulumi-lang-go=\"`privateKey`\" pulumi-lang-python=\"`private_key`\" pulumi-lang-yaml=\"`privateKey`\" pulumi-lang-java=\"`privateKey`\" pulumi-lang-hcl=\"`private_key`\"\u003e`privateKey`\u003c/span\u003e. 'managed': We issue and renew the certificate with Let's Encrypt. Send \u003cspan pulumi-lang-nodejs=\"`domainNames`\" pulumi-lang-dotnet=\"`DomainNames`\" pulumi-lang-go=\"`domainNames`\" pulumi-lang-python=\"`domain_names`\" pulumi-lang-yaml=\"`domainNames`\" pulumi-lang-java=\"`domainNames`\" pulumi-lang-hcl=\"`domain_names`\"\u003e`domainNames`\u003c/span\u003e.\n" }, "createdAt": { "type": "string", "description": "When the certificate was created.\n" }, "domainNames": { "type": "array", "items": { "type": "string" }, "description": "The domains the certificate covers, from 1 to 100. A managed certificate requires them and can't use wildcard domains. An uploaded certificate gets its domains from the certificate itself.\n" }, "fingerprint": { "type": "string", "description": "The certificate's SHA-256 fingerprint.\n" }, "lastIssuedAt": { "type": "string", "description": "When we last issued or renewed a managed certificate. Always null for an uploaded certificate.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The certificate's name.\n" }, "notValidAfter": { "type": "string", "description": "When the certificate expires.\n" }, "notValidBefore": { "type": "string", "description": "When the certificate becomes valid.\n" }, "privateKey": { "type": "string", "description": "The certificate's private key in PEM format, without a passphrase. An uploaded certificate requires a private key. The key isn't returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "status": { "type": "string", "description": "Whether the certificate is ready. 'pending': We haven't issued the certificate yet. 'issued': The certificate is ready. An uploaded certificate starts in this state. 'failed': We couldn't issue the certificate. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why, and we try again every day.\n" }, "statusMessage": { "type": "string", "description": "Why the certificate isn't issued yet, or why issuing it failed.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the certificate. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the certificate was last changed.\n" } }, "type": "object" } }, "betterstack:index/clickHouse:ClickHouse": { "description": "A managed ClickHouse instance, an analytical database for large amounts of data.\n\n\u003e Destroying a ClickHouse instance deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ClickHouse(\"example\", {\n name: \"example\",\n type: \"CH1\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ClickHouse(\"example\",\n name=\"example\",\n type=\"CH1\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ClickHouse(\"example\", new()\n {\n Name = \"example\",\n Type = \"CH1\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewClickHouse(ctx, \"example\", \u0026betterstack.ClickHouseArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"CH1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_click_house\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"CH1\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ClickHouse;\nimport com.betterstack.pulumi.ClickHouseArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ClickHouse(\"example\", ClickHouseArgs.builder()\n .name(\"example\")\n .type(\"CH1\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ClickHouse\n properties:\n name: example\n type: CH1\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e An instance runs on one node, with no replicas and no failover. Snapshots are how you recover lost data. You create databases and users with SQL, as the 'admin' user.\n\n## Import\n\nImport an existing ClickHouse instance by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/clickHouse:ClickHouse example 12345\n```\n\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the instance to now. The next LTS version shows up here once we offer it.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this clickhouse is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/ClickHouseEndpoint:ClickHouseEndpoint", "description": "Where to connect to the instance.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact ClickHouse version the instance runs, or null until the instance's first upgrade.\n" }, "engineVersion": { "type": "string", "description": "The ClickHouse LTS version, such as `26.8`. Get the versions via [List ClickHouse versions](https://betterstack.com/docs/cloud/api/clickhouse-versions/list-clickhouse-versions/). Defaults to the latest version.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to the instance. An instance can have at most one firewall.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was created, or null when the instance has no snapshot.\n" }, "maxConcurrentQueries": { "type": "integer", "description": "The most queries the type runs at the same time. A query over this limit fails at once.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ClickHouseMember:ClickHouseMember" }, "description": "The node that runs the instance. An instance has one.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's ClickHouse instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the instance. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the instance accepts connections on a public IP. The TLS ports '9440' and '8443' are public. The ports without TLS stay on private networks. Defaults to false.\n" }, "status": { "type": "string", "description": "The instance's state. 'provisioning': We're creating the instance. 'running': The instance is ready. 'degraded': The instance works, but needs attention. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'rescaling': We're changing the type. When the change doesn't complete, the instance returns to 'running' with a \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e. 'upgrading': We're upgrading the ClickHouse version. The upgrade is done when the instance is 'running' on the new \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e. When the instance is 'running' on the old version with a \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e, the upgrade failed. 'restoring': We're restoring a snapshot onto the instance. The instance is 'running' again once ClickHouse responds to queries. 'failed': The instance couldn't be created or recovered. A failed instance stays in this state. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "Why the instance failed or is degraded, or why an operation didn't complete.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "timezone": { "type": "string", "description": "The default time zone for date and time functions, `UTC` or an IANA name such as `Europe/Prague`. A change applies to connections opened after it. Defaults to `UTC`.\n" }, "type": { "type": "string", "description": "The instance's type, such as `CH2`. Get the types via [List ClickHouse types](https://betterstack.com/docs/cloud/api/clickhouse-types/list-clickhouse-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last updated.\n" }, "usableDiskGb": { "type": "integer", "description": "Storage for your data, in GiB.\n" } }, "required": [ "availableEngineVersions", "createdAt", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "latestSnapshotAt", "maxConcurrentQueries", "members", "metadata", "name", "networkIds", "publicAccess", "status", "statusMessage", "teamId", "term", "timezone", "type", "updatedAt", "usableDiskGb" ], "inputProperties": { "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this clickhouse is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "engineVersion": { "type": "string", "description": "The ClickHouse LTS version, such as `26.8`. Get the versions via [List ClickHouse versions](https://betterstack.com/docs/cloud/api/clickhouse-versions/list-clickhouse-versions/). Defaults to the latest version.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to the instance. An instance can have at most one firewall.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's ClickHouse instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the instance. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the instance accepts connections on a public IP. The TLS ports '9440' and '8443' are public. The ports without TLS stay on private networks. Defaults to false.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/clickHouseTerm:ClickHouseTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "timezone": { "type": "string", "description": "The default time zone for date and time functions, `UTC` or an IANA name such as `Europe/Prague`. A change applies to connections opened after it. Defaults to `UTC`.\n" }, "type": { "type": "string", "description": "The instance's type, such as `CH2`. Get the types via [List ClickHouse types](https://betterstack.com/docs/cloud/api/clickhouse-types/list-clickhouse-types/).\n" } }, "requiredInputs": [ "name", "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering ClickHouse resources.\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the instance to now. The next LTS version shows up here once we offer it.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this clickhouse is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/ClickHouseEndpoint:ClickHouseEndpoint", "description": "Where to connect to the instance.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact ClickHouse version the instance runs, or null until the instance's first upgrade.\n" }, "engineVersion": { "type": "string", "description": "The ClickHouse LTS version, such as `26.8`. Get the versions via [List ClickHouse versions](https://betterstack.com/docs/cloud/api/clickhouse-versions/list-clickhouse-versions/). Defaults to the latest version.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to the instance. An instance can have at most one firewall.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was created, or null when the instance has no snapshot.\n" }, "maxConcurrentQueries": { "type": "integer", "description": "The most queries the type runs at the same time. A query over this limit fails at once.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ClickHouseMember:ClickHouseMember" }, "description": "The node that runs the instance. An instance has one.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's ClickHouse instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the instance. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the instance accepts connections on a public IP. The TLS ports '9440' and '8443' are public. The ports without TLS stay on private networks. Defaults to false.\n" }, "status": { "type": "string", "description": "The instance's state. 'provisioning': We're creating the instance. 'running': The instance is ready. 'degraded': The instance works, but needs attention. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'rescaling': We're changing the type. When the change doesn't complete, the instance returns to 'running' with a \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e. 'upgrading': We're upgrading the ClickHouse version. The upgrade is done when the instance is 'running' on the new \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e. When the instance is 'running' on the old version with a \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e, the upgrade failed. 'restoring': We're restoring a snapshot onto the instance. The instance is 'running' again once ClickHouse responds to queries. 'failed': The instance couldn't be created or recovered. A failed instance stays in this state. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "Why the instance failed or is degraded, or why an operation didn't complete.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/clickHouseTerm:ClickHouseTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "timezone": { "type": "string", "description": "The default time zone for date and time functions, `UTC` or an IANA name such as `Europe/Prague`. A change applies to connections opened after it. Defaults to `UTC`.\n" }, "type": { "type": "string", "description": "The instance's type, such as `CH2`. Get the types via [List ClickHouse types](https://betterstack.com/docs/cloud/api/clickhouse-types/list-clickhouse-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last updated.\n" }, "usableDiskGb": { "type": "integer", "description": "Storage for your data, in GiB.\n" } }, "type": "object" } }, "betterstack:index/clickHouseScheduledSnapshot:ClickHouseScheduledSnapshot": { "description": "A schedule that creates snapshots of a ClickHouse instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ClickHouse(\"example\", {\n name: \"example\",\n type: \"CH1\",\n teamId: \"t123\",\n});\nconst exampleClickHouseScheduledSnapshot = new betterstack.ClickHouseScheduledSnapshot(\"example\", {\n clickhouseId: example.id,\n frequency: betterstack.ClickHouseScheduledSnapshotFrequency.Hourly,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ClickHouse(\"example\",\n name=\"example\",\n type=\"CH1\",\n team_id=\"t123\")\nexample_click_house_scheduled_snapshot = betterstack.ClickHouseScheduledSnapshot(\"example\",\n clickhouse_id=example.id,\n frequency=betterstack.ClickHouseScheduledSnapshotFrequency.HOURLY)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ClickHouse(\"example\", new()\n {\n Name = \"example\",\n Type = \"CH1\",\n TeamId = \"t123\",\n });\n\n var exampleClickHouseScheduledSnapshot = new BetterStack.ClickHouseScheduledSnapshot(\"example\", new()\n {\n ClickhouseId = example.Id,\n Frequency = BetterStack.ClickHouseScheduledSnapshotFrequency.Hourly,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewClickHouse(ctx, \"example\", \u0026betterstack.ClickHouseArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"CH1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewClickHouseScheduledSnapshot(ctx, \"example\", \u0026betterstack.ClickHouseScheduledSnapshotArgs{\n\t\t\tClickhouseId: example.ID(),\n\t\t\tFrequency: pulumi.String(betterstack.ClickHouseScheduledSnapshotFrequencyHourly),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_click_house\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"CH1\"\n team_id = \"t123\"\n}\nresource \"betterstack_click_house_scheduled_snapshot\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n clickhouse_id = betterstack_click_house.example.id\n frequency = \"hourly\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ClickHouse;\nimport com.betterstack.pulumi.ClickHouseArgs;\nimport com.betterstack.pulumi.ClickHouseScheduledSnapshot;\nimport com.betterstack.pulumi.ClickHouseScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ClickHouse(\"example\", ClickHouseArgs.builder()\n .name(\"example\")\n .type(\"CH1\")\n .teamId(\"t123\")\n .build());\n\n var exampleClickHouseScheduledSnapshot = new ClickHouseScheduledSnapshot(\"exampleClickHouseScheduledSnapshot\", ClickHouseScheduledSnapshotArgs.builder()\n .clickhouseId(example.id())\n .frequency(\"hourly\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ClickHouse\n properties:\n name: example\n type: CH1\n teamId: t123\n exampleClickHouseScheduledSnapshot:\n type: betterstack:ClickHouseScheduledSnapshot\n name: example\n properties:\n clickhouseId: ${example.id}\n frequency: hourly\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing ClickHouse scheduled snapshot by its ID as `clickhouse_id/id`.\n\n```sh\n$ pulumi import betterstack:index/clickHouseScheduledSnapshot:ClickHouseScheduledSnapshot example \u003cclickhouse_id\u003e/12345\n```\n\n", "properties": { "clickhouseId": { "type": "string", "description": "The ID of the ClickHouse instance the schedule belongs to. Changing it replaces the resource.\n" }, "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the first one.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "required": [ "clickhouseId", "createdAt", "frequency", "lastRunAt", "serverId", "updatedAt" ], "inputProperties": { "clickhouseId": { "type": "string", "description": "The ID of the ClickHouse instance the schedule belongs to. Changing it replaces the resource.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/clickHouseScheduledSnapshotFrequency:ClickHouseScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" } }, "requiredInputs": [ "clickhouseId", "frequency" ], "stateInputs": { "description": "Input properties used for looking up and filtering ClickHouseScheduledSnapshot resources.\n", "properties": { "clickhouseId": { "type": "string", "description": "The ID of the ClickHouse instance the schedule belongs to. Changing it replaces the resource.\n" }, "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/clickHouseScheduledSnapshotFrequency:ClickHouseScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the first one.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "type": "object" } }, "betterstack:index/collector:Collector": { "description": "A Better Stack Collector agent that ingests logs, metrics, and traces from a host or cluster.\n\n\u003e Destroying a collector deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Kubernetes with configuration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst kubernetesWithConfiguration = new betterstack.Collector(\"kubernetes_with_configuration\", {\n name: \"Configured K8s Collector\",\n platform: betterstack.CollectorPlatform.Kubernetes,\n configuration: {\n components: {\n ebpfMetrics: true,\n logsKubernetes: true,\n metricsCluster: false,\n },\n whenFull: \"block\",\n logLineLengthLimitKb: 64,\n },\n collectorLogsTransformation: \"del(.password)\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nkubernetes_with_configuration = betterstack.Collector(\"kubernetes_with_configuration\",\n name=\"Configured K8s Collector\",\n platform=betterstack.CollectorPlatform.KUBERNETES,\n configuration={\n \"components\": {\n \"ebpf_metrics\": True,\n \"logs_kubernetes\": True,\n \"metrics_cluster\": False,\n },\n \"when_full\": \"block\",\n \"log_line_length_limit_kb\": 64,\n },\n collector_logs_transformation=\"del(.password)\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var kubernetesWithConfiguration = new BetterStack.Collector(\"kubernetes_with_configuration\", new()\n {\n Name = \"Configured K8s Collector\",\n Platform = BetterStack.CollectorPlatform.Kubernetes,\n Configuration = new BetterStack.Inputs.CollectorConfigurationArgs\n {\n Components = new BetterStack.Inputs.CollectorConfigurationComponentsArgs\n {\n EbpfMetrics = true,\n LogsKubernetes = true,\n MetricsCluster = false,\n },\n WhenFull = \"block\",\n LogLineLengthLimitKb = 64,\n },\n CollectorLogsTransformation = \"del(.password)\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewCollector(ctx, \"kubernetes_with_configuration\", \u0026betterstack.CollectorArgs{\n\t\t\tName: pulumi.String(\"Configured K8s Collector\"),\n\t\t\tPlatform: pulumi.String(betterstack.CollectorPlatformKubernetes),\n\t\t\tConfiguration: \u0026betterstack.CollectorConfigurationArgs{\n\t\t\t\tComponents: \u0026betterstack.CollectorConfigurationComponentsArgs{\n\t\t\t\t\tEbpfMetrics: pulumi.Bool(true),\n\t\t\t\t\tLogsKubernetes: pulumi.Bool(true),\n\t\t\t\t\tMetricsCluster: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t\tWhenFull: pulumi.String(\"block\"),\n\t\t\t\tLogLineLengthLimitKb: pulumi.Int(64),\n\t\t\t},\n\t\t\tCollectorLogsTransformation: pulumi.String(\"del(.password)\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_collector\" \"kubernetes_with_configuration\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Configured K8s Collector\"\n platform = \"kubernetes\"\n configuration = {\n components = {\n ebpf_metrics = true\n logs_kubernetes = true\n metrics_cluster = false\n }\n when_full = \"block\"\n log_line_length_limit_kb = 64\n }\n collector_logs_transformation = \"del(.password)\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Collector;\nimport com.betterstack.pulumi.CollectorArgs;\nimport com.betterstack.pulumi.inputs.CollectorConfigurationArgs;\nimport com.betterstack.pulumi.inputs.CollectorConfigurationComponentsArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var kubernetesWithConfiguration = new Collector(\"kubernetesWithConfiguration\", CollectorArgs.builder()\n .name(\"Configured K8s Collector\")\n .platform(\"kubernetes\")\n .configuration(CollectorConfigurationArgs.builder()\n .components(CollectorConfigurationComponentsArgs.builder()\n .ebpfMetrics(true)\n .logsKubernetes(true)\n .metricsCluster(false)\n .build())\n .whenFull(\"block\")\n .logLineLengthLimitKb(64)\n .build())\n .collectorLogsTransformation(\"del(.password)\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n kubernetesWithConfiguration:\n type: betterstack:Collector\n name: kubernetes_with_configuration\n properties:\n name: Configured K8s Collector\n platform: kubernetes\n configuration:\n components:\n ebpfMetrics: true\n logsKubernetes: true\n metricsCluster: false\n whenFull: block\n logLineLengthLimitKb: 64\n collectorLogsTransformation: del(.password)\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Docker\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst docker = new betterstack.Collector(\"docker\", {\n name: \"My Docker Collector\",\n platform: betterstack.CollectorPlatform.Docker,\n note: \"For staging environment services.\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ndocker = betterstack.Collector(\"docker\",\n name=\"My Docker Collector\",\n platform=betterstack.CollectorPlatform.DOCKER,\n note=\"For staging environment services.\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var docker = new BetterStack.Collector(\"docker\", new()\n {\n Name = \"My Docker Collector\",\n Platform = BetterStack.CollectorPlatform.Docker,\n Note = \"For staging environment services.\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewCollector(ctx, \"docker\", \u0026betterstack.CollectorArgs{\n\t\t\tName: pulumi.String(\"My Docker Collector\"),\n\t\t\tPlatform: pulumi.String(betterstack.CollectorPlatformDocker),\n\t\t\tNote: pulumi.String(\"For staging environment services.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_collector\" \"docker\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"My Docker Collector\"\n platform = \"docker\"\n note = \"For staging environment services.\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Collector;\nimport com.betterstack.pulumi.CollectorArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var docker = new Collector(\"docker\", CollectorArgs.builder()\n .name(\"My Docker Collector\")\n .platform(\"docker\")\n .note(\"For staging environment services.\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n docker:\n type: betterstack:Collector\n properties:\n name: My Docker Collector\n platform: docker\n note: For staging environment services.\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### In a source group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SourceGroup(\"example\", {name: \"Backend sources\"});\nconst inSourceGroup = new betterstack.Collector(\"in_source_group\", {\n name: \"Configured K8s Collector\",\n platform: betterstack.CollectorPlatform.Kubernetes,\n configuration: {\n components: {\n ebpfMetrics: true,\n logsKubernetes: true,\n metricsCluster: false,\n },\n whenFull: \"block\",\n logLineLengthLimitKb: 64,\n },\n collectorLogsTransformation: \"del(.password)\",\n sourceGroupId: example.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SourceGroup(\"example\", name=\"Backend sources\")\nin_source_group = betterstack.Collector(\"in_source_group\",\n name=\"Configured K8s Collector\",\n platform=betterstack.CollectorPlatform.KUBERNETES,\n configuration={\n \"components\": {\n \"ebpf_metrics\": True,\n \"logs_kubernetes\": True,\n \"metrics_cluster\": False,\n },\n \"when_full\": \"block\",\n \"log_line_length_limit_kb\": 64,\n },\n collector_logs_transformation=\"del(.password)\",\n source_group_id=example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SourceGroup(\"example\", new()\n {\n Name = \"Backend sources\",\n });\n\n var inSourceGroup = new BetterStack.Collector(\"in_source_group\", new()\n {\n Name = \"Configured K8s Collector\",\n Platform = BetterStack.CollectorPlatform.Kubernetes,\n Configuration = new BetterStack.Inputs.CollectorConfigurationArgs\n {\n Components = new BetterStack.Inputs.CollectorConfigurationComponentsArgs\n {\n EbpfMetrics = true,\n LogsKubernetes = true,\n MetricsCluster = false,\n },\n WhenFull = \"block\",\n LogLineLengthLimitKb = 64,\n },\n CollectorLogsTransformation = \"del(.password)\",\n SourceGroupId = example.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewSourceGroup(ctx, \"example\", \u0026betterstack.SourceGroupArgs{\n\t\t\tName: pulumi.String(\"Backend sources\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewCollector(ctx, \"in_source_group\", \u0026betterstack.CollectorArgs{\n\t\t\tName: pulumi.String(\"Configured K8s Collector\"),\n\t\t\tPlatform: pulumi.String(betterstack.CollectorPlatformKubernetes),\n\t\t\tConfiguration: \u0026betterstack.CollectorConfigurationArgs{\n\t\t\t\tComponents: \u0026betterstack.CollectorConfigurationComponentsArgs{\n\t\t\t\t\tEbpfMetrics: pulumi.Bool(true),\n\t\t\t\t\tLogsKubernetes: pulumi.Bool(true),\n\t\t\t\t\tMetricsCluster: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t\tWhenFull: pulumi.String(\"block\"),\n\t\t\t\tLogLineLengthLimitKb: pulumi.Int(64),\n\t\t\t},\n\t\t\tCollectorLogsTransformation: pulumi.String(\"del(.password)\"),\n\t\t\tSourceGroupId: example.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend sources\"\n}\nresource \"betterstack_collector\" \"in_source_group\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Configured K8s Collector\"\n platform = \"kubernetes\"\n configuration = {\n components = {\n ebpf_metrics = true\n logs_kubernetes = true\n metrics_cluster = false\n }\n when_full = \"block\"\n log_line_length_limit_kb = 64\n }\n collector_logs_transformation = \"del(.password)\"\n source_group_id = betterstack_source_group.example.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SourceGroup;\nimport com.betterstack.pulumi.SourceGroupArgs;\nimport com.betterstack.pulumi.Collector;\nimport com.betterstack.pulumi.CollectorArgs;\nimport com.betterstack.pulumi.inputs.CollectorConfigurationArgs;\nimport com.betterstack.pulumi.inputs.CollectorConfigurationComponentsArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SourceGroup(\"example\", SourceGroupArgs.builder()\n .name(\"Backend sources\")\n .build());\n\n var inSourceGroup = new Collector(\"inSourceGroup\", CollectorArgs.builder()\n .name(\"Configured K8s Collector\")\n .platform(\"kubernetes\")\n .configuration(CollectorConfigurationArgs.builder()\n .components(CollectorConfigurationComponentsArgs.builder()\n .ebpfMetrics(true)\n .logsKubernetes(true)\n .metricsCluster(false)\n .build())\n .whenFull(\"block\")\n .logLineLengthLimitKb(64)\n .build())\n .collectorLogsTransformation(\"del(.password)\")\n .sourceGroupId(example.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SourceGroup\n properties:\n name: Backend sources\n inSourceGroup:\n type: betterstack:Collector\n name: in_source_group\n properties:\n name: Configured K8s Collector\n platform: kubernetes\n configuration:\n components:\n ebpfMetrics: true\n logsKubernetes: true\n metricsCluster: false\n whenFull: block\n logLineLengthLimitKb: 64\n collectorLogsTransformation: del(.password)\n sourceGroupId: ${example.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e A failed validation returns 'errors' as a list of messages, next to 'invalid_attributes'.\n\n## Import\n\nImport an existing collector by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/collector:Collector example 12345\n```\n\n", "properties": { "blockedMetrics": { "type": "array", "items": { "type": "string" }, "description": "Metric names marked as spam, which are dropped when they're ingested. Read more about [marking metrics as spam](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/mark-metrics-as-spam/). Defaults to `[]`.\n" }, "collectorLogsTransformation": { "type": "string", "description": "VRL program the collector runs on each log line on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "collectorMetricsTransformation": { "type": "string", "description": "VRL program the collector runs on each metric on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "collectorTracesTransformation": { "type": "string", "description": "VRL program the collector runs on each span on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "configuration": { "$ref": "#/types/betterstack:index/CollectorConfiguration:CollectorConfiguration", "description": "The collector's components, sampling rates, batching and buffering. An update changes only the components you send.\n" }, "connectedSourceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the sources connected to the collector's source, so you can correlate their logs and traces. Connections go both ways. The collector's source is connected to each listed source and to every source those are already connected to. Sending a list adds connections without removing any. Send `[]` to disconnect the collector's source from all of them.\n" }, "createdAt": { "type": "string", "description": "When the collector was created.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/CollectorCustomBucket:CollectorCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the collector uses Better Stack storage. Read more about [hosting data in your own bucket](https://betterstack.com/docs/logs/host-data-in-your-own-bucket/). Set it on create. To rotate the key pair, update only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/logs/api/data-regions/). Can't be changed after the collector is created. Defaults to the organization's default data region.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this collector is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this collector. Defaults to false.\n" }, "ingestionLogsTransformation": { "type": "string", "description": "VRL program Better Stack runs on each log line from the collector as it's ingested. Remove the argument to clear it.\n" }, "ingestionTracesTransformation": { "type": "string", "description": "VRL program Better Stack runs on each span from the collector as it's ingested. Remove the argument to clear it.\n" }, "installationGuideUrl": { "type": "string", "description": "Link to the installation guide for the collector's platform, with the install command that uses its \u003cspan pulumi-lang-nodejs=\"`secret`\" pulumi-lang-dotnet=\"`Secret`\" pulumi-lang-go=\"`secret`\" pulumi-lang-python=\"`secret`\" pulumi-lang-yaml=\"`secret`\" pulumi-lang-java=\"`secret`\" pulumi-lang-hcl=\"`secret`\"\u003e`secret`\u003c/span\u003e.\n" }, "liveTailPattern": { "type": "string", "description": "The pattern Live tail shows each log line with. Columns are wrapped in braces, such as `PID: {message_json.pid} {level} {message}`. null when the collector's source doesn't receive logs. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the collector's source doesn't receive logs.\n" }, "liveTailPatternSpans": { "type": "string", "description": "The pattern Live tail shows each span with. Columns are wrapped in braces, such as `{span.name} {duration}`. null when the collector's source doesn't receive spans. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the collector's source doesn't receive spans.\n" }, "logsRetention": { "type": "integer", "description": "Days logs are kept, one of the retention periods your plan offers.\n" }, "metricsRetention": { "type": "integer", "description": "Days metrics are kept, one of the retention periods your plan offers.\n" }, "name": { "type": "string", "description": "Collector name.\n" }, "note": { "type": "string", "description": "A note about the collector. Remove the argument to clear it.\n" }, "pingedAt": { "type": "string", "description": "When a host of the collector last checked in, or null when no host has checked in yet.\n" }, "platform": { "type": "string", "description": "Where the collector runs. Can't be changed after the collector is created. Valid values: 'docker', 'swarm', 'kubernetes'.\n" }, "secret": { "type": "string", "description": "Secret the deployed collector authenticates with. Returned in every response. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "serviceFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CollectorServiceField:CollectorServiceField" }, "description": "Log fields that break data down by service. Each entry needs a \u003cspan pulumi-lang-nodejs=\"`nameKey`\" pulumi-lang-dotnet=\"`NameKey`\" pulumi-lang-go=\"`nameKey`\" pulumi-lang-python=\"`name_key`\" pulumi-lang-yaml=\"`nameKey`\" pulumi-lang-java=\"`nameKey`\" pulumi-lang-hcl=\"`name_key`\"\u003e`nameKey`\u003c/span\u003e, and \u003cspan pulumi-lang-nodejs=\"`typeKey`\" pulumi-lang-dotnet=\"`TypeKey`\" pulumi-lang-go=\"`typeKey`\" pulumi-lang-python=\"`type_key`\" pulumi-lang-yaml=\"`typeKey`\" pulumi-lang-java=\"`typeKey`\" pulumi-lang-hcl=\"`type_key`\"\u003e`typeKey`\u003c/span\u003e can be null to skip it. The list replaces the existing one, and `[]` removes them all.\n" }, "sourceGroupId": { "type": "string", "description": "Source group the collector's source belongs to, or null when it's in no group. Get the IDs via [List source groups](https://betterstack.com/docs/logs/api/list-all-existing-source-groups/).\n" }, "sourceId": { "type": "string", "description": "ID of the source the collector sends data to.\n" }, "status": { "type": "string", "description": "The collector's status, worked out from its hosts, one of 'pending', 'up', 'degraded', 'unknown', 'partially_up', 'unsupported_version' or 'down'.\n" }, "teamId": { "type": "string", "description": "Team that owns the collector, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the collector.\n" }, "updatedAt": { "type": "string", "description": "When the collector was last updated.\n" }, "userVectorConfig": { "type": "string", "description": "Your own Vector configuration in YAML, merged into the configuration the collector runs with.\n" } }, "required": [ "blockedMetrics", "configuration", "connectedSourceIds", "createdAt", "dataRegion", "deletionProtection", "ingestingPaused", "installationGuideUrl", "liveTailPattern", "liveTailPatternSpans", "logsRetention", "metricsRetention", "name", "pingedAt", "platform", "secret", "serviceFields", "sourceId", "status", "teamId", "teamName", "updatedAt" ], "inputProperties": { "blockedMetrics": { "type": "array", "items": { "type": "string" }, "description": "Metric names marked as spam, which are dropped when they're ingested. Read more about [marking metrics as spam](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/mark-metrics-as-spam/). Defaults to `[]`.\n" }, "collectorLogsTransformation": { "type": "string", "description": "VRL program the collector runs on each log line on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "collectorMetricsTransformation": { "type": "string", "description": "VRL program the collector runs on each metric on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "collectorTracesTransformation": { "type": "string", "description": "VRL program the collector runs on each span on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "configuration": { "$ref": "#/types/betterstack:index/CollectorConfiguration:CollectorConfiguration", "description": "The collector's components, sampling rates, batching and buffering. An update changes only the components you send.\n" }, "connectedSourceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the sources connected to the collector's source, so you can correlate their logs and traces. Connections go both ways. The collector's source is connected to each listed source and to every source those are already connected to. Sending a list adds connections without removing any. Send `[]` to disconnect the collector's source from all of them.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/CollectorCustomBucket:CollectorCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the collector uses Better Stack storage. Read more about [hosting data in your own bucket](https://betterstack.com/docs/logs/host-data-in-your-own-bucket/). Set it on create. To rotate the key pair, update only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/logs/api/data-regions/). Can't be changed after the collector is created. Defaults to the organization's default data region.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this collector is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this collector. Defaults to false.\n" }, "ingestionLogsTransformation": { "type": "string", "description": "VRL program Better Stack runs on each log line from the collector as it's ingested. Remove the argument to clear it.\n" }, "ingestionTracesTransformation": { "type": "string", "description": "VRL program Better Stack runs on each span from the collector as it's ingested. Remove the argument to clear it.\n" }, "liveTailPattern": { "type": "string", "description": "The pattern Live tail shows each log line with. Columns are wrapped in braces, such as `PID: {message_json.pid} {level} {message}`. null when the collector's source doesn't receive logs. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the collector's source doesn't receive logs.\n" }, "liveTailPatternSpans": { "type": "string", "description": "The pattern Live tail shows each span with. Columns are wrapped in braces, such as `{span.name} {duration}`. null when the collector's source doesn't receive spans. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the collector's source doesn't receive spans.\n" }, "logsRetention": { "type": "integer", "description": "Days logs are kept, one of the retention periods your plan offers.\n" }, "metricsRetention": { "type": "integer", "description": "Days metrics are kept, one of the retention periods your plan offers.\n" }, "name": { "type": "string", "description": "Collector name.\n" }, "note": { "type": "string", "description": "A note about the collector. Remove the argument to clear it.\n" }, "platform": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorPlatform:CollectorPlatform" } ], "description": "Where the collector runs. Can't be changed after the collector is created. Valid values: 'docker', 'swarm', 'kubernetes'.\n" }, "serviceFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CollectorServiceField:CollectorServiceField" }, "description": "Log fields that break data down by service. Each entry needs a \u003cspan pulumi-lang-nodejs=\"`nameKey`\" pulumi-lang-dotnet=\"`NameKey`\" pulumi-lang-go=\"`nameKey`\" pulumi-lang-python=\"`name_key`\" pulumi-lang-yaml=\"`nameKey`\" pulumi-lang-java=\"`nameKey`\" pulumi-lang-hcl=\"`name_key`\"\u003e`nameKey`\u003c/span\u003e, and \u003cspan pulumi-lang-nodejs=\"`typeKey`\" pulumi-lang-dotnet=\"`TypeKey`\" pulumi-lang-go=\"`typeKey`\" pulumi-lang-python=\"`type_key`\" pulumi-lang-yaml=\"`typeKey`\" pulumi-lang-java=\"`typeKey`\" pulumi-lang-hcl=\"`type_key`\"\u003e`typeKey`\u003c/span\u003e can be null to skip it. The list replaces the existing one, and `[]` removes them all.\n" }, "sourceGroupId": { "type": "string", "description": "Source group the collector's source belongs to, or null when it's in no group. Get the IDs via [List source groups](https://betterstack.com/docs/logs/api/list-all-existing-source-groups/).\n" }, "teamId": { "type": "string", "description": "Team that owns the collector, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "userVectorConfig": { "type": "string", "description": "Your own Vector configuration in YAML, merged into the configuration the collector runs with.\n" } }, "requiredInputs": [ "name", "platform" ], "stateInputs": { "description": "Input properties used for looking up and filtering Collector resources.\n", "properties": { "blockedMetrics": { "type": "array", "items": { "type": "string" }, "description": "Metric names marked as spam, which are dropped when they're ingested. Read more about [marking metrics as spam](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/mark-metrics-as-spam/). Defaults to `[]`.\n" }, "collectorLogsTransformation": { "type": "string", "description": "VRL program the collector runs on each log line on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "collectorMetricsTransformation": { "type": "string", "description": "VRL program the collector runs on each metric on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "collectorTracesTransformation": { "type": "string", "description": "VRL program the collector runs on each span on your hardware, before sending it to Better Stack. Remove the argument to clear it.\n" }, "configuration": { "$ref": "#/types/betterstack:index/CollectorConfiguration:CollectorConfiguration", "description": "The collector's components, sampling rates, batching and buffering. An update changes only the components you send.\n" }, "connectedSourceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the sources connected to the collector's source, so you can correlate their logs and traces. Connections go both ways. The collector's source is connected to each listed source and to every source those are already connected to. Sending a list adds connections without removing any. Send `[]` to disconnect the collector's source from all of them.\n" }, "createdAt": { "type": "string", "description": "When the collector was created.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/CollectorCustomBucket:CollectorCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the collector uses Better Stack storage. Read more about [hosting data in your own bucket](https://betterstack.com/docs/logs/host-data-in-your-own-bucket/). Set it on create. To rotate the key pair, update only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/logs/api/data-regions/). Can't be changed after the collector is created. Defaults to the organization's default data region.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this collector is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this collector. Defaults to false.\n" }, "ingestionLogsTransformation": { "type": "string", "description": "VRL program Better Stack runs on each log line from the collector as it's ingested. Remove the argument to clear it.\n" }, "ingestionTracesTransformation": { "type": "string", "description": "VRL program Better Stack runs on each span from the collector as it's ingested. Remove the argument to clear it.\n" }, "installationGuideUrl": { "type": "string", "description": "Link to the installation guide for the collector's platform, with the install command that uses its \u003cspan pulumi-lang-nodejs=\"`secret`\" pulumi-lang-dotnet=\"`Secret`\" pulumi-lang-go=\"`secret`\" pulumi-lang-python=\"`secret`\" pulumi-lang-yaml=\"`secret`\" pulumi-lang-java=\"`secret`\" pulumi-lang-hcl=\"`secret`\"\u003e`secret`\u003c/span\u003e.\n" }, "liveTailPattern": { "type": "string", "description": "The pattern Live tail shows each log line with. Columns are wrapped in braces, such as `PID: {message_json.pid} {level} {message}`. null when the collector's source doesn't receive logs. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the collector's source doesn't receive logs.\n" }, "liveTailPatternSpans": { "type": "string", "description": "The pattern Live tail shows each span with. Columns are wrapped in braces, such as `{span.name} {duration}`. null when the collector's source doesn't receive spans. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the collector's source doesn't receive spans.\n" }, "logsRetention": { "type": "integer", "description": "Days logs are kept, one of the retention periods your plan offers.\n" }, "metricsRetention": { "type": "integer", "description": "Days metrics are kept, one of the retention periods your plan offers.\n" }, "name": { "type": "string", "description": "Collector name.\n" }, "note": { "type": "string", "description": "A note about the collector. Remove the argument to clear it.\n" }, "pingedAt": { "type": "string", "description": "When a host of the collector last checked in, or null when no host has checked in yet.\n" }, "platform": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorPlatform:CollectorPlatform" } ], "description": "Where the collector runs. Can't be changed after the collector is created. Valid values: 'docker', 'swarm', 'kubernetes'.\n" }, "secret": { "type": "string", "description": "Secret the deployed collector authenticates with. Returned in every response. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "serviceFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/CollectorServiceField:CollectorServiceField" }, "description": "Log fields that break data down by service. Each entry needs a \u003cspan pulumi-lang-nodejs=\"`nameKey`\" pulumi-lang-dotnet=\"`NameKey`\" pulumi-lang-go=\"`nameKey`\" pulumi-lang-python=\"`name_key`\" pulumi-lang-yaml=\"`nameKey`\" pulumi-lang-java=\"`nameKey`\" pulumi-lang-hcl=\"`name_key`\"\u003e`nameKey`\u003c/span\u003e, and \u003cspan pulumi-lang-nodejs=\"`typeKey`\" pulumi-lang-dotnet=\"`TypeKey`\" pulumi-lang-go=\"`typeKey`\" pulumi-lang-python=\"`type_key`\" pulumi-lang-yaml=\"`typeKey`\" pulumi-lang-java=\"`typeKey`\" pulumi-lang-hcl=\"`type_key`\"\u003e`typeKey`\u003c/span\u003e can be null to skip it. The list replaces the existing one, and `[]` removes them all.\n" }, "sourceGroupId": { "type": "string", "description": "Source group the collector's source belongs to, or null when it's in no group. Get the IDs via [List source groups](https://betterstack.com/docs/logs/api/list-all-existing-source-groups/).\n" }, "sourceId": { "type": "string", "description": "ID of the source the collector sends data to.\n" }, "status": { "type": "string", "description": "The collector's status, worked out from its hosts, one of 'pending', 'up', 'degraded', 'unknown', 'partially_up', 'unsupported_version' or 'down'.\n" }, "teamId": { "type": "string", "description": "Team that owns the collector, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the collector.\n" }, "updatedAt": { "type": "string", "description": "When the collector was last updated.\n" }, "userVectorConfig": { "type": "string", "description": "Your own Vector configuration in YAML, merged into the configuration the collector runs with.\n" } }, "type": "object" } }, "betterstack:index/collectorTarget:CollectorTarget": { "description": "A database or process a collector scrapes for metrics, for example Postgres, nginx, or a Prometheus endpoint.\n\n## Example Usage\n\n### Monitor a PostgreSQL database\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst production = new betterstack.Collector(\"production\", {\n name: \"Production Kubernetes\",\n platform: betterstack.CollectorPlatform.Kubernetes,\n});\nconst postgres = new betterstack.CollectorTarget(\"postgres\", {\n collectorId: production.id,\n kind: betterstack.CollectorTargetKind.Postgres,\n host: \"db.example.com\",\n port: 5432,\n sslMode: betterstack.CollectorTargetSslMode.Require,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nproduction = betterstack.Collector(\"production\",\n name=\"Production Kubernetes\",\n platform=betterstack.CollectorPlatform.KUBERNETES)\npostgres = betterstack.CollectorTarget(\"postgres\",\n collector_id=production.id,\n kind=betterstack.CollectorTargetKind.POSTGRES,\n host=\"db.example.com\",\n port=5432,\n ssl_mode=betterstack.CollectorTargetSslMode.REQUIRE)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var production = new BetterStack.Collector(\"production\", new()\n {\n Name = \"Production Kubernetes\",\n Platform = BetterStack.CollectorPlatform.Kubernetes,\n });\n\n var postgres = new BetterStack.CollectorTarget(\"postgres\", new()\n {\n CollectorId = production.Id,\n Kind = BetterStack.CollectorTargetKind.Postgres,\n Host = \"db.example.com\",\n Port = 5432,\n SslMode = BetterStack.CollectorTargetSslMode.Require,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tproduction, err := betterstack.NewCollector(ctx, \"production\", \u0026betterstack.CollectorArgs{\n\t\t\tName: pulumi.String(\"Production Kubernetes\"),\n\t\t\tPlatform: pulumi.String(betterstack.CollectorPlatformKubernetes),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewCollectorTarget(ctx, \"postgres\", \u0026betterstack.CollectorTargetArgs{\n\t\t\tCollectorId: production.ID(),\n\t\t\tKind: pulumi.String(betterstack.CollectorTargetKindPostgres),\n\t\t\tHost: pulumi.String(\"db.example.com\"),\n\t\t\tPort: pulumi.Int(5432),\n\t\t\tSslMode: pulumi.String(betterstack.CollectorTargetSslModeRequire),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_collector\" \"production\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production Kubernetes\"\n platform = \"kubernetes\"\n}\nresource \"betterstack_collector_target\" \"postgres\" {\n lifecycle {\n create_before_destroy = true\n }\n collector_id = betterstack_collector.production.id\n kind = \"postgres\"\n host = \"db.example.com\"\n port = 5432\n ssl_mode = \"require\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Collector;\nimport com.betterstack.pulumi.CollectorArgs;\nimport com.betterstack.pulumi.CollectorTarget;\nimport com.betterstack.pulumi.CollectorTargetArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var production = new Collector(\"production\", CollectorArgs.builder()\n .name(\"Production Kubernetes\")\n .platform(\"kubernetes\")\n .build());\n\n var postgres = new CollectorTarget(\"postgres\", CollectorTargetArgs.builder()\n .collectorId(production.id())\n .kind(\"postgres\")\n .host(\"db.example.com\")\n .port(5432)\n .sslMode(\"require\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n production:\n type: betterstack:Collector\n properties:\n name: Production Kubernetes\n platform: kubernetes\n postgres:\n type: betterstack:CollectorTarget\n properties:\n collectorId: ${production.id}\n kind: postgres\n host: db.example.com\n port: 5432\n sslMode: require\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Monitor Elasticsearch over HTTPS\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst production = new betterstack.Collector(\"production\", {\n name: \"Production Kubernetes\",\n platform: betterstack.CollectorPlatform.Kubernetes,\n});\nconst elasticsearch = new betterstack.CollectorTarget(\"elasticsearch\", {\n collectorId: production.id,\n kind: betterstack.CollectorTargetKind.Elasticsearch,\n host: \"search.example.com\",\n port: 9200,\n scheme: betterstack.CollectorTargetScheme.Https,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nproduction = betterstack.Collector(\"production\",\n name=\"Production Kubernetes\",\n platform=betterstack.CollectorPlatform.KUBERNETES)\nelasticsearch = betterstack.CollectorTarget(\"elasticsearch\",\n collector_id=production.id,\n kind=betterstack.CollectorTargetKind.ELASTICSEARCH,\n host=\"search.example.com\",\n port=9200,\n scheme=betterstack.CollectorTargetScheme.HTTPS)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var production = new BetterStack.Collector(\"production\", new()\n {\n Name = \"Production Kubernetes\",\n Platform = BetterStack.CollectorPlatform.Kubernetes,\n });\n\n var elasticsearch = new BetterStack.CollectorTarget(\"elasticsearch\", new()\n {\n CollectorId = production.Id,\n Kind = BetterStack.CollectorTargetKind.Elasticsearch,\n Host = \"search.example.com\",\n Port = 9200,\n Scheme = BetterStack.CollectorTargetScheme.Https,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tproduction, err := betterstack.NewCollector(ctx, \"production\", \u0026betterstack.CollectorArgs{\n\t\t\tName: pulumi.String(\"Production Kubernetes\"),\n\t\t\tPlatform: pulumi.String(betterstack.CollectorPlatformKubernetes),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewCollectorTarget(ctx, \"elasticsearch\", \u0026betterstack.CollectorTargetArgs{\n\t\t\tCollectorId: production.ID(),\n\t\t\tKind: pulumi.String(betterstack.CollectorTargetKindElasticsearch),\n\t\t\tHost: pulumi.String(\"search.example.com\"),\n\t\t\tPort: pulumi.Int(9200),\n\t\t\tScheme: pulumi.String(betterstack.CollectorTargetSchemeHttps),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_collector\" \"production\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production Kubernetes\"\n platform = \"kubernetes\"\n}\nresource \"betterstack_collector_target\" \"elasticsearch\" {\n lifecycle {\n create_before_destroy = true\n }\n collector_id = betterstack_collector.production.id\n kind = \"elasticsearch\"\n host = \"search.example.com\"\n port = 9200\n scheme = \"https\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Collector;\nimport com.betterstack.pulumi.CollectorArgs;\nimport com.betterstack.pulumi.CollectorTarget;\nimport com.betterstack.pulumi.CollectorTargetArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var production = new Collector(\"production\", CollectorArgs.builder()\n .name(\"Production Kubernetes\")\n .platform(\"kubernetes\")\n .build());\n\n var elasticsearch = new CollectorTarget(\"elasticsearch\", CollectorTargetArgs.builder()\n .collectorId(production.id())\n .kind(\"elasticsearch\")\n .host(\"search.example.com\")\n .port(9200)\n .scheme(\"https\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n production:\n type: betterstack:Collector\n properties:\n name: Production Kubernetes\n platform: kubernetes\n elasticsearch:\n type: betterstack:CollectorTarget\n properties:\n collectorId: ${production.id}\n kind: elasticsearch\n host: search.example.com\n port: 9200\n scheme: https\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Monitor an Nginx service\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst production = new betterstack.Collector(\"production\", {\n name: \"Production Kubernetes\",\n platform: betterstack.CollectorPlatform.Kubernetes,\n});\nconst nginx = new betterstack.CollectorTarget(\"nginx\", {\n collectorId: production.id,\n kind: betterstack.CollectorTargetKind.Nginx,\n host: \"web-1\",\n service: \"edge-nginx\",\n listenIp: \"10.0.0.1\",\n port: 80,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nproduction = betterstack.Collector(\"production\",\n name=\"Production Kubernetes\",\n platform=betterstack.CollectorPlatform.KUBERNETES)\nnginx = betterstack.CollectorTarget(\"nginx\",\n collector_id=production.id,\n kind=betterstack.CollectorTargetKind.NGINX,\n host=\"web-1\",\n service=\"edge-nginx\",\n listen_ip=\"10.0.0.1\",\n port=80)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var production = new BetterStack.Collector(\"production\", new()\n {\n Name = \"Production Kubernetes\",\n Platform = BetterStack.CollectorPlatform.Kubernetes,\n });\n\n var nginx = new BetterStack.CollectorTarget(\"nginx\", new()\n {\n CollectorId = production.Id,\n Kind = BetterStack.CollectorTargetKind.Nginx,\n Host = \"web-1\",\n Service = \"edge-nginx\",\n ListenIp = \"10.0.0.1\",\n Port = 80,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tproduction, err := betterstack.NewCollector(ctx, \"production\", \u0026betterstack.CollectorArgs{\n\t\t\tName: pulumi.String(\"Production Kubernetes\"),\n\t\t\tPlatform: pulumi.String(betterstack.CollectorPlatformKubernetes),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewCollectorTarget(ctx, \"nginx\", \u0026betterstack.CollectorTargetArgs{\n\t\t\tCollectorId: production.ID(),\n\t\t\tKind: pulumi.String(betterstack.CollectorTargetKindNginx),\n\t\t\tHost: pulumi.String(\"web-1\"),\n\t\t\tService: pulumi.String(\"edge-nginx\"),\n\t\t\tListenIp: pulumi.String(\"10.0.0.1\"),\n\t\t\tPort: pulumi.Int(80),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_collector\" \"production\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production Kubernetes\"\n platform = \"kubernetes\"\n}\nresource \"betterstack_collector_target\" \"nginx\" {\n lifecycle {\n create_before_destroy = true\n }\n collector_id = betterstack_collector.production.id\n kind = \"nginx\"\n host = \"web-1\"\n service = \"edge-nginx\"\n listen_ip = \"10.0.0.1\"\n port = 80\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Collector;\nimport com.betterstack.pulumi.CollectorArgs;\nimport com.betterstack.pulumi.CollectorTarget;\nimport com.betterstack.pulumi.CollectorTargetArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var production = new Collector(\"production\", CollectorArgs.builder()\n .name(\"Production Kubernetes\")\n .platform(\"kubernetes\")\n .build());\n\n var nginx = new CollectorTarget(\"nginx\", CollectorTargetArgs.builder()\n .collectorId(production.id())\n .kind(\"nginx\")\n .host(\"web-1\")\n .service(\"edge-nginx\")\n .listenIp(\"10.0.0.1\")\n .port(80)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n production:\n type: betterstack:Collector\n properties:\n name: Production Kubernetes\n platform: kubernetes\n nginx:\n type: betterstack:CollectorTarget\n properties:\n collectorId: ${production.id}\n kind: nginx\n host: web-1\n service: edge-nginx\n listenIp: 10.0.0.1\n port: 80\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing collector target by its ID as `collector_id/id`. Get the ID via [List collector targets](https://betterstack.com/docs/logs/api/list-collector-metrics-targets/).\n\n```sh\n$ pulumi import betterstack:index/collectorTarget:CollectorTarget example \u003ccollector_id\u003e/12345\n```\n\n", "properties": { "annotations": { "$ref": "#/types/betterstack:index/CollectorTargetAnnotations:CollectorTargetAnnotations", "description": "Where the collector gets the target's credentials and connection settings while Kubernetes annotations control the target, or null when no annotations control it. While annotations control a target, the collector ignores the credentials and connection settings stored on the target. The target's \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sslMode`\" pulumi-lang-dotnet=\"`SslMode`\" pulumi-lang-go=\"`sslMode`\" pulumi-lang-python=\"`ssl_mode`\" pulumi-lang-yaml=\"`sslMode`\" pulumi-lang-java=\"`sslMode`\" pulumi-lang-hcl=\"`ssl_mode`\"\u003e`sslMode`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`tls`\" pulumi-lang-dotnet=\"`Tls`\" pulumi-lang-go=\"`tls`\" pulumi-lang-python=\"`tls`\" pulumi-lang-yaml=\"`tls`\" pulumi-lang-java=\"`tls`\" pulumi-lang-hcl=\"`tls`\"\u003e`tls`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`scheme`\" pulumi-lang-dotnet=\"`Scheme`\" pulumi-lang-go=\"`scheme`\" pulumi-lang-python=\"`scheme`\" pulumi-lang-yaml=\"`scheme`\" pulumi-lang-java=\"`scheme`\" pulumi-lang-hcl=\"`scheme`\"\u003e`scheme`\u003c/span\u003e keep the values you stored.\n" }, "apiKey": { "type": "string", "description": "API key for 'elasticsearch' targets. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "collectorId": { "type": "string", "description": "The ID of the parent this collector belongs to. Changing it replaces the resource.\n" }, "container": { "type": "string", "description": "Detected container.\n" }, "createdAt": { "type": "string", "description": "When the target was created.\n" }, "enabled": { "type": "boolean", "description": "Whether the collector scrapes this target. A new target is enabled unless it's set to false. Disabling it sets \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e to 'disabled', and enabling it again checks the target again. Defaults to true.\n" }, "endpoint": { "type": "string", "description": "The full scrape URL, like `http://10.0.0.5:9090/metrics`. Required for 'prometheus' targets and returned only for them. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'prometheus'.\n" }, "host": { "type": "string", "description": "Target host. For a process target such as 'nginx' or 'prometheus', the host the collector runs on.\n" }, "kind": { "type": "string", "description": "Target type. Responses can also hold 'pgcat', 'node_exporter' and 'kube_state_metrics', targets the collector finds by itself. You can't create those. Can't be changed after the target is created. Valid values: 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached', 'elasticsearch', 'nginx', 'apache', 'kafka', 'prometheus', 'traefik'.\n" }, "listenIp": { "type": "string", "description": "The IP address the process listens on. Accepted and returned only for 'nginx', 'apache', 'kafka' and 'traefik', and null when not set. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'traefik'.\n" }, "password": { "type": "string", "description": "Password for database and 'elasticsearch' targets. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "port": { "type": "integer", "description": "The target's port. null when a target is found by its \u003cspan pulumi-lang-nodejs=\"`listenIp`\" pulumi-lang-dotnet=\"`ListenIp`\" pulumi-lang-go=\"`listenIp`\" pulumi-lang-python=\"`listen_ip`\" pulumi-lang-yaml=\"`listenIp`\" pulumi-lang-java=\"`listenIp`\" pulumi-lang-hcl=\"`listen_ip`\"\u003e`listenIp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`service`\" pulumi-lang-dotnet=\"`Service`\" pulumi-lang-go=\"`service`\" pulumi-lang-python=\"`service`\" pulumi-lang-yaml=\"`service`\" pulumi-lang-java=\"`service`\" pulumi-lang-hcl=\"`service`\"\u003e`service`\u003c/span\u003e instead. Required for database kinds and accepted for 'nginx', 'apache', 'kafka' and 'traefik'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch' or 'nginx' or 'apache' or 'kafka' or 'traefik'.\n" }, "scheme": { "type": "string", "description": "The connection scheme. Accepted and returned only for 'elasticsearch'. Defaults to 'http'. Valid values: 'http', 'https'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'elasticsearch'.\n" }, "service": { "type": "string", "description": "The service name. Required for 'nginx', 'apache', 'kafka', 'prometheus' and 'traefik' targets, and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'prometheus' or 'traefik'.\n" }, "sslMode": { "type": "string", "description": "The SSL mode for the connection. Required for 'postgres' and 'pgbouncer', and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer'. 'disable': Connects without SSL. 'require': Connects over SSL without verifying the server's certificate. `verify-ca`: Connects over SSL and checks that a trusted certificate authority signed the server's certificate.\n" }, "status": { "type": "string", "description": "The connection status. An update that includes \u003cspan pulumi-lang-nodejs=\"`host`\" pulumi-lang-dotnet=\"`Host`\" pulumi-lang-go=\"`host`\" pulumi-lang-python=\"`host`\" pulumi-lang-yaml=\"`host`\" pulumi-lang-java=\"`host`\" pulumi-lang-hcl=\"`host`\"\u003e`host`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`service`\" pulumi-lang-dotnet=\"`Service`\" pulumi-lang-go=\"`service`\" pulumi-lang-python=\"`service`\" pulumi-lang-yaml=\"`service`\" pulumi-lang-java=\"`service`\" pulumi-lang-hcl=\"`service`\"\u003e`service`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`listenIp`\" pulumi-lang-dotnet=\"`ListenIp`\" pulumi-lang-go=\"`listenIp`\" pulumi-lang-python=\"`listen_ip`\" pulumi-lang-yaml=\"`listenIp`\" pulumi-lang-java=\"`listenIp`\" pulumi-lang-hcl=\"`listen_ip`\"\u003e`listenIp`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`scheme`\" pulumi-lang-dotnet=\"`Scheme`\" pulumi-lang-go=\"`scheme`\" pulumi-lang-python=\"`scheme`\" pulumi-lang-yaml=\"`scheme`\" pulumi-lang-java=\"`scheme`\" pulumi-lang-hcl=\"`scheme`\"\u003e`scheme`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`password`\" pulumi-lang-dotnet=\"`Password`\" pulumi-lang-go=\"`password`\" pulumi-lang-python=\"`password`\" pulumi-lang-yaml=\"`password`\" pulumi-lang-java=\"`password`\" pulumi-lang-hcl=\"`password`\"\u003e`password`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`apiKey`\" pulumi-lang-dotnet=\"`ApiKey`\" pulumi-lang-go=\"`apiKey`\" pulumi-lang-python=\"`api_key`\" pulumi-lang-yaml=\"`apiKey`\" pulumi-lang-java=\"`apiKey`\" pulumi-lang-hcl=\"`api_key`\"\u003e`apiKey`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sslMode`\" pulumi-lang-dotnet=\"`SslMode`\" pulumi-lang-go=\"`sslMode`\" pulumi-lang-python=\"`ssl_mode`\" pulumi-lang-yaml=\"`sslMode`\" pulumi-lang-java=\"`sslMode`\" pulumi-lang-hcl=\"`ssl_mode`\"\u003e`sslMode`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`tls`\" pulumi-lang-dotnet=\"`Tls`\" pulumi-lang-go=\"`tls`\" pulumi-lang-python=\"`tls`\" pulumi-lang-yaml=\"`tls`\" pulumi-lang-java=\"`tls`\" pulumi-lang-hcl=\"`tls`\"\u003e`tls`\u003c/span\u003e sets it back to 'pending'. 'pending': The collector hasn't reported on the target yet. 'up': The collector collects metrics from the target. 'unreachable': The collector can't connect to the target or hasn't seen it lately. 'down': The collector reaches the target, but its check fails. 'invalid_credentials': The target rejects the credentials. 'configuration_required': The database needs more setup, such as the 'pg_stat_statements' extension. A target that Kubernetes annotations control also gets this status while the collector can't read one of its credentials. 'disabled': The target is paused and the collector doesn't check it. 'removed': The collector no longer finds the target.\n" }, "teamId": { "type": "string", "description": "Team that owns the collector's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "tls": { "type": "string", "description": "The TLS mode for the connection. Required for 'mysql', and accepted and returned only for it. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'mysql'. false: Connects without TLS. true: Connects over TLS and verifies the server's certificate. `skip-verify`: Connects over TLS without verifying the server's certificate. 'preferred': Uses TLS when the server supports it, without verifying the server's certificate.\n" }, "updatedAt": { "type": "string", "description": "When the target was last updated.\n" }, "username": { "type": "string", "description": "The username for the connection, or null when not set. While Kubernetes annotations control the target, the collector gets the username as \u003cspan pulumi-lang-nodejs=\"`annotations`\" pulumi-lang-dotnet=\"`Annotations`\" pulumi-lang-go=\"`annotations`\" pulumi-lang-python=\"`annotations`\" pulumi-lang-yaml=\"`annotations`\" pulumi-lang-java=\"`annotations`\" pulumi-lang-hcl=\"`annotations`\"\u003e`annotations`\u003c/span\u003e shows instead. Accepted and returned only for 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached' and 'elasticsearch'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch'.\n" } }, "required": [ "annotations", "collectorId", "container", "createdAt", "enabled", "endpoint", "host", "kind", "scheme", "service", "sslMode", "status", "teamId", "tls", "updatedAt" ], "inputProperties": { "apiKey": { "type": "string", "description": "API key for 'elasticsearch' targets. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "collectorId": { "type": "string", "description": "The ID of the parent this collector belongs to. Changing it replaces the resource.\n" }, "enabled": { "type": "boolean", "description": "Whether the collector scrapes this target. A new target is enabled unless it's set to false. Disabling it sets \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e to 'disabled', and enabling it again checks the target again. Defaults to true.\n" }, "endpoint": { "type": "string", "description": "The full scrape URL, like `http://10.0.0.5:9090/metrics`. Required for 'prometheus' targets and returned only for them. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'prometheus'.\n" }, "host": { "type": "string", "description": "Target host. For a process target such as 'nginx' or 'prometheus', the host the collector runs on.\n" }, "kind": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetKind:CollectorTargetKind" } ], "description": "Target type. Responses can also hold 'pgcat', 'node_exporter' and 'kube_state_metrics', targets the collector finds by itself. You can't create those. Can't be changed after the target is created. Valid values: 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached', 'elasticsearch', 'nginx', 'apache', 'kafka', 'prometheus', 'traefik'.\n" }, "listenIp": { "type": "string", "description": "The IP address the process listens on. Accepted and returned only for 'nginx', 'apache', 'kafka' and 'traefik', and null when not set. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'traefik'.\n" }, "password": { "type": "string", "description": "Password for database and 'elasticsearch' targets. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "port": { "type": "integer", "description": "The target's port. null when a target is found by its \u003cspan pulumi-lang-nodejs=\"`listenIp`\" pulumi-lang-dotnet=\"`ListenIp`\" pulumi-lang-go=\"`listenIp`\" pulumi-lang-python=\"`listen_ip`\" pulumi-lang-yaml=\"`listenIp`\" pulumi-lang-java=\"`listenIp`\" pulumi-lang-hcl=\"`listen_ip`\"\u003e`listenIp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`service`\" pulumi-lang-dotnet=\"`Service`\" pulumi-lang-go=\"`service`\" pulumi-lang-python=\"`service`\" pulumi-lang-yaml=\"`service`\" pulumi-lang-java=\"`service`\" pulumi-lang-hcl=\"`service`\"\u003e`service`\u003c/span\u003e instead. Required for database kinds and accepted for 'nginx', 'apache', 'kafka' and 'traefik'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch' or 'nginx' or 'apache' or 'kafka' or 'traefik'.\n" }, "scheme": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetScheme:CollectorTargetScheme" } ], "description": "The connection scheme. Accepted and returned only for 'elasticsearch'. Defaults to 'http'. Valid values: 'http', 'https'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'elasticsearch'.\n" }, "service": { "type": "string", "description": "The service name. Required for 'nginx', 'apache', 'kafka', 'prometheus' and 'traefik' targets, and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'prometheus' or 'traefik'.\n" }, "sslMode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetSslMode:CollectorTargetSslMode" } ], "description": "The SSL mode for the connection. Required for 'postgres' and 'pgbouncer', and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer'. 'disable': Connects without SSL. 'require': Connects over SSL without verifying the server's certificate. `verify-ca`: Connects over SSL and checks that a trusted certificate authority signed the server's certificate.\n" }, "teamId": { "type": "string", "description": "Team that owns the collector's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "tls": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetTls:CollectorTargetTls" } ], "description": "The TLS mode for the connection. Required for 'mysql', and accepted and returned only for it. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'mysql'. false: Connects without TLS. true: Connects over TLS and verifies the server's certificate. `skip-verify`: Connects over TLS without verifying the server's certificate. 'preferred': Uses TLS when the server supports it, without verifying the server's certificate.\n" }, "username": { "type": "string", "description": "The username for the connection, or null when not set. While Kubernetes annotations control the target, the collector gets the username as \u003cspan pulumi-lang-nodejs=\"`annotations`\" pulumi-lang-dotnet=\"`Annotations`\" pulumi-lang-go=\"`annotations`\" pulumi-lang-python=\"`annotations`\" pulumi-lang-yaml=\"`annotations`\" pulumi-lang-java=\"`annotations`\" pulumi-lang-hcl=\"`annotations`\"\u003e`annotations`\u003c/span\u003e shows instead. Accepted and returned only for 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached' and 'elasticsearch'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch'.\n" } }, "requiredInputs": [ "collectorId", "host", "kind" ], "stateInputs": { "description": "Input properties used for looking up and filtering CollectorTarget resources.\n", "properties": { "annotations": { "$ref": "#/types/betterstack:index/CollectorTargetAnnotations:CollectorTargetAnnotations", "description": "Where the collector gets the target's credentials and connection settings while Kubernetes annotations control the target, or null when no annotations control it. While annotations control a target, the collector ignores the credentials and connection settings stored on the target. The target's \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sslMode`\" pulumi-lang-dotnet=\"`SslMode`\" pulumi-lang-go=\"`sslMode`\" pulumi-lang-python=\"`ssl_mode`\" pulumi-lang-yaml=\"`sslMode`\" pulumi-lang-java=\"`sslMode`\" pulumi-lang-hcl=\"`ssl_mode`\"\u003e`sslMode`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`tls`\" pulumi-lang-dotnet=\"`Tls`\" pulumi-lang-go=\"`tls`\" pulumi-lang-python=\"`tls`\" pulumi-lang-yaml=\"`tls`\" pulumi-lang-java=\"`tls`\" pulumi-lang-hcl=\"`tls`\"\u003e`tls`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`scheme`\" pulumi-lang-dotnet=\"`Scheme`\" pulumi-lang-go=\"`scheme`\" pulumi-lang-python=\"`scheme`\" pulumi-lang-yaml=\"`scheme`\" pulumi-lang-java=\"`scheme`\" pulumi-lang-hcl=\"`scheme`\"\u003e`scheme`\u003c/span\u003e keep the values you stored.\n" }, "apiKey": { "type": "string", "description": "API key for 'elasticsearch' targets. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "collectorId": { "type": "string", "description": "The ID of the parent this collector belongs to. Changing it replaces the resource.\n" }, "container": { "type": "string", "description": "Detected container.\n" }, "createdAt": { "type": "string", "description": "When the target was created.\n" }, "enabled": { "type": "boolean", "description": "Whether the collector scrapes this target. A new target is enabled unless it's set to false. Disabling it sets \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e to 'disabled', and enabling it again checks the target again. Defaults to true.\n" }, "endpoint": { "type": "string", "description": "The full scrape URL, like `http://10.0.0.5:9090/metrics`. Required for 'prometheus' targets and returned only for them. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'prometheus'.\n" }, "host": { "type": "string", "description": "Target host. For a process target such as 'nginx' or 'prometheus', the host the collector runs on.\n" }, "kind": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetKind:CollectorTargetKind" } ], "description": "Target type. Responses can also hold 'pgcat', 'node_exporter' and 'kube_state_metrics', targets the collector finds by itself. You can't create those. Can't be changed after the target is created. Valid values: 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached', 'elasticsearch', 'nginx', 'apache', 'kafka', 'prometheus', 'traefik'.\n" }, "listenIp": { "type": "string", "description": "The IP address the process listens on. Accepted and returned only for 'nginx', 'apache', 'kafka' and 'traefik', and null when not set. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'traefik'.\n" }, "password": { "type": "string", "description": "Password for database and 'elasticsearch' targets. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "port": { "type": "integer", "description": "The target's port. null when a target is found by its \u003cspan pulumi-lang-nodejs=\"`listenIp`\" pulumi-lang-dotnet=\"`ListenIp`\" pulumi-lang-go=\"`listenIp`\" pulumi-lang-python=\"`listen_ip`\" pulumi-lang-yaml=\"`listenIp`\" pulumi-lang-java=\"`listenIp`\" pulumi-lang-hcl=\"`listen_ip`\"\u003e`listenIp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`service`\" pulumi-lang-dotnet=\"`Service`\" pulumi-lang-go=\"`service`\" pulumi-lang-python=\"`service`\" pulumi-lang-yaml=\"`service`\" pulumi-lang-java=\"`service`\" pulumi-lang-hcl=\"`service`\"\u003e`service`\u003c/span\u003e instead. Required for database kinds and accepted for 'nginx', 'apache', 'kafka' and 'traefik'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch' or 'nginx' or 'apache' or 'kafka' or 'traefik'.\n" }, "scheme": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetScheme:CollectorTargetScheme" } ], "description": "The connection scheme. Accepted and returned only for 'elasticsearch'. Defaults to 'http'. Valid values: 'http', 'https'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'elasticsearch'.\n" }, "service": { "type": "string", "description": "The service name. Required for 'nginx', 'apache', 'kafka', 'prometheus' and 'traefik' targets, and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'prometheus' or 'traefik'.\n" }, "sslMode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetSslMode:CollectorTargetSslMode" } ], "description": "The SSL mode for the connection. Required for 'postgres' and 'pgbouncer', and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer'. 'disable': Connects without SSL. 'require': Connects over SSL without verifying the server's certificate. `verify-ca`: Connects over SSL and checks that a trusted certificate authority signed the server's certificate.\n" }, "status": { "type": "string", "description": "The connection status. An update that includes \u003cspan pulumi-lang-nodejs=\"`host`\" pulumi-lang-dotnet=\"`Host`\" pulumi-lang-go=\"`host`\" pulumi-lang-python=\"`host`\" pulumi-lang-yaml=\"`host`\" pulumi-lang-java=\"`host`\" pulumi-lang-hcl=\"`host`\"\u003e`host`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`service`\" pulumi-lang-dotnet=\"`Service`\" pulumi-lang-go=\"`service`\" pulumi-lang-python=\"`service`\" pulumi-lang-yaml=\"`service`\" pulumi-lang-java=\"`service`\" pulumi-lang-hcl=\"`service`\"\u003e`service`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`listenIp`\" pulumi-lang-dotnet=\"`ListenIp`\" pulumi-lang-go=\"`listenIp`\" pulumi-lang-python=\"`listen_ip`\" pulumi-lang-yaml=\"`listenIp`\" pulumi-lang-java=\"`listenIp`\" pulumi-lang-hcl=\"`listen_ip`\"\u003e`listenIp`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`scheme`\" pulumi-lang-dotnet=\"`Scheme`\" pulumi-lang-go=\"`scheme`\" pulumi-lang-python=\"`scheme`\" pulumi-lang-yaml=\"`scheme`\" pulumi-lang-java=\"`scheme`\" pulumi-lang-hcl=\"`scheme`\"\u003e`scheme`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`password`\" pulumi-lang-dotnet=\"`Password`\" pulumi-lang-go=\"`password`\" pulumi-lang-python=\"`password`\" pulumi-lang-yaml=\"`password`\" pulumi-lang-java=\"`password`\" pulumi-lang-hcl=\"`password`\"\u003e`password`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`apiKey`\" pulumi-lang-dotnet=\"`ApiKey`\" pulumi-lang-go=\"`apiKey`\" pulumi-lang-python=\"`api_key`\" pulumi-lang-yaml=\"`apiKey`\" pulumi-lang-java=\"`apiKey`\" pulumi-lang-hcl=\"`api_key`\"\u003e`apiKey`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sslMode`\" pulumi-lang-dotnet=\"`SslMode`\" pulumi-lang-go=\"`sslMode`\" pulumi-lang-python=\"`ssl_mode`\" pulumi-lang-yaml=\"`sslMode`\" pulumi-lang-java=\"`sslMode`\" pulumi-lang-hcl=\"`ssl_mode`\"\u003e`sslMode`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`tls`\" pulumi-lang-dotnet=\"`Tls`\" pulumi-lang-go=\"`tls`\" pulumi-lang-python=\"`tls`\" pulumi-lang-yaml=\"`tls`\" pulumi-lang-java=\"`tls`\" pulumi-lang-hcl=\"`tls`\"\u003e`tls`\u003c/span\u003e sets it back to 'pending'. 'pending': The collector hasn't reported on the target yet. 'up': The collector collects metrics from the target. 'unreachable': The collector can't connect to the target or hasn't seen it lately. 'down': The collector reaches the target, but its check fails. 'invalid_credentials': The target rejects the credentials. 'configuration_required': The database needs more setup, such as the 'pg_stat_statements' extension. A target that Kubernetes annotations control also gets this status while the collector can't read one of its credentials. 'disabled': The target is paused and the collector doesn't check it. 'removed': The collector no longer finds the target.\n" }, "teamId": { "type": "string", "description": "Team that owns the collector's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "tls": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/collectorTargetTls:CollectorTargetTls" } ], "description": "The TLS mode for the connection. Required for 'mysql', and accepted and returned only for it. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'mysql'. false: Connects without TLS. true: Connects over TLS and verifies the server's certificate. `skip-verify`: Connects over TLS without verifying the server's certificate. 'preferred': Uses TLS when the server supports it, without verifying the server's certificate.\n" }, "updatedAt": { "type": "string", "description": "When the target was last updated.\n" }, "username": { "type": "string", "description": "The username for the connection, or null when not set. While Kubernetes annotations control the target, the collector gets the username as \u003cspan pulumi-lang-nodejs=\"`annotations`\" pulumi-lang-dotnet=\"`Annotations`\" pulumi-lang-go=\"`annotations`\" pulumi-lang-python=\"`annotations`\" pulumi-lang-yaml=\"`annotations`\" pulumi-lang-java=\"`annotations`\" pulumi-lang-hcl=\"`annotations`\"\u003e`annotations`\u003c/span\u003e shows instead. Accepted and returned only for 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached' and 'elasticsearch'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch'.\n" } }, "type": "object" } }, "betterstack:index/connection:Connection": { "description": "A ClickHouse connection for querying ingested data directly over SQL.\n\n\u003e Better Stack can't update a connection in place, so changing any argument replaces it.\n\n## Example Usage\n\n### Create a connection\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Connection(\"example\", {\n clientType: betterstack.ConnectionClientType.Clickhouse,\n teamIds: [\"t123\"],\n ipAllowlist: [\n \"192.168.1.0/24\",\n \"10.0.0.1\",\n ],\n validUntil: \"2030-12-31T00:00:00Z\",\n note: \"Production connection for analytics\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Connection(\"example\",\n client_type=betterstack.ConnectionClientType.CLICKHOUSE,\n team_ids=[\"t123\"],\n ip_allowlist=[\n \"192.168.1.0/24\",\n \"10.0.0.1\",\n ],\n valid_until=\"2030-12-31T00:00:00Z\",\n note=\"Production connection for analytics\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Connection(\"example\", new()\n {\n ClientType = BetterStack.ConnectionClientType.Clickhouse,\n TeamIds = new[]\n {\n \"t123\",\n },\n IpAllowlist = new[]\n {\n \"192.168.1.0/24\",\n \"10.0.0.1\",\n },\n ValidUntil = \"2030-12-31T00:00:00Z\",\n Note = \"Production connection for analytics\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewConnection(ctx, \"example\", \u0026betterstack.ConnectionArgs{\n\t\t\tClientType: pulumi.String(betterstack.ConnectionClientTypeClickhouse),\n\t\t\tTeamIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"t123\"),\n\t\t\t},\n\t\t\tIpAllowlist: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"192.168.1.0/24\"),\n\t\t\t\tpulumi.String(\"10.0.0.1\"),\n\t\t\t},\n\t\t\tValidUntil: pulumi.String(\"2030-12-31T00:00:00Z\"),\n\t\t\tNote: pulumi.String(\"Production connection for analytics\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_connection\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n client_type = \"clickhouse\"\n team_ids = [\"t123\"]\n ip_allowlist = [\"192.168.1.0/24\", \"10.0.0.1\"]\n valid_until = \"2030-12-31T00:00:00Z\"\n note = \"Production connection for analytics\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Connection;\nimport com.betterstack.pulumi.ConnectionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Connection(\"example\", ConnectionArgs.builder()\n .clientType(\"clickhouse\")\n .teamIds(\"t123\")\n .ipAllowlist( \n \"192.168.1.0/24\",\n \"10.0.0.1\")\n .validUntil(\"2030-12-31T00:00:00Z\")\n .note(\"Production connection for analytics\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Connection\n properties:\n clientType: clickhouse\n teamIds:\n - t123\n ipAllowlist:\n - 192.168.1.0/24\n - 10.0.0.1\n validUntil: 2030-12-31T00:00:00Z\n note: Production connection for analytics\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Connect Grafana to one cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst connectGrafanaToOneCluster = new betterstack.Connection(\"connect_grafana_to_one_cluster\", {\n clientType: betterstack.ConnectionClientType.Grafana,\n cluster: \"eu-nbg-2\",\n teamIds: [\"t123\"],\n validUntil: \"2030-12-31T00:00:00Z\",\n note: \"Grafana Cloud data source\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nconnect_grafana_to_one_cluster = betterstack.Connection(\"connect_grafana_to_one_cluster\",\n client_type=betterstack.ConnectionClientType.GRAFANA,\n cluster=\"eu-nbg-2\",\n team_ids=[\"t123\"],\n valid_until=\"2030-12-31T00:00:00Z\",\n note=\"Grafana Cloud data source\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var connectGrafanaToOneCluster = new BetterStack.Connection(\"connect_grafana_to_one_cluster\", new()\n {\n ClientType = BetterStack.ConnectionClientType.Grafana,\n Cluster = \"eu-nbg-2\",\n TeamIds = new[]\n {\n \"t123\",\n },\n ValidUntil = \"2030-12-31T00:00:00Z\",\n Note = \"Grafana Cloud data source\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewConnection(ctx, \"connect_grafana_to_one_cluster\", \u0026betterstack.ConnectionArgs{\n\t\t\tClientType: pulumi.String(betterstack.ConnectionClientTypeGrafana),\n\t\t\tCluster: pulumi.String(\"eu-nbg-2\"),\n\t\t\tTeamIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"t123\"),\n\t\t\t},\n\t\t\tValidUntil: pulumi.String(\"2030-12-31T00:00:00Z\"),\n\t\t\tNote: pulumi.String(\"Grafana Cloud data source\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_connection\" \"connect_grafana_to_one_cluster\" {\n lifecycle {\n create_before_destroy = true\n }\n client_type = \"grafana\"\n cluster = \"eu-nbg-2\"\n team_ids = [\"t123\"]\n valid_until = \"2030-12-31T00:00:00Z\"\n note = \"Grafana Cloud data source\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Connection;\nimport com.betterstack.pulumi.ConnectionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var connectGrafanaToOneCluster = new Connection(\"connectGrafanaToOneCluster\", ConnectionArgs.builder()\n .clientType(\"grafana\")\n .cluster(\"eu-nbg-2\")\n .teamIds(\"t123\")\n .validUntil(\"2030-12-31T00:00:00Z\")\n .note(\"Grafana Cloud data source\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n connectGrafanaToOneCluster:\n type: betterstack:Connection\n name: connect_grafana_to_one_cluster\n properties:\n clientType: grafana\n cluster: eu-nbg-2\n teamIds:\n - t123\n validUntil: 2030-12-31T00:00:00Z\n note: Grafana Cloud data source\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Error tracking has its own connections, separate from these.\n\n## Import\n\nImport an existing connection by its ID.\n\n```sh\n$ pulumi import betterstack:index/connection:Connection example 12345\n```\n\n", "properties": { "clientType": { "type": "string", "description": "Client protocol. Valid values: 'clickhouse', 'grafana'.\n" }, "cluster": { "type": "string", "description": "The one cluster the connection points at, by its name. [Get a source](https://betterstack.com/docs/logs/api/get-a-single-source/) returns the \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e its data is stored on. Required for a Grafana connection. A ClickHouse connection that names one reaches only that cluster. Leave it out for a ClickHouse connection that reaches every cluster where its teams store data. \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e is then null.\n" }, "clusters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ConnectionCluster:ConnectionCluster" }, "description": "Every cluster the connection reaches.\n" }, "createdAt": { "type": "string", "description": "When the connection was created.\n" }, "createdBy": { "$ref": "#/types/betterstack:index/ConnectionCreatedBy:ConnectionCreatedBy", "description": "User who created the connection in the web UI. Always null for a connection created through the API or MCP.\n" }, "dataSources": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ConnectionDataSource:ConnectionDataSource" }, "description": "Sources this connection can query. Not returned when listing connections.\n" }, "host": { "type": "string", "description": "Connection host.\n" }, "ipAllowlist": { "type": "array", "items": { "type": "string" }, "description": "Allowed source IPs or CIDRs. Defaults to `[]`.\n" }, "note": { "type": "string", "description": "Free-form note.\n" }, "password": { "type": "string", "description": "Connection password. Returned only when the connection is created and never again, so save it then. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "port": { "type": "integer", "description": "Connection port.\n" }, "sampleQuery": { "type": "string", "description": "An example 'curl' query to get started. When you create the connection, the query includes the password. Later responses show `INSERT_PASSWORD` in its place. Not returned when listing connections. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "teamIds": { "type": "array", "items": { "type": "string" }, "description": "Teams whose data this connection reaches, as 't'-prefixed team IDs such as 't123'. Get the IDs via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "teamNames": { "type": "array", "items": { "type": "string" }, "description": "Names of the teams whose data this connection reaches.\n" }, "username": { "type": "string", "description": "The username to connect with.\n" }, "validUntil": { "type": "string", "description": "When the credential expires, or null if it never does. Leaving it out clears it, on create too.\n" } }, "required": [ "clientType", "clusters", "createdAt", "createdBy", "dataSources", "host", "ipAllowlist", "password", "port", "sampleQuery", "teamIds", "teamNames", "username" ], "inputProperties": { "clientType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/connectionClientType:ConnectionClientType" } ], "description": "Client protocol. Valid values: 'clickhouse', 'grafana'.\n" }, "cluster": { "type": "string", "description": "The one cluster the connection points at, by its name. [Get a source](https://betterstack.com/docs/logs/api/get-a-single-source/) returns the \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e its data is stored on. Required for a Grafana connection. A ClickHouse connection that names one reaches only that cluster. Leave it out for a ClickHouse connection that reaches every cluster where its teams store data. \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e is then null.\n" }, "ipAllowlist": { "type": "array", "items": { "type": "string" }, "description": "Allowed source IPs or CIDRs. Defaults to `[]`.\n" }, "note": { "type": "string", "description": "Free-form note.\n" }, "teamIds": { "type": "array", "items": { "type": "string" }, "description": "Teams whose data this connection reaches, as 't'-prefixed team IDs such as 't123'. Get the IDs via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "validUntil": { "type": "string", "description": "When the credential expires, or null if it never does. Leaving it out clears it, on create too.\n" } }, "requiredInputs": [ "clientType", "teamIds" ], "stateInputs": { "description": "Input properties used for looking up and filtering Connection resources.\n", "properties": { "clientType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/connectionClientType:ConnectionClientType" } ], "description": "Client protocol. Valid values: 'clickhouse', 'grafana'.\n" }, "cluster": { "type": "string", "description": "The one cluster the connection points at, by its name. [Get a source](https://betterstack.com/docs/logs/api/get-a-single-source/) returns the \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e its data is stored on. Required for a Grafana connection. A ClickHouse connection that names one reaches only that cluster. Leave it out for a ClickHouse connection that reaches every cluster where its teams store data. \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e is then null.\n" }, "clusters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ConnectionCluster:ConnectionCluster" }, "description": "Every cluster the connection reaches.\n" }, "createdAt": { "type": "string", "description": "When the connection was created.\n" }, "createdBy": { "$ref": "#/types/betterstack:index/ConnectionCreatedBy:ConnectionCreatedBy", "description": "User who created the connection in the web UI. Always null for a connection created through the API or MCP.\n" }, "dataSources": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ConnectionDataSource:ConnectionDataSource" }, "description": "Sources this connection can query. Not returned when listing connections.\n" }, "host": { "type": "string", "description": "Connection host.\n" }, "ipAllowlist": { "type": "array", "items": { "type": "string" }, "description": "Allowed source IPs or CIDRs. Defaults to `[]`.\n" }, "note": { "type": "string", "description": "Free-form note.\n" }, "password": { "type": "string", "description": "Connection password. Returned only when the connection is created and never again, so save it then. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "port": { "type": "integer", "description": "Connection port.\n" }, "sampleQuery": { "type": "string", "description": "An example 'curl' query to get started. When you create the connection, the query includes the password. Later responses show `INSERT_PASSWORD` in its place. Not returned when listing connections. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "teamIds": { "type": "array", "items": { "type": "string" }, "description": "Teams whose data this connection reaches, as 't'-prefixed team IDs such as 't123'. Get the IDs via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "teamNames": { "type": "array", "items": { "type": "string" }, "description": "Names of the teams whose data this connection reaches.\n" }, "username": { "type": "string", "description": "The username to connect with.\n" }, "validUntil": { "type": "string", "description": "When the credential expires, or null if it never does. Leaving it out clears it, on create too.\n" } }, "type": "object" } }, "betterstack:index/dashboard:Dashboard": { "description": "A dashboard of charts visualizing logs, metrics, and traces.\n\n## Example Usage\n\n### Put a dashboard in a group, with variables\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst services = new betterstack.DashboardGroup(\"services\", {name: \"Services\"});\nconst checkout = new betterstack.Dashboard(\"checkout\", {\n name: \"Checkout service\",\n dashboardGroupId: services.id,\n refreshInterval: 60,\n dateRangeFrom: \"now-1h\",\n dateRangeTo: \"now\",\n variables: [\n {\n name: \"environment\",\n variableType: \"string\",\n values: [\"production\"],\n defaultValues: [\"production\"],\n },\n {\n name: \"service\",\n variableType: \"select_with_sql\",\n sqlDefinition: \"JSONExtractString(raw, 'service')\",\n allowMultipleValues: true,\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nservices = betterstack.DashboardGroup(\"services\", name=\"Services\")\ncheckout = betterstack.Dashboard(\"checkout\",\n name=\"Checkout service\",\n dashboard_group_id=services.id,\n refresh_interval=60,\n date_range_from=\"now-1h\",\n date_range_to=\"now\",\n variables=[\n {\n \"name\": \"environment\",\n \"variable_type\": \"string\",\n \"values\": [\"production\"],\n \"default_values\": [\"production\"],\n },\n {\n \"name\": \"service\",\n \"variable_type\": \"select_with_sql\",\n \"sql_definition\": \"JSONExtractString(raw, 'service')\",\n \"allow_multiple_values\": True,\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var services = new BetterStack.DashboardGroup(\"services\", new()\n {\n Name = \"Services\",\n });\n\n var checkout = new BetterStack.Dashboard(\"checkout\", new()\n {\n Name = \"Checkout service\",\n DashboardGroupId = services.Id,\n RefreshInterval = 60,\n DateRangeFrom = \"now-1h\",\n DateRangeTo = \"now\",\n Variables = new[]\n {\n new BetterStack.Inputs.DashboardVariableArgs\n {\n Name = \"environment\",\n VariableType = \"string\",\n Values = new[]\n {\n \"production\",\n },\n DefaultValues = new[]\n {\n \"production\",\n },\n },\n new BetterStack.Inputs.DashboardVariableArgs\n {\n Name = \"service\",\n VariableType = \"select_with_sql\",\n SqlDefinition = \"JSONExtractString(raw, 'service')\",\n AllowMultipleValues = true,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tservices, err := betterstack.NewDashboardGroup(ctx, \"services\", \u0026betterstack.DashboardGroupArgs{\n\t\t\tName: pulumi.String(\"Services\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewDashboard(ctx, \"checkout\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Checkout service\"),\n\t\t\tDashboardGroupId: services.ID(),\n\t\t\tRefreshInterval: pulumi.Int(60),\n\t\t\tDateRangeFrom: pulumi.String(\"now-1h\"),\n\t\t\tDateRangeTo: pulumi.String(\"now\"),\n\t\t\tVariables: betterstack.DashboardVariableArray{\n\t\t\t\t\u0026betterstack.DashboardVariableArgs{\n\t\t\t\t\tName: pulumi.String(\"environment\"),\n\t\t\t\t\tVariableType: pulumi.String(\"string\"),\n\t\t\t\t\tValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"production\"),\n\t\t\t\t\t},\n\t\t\t\t\tDefaultValues: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"production\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.DashboardVariableArgs{\n\t\t\t\t\tName: pulumi.String(\"service\"),\n\t\t\t\t\tVariableType: pulumi.String(\"select_with_sql\"),\n\t\t\t\t\tSqlDefinition: pulumi.String(\"JSONExtractString(raw, 'service')\"),\n\t\t\t\t\tAllowMultipleValues: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_dashboard_group\" \"services\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Services\"\n}\nresource \"betterstack_dashboard\" \"checkout\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Checkout service\"\n dashboard_group_id = betterstack_dashboard_group.services.id\n refresh_interval = 60\n date_range_from = \"now-1h\"\n date_range_to = \"now\"\n variables = [{\n name = \"environment\"\n variable_type = \"string\"\n values = [\"production\"]\n default_values = [\"production\"]\n }, {\n name = \"service\"\n variable_type = \"select_with_sql\"\n sql_definition = \"JSONExtractString(raw, 'service')\"\n allow_multiple_values = true\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.DashboardGroup;\nimport com.betterstack.pulumi.DashboardGroupArgs;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport com.betterstack.pulumi.inputs.DashboardVariableArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var services = new DashboardGroup(\"services\", DashboardGroupArgs.builder()\n .name(\"Services\")\n .build());\n\n var checkout = new Dashboard(\"checkout\", DashboardArgs.builder()\n .name(\"Checkout service\")\n .dashboardGroupId(services.id())\n .refreshInterval(60)\n .dateRangeFrom(\"now-1h\")\n .dateRangeTo(\"now\")\n .variables( \n DashboardVariableArgs.builder()\n .name(\"environment\")\n .variableType(\"string\")\n .values(\"production\")\n .defaultValues(\"production\")\n .build(),\n DashboardVariableArgs.builder()\n .name(\"service\")\n .variableType(\"select_with_sql\")\n .sqlDefinition(\"JSONExtractString(raw, 'service')\")\n .allowMultipleValues(true)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n services:\n type: betterstack:DashboardGroup\n properties:\n name: Services\n checkout:\n type: betterstack:Dashboard\n properties:\n name: Checkout service\n dashboardGroupId: ${services.id}\n refreshInterval: 60\n dateRangeFrom: now-1h\n dateRangeTo: now\n variables:\n - name: environment\n variableType: string\n values:\n - production\n defaultValues:\n - production\n - name: service\n variableType: select_with_sql\n sqlDefinition: JSONExtractString(raw, 'service')\n allowMultipleValues: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Set up the PostgreSQL template for a source\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst ordersDb = new betterstack.Source(\"orders_db\", {\n name: \"Orders database\",\n platform: betterstack.SourcePlatform.Postgresql,\n});\nconst postgresql = betterstack.getDashboardTemplate({\n name: \"PostgreSQL\",\n});\nconst ordersDbDashboard = new betterstack.Dashboard(\"orders_db\", {\n name: \"Orders database\",\n templateId: postgresql.then(postgresql =\u003e postgresql.id),\n sourceId: ordersDb.id,\n resourceGroupName: \"Databases\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\norders_db = betterstack.Source(\"orders_db\",\n name=\"Orders database\",\n platform=betterstack.SourcePlatform.POSTGRESQL)\npostgresql = betterstack.get_dashboard_template(name=\"PostgreSQL\")\norders_db_dashboard = betterstack.Dashboard(\"orders_db\",\n name=\"Orders database\",\n template_id=postgresql.id,\n source_id=orders_db.id,\n resource_group_name=\"Databases\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var ordersDb = new BetterStack.Source(\"orders_db\", new()\n {\n Name = \"Orders database\",\n Platform = BetterStack.SourcePlatform.Postgresql,\n });\n\n var postgresql = BetterStack.GetDashboardTemplate.Invoke(new()\n {\n Name = \"PostgreSQL\",\n });\n\n var ordersDbDashboard = new BetterStack.Dashboard(\"orders_db\", new()\n {\n Name = \"Orders database\",\n TemplateId = postgresql.Apply(getDashboardTemplateResult =\u003e getDashboardTemplateResult.Id),\n SourceId = ordersDb.Id,\n ResourceGroupName = \"Databases\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tordersDb, err := betterstack.NewSource(ctx, \"orders_db\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"Orders database\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformPostgresql),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tpostgresql, err := betterstack.GetDashboardTemplate(ctx, \u0026betterstack.GetDashboardTemplateArgs{\n\t\t\tName: pulumi.StringRef(\"PostgreSQL\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewDashboard(ctx, \"orders_db\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Orders database\"),\n\t\t\tTemplateId: pulumi.String(postgresql.Id),\n\t\t\tSourceId: ordersDb.ID(),\n\t\t\tResourceGroupName: pulumi.String(\"Databases\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_dashboard_template\" \"postgresql\" {\n name = \"PostgreSQL\"\n}\n\nresource \"betterstack_source\" \"orders_db\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Orders database\"\n platform = \"postgresql\"\n}\nresource \"betterstack_dashboard\" \"orders_db\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Orders database\"\n template_id = data.betterstack_dashboard_template.postgresql.id\n source_id = betterstack_source.orders_db.id\n resource_group_name = \"Databases\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetDashboardTemplateArgs;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var ordersDb = new Source(\"ordersDb\", SourceArgs.builder()\n .name(\"Orders database\")\n .platform(\"postgresql\")\n .build());\n\n final var postgresql = BetterstackFunctions.getDashboardTemplate(GetDashboardTemplateArgs.builder()\n .name(\"PostgreSQL\")\n .build());\n\n var ordersDbDashboard = new Dashboard(\"ordersDbDashboard\", DashboardArgs.builder()\n .name(\"Orders database\")\n .templateId(postgresql.id())\n .sourceId(ordersDb.id())\n .resourceGroupName(\"Databases\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n ordersDb:\n type: betterstack:Source\n name: orders_db\n properties:\n name: Orders database\n platform: postgresql\n ordersDbDashboard:\n type: betterstack:Dashboard\n name: orders_db\n properties:\n name: Orders database\n templateId: ${postgresql.id}\n sourceId: ${ordersDb.id}\n resourceGroupName: Databases\nvariables:\n postgresql:\n fn::invoke:\n function: betterstack:getDashboardTemplate\n arguments:\n name: PostgreSQL\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e A dashboard's [charts](https://betterstack.com/docs/logs/api/charts/list/), [sections](https://betterstack.com/docs/logs/api/dashboard-sections/list/), [chart alerts](https://betterstack.com/docs/logs/api/alerts/list/) and [chart comments](https://betterstack.com/docs/logs/api/chart-comments/list/) are separate resources. The dashboard's versions are a separate list too.\n\n\u003e Telemetry's and RUM's dashboards are both served on telemetry.betterstack.com and rum.betterstack.com. \u003cspan pulumi-lang-nodejs=\"`product`\" pulumi-lang-dotnet=\"`Product`\" pulumi-lang-go=\"`product`\" pulumi-lang-python=\"`product`\" pulumi-lang-yaml=\"`product`\" pulumi-lang-java=\"`product`\" pulumi-lang-hcl=\"`product`\"\u003e`product`\u003c/span\u003e says which one a dashboard belongs to.\n\n\u003e Dashboard templates are a separate resource. List them via [List dashboard templates](https://betterstack.com/docs/logs/api/dashboards/templates/).\n\n## Import\n\nImport an existing dashboard by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`dashboardGroupId`\" pulumi-lang-dotnet=\"`DashboardGroupId`\" pulumi-lang-go=\"`dashboardGroupId`\" pulumi-lang-python=\"`dashboard_group_id`\" pulumi-lang-yaml=\"`dashboardGroupId`\" pulumi-lang-java=\"`dashboardGroupId`\" pulumi-lang-hcl=\"`dashboard_group_id`\"\u003e`dashboardGroupId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/dashboard:Dashboard example 12345\n```\n\n", "properties": { "charts": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartSummary:DashboardChartSummary" }, "description": "A summary of each chart on the dashboard, ordered top to bottom, then left to right. Returned when you get one dashboard. Use [Get dashboard chart](https://betterstack.com/docs/logs/api/charts/get/) for a chart's queries and settings.\n" }, "createdAt": { "type": "string", "description": "When the dashboard was created.\n" }, "dashboardGroupId": { "type": "string", "description": "Group this dashboard belongs to. Remove the argument or set it to '0' to clear it from its group.\n" }, "dateRangeFrom": { "type": "string", "description": "Default range start, for example now-3h. Defaults to `now-3h`.\n" }, "dateRangeTo": { "type": "string", "description": "Default range end, for example now. Defaults to 'now'.\n" }, "hasOverlaps": { "type": "boolean", "description": "Whether any charts overlap on the grid. Returned when you get one dashboard.\n" }, "name": { "type": "string", "description": "Dashboard name.\n" }, "product": { "type": "string", "description": "The product the dashboard belongs to. Defaults to 'telemetry', and it can't be changed after create. 'telemetry': A dashboard over logs, metrics and traces. 'rum': A Real User Monitoring dashboard.\n" }, "refreshInterval": { "type": "integer", "description": "How often the dashboard refreshes its charts, in seconds. '0' turns automatic refresh off. Defaults to '30'.\n" }, "resourceGroupName": { "type": "string", "description": "Name of the dashboard group to put the new dashboard in. Your group with that name is used, or created when there's none. Send it instead of \u003cspan pulumi-lang-nodejs=\"`dashboardGroupId`\" pulumi-lang-dotnet=\"`DashboardGroupId`\" pulumi-lang-go=\"`dashboardGroupId`\" pulumi-lang-python=\"`dashboard_group_id`\" pulumi-lang-yaml=\"`dashboardGroupId`\" pulumi-lang-java=\"`dashboardGroupId`\" pulumi-lang-hcl=\"`dashboard_group_id`\"\u003e`dashboardGroupId`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sections": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardSectionSummary:DashboardSectionSummary" }, "description": "Sections on the dashboard. Returned when you get one dashboard.\n" }, "sourceEligibilitySql": { "type": "string", "description": "SQL that decides which sources this dashboard's charts can read. Returned when you get one dashboard.\n" }, "sourceId": { "type": "string", "description": "ID of the source or application to set the new dashboard up for, as [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/) or [List applications](https://betterstack.com/docs/errors/api/applications/list/) lists it. For a 'rum' dashboard, \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e is an application's ID. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "teamId": { "type": "string", "description": "Team that owns the dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the dashboard.\n" }, "templateId": { "type": "string", "description": "ID of the dashboard template to create the dashboard from, as [List dashboard templates](https://betterstack.com/docs/logs/api/dashboards/templates/) lists it. The dashboard starts with the template's charts, sections, alerts, variables and settings. The \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`refreshInterval`\" pulumi-lang-dotnet=\"`RefreshInterval`\" pulumi-lang-go=\"`refreshInterval`\" pulumi-lang-python=\"`refresh_interval`\" pulumi-lang-yaml=\"`refreshInterval`\" pulumi-lang-java=\"`refreshInterval`\" pulumi-lang-hcl=\"`refresh_interval`\"\u003e`refreshInterval`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`dateRangeFrom`\" pulumi-lang-dotnet=\"`DateRangeFrom`\" pulumi-lang-go=\"`dateRangeFrom`\" pulumi-lang-python=\"`date_range_from`\" pulumi-lang-yaml=\"`dateRangeFrom`\" pulumi-lang-java=\"`dateRangeFrom`\" pulumi-lang-hcl=\"`date_range_from`\"\u003e`dateRangeFrom`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`dateRangeTo`\" pulumi-lang-dotnet=\"`DateRangeTo`\" pulumi-lang-go=\"`dateRangeTo`\" pulumi-lang-python=\"`date_range_to`\" pulumi-lang-yaml=\"`dateRangeTo`\" pulumi-lang-java=\"`dateRangeTo`\" pulumi-lang-hcl=\"`date_range_to`\"\u003e`dateRangeTo`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceEligibilitySql`\" pulumi-lang-dotnet=\"`SourceEligibilitySql`\" pulumi-lang-go=\"`sourceEligibilitySql`\" pulumi-lang-python=\"`source_eligibility_sql`\" pulumi-lang-yaml=\"`sourceEligibilitySql`\" pulumi-lang-java=\"`sourceEligibilitySql`\" pulumi-lang-hcl=\"`source_eligibility_sql`\"\u003e`sourceEligibilitySql`\u003c/span\u003e you send replace the template's. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "updatedAt": { "type": "string", "description": "When the dashboard was last updated.\n" }, "url": { "type": "string", "description": "Link to this dashboard's page in the Better Stack web app.\n" }, "variables": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardVariable:DashboardVariable" }, "description": "The dashboard's variables, which chart queries use by name, such as `{{source}}`. Returned when you get one dashboard. See [Query variables](https://betterstack.com/docs/logs/dashboards/variables/). Built-in variables: A new dashboard has the built-in 'start_time', 'end_time' and 'source' variables, or the template's own variables when it's created from one. A built-in 'time', 'start_time', 'end_time' or 'source' variable the dashboard already has keeps its own type. Creating: The variables you send are added to the new dashboard. A variable named like one the dashboard starts with, built-in or from the template, changes it as an update would. The template's other variables stay. Updating: An update replaces all variables, so a variable you leave out is removed, except the built-in ones. Fields you leave out: For a variable that already exists, any of \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e you leave out keeps its value, and null clears any of them except \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e: A variable's \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e aren't kept between updates, so send them again. A 'source' variable keeps its sources when you leave out both \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e. Empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e: A 'select_value' variable gets the first of its \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, and a 'string', 'number', 'boolean' or 'sql_expression' variable gets all of them. A 'select_with_sql' variable whose \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e is new or changed gets the first option its SQL returns. Changing \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e: The old \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e are cleared. \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e: Only 'select_with_sql' and 'multi_select_with_sql' variables accept a \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e. A new or changed \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e or filter \u003cspan pulumi-lang-nodejs=\"`sql`\" pulumi-lang-dotnet=\"`Sql`\" pulumi-lang-go=\"`sql`\" pulumi-lang-python=\"`sql`\" pulumi-lang-yaml=\"`sql`\" pulumi-lang-java=\"`sql`\" pulumi-lang-hcl=\"`sql`\"\u003e`sql`\u003c/span\u003e runs against the selected source, and the change is refused when the query fails. Dates: An ISO 8601 date in a 'date' or 'datetime' variable is saved in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e as a Unix timestamp in microseconds.\n" } }, "required": [ "charts", "createdAt", "dashboardGroupId", "dateRangeFrom", "dateRangeTo", "hasOverlaps", "name", "product", "refreshInterval", "resourceGroupName", "sections", "sourceEligibilitySql", "sourceId", "teamId", "teamName", "templateId", "updatedAt", "url", "variables" ], "inputProperties": { "dashboardGroupId": { "type": "string", "description": "Group this dashboard belongs to. Remove the argument or set it to '0' to clear it from its group.\n" }, "dateRangeFrom": { "type": "string", "description": "Default range start, for example now-3h. Defaults to `now-3h`.\n" }, "dateRangeTo": { "type": "string", "description": "Default range end, for example now. Defaults to 'now'.\n" }, "name": { "type": "string", "description": "Dashboard name.\n" }, "product": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/dashboardProduct:DashboardProduct" } ], "description": "The product the dashboard belongs to. Defaults to 'telemetry', and it can't be changed after create. 'telemetry': A dashboard over logs, metrics and traces. 'rum': A Real User Monitoring dashboard.\n" }, "refreshInterval": { "type": "integer", "description": "How often the dashboard refreshes its charts, in seconds. '0' turns automatic refresh off. Defaults to '30'.\n" }, "resourceGroupName": { "type": "string", "description": "Name of the dashboard group to put the new dashboard in. Your group with that name is used, or created when there's none. Send it instead of \u003cspan pulumi-lang-nodejs=\"`dashboardGroupId`\" pulumi-lang-dotnet=\"`DashboardGroupId`\" pulumi-lang-go=\"`dashboardGroupId`\" pulumi-lang-python=\"`dashboard_group_id`\" pulumi-lang-yaml=\"`dashboardGroupId`\" pulumi-lang-java=\"`dashboardGroupId`\" pulumi-lang-hcl=\"`dashboard_group_id`\"\u003e`dashboardGroupId`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sourceEligibilitySql": { "type": "string", "description": "SQL that decides which sources this dashboard's charts can read. Returned when you get one dashboard.\n" }, "sourceId": { "type": "string", "description": "ID of the source or application to set the new dashboard up for, as [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/) or [List applications](https://betterstack.com/docs/errors/api/applications/list/) lists it. For a 'rum' dashboard, \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e is an application's ID. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "teamId": { "type": "string", "description": "Team that owns the dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "templateId": { "type": "string", "description": "ID of the dashboard template to create the dashboard from, as [List dashboard templates](https://betterstack.com/docs/logs/api/dashboards/templates/) lists it. The dashboard starts with the template's charts, sections, alerts, variables and settings. The \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`refreshInterval`\" pulumi-lang-dotnet=\"`RefreshInterval`\" pulumi-lang-go=\"`refreshInterval`\" pulumi-lang-python=\"`refresh_interval`\" pulumi-lang-yaml=\"`refreshInterval`\" pulumi-lang-java=\"`refreshInterval`\" pulumi-lang-hcl=\"`refresh_interval`\"\u003e`refreshInterval`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`dateRangeFrom`\" pulumi-lang-dotnet=\"`DateRangeFrom`\" pulumi-lang-go=\"`dateRangeFrom`\" pulumi-lang-python=\"`date_range_from`\" pulumi-lang-yaml=\"`dateRangeFrom`\" pulumi-lang-java=\"`dateRangeFrom`\" pulumi-lang-hcl=\"`date_range_from`\"\u003e`dateRangeFrom`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`dateRangeTo`\" pulumi-lang-dotnet=\"`DateRangeTo`\" pulumi-lang-go=\"`dateRangeTo`\" pulumi-lang-python=\"`date_range_to`\" pulumi-lang-yaml=\"`dateRangeTo`\" pulumi-lang-java=\"`dateRangeTo`\" pulumi-lang-hcl=\"`date_range_to`\"\u003e`dateRangeTo`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceEligibilitySql`\" pulumi-lang-dotnet=\"`SourceEligibilitySql`\" pulumi-lang-go=\"`sourceEligibilitySql`\" pulumi-lang-python=\"`source_eligibility_sql`\" pulumi-lang-yaml=\"`sourceEligibilitySql`\" pulumi-lang-java=\"`sourceEligibilitySql`\" pulumi-lang-hcl=\"`source_eligibility_sql`\"\u003e`sourceEligibilitySql`\u003c/span\u003e you send replace the template's. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "variables": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardVariable:DashboardVariable" }, "description": "The dashboard's variables, which chart queries use by name, such as `{{source}}`. Returned when you get one dashboard. See [Query variables](https://betterstack.com/docs/logs/dashboards/variables/). Built-in variables: A new dashboard has the built-in 'start_time', 'end_time' and 'source' variables, or the template's own variables when it's created from one. A built-in 'time', 'start_time', 'end_time' or 'source' variable the dashboard already has keeps its own type. Creating: The variables you send are added to the new dashboard. A variable named like one the dashboard starts with, built-in or from the template, changes it as an update would. The template's other variables stay. Updating: An update replaces all variables, so a variable you leave out is removed, except the built-in ones. Fields you leave out: For a variable that already exists, any of \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e you leave out keeps its value, and null clears any of them except \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e: A variable's \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e aren't kept between updates, so send them again. A 'source' variable keeps its sources when you leave out both \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e. Empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e: A 'select_value' variable gets the first of its \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, and a 'string', 'number', 'boolean' or 'sql_expression' variable gets all of them. A 'select_with_sql' variable whose \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e is new or changed gets the first option its SQL returns. Changing \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e: The old \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e are cleared. \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e: Only 'select_with_sql' and 'multi_select_with_sql' variables accept a \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e. A new or changed \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e or filter \u003cspan pulumi-lang-nodejs=\"`sql`\" pulumi-lang-dotnet=\"`Sql`\" pulumi-lang-go=\"`sql`\" pulumi-lang-python=\"`sql`\" pulumi-lang-yaml=\"`sql`\" pulumi-lang-java=\"`sql`\" pulumi-lang-hcl=\"`sql`\"\u003e`sql`\u003c/span\u003e runs against the selected source, and the change is refused when the query fails. Dates: An ISO 8601 date in a 'date' or 'datetime' variable is saved in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e as a Unix timestamp in microseconds.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering Dashboard resources.\n", "properties": { "charts": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartSummary:DashboardChartSummary" }, "description": "A summary of each chart on the dashboard, ordered top to bottom, then left to right. Returned when you get one dashboard. Use [Get dashboard chart](https://betterstack.com/docs/logs/api/charts/get/) for a chart's queries and settings.\n" }, "createdAt": { "type": "string", "description": "When the dashboard was created.\n" }, "dashboardGroupId": { "type": "string", "description": "Group this dashboard belongs to. Remove the argument or set it to '0' to clear it from its group.\n" }, "dateRangeFrom": { "type": "string", "description": "Default range start, for example now-3h. Defaults to `now-3h`.\n" }, "dateRangeTo": { "type": "string", "description": "Default range end, for example now. Defaults to 'now'.\n" }, "hasOverlaps": { "type": "boolean", "description": "Whether any charts overlap on the grid. Returned when you get one dashboard.\n" }, "name": { "type": "string", "description": "Dashboard name.\n" }, "product": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/dashboardProduct:DashboardProduct" } ], "description": "The product the dashboard belongs to. Defaults to 'telemetry', and it can't be changed after create. 'telemetry': A dashboard over logs, metrics and traces. 'rum': A Real User Monitoring dashboard.\n" }, "refreshInterval": { "type": "integer", "description": "How often the dashboard refreshes its charts, in seconds. '0' turns automatic refresh off. Defaults to '30'.\n" }, "resourceGroupName": { "type": "string", "description": "Name of the dashboard group to put the new dashboard in. Your group with that name is used, or created when there's none. Send it instead of \u003cspan pulumi-lang-nodejs=\"`dashboardGroupId`\" pulumi-lang-dotnet=\"`DashboardGroupId`\" pulumi-lang-go=\"`dashboardGroupId`\" pulumi-lang-python=\"`dashboard_group_id`\" pulumi-lang-yaml=\"`dashboardGroupId`\" pulumi-lang-java=\"`dashboardGroupId`\" pulumi-lang-hcl=\"`dashboard_group_id`\"\u003e`dashboardGroupId`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sections": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardSectionSummary:DashboardSectionSummary" }, "description": "Sections on the dashboard. Returned when you get one dashboard.\n" }, "sourceEligibilitySql": { "type": "string", "description": "SQL that decides which sources this dashboard's charts can read. Returned when you get one dashboard.\n" }, "sourceId": { "type": "string", "description": "ID of the source or application to set the new dashboard up for, as [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/) or [List applications](https://betterstack.com/docs/errors/api/applications/list/) lists it. For a 'rum' dashboard, \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e is an application's ID. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "teamId": { "type": "string", "description": "Team that owns the dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the dashboard.\n" }, "templateId": { "type": "string", "description": "ID of the dashboard template to create the dashboard from, as [List dashboard templates](https://betterstack.com/docs/logs/api/dashboards/templates/) lists it. The dashboard starts with the template's charts, sections, alerts, variables and settings. The \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`refreshInterval`\" pulumi-lang-dotnet=\"`RefreshInterval`\" pulumi-lang-go=\"`refreshInterval`\" pulumi-lang-python=\"`refresh_interval`\" pulumi-lang-yaml=\"`refreshInterval`\" pulumi-lang-java=\"`refreshInterval`\" pulumi-lang-hcl=\"`refresh_interval`\"\u003e`refreshInterval`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`dateRangeFrom`\" pulumi-lang-dotnet=\"`DateRangeFrom`\" pulumi-lang-go=\"`dateRangeFrom`\" pulumi-lang-python=\"`date_range_from`\" pulumi-lang-yaml=\"`dateRangeFrom`\" pulumi-lang-java=\"`dateRangeFrom`\" pulumi-lang-hcl=\"`date_range_from`\"\u003e`dateRangeFrom`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`dateRangeTo`\" pulumi-lang-dotnet=\"`DateRangeTo`\" pulumi-lang-go=\"`dateRangeTo`\" pulumi-lang-python=\"`date_range_to`\" pulumi-lang-yaml=\"`dateRangeTo`\" pulumi-lang-java=\"`dateRangeTo`\" pulumi-lang-hcl=\"`date_range_to`\"\u003e`dateRangeTo`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceEligibilitySql`\" pulumi-lang-dotnet=\"`SourceEligibilitySql`\" pulumi-lang-go=\"`sourceEligibilitySql`\" pulumi-lang-python=\"`source_eligibility_sql`\" pulumi-lang-yaml=\"`sourceEligibilitySql`\" pulumi-lang-java=\"`sourceEligibilitySql`\" pulumi-lang-hcl=\"`source_eligibility_sql`\"\u003e`sourceEligibilitySql`\u003c/span\u003e you send replace the template's. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "updatedAt": { "type": "string", "description": "When the dashboard was last updated.\n" }, "url": { "type": "string", "description": "Link to this dashboard's page in the Better Stack web app.\n" }, "variables": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardVariable:DashboardVariable" }, "description": "The dashboard's variables, which chart queries use by name, such as `{{source}}`. Returned when you get one dashboard. See [Query variables](https://betterstack.com/docs/logs/dashboards/variables/). Built-in variables: A new dashboard has the built-in 'start_time', 'end_time' and 'source' variables, or the template's own variables when it's created from one. A built-in 'time', 'start_time', 'end_time' or 'source' variable the dashboard already has keeps its own type. Creating: The variables you send are added to the new dashboard. A variable named like one the dashboard starts with, built-in or from the template, changes it as an update would. The template's other variables stay. Updating: An update replaces all variables, so a variable you leave out is removed, except the built-in ones. Fields you leave out: For a variable that already exists, any of \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e you leave out keeps its value, and null clears any of them except \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e: A variable's \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e aren't kept between updates, so send them again. A 'source' variable keeps its sources when you leave out both \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e. Empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e: A 'select_value' variable gets the first of its \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, and a 'string', 'number', 'boolean' or 'sql_expression' variable gets all of them. A 'select_with_sql' variable whose \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e is new or changed gets the first option its SQL returns. Changing \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e: The old \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e are cleared. \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e: Only 'select_with_sql' and 'multi_select_with_sql' variables accept a \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e. A new or changed \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e or filter \u003cspan pulumi-lang-nodejs=\"`sql`\" pulumi-lang-dotnet=\"`Sql`\" pulumi-lang-go=\"`sql`\" pulumi-lang-python=\"`sql`\" pulumi-lang-yaml=\"`sql`\" pulumi-lang-java=\"`sql`\" pulumi-lang-hcl=\"`sql`\"\u003e`sql`\u003c/span\u003e runs against the selected source, and the change is refused when the query fails. Dates: An ISO 8601 date in a 'date' or 'datetime' variable is saved in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e as a Unix timestamp in microseconds.\n" } }, "type": "object" } }, "betterstack:index/dashboardChart:DashboardChart": { "description": "A chart on a dashboard, backed by one or more queries.\n\n## Example Usage\n\n### Chart errors over time\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Dashboard(\"app\", {name: \"Production app\"});\nconst errors = new betterstack.DashboardChart(\"errors\", {\n dashboardId: app.id,\n chartType: betterstack.DashboardChartChartType.LineChart,\n name: \"Errors\",\n queries: [{\n queryType: \"sql_expression\",\n sqlQuery: \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Dashboard(\"app\", name=\"Production app\")\nerrors = betterstack.DashboardChart(\"errors\",\n dashboard_id=app.id,\n chart_type=betterstack.DashboardChartChartType.LINE_CHART,\n name=\"Errors\",\n queries=[{\n \"query_type\": \"sql_expression\",\n \"sql_query\": \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Dashboard(\"app\", new()\n {\n Name = \"Production app\",\n });\n\n var errors = new BetterStack.DashboardChart(\"errors\", new()\n {\n DashboardId = app.Id,\n ChartType = BetterStack.DashboardChartChartType.LineChart,\n Name = \"Errors\",\n Queries = new[]\n {\n new BetterStack.Inputs.DashboardChartQueryArgs\n {\n QueryType = \"sql_expression\",\n SqlQuery = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewDashboard(ctx, \"app\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewDashboardChart(ctx, \"errors\", \u0026betterstack.DashboardChartArgs{\n\t\t\tDashboardId: app.ID(),\n\t\t\tChartType: pulumi.String(betterstack.DashboardChartChartTypeLineChart),\n\t\t\tName: pulumi.String(\"Errors\"),\n\t\t\tQueries: betterstack.DashboardChartQueryArray{\n\t\t\t\t\u0026betterstack.DashboardChartQueryArgs{\n\t\t\t\t\tQueryType: pulumi.String(\"sql_expression\"),\n\t\t\t\t\tSqlQuery: pulumi.String(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_dashboard\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n}\nresource \"betterstack_dashboard_chart\" \"errors\" {\n lifecycle {\n create_before_destroy = true\n }\n dashboard_id = betterstack_dashboard.app.id\n chart_type = \"line_chart\"\n name = \"Errors\"\n queries = [{\n query_type = \"sql_expression\"\n sql_query = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport com.betterstack.pulumi.DashboardChart;\nimport com.betterstack.pulumi.DashboardChartArgs;\nimport com.betterstack.pulumi.inputs.DashboardChartQueryArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Dashboard(\"app\", DashboardArgs.builder()\n .name(\"Production app\")\n .build());\n\n var errors = new DashboardChart(\"errors\", DashboardChartArgs.builder()\n .dashboardId(app.id())\n .chartType(\"line_chart\")\n .name(\"Errors\")\n .queries(DashboardChartQueryArgs.builder()\n .queryType(\"sql_expression\")\n .sqlQuery(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Dashboard\n properties:\n name: Production app\n errors:\n type: betterstack:DashboardChart\n properties:\n dashboardId: ${app.id}\n chartType: line_chart\n name: Errors\n queries:\n - queryType: sql_expression\n sqlQuery: SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Show the error count in red above 100\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Dashboard(\"app\", {name: \"Production app\"});\nconst errorCount = new betterstack.DashboardChart(\"error_count\", {\n dashboardId: app.id,\n chartType: betterstack.DashboardChartChartType.NumberChart,\n name: \"Errors\",\n w: 3,\n settings: {\n colorMode: \"high_red\",\n colorUpperThreshold: 100,\n colorLowerThreshold: 10,\n },\n queries: [{\n queryType: \"sql_expression\",\n sqlQuery: \"SELECT count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error'\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Dashboard(\"app\", name=\"Production app\")\nerror_count = betterstack.DashboardChart(\"error_count\",\n dashboard_id=app.id,\n chart_type=betterstack.DashboardChartChartType.NUMBER_CHART,\n name=\"Errors\",\n w=3,\n settings={\n \"color_mode\": \"high_red\",\n \"color_upper_threshold\": float(100),\n \"color_lower_threshold\": float(10),\n },\n queries=[{\n \"query_type\": \"sql_expression\",\n \"sql_query\": \"SELECT count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error'\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Dashboard(\"app\", new()\n {\n Name = \"Production app\",\n });\n\n var errorCount = new BetterStack.DashboardChart(\"error_count\", new()\n {\n DashboardId = app.Id,\n ChartType = BetterStack.DashboardChartChartType.NumberChart,\n Name = \"Errors\",\n W = 3,\n Settings = new BetterStack.Inputs.DashboardChartSettingsArgs\n {\n ColorMode = \"high_red\",\n ColorUpperThreshold = 100.0,\n ColorLowerThreshold = 10.0,\n },\n Queries = new[]\n {\n new BetterStack.Inputs.DashboardChartQueryArgs\n {\n QueryType = \"sql_expression\",\n SqlQuery = \"SELECT count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error'\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewDashboard(ctx, \"app\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewDashboardChart(ctx, \"error_count\", \u0026betterstack.DashboardChartArgs{\n\t\t\tDashboardId: app.ID(),\n\t\t\tChartType: pulumi.String(betterstack.DashboardChartChartTypeNumberChart),\n\t\t\tName: pulumi.String(\"Errors\"),\n\t\t\tW: pulumi.Int(3),\n\t\t\tSettings: \u0026betterstack.DashboardChartSettingsArgs{\n\t\t\t\tColorMode: pulumi.String(\"high_red\"),\n\t\t\t\tColorUpperThreshold: pulumi.Float64(100),\n\t\t\t\tColorLowerThreshold: pulumi.Float64(10),\n\t\t\t},\n\t\t\tQueries: betterstack.DashboardChartQueryArray{\n\t\t\t\t\u0026betterstack.DashboardChartQueryArgs{\n\t\t\t\t\tQueryType: pulumi.String(\"sql_expression\"),\n\t\t\t\t\tSqlQuery: pulumi.String(\"SELECT count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error'\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_dashboard\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n}\nresource \"betterstack_dashboard_chart\" \"error_count\" {\n lifecycle {\n create_before_destroy = true\n }\n dashboard_id = betterstack_dashboard.app.id\n chart_type = \"number_chart\"\n name = \"Errors\"\n w = 3\n settings = {\n color_mode = \"high_red\"\n color_upper_threshold = 100\n color_lower_threshold = 10\n }\n queries = [{\n query_type = \"sql_expression\"\n sql_query = \"SELECT count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error'\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport com.betterstack.pulumi.DashboardChart;\nimport com.betterstack.pulumi.DashboardChartArgs;\nimport com.betterstack.pulumi.inputs.DashboardChartSettingsArgs;\nimport com.betterstack.pulumi.inputs.DashboardChartQueryArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Dashboard(\"app\", DashboardArgs.builder()\n .name(\"Production app\")\n .build());\n\n var errorCount = new DashboardChart(\"errorCount\", DashboardChartArgs.builder()\n .dashboardId(app.id())\n .chartType(\"number_chart\")\n .name(\"Errors\")\n .w(3)\n .settings(DashboardChartSettingsArgs.builder()\n .colorMode(\"high_red\")\n .colorUpperThreshold(100.0)\n .colorLowerThreshold(10.0)\n .build())\n .queries(DashboardChartQueryArgs.builder()\n .queryType(\"sql_expression\")\n .sqlQuery(\"SELECT count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error'\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Dashboard\n properties:\n name: Production app\n errorCount:\n type: betterstack:DashboardChart\n name: error_count\n properties:\n dashboardId: ${app.id}\n chartType: number_chart\n name: Errors\n w: 3\n settings:\n colorMode: high_red\n colorUpperThreshold: 100\n colorLowerThreshold: 10\n queries:\n - queryType: sql_expression\n sqlQuery: SELECT count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Link a runbook in a text chart\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Dashboard(\"app\", {name: \"Production app\"});\nconst runbook = new betterstack.DashboardChart(\"runbook\", {\n dashboardId: app.id,\n chartType: betterstack.DashboardChartChartType.StaticTextChart,\n name: \"Runbook\",\n x: 0,\n y: 0,\n w: 12,\n h: 2,\n queries: [{\n queryType: \"static_text\",\n staticText: \"On call? Start with the [checkout runbook](https://wiki.example.com/runbooks/checkout).\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Dashboard(\"app\", name=\"Production app\")\nrunbook = betterstack.DashboardChart(\"runbook\",\n dashboard_id=app.id,\n chart_type=betterstack.DashboardChartChartType.STATIC_TEXT_CHART,\n name=\"Runbook\",\n x=0,\n y=0,\n w=12,\n h=2,\n queries=[{\n \"query_type\": \"static_text\",\n \"static_text\": \"On call? Start with the [checkout runbook](https://wiki.example.com/runbooks/checkout).\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Dashboard(\"app\", new()\n {\n Name = \"Production app\",\n });\n\n var runbook = new BetterStack.DashboardChart(\"runbook\", new()\n {\n DashboardId = app.Id,\n ChartType = BetterStack.DashboardChartChartType.StaticTextChart,\n Name = \"Runbook\",\n X = 0,\n Y = 0,\n W = 12,\n H = 2,\n Queries = new[]\n {\n new BetterStack.Inputs.DashboardChartQueryArgs\n {\n QueryType = \"static_text\",\n StaticText = \"On call? Start with the [checkout runbook](https://wiki.example.com/runbooks/checkout).\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewDashboard(ctx, \"app\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewDashboardChart(ctx, \"runbook\", \u0026betterstack.DashboardChartArgs{\n\t\t\tDashboardId: app.ID(),\n\t\t\tChartType: pulumi.String(betterstack.DashboardChartChartTypeStaticTextChart),\n\t\t\tName: pulumi.String(\"Runbook\"),\n\t\t\tX: pulumi.Int(0),\n\t\t\tY: pulumi.Int(0),\n\t\t\tW: pulumi.Int(12),\n\t\t\tH: pulumi.Int(2),\n\t\t\tQueries: betterstack.DashboardChartQueryArray{\n\t\t\t\t\u0026betterstack.DashboardChartQueryArgs{\n\t\t\t\t\tQueryType: pulumi.String(\"static_text\"),\n\t\t\t\t\tStaticText: pulumi.String(\"On call? Start with the [checkout runbook](https://wiki.example.com/runbooks/checkout).\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_dashboard\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n}\nresource \"betterstack_dashboard_chart\" \"runbook\" {\n lifecycle {\n create_before_destroy = true\n }\n dashboard_id = betterstack_dashboard.app.id\n chart_type = \"static_text_chart\"\n name = \"Runbook\"\n x = 0\n y = 0\n w = 12\n h = 2\n queries = [{\n query_type = \"static_text\"\n static_text = \"On call? Start with the [checkout runbook](https://wiki.example.com/runbooks/checkout).\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport com.betterstack.pulumi.DashboardChart;\nimport com.betterstack.pulumi.DashboardChartArgs;\nimport com.betterstack.pulumi.inputs.DashboardChartQueryArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Dashboard(\"app\", DashboardArgs.builder()\n .name(\"Production app\")\n .build());\n\n var runbook = new DashboardChart(\"runbook\", DashboardChartArgs.builder()\n .dashboardId(app.id())\n .chartType(\"static_text_chart\")\n .name(\"Runbook\")\n .x(0)\n .y(0)\n .w(12)\n .h(2)\n .queries(DashboardChartQueryArgs.builder()\n .queryType(\"static_text\")\n .staticText(\"On call? Start with the [checkout runbook](https://wiki.example.com/runbooks/checkout).\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Dashboard\n properties:\n name: Production app\n runbook:\n type: betterstack:DashboardChart\n properties:\n dashboardId: ${app.id}\n chartType: static_text_chart\n name: Runbook\n x: 0\n y: 0\n w: 12\n h: 2\n queries:\n - queryType: static_text\n staticText: On call? Start with the [checkout runbook](https://wiki.example.com/runbooks/checkout).\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing dashboard chart by its ID as `dashboard_id/id`. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/dashboardChart:DashboardChart example \u003cdashboard_id\u003e/12345\n```\n\n", "properties": { "chartType": { "type": "string", "description": "Chart type. Only a 'line_chart' can have more than one query. An update can't change it to a type the chart's existing queries or alerts don't work with. Changing it in an update without \u003cspan pulumi-lang-nodejs=\"`queries`\" pulumi-lang-dotnet=\"`Queries`\" pulumi-lang-go=\"`queries`\" pulumi-lang-python=\"`queries`\" pulumi-lang-yaml=\"`queries`\" pulumi-lang-java=\"`queries`\" pulumi-lang-hcl=\"`queries`\"\u003e`queries`\u003c/span\u003e turns Drag \u0026 drop queries into 'sql_expression' queries with the same SQL. 'line_chart': Accepts 'sql_expression' and 'tail_query' queries. 'bar_chart': Accepts 'sql_expression' and 'tail_query' queries. 'pie_chart': Accepts 'sql_expression' queries. 'scatter_chart': Accepts 'sql_expression' queries. 'gauge_chart': Accepts 'sql_expression' and 'tail_query' queries. 'number_chart': Accepts 'sql_expression' and 'tail_query' queries. 'heatmap_chart': Accepts 'sql_expression' queries. 'table_chart': Accepts 'sql_expression' queries. 'map_chart': Accepts 'sql_expression' queries. 'text_chart': Accepts 'sql_expression' and 'tail_query' queries. 'tail_chart': Accepts 'tail_query' queries. 'static_text_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query. 'funnel_chart': Holds a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query made in the app. 'funnel_trend_chart': Holds a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query made in the app. 'anomalies_chart': Accepts 'tail_query' queries. 'hierarchy_chart': Accepts 'sql_expression' queries.\n" }, "dashboardId": { "type": "string", "description": "Dashboard this chart is on. Can't be changed after the chart is created. Changing it replaces the resource.\n" }, "description": { "type": "string", "description": "Chart description.\n" }, "explanation": { "type": "string", "description": "Explanation of what the chart shows. AI SRE and the chart's AI summary use it.\n" }, "h": { "type": "integer", "description": "Grid height. Defaults to '4'.\n" }, "name": { "type": "string", "description": "Chart name. Defaults to `Your chart`.\n" }, "queries": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQuery:DashboardChartQuery" }, "description": "The chart's queries. You can write 'sql_expression', 'tail_query' and \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e queries. Other types, such as 'query_builder', 'pql_expression' and PromQL, are returned but can't be written. Updating a chart replaces all of its queries. A chart created or updated with 'query' gets a single query built from it. A chart other than 'static_text_chart' needs at least one query, and only a 'line_chart' can have more than one.\n" }, "settings": { "$ref": "#/types/betterstack:index/DashboardChartSettings:DashboardChartSettings", "description": "Display settings for the \u003cspan pulumi-lang-nodejs=\"`chartType`\" pulumi-lang-dotnet=\"`ChartType`\" pulumi-lang-go=\"`chartType`\" pulumi-lang-python=\"`chart_type`\" pulumi-lang-yaml=\"`chartType`\" pulumi-lang-java=\"`chartType`\" pulumi-lang-hcl=\"`chart_type`\"\u003e`chartType`\u003c/span\u003e, such as unit, axes, legend, stacking and decimal places. An update replaces all of them. Switching \u003cspan pulumi-lang-nodejs=\"`xAxisType`\" pulumi-lang-dotnet=\"`XAxisType`\" pulumi-lang-go=\"`xAxisType`\" pulumi-lang-python=\"`x_axis_type`\" pulumi-lang-yaml=\"`xAxisType`\" pulumi-lang-java=\"`xAxisType`\" pulumi-lang-hcl=\"`x_axis_type`\"\u003e`xAxisType`\u003c/span\u003e to or from 'category' in an update without \u003cspan pulumi-lang-nodejs=\"`queries`\" pulumi-lang-dotnet=\"`Queries`\" pulumi-lang-go=\"`queries`\" pulumi-lang-python=\"`queries`\" pulumi-lang-yaml=\"`queries`\" pulumi-lang-java=\"`queries`\" pulumi-lang-hcl=\"`queries`\"\u003e`queries`\u003c/span\u003e turns the chart's Drag \u0026 drop queries into 'sql_expression' queries with the same SQL. Defaults to an empty object.\n" }, "teamId": { "type": "string", "description": "Team that owns the chart's dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "w": { "type": "integer", "description": "Grid width. Defaults to '6'.\n" }, "x": { "type": "integer", "description": "The chart's horizontal position on the 12-column grid, from '0' at the left.\n" }, "y": { "type": "integer", "description": "The chart's vertical position on the grid, from '0' at the top.\n" } }, "required": [ "chartType", "dashboardId", "h", "name", "queries", "settings", "teamId", "w", "x", "y" ], "inputProperties": { "chartType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/dashboardChartChartType:DashboardChartChartType" } ], "description": "Chart type. Only a 'line_chart' can have more than one query. An update can't change it to a type the chart's existing queries or alerts don't work with. Changing it in an update without \u003cspan pulumi-lang-nodejs=\"`queries`\" pulumi-lang-dotnet=\"`Queries`\" pulumi-lang-go=\"`queries`\" pulumi-lang-python=\"`queries`\" pulumi-lang-yaml=\"`queries`\" pulumi-lang-java=\"`queries`\" pulumi-lang-hcl=\"`queries`\"\u003e`queries`\u003c/span\u003e turns Drag \u0026 drop queries into 'sql_expression' queries with the same SQL. 'line_chart': Accepts 'sql_expression' and 'tail_query' queries. 'bar_chart': Accepts 'sql_expression' and 'tail_query' queries. 'pie_chart': Accepts 'sql_expression' queries. 'scatter_chart': Accepts 'sql_expression' queries. 'gauge_chart': Accepts 'sql_expression' and 'tail_query' queries. 'number_chart': Accepts 'sql_expression' and 'tail_query' queries. 'heatmap_chart': Accepts 'sql_expression' queries. 'table_chart': Accepts 'sql_expression' queries. 'map_chart': Accepts 'sql_expression' queries. 'text_chart': Accepts 'sql_expression' and 'tail_query' queries. 'tail_chart': Accepts 'tail_query' queries. 'static_text_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query. 'funnel_chart': Holds a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query made in the app. 'funnel_trend_chart': Holds a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query made in the app. 'anomalies_chart': Accepts 'tail_query' queries. 'hierarchy_chart': Accepts 'sql_expression' queries.\n" }, "dashboardId": { "type": "string", "description": "Dashboard this chart is on. Can't be changed after the chart is created. Changing it replaces the resource.\n" }, "description": { "type": "string", "description": "Chart description.\n" }, "explanation": { "type": "string", "description": "Explanation of what the chart shows. AI SRE and the chart's AI summary use it.\n" }, "h": { "type": "integer", "description": "Grid height. Defaults to '4'.\n" }, "name": { "type": "string", "description": "Chart name. Defaults to `Your chart`.\n" }, "queries": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQuery:DashboardChartQuery" }, "description": "The chart's queries. You can write 'sql_expression', 'tail_query' and \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e queries. Other types, such as 'query_builder', 'pql_expression' and PromQL, are returned but can't be written. Updating a chart replaces all of its queries. A chart created or updated with 'query' gets a single query built from it. A chart other than 'static_text_chart' needs at least one query, and only a 'line_chart' can have more than one.\n" }, "settings": { "$ref": "#/types/betterstack:index/DashboardChartSettings:DashboardChartSettings", "description": "Display settings for the \u003cspan pulumi-lang-nodejs=\"`chartType`\" pulumi-lang-dotnet=\"`ChartType`\" pulumi-lang-go=\"`chartType`\" pulumi-lang-python=\"`chart_type`\" pulumi-lang-yaml=\"`chartType`\" pulumi-lang-java=\"`chartType`\" pulumi-lang-hcl=\"`chart_type`\"\u003e`chartType`\u003c/span\u003e, such as unit, axes, legend, stacking and decimal places. An update replaces all of them. Switching \u003cspan pulumi-lang-nodejs=\"`xAxisType`\" pulumi-lang-dotnet=\"`XAxisType`\" pulumi-lang-go=\"`xAxisType`\" pulumi-lang-python=\"`x_axis_type`\" pulumi-lang-yaml=\"`xAxisType`\" pulumi-lang-java=\"`xAxisType`\" pulumi-lang-hcl=\"`x_axis_type`\"\u003e`xAxisType`\u003c/span\u003e to or from 'category' in an update without \u003cspan pulumi-lang-nodejs=\"`queries`\" pulumi-lang-dotnet=\"`Queries`\" pulumi-lang-go=\"`queries`\" pulumi-lang-python=\"`queries`\" pulumi-lang-yaml=\"`queries`\" pulumi-lang-java=\"`queries`\" pulumi-lang-hcl=\"`queries`\"\u003e`queries`\u003c/span\u003e turns the chart's Drag \u0026 drop queries into 'sql_expression' queries with the same SQL. Defaults to an empty object.\n" }, "teamId": { "type": "string", "description": "Team that owns the chart's dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "w": { "type": "integer", "description": "Grid width. Defaults to '6'.\n" }, "x": { "type": "integer", "description": "The chart's horizontal position on the 12-column grid, from '0' at the left.\n" }, "y": { "type": "integer", "description": "The chart's vertical position on the grid, from '0' at the top.\n" } }, "requiredInputs": [ "chartType", "dashboardId", "queries" ], "stateInputs": { "description": "Input properties used for looking up and filtering DashboardChart resources.\n", "properties": { "chartType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/dashboardChartChartType:DashboardChartChartType" } ], "description": "Chart type. Only a 'line_chart' can have more than one query. An update can't change it to a type the chart's existing queries or alerts don't work with. Changing it in an update without \u003cspan pulumi-lang-nodejs=\"`queries`\" pulumi-lang-dotnet=\"`Queries`\" pulumi-lang-go=\"`queries`\" pulumi-lang-python=\"`queries`\" pulumi-lang-yaml=\"`queries`\" pulumi-lang-java=\"`queries`\" pulumi-lang-hcl=\"`queries`\"\u003e`queries`\u003c/span\u003e turns Drag \u0026 drop queries into 'sql_expression' queries with the same SQL. 'line_chart': Accepts 'sql_expression' and 'tail_query' queries. 'bar_chart': Accepts 'sql_expression' and 'tail_query' queries. 'pie_chart': Accepts 'sql_expression' queries. 'scatter_chart': Accepts 'sql_expression' queries. 'gauge_chart': Accepts 'sql_expression' and 'tail_query' queries. 'number_chart': Accepts 'sql_expression' and 'tail_query' queries. 'heatmap_chart': Accepts 'sql_expression' queries. 'table_chart': Accepts 'sql_expression' queries. 'map_chart': Accepts 'sql_expression' queries. 'text_chart': Accepts 'sql_expression' and 'tail_query' queries. 'tail_chart': Accepts 'tail_query' queries. 'static_text_chart': Accepts a \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query. 'funnel_chart': Holds a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query made in the app. 'funnel_trend_chart': Holds a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e query made in the app. 'anomalies_chart': Accepts 'tail_query' queries. 'hierarchy_chart': Accepts 'sql_expression' queries.\n" }, "dashboardId": { "type": "string", "description": "Dashboard this chart is on. Can't be changed after the chart is created. Changing it replaces the resource.\n" }, "description": { "type": "string", "description": "Chart description.\n" }, "explanation": { "type": "string", "description": "Explanation of what the chart shows. AI SRE and the chart's AI summary use it.\n" }, "h": { "type": "integer", "description": "Grid height. Defaults to '4'.\n" }, "name": { "type": "string", "description": "Chart name. Defaults to `Your chart`.\n" }, "queries": { "type": "array", "items": { "$ref": "#/types/betterstack:index/DashboardChartQuery:DashboardChartQuery" }, "description": "The chart's queries. You can write 'sql_expression', 'tail_query' and \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e queries. Other types, such as 'query_builder', 'pql_expression' and PromQL, are returned but can't be written. Updating a chart replaces all of its queries. A chart created or updated with 'query' gets a single query built from it. A chart other than 'static_text_chart' needs at least one query, and only a 'line_chart' can have more than one.\n" }, "settings": { "$ref": "#/types/betterstack:index/DashboardChartSettings:DashboardChartSettings", "description": "Display settings for the \u003cspan pulumi-lang-nodejs=\"`chartType`\" pulumi-lang-dotnet=\"`ChartType`\" pulumi-lang-go=\"`chartType`\" pulumi-lang-python=\"`chart_type`\" pulumi-lang-yaml=\"`chartType`\" pulumi-lang-java=\"`chartType`\" pulumi-lang-hcl=\"`chart_type`\"\u003e`chartType`\u003c/span\u003e, such as unit, axes, legend, stacking and decimal places. An update replaces all of them. Switching \u003cspan pulumi-lang-nodejs=\"`xAxisType`\" pulumi-lang-dotnet=\"`XAxisType`\" pulumi-lang-go=\"`xAxisType`\" pulumi-lang-python=\"`x_axis_type`\" pulumi-lang-yaml=\"`xAxisType`\" pulumi-lang-java=\"`xAxisType`\" pulumi-lang-hcl=\"`x_axis_type`\"\u003e`xAxisType`\u003c/span\u003e to or from 'category' in an update without \u003cspan pulumi-lang-nodejs=\"`queries`\" pulumi-lang-dotnet=\"`Queries`\" pulumi-lang-go=\"`queries`\" pulumi-lang-python=\"`queries`\" pulumi-lang-yaml=\"`queries`\" pulumi-lang-java=\"`queries`\" pulumi-lang-hcl=\"`queries`\"\u003e`queries`\u003c/span\u003e turns the chart's Drag \u0026 drop queries into 'sql_expression' queries with the same SQL. Defaults to an empty object.\n" }, "teamId": { "type": "string", "description": "Team that owns the chart's dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "w": { "type": "integer", "description": "Grid width. Defaults to '6'.\n" }, "x": { "type": "integer", "description": "The chart's horizontal position on the 12-column grid, from '0' at the left.\n" }, "y": { "type": "integer", "description": "The chart's vertical position on the grid, from '0' at the top.\n" } }, "type": "object" }, "listInputs": { "properties": { "dashboardId": { "type": "string", "description": "ID of the dashboard to list from.\n" } }, "type": "object", "required": [ "dashboardId" ] } }, "betterstack:index/dashboardGroup:DashboardGroup": { "description": "A group that organizes related dashboards together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.DashboardGroup(\"example\", {name: \"Production Monitoring\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.DashboardGroup(\"example\", name=\"Production Monitoring\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.DashboardGroup(\"example\", new()\n {\n Name = \"Production Monitoring\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewDashboardGroup(ctx, \"example\", \u0026betterstack.DashboardGroupArgs{\n\t\t\tName: pulumi.String(\"Production Monitoring\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_dashboard_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production Monitoring\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.DashboardGroup;\nimport com.betterstack.pulumi.DashboardGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new DashboardGroup(\"example\", DashboardGroupArgs.builder()\n .name(\"Production Monitoring\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:DashboardGroup\n properties:\n name: Production Monitoring\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing dashboard group by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/dashboardGroup:DashboardGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering DashboardGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/dashboardSection:DashboardSection": { "description": "A full-width section divider that groups charts on a dashboard.\n\n## Example Usage\n\n### Add a section for errors\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Dashboard(\"app\", {name: \"Production app\"});\nconst errors = new betterstack.DashboardSection(\"errors\", {\n dashboardId: app.id,\n name: \"Errors\",\n y: 10,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Dashboard(\"app\", name=\"Production app\")\nerrors = betterstack.DashboardSection(\"errors\",\n dashboard_id=app.id,\n name=\"Errors\",\n y=10)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Dashboard(\"app\", new()\n {\n Name = \"Production app\",\n });\n\n var errors = new BetterStack.DashboardSection(\"errors\", new()\n {\n DashboardId = app.Id,\n Name = \"Errors\",\n Y = 10,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewDashboard(ctx, \"app\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewDashboardSection(ctx, \"errors\", \u0026betterstack.DashboardSectionArgs{\n\t\t\tDashboardId: app.ID(),\n\t\t\tName: pulumi.String(\"Errors\"),\n\t\t\tY: pulumi.Int(10),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_dashboard\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n}\nresource \"betterstack_dashboard_section\" \"errors\" {\n lifecycle {\n create_before_destroy = true\n }\n dashboard_id = betterstack_dashboard.app.id\n name = \"Errors\"\n y = 10\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport com.betterstack.pulumi.DashboardSection;\nimport com.betterstack.pulumi.DashboardSectionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Dashboard(\"app\", DashboardArgs.builder()\n .name(\"Production app\")\n .build());\n\n var errors = new DashboardSection(\"errors\", DashboardSectionArgs.builder()\n .dashboardId(app.id())\n .name(\"Errors\")\n .y(10)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Dashboard\n properties:\n name: Production app\n errors:\n type: betterstack:DashboardSection\n properties:\n dashboardId: ${app.id}\n name: Errors\n y: 10\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Collapse a section below the last chart\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Dashboard(\"app\", {name: \"Production app\"});\nconst backgroundJobs = new betterstack.DashboardSection(\"background_jobs\", {\n dashboardId: app.id,\n name: \"Background jobs\",\n collapsed: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Dashboard(\"app\", name=\"Production app\")\nbackground_jobs = betterstack.DashboardSection(\"background_jobs\",\n dashboard_id=app.id,\n name=\"Background jobs\",\n collapsed=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Dashboard(\"app\", new()\n {\n Name = \"Production app\",\n });\n\n var backgroundJobs = new BetterStack.DashboardSection(\"background_jobs\", new()\n {\n DashboardId = app.Id,\n Name = \"Background jobs\",\n Collapsed = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewDashboard(ctx, \"app\", \u0026betterstack.DashboardArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewDashboardSection(ctx, \"background_jobs\", \u0026betterstack.DashboardSectionArgs{\n\t\t\tDashboardId: app.ID(),\n\t\t\tName: pulumi.String(\"Background jobs\"),\n\t\t\tCollapsed: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_dashboard\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n}\nresource \"betterstack_dashboard_section\" \"background_jobs\" {\n lifecycle {\n create_before_destroy = true\n }\n dashboard_id = betterstack_dashboard.app.id\n name = \"Background jobs\"\n collapsed = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Dashboard;\nimport com.betterstack.pulumi.DashboardArgs;\nimport com.betterstack.pulumi.DashboardSection;\nimport com.betterstack.pulumi.DashboardSectionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Dashboard(\"app\", DashboardArgs.builder()\n .name(\"Production app\")\n .build());\n\n var backgroundJobs = new DashboardSection(\"backgroundJobs\", DashboardSectionArgs.builder()\n .dashboardId(app.id())\n .name(\"Background jobs\")\n .collapsed(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Dashboard\n properties:\n name: Production app\n backgroundJobs:\n type: betterstack:DashboardSection\n name: background_jobs\n properties:\n dashboardId: ${app.id}\n name: Background jobs\n collapsed: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing dashboard section by its ID as `dashboard_id/id`. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/dashboardSection:DashboardSection example \u003cdashboard_id\u003e/12345\n```\n\n", "properties": { "collapsed": { "type": "boolean", "description": "Whether the section starts collapsed. Defaults to false.\n" }, "dashboardId": { "type": "string", "description": "Dashboard this section is on. Can't be changed after the section is created. Changing it replaces the resource.\n" }, "explanation": { "type": "string", "description": "Explanation of what the section groups.\n" }, "name": { "type": "string", "description": "Section name.\n" }, "teamId": { "type": "string", "description": "Team that owns the section's dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "y": { "type": "integer", "description": "Vertical position on the dashboard grid, from '0' at the top. When an update moves the section onto a chart, the dashboard rearranges its layout shortly after so nothing overlaps. Defaults to just below the last section or chart.\n" } }, "required": [ "collapsed", "dashboardId", "name", "teamId", "y" ], "inputProperties": { "collapsed": { "type": "boolean", "description": "Whether the section starts collapsed. Defaults to false.\n" }, "dashboardId": { "type": "string", "description": "Dashboard this section is on. Can't be changed after the section is created. Changing it replaces the resource.\n" }, "explanation": { "type": "string", "description": "Explanation of what the section groups.\n" }, "name": { "type": "string", "description": "Section name.\n" }, "teamId": { "type": "string", "description": "Team that owns the section's dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "y": { "type": "integer", "description": "Vertical position on the dashboard grid, from '0' at the top. When an update moves the section onto a chart, the dashboard rearranges its layout shortly after so nothing overlaps. Defaults to just below the last section or chart.\n" } }, "requiredInputs": [ "dashboardId", "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering DashboardSection resources.\n", "properties": { "collapsed": { "type": "boolean", "description": "Whether the section starts collapsed. Defaults to false.\n" }, "dashboardId": { "type": "string", "description": "Dashboard this section is on. Can't be changed after the section is created. Changing it replaces the resource.\n" }, "explanation": { "type": "string", "description": "Explanation of what the section groups.\n" }, "name": { "type": "string", "description": "Section name.\n" }, "teamId": { "type": "string", "description": "Team that owns the section's dashboard, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "y": { "type": "integer", "description": "Vertical position on the dashboard grid, from '0' at the top. When an update moves the section onto a chart, the dashboard rearranges its layout shortly after so nothing overlaps. Defaults to just below the last section or chart.\n" } }, "type": "object" }, "listInputs": { "properties": { "dashboardId": { "type": "string", "description": "ID of the dashboard to list from.\n" } }, "type": "object", "required": [ "dashboardId" ] } }, "betterstack:index/errorsJiraIntegration:ErrorsJiraIntegration": { "description": "An Error tracking Jira integration. The integration sets which errors are filed as Jira work items, in which space, and with which work type and fields.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ErrorsJiraIntegration(\"example\", {integrationId: \"12345\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ErrorsJiraIntegration(\"example\", integration_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ErrorsJiraIntegration(\"example\", new()\n {\n IntegrationId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewErrorsJiraIntegration(ctx, \"example\", \u0026betterstack.ErrorsJiraIntegrationArgs{\n\t\t\tIntegrationId: pulumi.String(\"12345\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_errors_jira_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ErrorsJiraIntegration;\nimport com.betterstack.pulumi.ErrorsJiraIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ErrorsJiraIntegration(\"example\", ErrorsJiraIntegrationArgs.builder()\n .integrationId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ErrorsJiraIntegration\n properties:\n integrationId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Remove the integration in [Error tracking → Integrations](https://errors.betterstack.com/team/0/integrations) in the web app. Every request needs a role that can manage Error tracking integrations.\n\n\u003e You can't change \u003cspan pulumi-lang-nodejs=\"`jiraProjectKey`\" pulumi-lang-dotnet=\"`JiraProjectKey`\" pulumi-lang-go=\"`jiraProjectKey`\" pulumi-lang-python=\"`jira_project_key`\" pulumi-lang-yaml=\"`jiraProjectKey`\" pulumi-lang-java=\"`jiraProjectKey`\" pulumi-lang-hcl=\"`jira_project_key`\"\u003e`jiraProjectKey`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`jiraIssueTypeId`\" pulumi-lang-dotnet=\"`JiraIssueTypeId`\" pulumi-lang-go=\"`jiraIssueTypeId`\" pulumi-lang-python=\"`jira_issue_type_id`\" pulumi-lang-yaml=\"`jiraIssueTypeId`\" pulumi-lang-java=\"`jiraIssueTypeId`\" pulumi-lang-hcl=\"`jira_issue_type_id`\"\u003e`jiraIssueTypeId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e until a Jira site is chosen, or while the Jira authorization has expired. Re-authorize Jira in the web app first.\n\n## Import\n\nImport an existing Errors Jira integration by its ID. Get the ID via [List Jira integrations](https://betterstack.com/docs/errors/api/integrations/jira/list/).\n\n```sh\n$ pulumi import betterstack:index/errorsJiraIntegration:ErrorsJiraIntegration example 12345\n```\n\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationApplication:ErrorsJiraIntegrationApplication" }, "description": "Applications this integration files work items for, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "More Jira fields set on new work items, keyed by Jira field ID. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.\n" }, "jiraIssueTypeId": { "type": "string", "description": "The ID of the Jira work type new work items get.\n" }, "jiraProjectKey": { "type": "string", "description": "The key of the Jira space work items are created in. When you change it, send \u003cspan pulumi-lang-nodejs=\"`jiraIssueTypeId`\" pulumi-lang-dotnet=\"`JiraIssueTypeId`\" pulumi-lang-go=\"`jiraIssueTypeId`\" pulumi-lang-python=\"`jira_issue_type_id`\" pulumi-lang-yaml=\"`jiraIssueTypeId`\" pulumi-lang-java=\"`jiraIssueTypeId`\" pulumi-lang-hcl=\"`jira_issue_type_id`\"\u003e`jiraIssueTypeId`\u003c/span\u003e in the same request. A change also clears \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e unless you send them too.\n" }, "jiraSiteUrl": { "type": "string", "description": "Jira site the integration is connected to.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationNotifications:ErrorsJiraIntegrationNotifications", "description": "Which events file a Jira work item, as under **Automatic work item creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationTagFilter:ErrorsJiraIntegrationTagFilter" }, "description": "The tags an error must have to get a work item. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "required": [ "affectedUsersThresholdCount", "applications", "integrationId", "jiraFields", "jiraIssueTypeId", "jiraProjectKey", "jiraSiteUrl", "name", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "tagFilters", "teamId", "teamName" ], "inputProperties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationApplication:ErrorsJiraIntegrationApplication" }, "description": "Applications this integration files work items for, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "More Jira fields set on new work items, keyed by Jira field ID. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.\n" }, "jiraIssueTypeId": { "type": "string", "description": "The ID of the Jira work type new work items get.\n" }, "jiraProjectKey": { "type": "string", "description": "The key of the Jira space work items are created in. When you change it, send \u003cspan pulumi-lang-nodejs=\"`jiraIssueTypeId`\" pulumi-lang-dotnet=\"`JiraIssueTypeId`\" pulumi-lang-go=\"`jiraIssueTypeId`\" pulumi-lang-python=\"`jira_issue_type_id`\" pulumi-lang-yaml=\"`jiraIssueTypeId`\" pulumi-lang-java=\"`jiraIssueTypeId`\" pulumi-lang-hcl=\"`jira_issue_type_id`\"\u003e`jiraIssueTypeId`\u003c/span\u003e in the same request. A change also clears \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e unless you send them too.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationNotifications:ErrorsJiraIntegrationNotifications", "description": "Which events file a Jira work item, as under **Automatic work item creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsJiraIntegrationOccurrenceThresholdInterval:ErrorsJiraIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationTagFilter:ErrorsJiraIntegrationTagFilter" }, "description": "The tags an error must have to get a work item. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "integrationId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ErrorsJiraIntegration resources.\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationApplication:ErrorsJiraIntegrationApplication" }, "description": "Applications this integration files work items for, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "More Jira fields set on new work items, keyed by Jira field ID. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.\n" }, "jiraIssueTypeId": { "type": "string", "description": "The ID of the Jira work type new work items get.\n" }, "jiraProjectKey": { "type": "string", "description": "The key of the Jira space work items are created in. When you change it, send \u003cspan pulumi-lang-nodejs=\"`jiraIssueTypeId`\" pulumi-lang-dotnet=\"`JiraIssueTypeId`\" pulumi-lang-go=\"`jiraIssueTypeId`\" pulumi-lang-python=\"`jira_issue_type_id`\" pulumi-lang-yaml=\"`jiraIssueTypeId`\" pulumi-lang-java=\"`jiraIssueTypeId`\" pulumi-lang-hcl=\"`jira_issue_type_id`\"\u003e`jiraIssueTypeId`\u003c/span\u003e in the same request. A change also clears \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e unless you send them too.\n" }, "jiraSiteUrl": { "type": "string", "description": "Jira site the integration is connected to.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationNotifications:ErrorsJiraIntegrationNotifications", "description": "Which events file a Jira work item, as under **Automatic work item creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsJiraIntegrationOccurrenceThresholdInterval:ErrorsJiraIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsJiraIntegrationTagFilter:ErrorsJiraIntegrationTagFilter" }, "description": "The tags an error must have to get a work item. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "type": "object" } }, "betterstack:index/errorsLinearIntegration:ErrorsLinearIntegration": { "description": "An Error tracking Linear integration. The integration sets which errors are filed as Linear issues, with which issue properties, and how errors and issues are kept in sync.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ErrorsLinearIntegration(\"example\", {integrationId: \"12345\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ErrorsLinearIntegration(\"example\", integration_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ErrorsLinearIntegration(\"example\", new()\n {\n IntegrationId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewErrorsLinearIntegration(ctx, \"example\", \u0026betterstack.ErrorsLinearIntegrationArgs{\n\t\t\tIntegrationId: pulumi.String(\"12345\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_errors_linear_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ErrorsLinearIntegration;\nimport com.betterstack.pulumi.ErrorsLinearIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ErrorsLinearIntegration(\"example\", ErrorsLinearIntegrationArgs.builder()\n .integrationId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ErrorsLinearIntegration\n properties:\n integrationId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Remove the integration in [Error tracking → Integrations](https://errors.betterstack.com/team/0/integrations) in the web app. Every request needs a role that can manage Error tracking integrations.\n\n## Import\n\nImport an existing Errors Linear integration by its ID. Get the ID via [List Linear integrations](https://betterstack.com/docs/errors/api/integrations/linear/list/).\n\n```sh\n$ pulumi import betterstack:index/errorsLinearIntegration:ErrorsLinearIntegration example 12345\n```\n\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationApplication:ErrorsLinearIntegrationApplication" }, "description": "Applications this integration files issues for, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "autoReopen": { "type": "boolean", "description": "Reopen the Linear issue when its error is automatically re-opened, moving the issue back to \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e. Works only when \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e are both set. Defaults to true.\n" }, "autoResolve": { "type": "boolean", "description": "Resolve the error when its Linear issue is done, and move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the error is resolved. Moving the issue works only when \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e is set. Defaults to true.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "linearAssigneeId": { "type": "string", "description": "The ID of the Linear user new issues are assigned to. null clears it. Reads return an empty string when none is set.\n" }, "linearLabelIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the Linear labels added to new issues. An update replaces the whole list. Defaults to `[]`.\n" }, "linearPriority": { "type": "string", "description": "Priority of new issues. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n" }, "linearProjectId": { "type": "string", "description": "The ID of the Linear project new issues are added to. null clears it. Reads return an empty string when none is set.\n" }, "linearResolvedStatusId": { "type": "string", "description": "The ID of the Linear status an issue moves to when its error is resolved. null clears it. Reads return an empty string when none is set.\n" }, "linearStatusId": { "type": "string", "description": "The ID of the Linear status new issues get. Empty means the Linear team's default status. null clears it. Reads return an empty string when none is set.\n" }, "linearTeamId": { "type": "string", "description": "The ID of the Linear team issues are created in. To get the Linear IDs, pick them once on the integration's **Configure** page and read them back via [Get a Linear integration](https://betterstack.com/docs/errors/api/integrations/linear/get/). Changing the team clears \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearProjectId`\" pulumi-lang-dotnet=\"`LinearProjectId`\" pulumi-lang-go=\"`linearProjectId`\" pulumi-lang-python=\"`linear_project_id`\" pulumi-lang-yaml=\"`linearProjectId`\" pulumi-lang-java=\"`linearProjectId`\" pulumi-lang-hcl=\"`linear_project_id`\"\u003e`linearProjectId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearLabelIds`\" pulumi-lang-dotnet=\"`LinearLabelIds`\" pulumi-lang-go=\"`linearLabelIds`\" pulumi-lang-python=\"`linear_label_ids`\" pulumi-lang-yaml=\"`linearLabelIds`\" pulumi-lang-java=\"`linearLabelIds`\" pulumi-lang-hcl=\"`linear_label_ids`\"\u003e`linearLabelIds`\u003c/span\u003e unless the same request sets them. null clears it.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationNotifications:ErrorsLinearIntegrationNotifications", "description": "Which events file a Linear issue, as under **Automatic issue creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "syncComments": { "type": "boolean", "description": "Share comments between errors and their linked Linear issues. Defaults to true.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationTagFilter:ErrorsLinearIntegrationTagFilter" }, "description": "The tags an error must have to get an issue. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "required": [ "affectedUsersThresholdCount", "applications", "autoReopen", "autoResolve", "integrationId", "linearAssigneeId", "linearLabelIds", "linearPriority", "linearProjectId", "linearResolvedStatusId", "linearStatusId", "linearTeamId", "name", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "syncComments", "tagFilters", "teamId", "teamName" ], "inputProperties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationApplication:ErrorsLinearIntegrationApplication" }, "description": "Applications this integration files issues for, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "autoReopen": { "type": "boolean", "description": "Reopen the Linear issue when its error is automatically re-opened, moving the issue back to \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e. Works only when \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e are both set. Defaults to true.\n" }, "autoResolve": { "type": "boolean", "description": "Resolve the error when its Linear issue is done, and move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the error is resolved. Moving the issue works only when \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e is set. Defaults to true.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "linearAssigneeId": { "type": "string", "description": "The ID of the Linear user new issues are assigned to. null clears it. Reads return an empty string when none is set.\n" }, "linearLabelIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the Linear labels added to new issues. An update replaces the whole list. Defaults to `[]`.\n" }, "linearPriority": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsLinearIntegrationLinearPriority:ErrorsLinearIntegrationLinearPriority" } ], "description": "Priority of new issues. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n" }, "linearProjectId": { "type": "string", "description": "The ID of the Linear project new issues are added to. null clears it. Reads return an empty string when none is set.\n" }, "linearResolvedStatusId": { "type": "string", "description": "The ID of the Linear status an issue moves to when its error is resolved. null clears it. Reads return an empty string when none is set.\n" }, "linearStatusId": { "type": "string", "description": "The ID of the Linear status new issues get. Empty means the Linear team's default status. null clears it. Reads return an empty string when none is set.\n" }, "linearTeamId": { "type": "string", "description": "The ID of the Linear team issues are created in. To get the Linear IDs, pick them once on the integration's **Configure** page and read them back via [Get a Linear integration](https://betterstack.com/docs/errors/api/integrations/linear/get/). Changing the team clears \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearProjectId`\" pulumi-lang-dotnet=\"`LinearProjectId`\" pulumi-lang-go=\"`linearProjectId`\" pulumi-lang-python=\"`linear_project_id`\" pulumi-lang-yaml=\"`linearProjectId`\" pulumi-lang-java=\"`linearProjectId`\" pulumi-lang-hcl=\"`linear_project_id`\"\u003e`linearProjectId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearLabelIds`\" pulumi-lang-dotnet=\"`LinearLabelIds`\" pulumi-lang-go=\"`linearLabelIds`\" pulumi-lang-python=\"`linear_label_ids`\" pulumi-lang-yaml=\"`linearLabelIds`\" pulumi-lang-java=\"`linearLabelIds`\" pulumi-lang-hcl=\"`linear_label_ids`\"\u003e`linearLabelIds`\u003c/span\u003e unless the same request sets them. null clears it.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationNotifications:ErrorsLinearIntegrationNotifications", "description": "Which events file a Linear issue, as under **Automatic issue creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsLinearIntegrationOccurrenceThresholdInterval:ErrorsLinearIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "syncComments": { "type": "boolean", "description": "Share comments between errors and their linked Linear issues. Defaults to true.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationTagFilter:ErrorsLinearIntegrationTagFilter" }, "description": "The tags an error must have to get an issue. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "integrationId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ErrorsLinearIntegration resources.\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationApplication:ErrorsLinearIntegrationApplication" }, "description": "Applications this integration files issues for, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "autoReopen": { "type": "boolean", "description": "Reopen the Linear issue when its error is automatically re-opened, moving the issue back to \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e. Works only when \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e are both set. Defaults to true.\n" }, "autoResolve": { "type": "boolean", "description": "Resolve the error when its Linear issue is done, and move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the error is resolved. Moving the issue works only when \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e is set. Defaults to true.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "linearAssigneeId": { "type": "string", "description": "The ID of the Linear user new issues are assigned to. null clears it. Reads return an empty string when none is set.\n" }, "linearLabelIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the Linear labels added to new issues. An update replaces the whole list. Defaults to `[]`.\n" }, "linearPriority": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsLinearIntegrationLinearPriority:ErrorsLinearIntegrationLinearPriority" } ], "description": "Priority of new issues. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n" }, "linearProjectId": { "type": "string", "description": "The ID of the Linear project new issues are added to. null clears it. Reads return an empty string when none is set.\n" }, "linearResolvedStatusId": { "type": "string", "description": "The ID of the Linear status an issue moves to when its error is resolved. null clears it. Reads return an empty string when none is set.\n" }, "linearStatusId": { "type": "string", "description": "The ID of the Linear status new issues get. Empty means the Linear team's default status. null clears it. Reads return an empty string when none is set.\n" }, "linearTeamId": { "type": "string", "description": "The ID of the Linear team issues are created in. To get the Linear IDs, pick them once on the integration's **Configure** page and read them back via [Get a Linear integration](https://betterstack.com/docs/errors/api/integrations/linear/get/). Changing the team clears \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearProjectId`\" pulumi-lang-dotnet=\"`LinearProjectId`\" pulumi-lang-go=\"`linearProjectId`\" pulumi-lang-python=\"`linear_project_id`\" pulumi-lang-yaml=\"`linearProjectId`\" pulumi-lang-java=\"`linearProjectId`\" pulumi-lang-hcl=\"`linear_project_id`\"\u003e`linearProjectId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearLabelIds`\" pulumi-lang-dotnet=\"`LinearLabelIds`\" pulumi-lang-go=\"`linearLabelIds`\" pulumi-lang-python=\"`linear_label_ids`\" pulumi-lang-yaml=\"`linearLabelIds`\" pulumi-lang-java=\"`linearLabelIds`\" pulumi-lang-hcl=\"`linear_label_ids`\"\u003e`linearLabelIds`\u003c/span\u003e unless the same request sets them. null clears it.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationNotifications:ErrorsLinearIntegrationNotifications", "description": "Which events file a Linear issue, as under **Automatic issue creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsLinearIntegrationOccurrenceThresholdInterval:ErrorsLinearIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "syncComments": { "type": "boolean", "description": "Share comments between errors and their linked Linear issues. Defaults to true.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsLinearIntegrationTagFilter:ErrorsLinearIntegrationTagFilter" }, "description": "The tags an error must have to get an issue. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "type": "object" } }, "betterstack:index/errorsMicrosoftTeamsIntegration:ErrorsMicrosoftTeamsIntegration": { "description": "An Error tracking Microsoft Teams integration. The integration sets which errors reach which channels of the team the Better Stack app was added to.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ErrorsMicrosoftTeamsIntegration(\"example\", {integrationId: \"12345\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ErrorsMicrosoftTeamsIntegration(\"example\", integration_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ErrorsMicrosoftTeamsIntegration(\"example\", new()\n {\n IntegrationId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewErrorsMicrosoftTeamsIntegration(ctx, \"example\", \u0026betterstack.ErrorsMicrosoftTeamsIntegrationArgs{\n\t\t\tIntegrationId: pulumi.String(\"12345\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_errors_microsoft_teams_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ErrorsMicrosoftTeamsIntegration;\nimport com.betterstack.pulumi.ErrorsMicrosoftTeamsIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ErrorsMicrosoftTeamsIntegration(\"example\", ErrorsMicrosoftTeamsIntegrationArgs.builder()\n .integrationId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ErrorsMicrosoftTeamsIntegration\n properties:\n integrationId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Connecting and removing a Microsoft Teams integration happen only in [Error tracking → Integrations](https://errors.betterstack.com/team/0/integrations) in the web app. Every request needs a role that can manage Error tracking integrations.\n\n\u003e A channel you add to \u003cspan pulumi-lang-nodejs=\"`routes`\" pulumi-lang-dotnet=\"`Routes`\" pulumi-lang-go=\"`routes`\" pulumi-lang-python=\"`routes`\" pulumi-lang-yaml=\"`routes`\" pulumi-lang-java=\"`routes`\" pulumi-lang-hcl=\"`routes`\"\u003e`routes`\u003c/span\u003e must be one of the Microsoft Teams team's channels. If Microsoft Teams can't list the team's channels at that moment, the change fails.\n\n## Import\n\nImport an existing Errors Microsoft Teams integration by its ID. Get the ID via [List Microsoft Teams integrations](https://betterstack.com/docs/errors/api/integrations/microsoft-teams/list/).\n\n```sh\n$ pulumi import betterstack:index/errorsMicrosoftTeamsIntegration:ErrorsMicrosoftTeamsIntegration example 12345\n```\n\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "microsoftTeamsChannelName": { "type": "string", "description": "Channel the app was added to, which gets every error while \u003cspan pulumi-lang-nodejs=\"`routes`\" pulumi-lang-dotnet=\"`Routes`\" pulumi-lang-go=\"`routes`\" pulumi-lang-python=\"`routes`\" pulumi-lang-yaml=\"`routes`\" pulumi-lang-java=\"`routes`\" pulumi-lang-hcl=\"`routes`\"\u003e`routes`\u003c/span\u003e is empty.\n" }, "microsoftTeamsTeamName": { "type": "string", "description": "Microsoft Teams team the Better Stack app was added to.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationNotifications:ErrorsMicrosoftTeamsIntegrationNotifications", "description": "Which events post to the channels, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "routes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationRoute:ErrorsMicrosoftTeamsIntegrationRoute" }, "description": "Which applications' errors go to which channels. An application that isn't in any route gets no messages, unless one of the routes has no applications. Empty means everything goes to the channel the app was added to. An update replaces the whole list.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationTagFilter:ErrorsMicrosoftTeamsIntegrationTagFilter" }, "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "required": [ "affectedUsersThresholdCount", "integrationId", "microsoftTeamsChannelName", "microsoftTeamsTeamName", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "routes", "tagFilters", "teamId", "teamName" ], "inputProperties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationNotifications:ErrorsMicrosoftTeamsIntegrationNotifications", "description": "Which events post to the channels, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsMicrosoftTeamsIntegrationOccurrenceThresholdInterval:ErrorsMicrosoftTeamsIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "routes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationRoute:ErrorsMicrosoftTeamsIntegrationRoute" }, "description": "Which applications' errors go to which channels. An application that isn't in any route gets no messages, unless one of the routes has no applications. Empty means everything goes to the channel the app was added to. An update replaces the whole list.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationTagFilter:ErrorsMicrosoftTeamsIntegrationTagFilter" }, "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "integrationId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ErrorsMicrosoftTeamsIntegration resources.\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "microsoftTeamsChannelName": { "type": "string", "description": "Channel the app was added to, which gets every error while \u003cspan pulumi-lang-nodejs=\"`routes`\" pulumi-lang-dotnet=\"`Routes`\" pulumi-lang-go=\"`routes`\" pulumi-lang-python=\"`routes`\" pulumi-lang-yaml=\"`routes`\" pulumi-lang-java=\"`routes`\" pulumi-lang-hcl=\"`routes`\"\u003e`routes`\u003c/span\u003e is empty.\n" }, "microsoftTeamsTeamName": { "type": "string", "description": "Microsoft Teams team the Better Stack app was added to.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationNotifications:ErrorsMicrosoftTeamsIntegrationNotifications", "description": "Which events post to the channels, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsMicrosoftTeamsIntegrationOccurrenceThresholdInterval:ErrorsMicrosoftTeamsIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "routes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationRoute:ErrorsMicrosoftTeamsIntegrationRoute" }, "description": "Which applications' errors go to which channels. An application that isn't in any route gets no messages, unless one of the routes has no applications. Empty means everything goes to the channel the app was added to. An update replaces the whole list.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsMicrosoftTeamsIntegrationTagFilter:ErrorsMicrosoftTeamsIntegrationTagFilter" }, "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "type": "object" } }, "betterstack:index/errorsSlackIntegration:ErrorsSlackIntegration": { "description": "An Error tracking Slack integration. The integration sets the Slack channel that gets error notifications, which errors reach the channel and how updates are posted.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ErrorsSlackIntegration(\"example\", {integrationId: \"12345\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ErrorsSlackIntegration(\"example\", integration_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ErrorsSlackIntegration(\"example\", new()\n {\n IntegrationId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewErrorsSlackIntegration(ctx, \"example\", \u0026betterstack.ErrorsSlackIntegrationArgs{\n\t\t\tIntegrationId: pulumi.String(\"12345\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_errors_slack_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ErrorsSlackIntegration;\nimport com.betterstack.pulumi.ErrorsSlackIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ErrorsSlackIntegration(\"example\", ErrorsSlackIntegrationArgs.builder()\n .integrationId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ErrorsSlackIntegration\n properties:\n integrationId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Remove the integration in [Error tracking → Integrations](https://errors.betterstack.com/team/0/integrations) in the web app. Every request needs a role that can manage Error tracking integrations.\n\n## Import\n\nImport an existing Errors Slack integration by its ID. Get the ID via [List Slack integrations](https://betterstack.com/docs/errors/api/integrations/slack/list/).\n\n```sh\n$ pulumi import betterstack:index/errorsSlackIntegration:ErrorsSlackIntegration example 12345\n```\n\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "aiSreOnMention": { "type": "boolean", "description": "Start an AI SRE conversation when Better Stack is tagged in the channel. Defaults to true.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationApplication:ErrorsSlackIntegrationApplication" }, "description": "Applications whose errors this integration posts, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "broadcastUpdates": { "type": "boolean", "description": "With 'thread_based', also send important updates to the channel. Important updates are resolved and re-opened errors, spikes, and errors reaching an occurrence milestone. Defaults to true.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationNotifications:ErrorsSlackIntegrationNotifications", "description": "Which events post to the channel, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "postUpdates": { "type": "string", "description": "How updates are posted to Slack. Defaults to 'single_channel'. 'single_channel': Posts every update to the channel. 'thread_based': Posts each new error to the channel and its updates in a thread.\n" }, "slackChannelName": { "type": "string", "description": "Slack channel errors are posted to.\n" }, "slackTeamName": { "type": "string", "description": "The Slack workspace the channel is in.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationTagFilter:ErrorsSlackIntegrationTagFilter" }, "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "required": [ "affectedUsersThresholdCount", "aiSreOnMention", "applications", "broadcastUpdates", "integrationId", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "postUpdates", "slackChannelName", "slackTeamName", "tagFilters", "teamId", "teamName" ], "inputProperties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "aiSreOnMention": { "type": "boolean", "description": "Start an AI SRE conversation when Better Stack is tagged in the channel. Defaults to true.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationApplication:ErrorsSlackIntegrationApplication" }, "description": "Applications whose errors this integration posts, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "broadcastUpdates": { "type": "boolean", "description": "With 'thread_based', also send important updates to the channel. Important updates are resolved and re-opened errors, spikes, and errors reaching an occurrence milestone. Defaults to true.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationNotifications:ErrorsSlackIntegrationNotifications", "description": "Which events post to the channel, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsSlackIntegrationOccurrenceThresholdInterval:ErrorsSlackIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "postUpdates": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsSlackIntegrationPostUpdates:ErrorsSlackIntegrationPostUpdates" } ], "description": "How updates are posted to Slack. Defaults to 'single_channel'. 'single_channel': Posts every update to the channel. 'thread_based': Posts each new error to the channel and its updates in a thread.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationTagFilter:ErrorsSlackIntegrationTagFilter" }, "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "integrationId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ErrorsSlackIntegration resources.\n", "properties": { "affectedUsersThresholdCount": { "type": "integer", "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number. Defaults to '10'.\n" }, "aiSreOnMention": { "type": "boolean", "description": "Start an AI SRE conversation when Better Stack is tagged in the channel. Defaults to true.\n" }, "applications": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationApplication:ErrorsSlackIntegrationApplication" }, "description": "Applications whose errors this integration posts, each with its environments. Empty means any application. An update replaces the whole list.\n" }, "broadcastUpdates": { "type": "boolean", "description": "With 'thread_based', also send important updates to the channel. Important updates are resolved and re-opened errors, spikes, and errors reaching an occurrence milestone. Defaults to true.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "notifications": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationNotifications:ErrorsSlackIntegrationNotifications", "description": "Which events post to the channel, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "type": "integer", "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number. Defaults to '10'.\n" }, "occurrenceThresholdInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsSlackIntegrationOccurrenceThresholdInterval:ErrorsSlackIntegrationOccurrenceThresholdInterval" } ], "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'. Defaults to 'minute'.\n" }, "postUpdates": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/errorsSlackIntegrationPostUpdates:ErrorsSlackIntegrationPostUpdates" } ], "description": "How updates are posted to Slack. Defaults to 'single_channel'. 'single_channel': Posts every update to the channel. 'thread_based': Posts each new error to the channel and its updates in a thread.\n" }, "slackChannelName": { "type": "string", "description": "Slack channel errors are posted to.\n" }, "slackTeamName": { "type": "string", "description": "The Slack workspace the channel is in.\n" }, "tagFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ErrorsSlackIntegrationTagFilter:ErrorsSlackIntegrationTagFilter" }, "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the integration.\n" } }, "type": "object" } }, "betterstack:index/escalationPolicy:EscalationPolicy": { "description": "An escalation policy decides who we notify about an incident, in what order, and how long we wait between steps.\n\n## Example Usage\n\n### Page the on-call person, then the whole team after 10 minutes\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Post to Slack right away, page the on-call person after 3 minutes and repeat\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst slackFirst = new betterstack.EscalationPolicy(\"slack_first\", {\n name: \"Slack, then on-call\",\n repeatCount: 3,\n repeatDelay: 300,\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"all_slack_integrations\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 180,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\nslack_first = betterstack.EscalationPolicy(\"slack_first\",\n name=\"Slack, then on-call\",\n repeat_count=3,\n repeat_delay=300,\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"all_slack_integrations\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 180,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var slackFirst = new BetterStack.EscalationPolicy(\"slack_first\", new()\n {\n Name = \"Slack, then on-call\",\n RepeatCount = 3,\n RepeatDelay = 300,\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"all_slack_integrations\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 180,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewEscalationPolicy(ctx, \"slack_first\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"Slack, then on-call\"),\n\t\t\tRepeatCount: pulumi.Int(3),\n\t\t\tRepeatDelay: pulumi.Int(300),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"all_slack_integrations\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(180),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"slack_first\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Slack, then on-call\"\n repeat_count = 3\n repeat_delay = 300\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"all_slack_integrations\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 180\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var slackFirst = new EscalationPolicy(\"slackFirst\", EscalationPolicyArgs.builder()\n .name(\"Slack, then on-call\")\n .repeatCount(3)\n .repeatDelay(300)\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"all_slack_integrations\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(180)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n slackFirst:\n type: betterstack:EscalationPolicy\n name: slack_first\n properties:\n name: Slack, then on-call\n repeatCount: 3\n repeatDelay: 300\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: all_slack_integrations\n - type: escalation\n waitBefore: 180\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e A step's type decides which keys it uses. An 'escalation' step uses \u003cspan pulumi-lang-nodejs=\"`severityId`\" pulumi-lang-dotnet=\"`SeverityId`\" pulumi-lang-go=\"`severityId`\" pulumi-lang-python=\"`severity_id`\" pulumi-lang-yaml=\"`severityId`\" pulumi-lang-java=\"`severityId`\" pulumi-lang-hcl=\"`severity_id`\"\u003e`severityId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`stepMembers`\" pulumi-lang-dotnet=\"`StepMembers`\" pulumi-lang-go=\"`stepMembers`\" pulumi-lang-python=\"`step_members`\" pulumi-lang-yaml=\"`stepMembers`\" pulumi-lang-java=\"`stepMembers`\" pulumi-lang-hcl=\"`step_members`\"\u003e`stepMembers`\u003c/span\u003e, with at least one member. A 'time_branching' step uses \u003cspan pulumi-lang-nodejs=\"`timezone`\" pulumi-lang-dotnet=\"`Timezone`\" pulumi-lang-go=\"`timezone`\" pulumi-lang-python=\"`timezone`\" pulumi-lang-yaml=\"`timezone`\" pulumi-lang-java=\"`timezone`\" pulumi-lang-hcl=\"`timezone`\"\u003e`timezone`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`days`\" pulumi-lang-dotnet=\"`Days`\" pulumi-lang-go=\"`days`\" pulumi-lang-python=\"`days`\" pulumi-lang-yaml=\"`days`\" pulumi-lang-java=\"`days`\" pulumi-lang-hcl=\"`days`\"\u003e`days`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`timeFrom`\" pulumi-lang-dotnet=\"`TimeFrom`\" pulumi-lang-go=\"`timeFrom`\" pulumi-lang-python=\"`time_from`\" pulumi-lang-yaml=\"`timeFrom`\" pulumi-lang-java=\"`timeFrom`\" pulumi-lang-hcl=\"`time_from`\"\u003e`timeFrom`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`timeTo`\" pulumi-lang-dotnet=\"`TimeTo`\" pulumi-lang-go=\"`timeTo`\" pulumi-lang-python=\"`time_to`\" pulumi-lang-yaml=\"`timeTo`\" pulumi-lang-java=\"`timeTo`\" pulumi-lang-hcl=\"`time_to`\"\u003e`timeTo`\u003c/span\u003e, plus \u003cspan pulumi-lang-nodejs=\"`actionType`\" pulumi-lang-dotnet=\"`ActionType`\" pulumi-lang-go=\"`actionType`\" pulumi-lang-python=\"`action_type`\" pulumi-lang-yaml=\"`actionType`\" pulumi-lang-java=\"`actionType`\" pulumi-lang-hcl=\"`action_type`\"\u003e`actionType`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e. A 'metadata_branching' step uses \u003cspan pulumi-lang-nodejs=\"`metadataKey`\" pulumi-lang-dotnet=\"`MetadataKey`\" pulumi-lang-go=\"`metadataKey`\" pulumi-lang-python=\"`metadata_key`\" pulumi-lang-yaml=\"`metadataKey`\" pulumi-lang-java=\"`metadataKey`\" pulumi-lang-hcl=\"`metadata_key`\"\u003e`metadataKey`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`metadataValues`\" pulumi-lang-dotnet=\"`MetadataValues`\" pulumi-lang-go=\"`metadataValues`\" pulumi-lang-python=\"`metadata_values`\" pulumi-lang-yaml=\"`metadataValues`\" pulumi-lang-java=\"`metadataValues`\" pulumi-lang-hcl=\"`metadata_values`\"\u003e`metadataValues`\u003c/span\u003e, plus the same \u003cspan pulumi-lang-nodejs=\"`actionType`\" pulumi-lang-dotnet=\"`ActionType`\" pulumi-lang-go=\"`actionType`\" pulumi-lang-python=\"`action_type`\" pulumi-lang-yaml=\"`actionType`\" pulumi-lang-java=\"`actionType`\" pulumi-lang-hcl=\"`action_type`\"\u003e`actionType`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`escalationPolicyId`\" pulumi-lang-dotnet=\"`EscalationPolicyId`\" pulumi-lang-go=\"`escalationPolicyId`\" pulumi-lang-python=\"`escalation_policy_id`\" pulumi-lang-yaml=\"`escalationPolicyId`\" pulumi-lang-java=\"`escalationPolicyId`\" pulumi-lang-hcl=\"`escalation_policy_id`\"\u003e`escalationPolicyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`policyMetadataKey`\" pulumi-lang-dotnet=\"`PolicyMetadataKey`\" pulumi-lang-go=\"`policyMetadataKey`\" pulumi-lang-python=\"`policy_metadata_key`\" pulumi-lang-yaml=\"`policyMetadataKey`\" pulumi-lang-java=\"`policyMetadataKey`\" pulumi-lang-hcl=\"`policy_metadata_key`\"\u003e`policyMetadataKey`\u003c/span\u003e. An 'instructions' step uses \u003cspan pulumi-lang-nodejs=\"`instructionsComment`\" pulumi-lang-dotnet=\"`InstructionsComment`\" pulumi-lang-go=\"`instructionsComment`\" pulumi-lang-python=\"`instructions_comment`\" pulumi-lang-yaml=\"`instructionsComment`\" pulumi-lang-java=\"`instructionsComment`\" pulumi-lang-hcl=\"`instructions_comment`\"\u003e`instructionsComment`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`instructionsReminderEnabled`\" pulumi-lang-dotnet=\"`InstructionsReminderEnabled`\" pulumi-lang-go=\"`instructionsReminderEnabled`\" pulumi-lang-python=\"`instructions_reminder_enabled`\" pulumi-lang-yaml=\"`instructionsReminderEnabled`\" pulumi-lang-java=\"`instructionsReminderEnabled`\" pulumi-lang-hcl=\"`instructions_reminder_enabled`\"\u003e`instructionsReminderEnabled`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`instructionsReminderIntervalHours`\" pulumi-lang-dotnet=\"`InstructionsReminderIntervalHours`\" pulumi-lang-go=\"`instructionsReminderIntervalHours`\" pulumi-lang-python=\"`instructions_reminder_interval_hours`\" pulumi-lang-yaml=\"`instructionsReminderIntervalHours`\" pulumi-lang-java=\"`instructionsReminderIntervalHours`\" pulumi-lang-hcl=\"`instructions_reminder_interval_hours`\"\u003e`instructionsReminderIntervalHours`\u003c/span\u003e. A 'resolve_remove' step uses \u003cspan pulumi-lang-nodejs=\"`actionType`\" pulumi-lang-dotnet=\"`ActionType`\" pulumi-lang-go=\"`actionType`\" pulumi-lang-python=\"`action_type`\" pulumi-lang-yaml=\"`actionType`\" pulumi-lang-java=\"`actionType`\" pulumi-lang-hcl=\"`action_type`\"\u003e`actionType`\u003c/span\u003e.\n\n\u003e Each step member has a type, which is 'current_on_call', 'entire_team', 'user', 'policy' or 'incident_metadata'. A member can also be one integration, with type 'webhook', 'email_integration', 'slack_integration', 'linear_integration', 'jira_integration', 'halo_psa_integration', 'microsoft_teams_integration', 'pagerduty_integration', 'zapier_webhook', 'zoom_integration', 'google_meet_integration' or 'ai_sre'. Or it can be every integration of one kind, with type 'all_slack_integrations', 'all_linear_integrations', 'all_jira_integrations', 'all_microsoft_teams_integrations', 'all_zapier_integrations', 'all_pagerduty_integrations', 'all_webhook_integrations', 'all_email_integrations', 'all_splunk_on_call_integrations', 'all_incident_io_integrations', 'all_zoom_integrations' or 'all_google_meet_integrations'. A 'current_on_call' member accepts the \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e of an on-call schedule, or no \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e for your team's default schedule. An 'entire_team' member accepts the \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e of another team in the organization, returned as 't123', or no \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e for the policy's own team. A 'user' member accepts an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, which is 'u123' or the user's e-mail, or an \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e, and is returned as 'u123'. An 'incident_metadata' member needs a \u003cspan pulumi-lang-nodejs=\"`metadataKey`\" pulumi-lang-dotnet=\"`MetadataKey`\" pulumi-lang-go=\"`metadataKey`\" pulumi-lang-python=\"`metadata_key`\" pulumi-lang-yaml=\"`metadataKey`\" pulumi-lang-java=\"`metadataKey`\" pulumi-lang-hcl=\"`metadata_key`\"\u003e`metadataKey`\u003c/span\u003e. Every other member type needs the \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e of its target. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n\n\u003e The \u003cspan pulumi-lang-nodejs=\"`metadataValues`\" pulumi-lang-dotnet=\"`MetadataValues`\" pulumi-lang-go=\"`metadataValues`\" pulumi-lang-python=\"`metadata_values`\" pulumi-lang-yaml=\"`metadataValues`\" pulumi-lang-java=\"`metadataValues`\" pulumi-lang-hcl=\"`metadata_values`\"\u003e`metadataValues`\u003c/span\u003e entries are returned as `{type: \"String\", value}`, as `{type: 'no_value'}`, or as a catalog item `{type, item_id, name}`, plus \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e for a User. 'no_value' matches when the incident's metadata doesn't have the key or the key is empty. A catalog item's type is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. A user's \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e is 'u123' and a team's is 't123'. A catalog item is found by its \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e.\n\n## Import\n\nImport an existing escalation policy by its ID. Get the ID via [List escalation policies](https://betterstack.com/docs/uptime/api/list-all-escalation-policies/). The matching get function also finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/escalationPolicy:EscalationPolicy example 12345\n```\n\n", "properties": { "escalationPolicyGroupId": { "type": "string", "description": "The ID of the escalation policy group this policy is in, or null when it's in none. Remove the argument to clear it from its group.\n" }, "fallbackEscalationPolicyId": { "type": "string", "description": "Escalation policy to escalate to after these steps and repeats run out. Must belong to the same organization.\n" }, "incidentToken": { "type": "string", "description": "The secret token in the link to the policy's incident report form, used to open incidents on this policy. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "name": { "type": "string", "description": "Policy name.\n" }, "repeatCount": { "type": "integer", "description": "How many times the whole policy repeats if nobody acknowledges the incident. Defaults to '0'.\n" }, "repeatDelay": { "type": "integer", "description": "Seconds until the steps repeat. Defaults to '0'.\n" }, "steps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/EscalationPolicyStep:EscalationPolicyStep" }, "description": "Ordered escalation steps. An update with steps replaces the whole list. An empty list makes a silent policy that only collects incidents. Every step has a type, a wait set by \u003cspan pulumi-lang-nodejs=\"`waitBefore`\" pulumi-lang-dotnet=\"`WaitBefore`\" pulumi-lang-go=\"`waitBefore`\" pulumi-lang-python=\"`wait_before`\" pulumi-lang-yaml=\"`waitBefore`\" pulumi-lang-java=\"`waitBefore`\" pulumi-lang-hcl=\"`wait_before`\"\u003e`waitBefore`\u003c/span\u003e or by \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`waitUntilTimezone`\" pulumi-lang-dotnet=\"`WaitUntilTimezone`\" pulumi-lang-go=\"`waitUntilTimezone`\" pulumi-lang-python=\"`wait_until_timezone`\" pulumi-lang-yaml=\"`waitUntilTimezone`\" pulumi-lang-java=\"`waitUntilTimezone`\" pulumi-lang-hcl=\"`wait_until_timezone`\"\u003e`waitUntilTimezone`\u003c/span\u003e, and the keys its type uses.\n" }, "teamId": { "type": "string", "description": "Team that owns this policy, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this policy.\n" } }, "required": [ "incidentToken", "name", "repeatCount", "repeatDelay", "steps", "teamId", "teamName" ], "inputProperties": { "escalationPolicyGroupId": { "type": "string", "description": "The ID of the escalation policy group this policy is in, or null when it's in none. Remove the argument to clear it from its group.\n" }, "fallbackEscalationPolicyId": { "type": "string", "description": "Escalation policy to escalate to after these steps and repeats run out. Must belong to the same organization.\n" }, "name": { "type": "string", "description": "Policy name.\n" }, "repeatCount": { "type": "integer", "description": "How many times the whole policy repeats if nobody acknowledges the incident. Defaults to '0'.\n" }, "repeatDelay": { "type": "integer", "description": "Seconds until the steps repeat. Defaults to '0'.\n" }, "steps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/EscalationPolicyStep:EscalationPolicyStep" }, "description": "Ordered escalation steps. An update with steps replaces the whole list. An empty list makes a silent policy that only collects incidents. Every step has a type, a wait set by \u003cspan pulumi-lang-nodejs=\"`waitBefore`\" pulumi-lang-dotnet=\"`WaitBefore`\" pulumi-lang-go=\"`waitBefore`\" pulumi-lang-python=\"`wait_before`\" pulumi-lang-yaml=\"`waitBefore`\" pulumi-lang-java=\"`waitBefore`\" pulumi-lang-hcl=\"`wait_before`\"\u003e`waitBefore`\u003c/span\u003e or by \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`waitUntilTimezone`\" pulumi-lang-dotnet=\"`WaitUntilTimezone`\" pulumi-lang-go=\"`waitUntilTimezone`\" pulumi-lang-python=\"`wait_until_timezone`\" pulumi-lang-yaml=\"`waitUntilTimezone`\" pulumi-lang-java=\"`waitUntilTimezone`\" pulumi-lang-hcl=\"`wait_until_timezone`\"\u003e`waitUntilTimezone`\u003c/span\u003e, and the keys its type uses.\n" }, "teamId": { "type": "string", "description": "Team that owns this policy, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering EscalationPolicy resources.\n", "properties": { "escalationPolicyGroupId": { "type": "string", "description": "The ID of the escalation policy group this policy is in, or null when it's in none. Remove the argument to clear it from its group.\n" }, "fallbackEscalationPolicyId": { "type": "string", "description": "Escalation policy to escalate to after these steps and repeats run out. Must belong to the same organization.\n" }, "incidentToken": { "type": "string", "description": "The secret token in the link to the policy's incident report form, used to open incidents on this policy. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "name": { "type": "string", "description": "Policy name.\n" }, "repeatCount": { "type": "integer", "description": "How many times the whole policy repeats if nobody acknowledges the incident. Defaults to '0'.\n" }, "repeatDelay": { "type": "integer", "description": "Seconds until the steps repeat. Defaults to '0'.\n" }, "steps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/EscalationPolicyStep:EscalationPolicyStep" }, "description": "Ordered escalation steps. An update with steps replaces the whole list. An empty list makes a silent policy that only collects incidents. Every step has a type, a wait set by \u003cspan pulumi-lang-nodejs=\"`waitBefore`\" pulumi-lang-dotnet=\"`WaitBefore`\" pulumi-lang-go=\"`waitBefore`\" pulumi-lang-python=\"`wait_before`\" pulumi-lang-yaml=\"`waitBefore`\" pulumi-lang-java=\"`waitBefore`\" pulumi-lang-hcl=\"`wait_before`\"\u003e`waitBefore`\u003c/span\u003e or by \u003cspan pulumi-lang-nodejs=\"`waitUntilTime`\" pulumi-lang-dotnet=\"`WaitUntilTime`\" pulumi-lang-go=\"`waitUntilTime`\" pulumi-lang-python=\"`wait_until_time`\" pulumi-lang-yaml=\"`waitUntilTime`\" pulumi-lang-java=\"`waitUntilTime`\" pulumi-lang-hcl=\"`wait_until_time`\"\u003e`waitUntilTime`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`waitUntilTimezone`\" pulumi-lang-dotnet=\"`WaitUntilTimezone`\" pulumi-lang-go=\"`waitUntilTimezone`\" pulumi-lang-python=\"`wait_until_timezone`\" pulumi-lang-yaml=\"`waitUntilTimezone`\" pulumi-lang-java=\"`waitUntilTimezone`\" pulumi-lang-hcl=\"`wait_until_timezone`\"\u003e`waitUntilTimezone`\u003c/span\u003e, and the keys its type uses.\n" }, "teamId": { "type": "string", "description": "Team that owns this policy, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this policy.\n" } }, "type": "object" } }, "betterstack:index/escalationPolicyGroup:EscalationPolicyGroup": { "description": "An escalation policy group keeps related escalation policies together.\n\n## Example Usage\n\n### Create an escalation policy group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.EscalationPolicyGroup(\"example\", {name: \"Platform on-call\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.EscalationPolicyGroup(\"example\", name=\"Platform on-call\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.EscalationPolicyGroup(\"example\", new()\n {\n Name = \"Platform on-call\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewEscalationPolicyGroup(ctx, \"example\", \u0026betterstack.EscalationPolicyGroupArgs{\n\t\t\tName: pulumi.String(\"Platform on-call\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_escalation_policy_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Platform on-call\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.EscalationPolicyGroup;\nimport com.betterstack.pulumi.EscalationPolicyGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new EscalationPolicyGroup(\"example\", EscalationPolicyGroupArgs.builder()\n .name(\"Platform on-call\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:EscalationPolicyGroup\n properties:\n name: Platform on-call\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Listed first\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst listedFirst = new betterstack.EscalationPolicyGroup(\"listed_first\", {\n name: \"Critical escalations\",\n sortIndex: 0,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nlisted_first = betterstack.EscalationPolicyGroup(\"listed_first\",\n name=\"Critical escalations\",\n sort_index=0)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var listedFirst = new BetterStack.EscalationPolicyGroup(\"listed_first\", new()\n {\n Name = \"Critical escalations\",\n SortIndex = 0,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewEscalationPolicyGroup(ctx, \"listed_first\", \u0026betterstack.EscalationPolicyGroupArgs{\n\t\t\tName: pulumi.String(\"Critical escalations\"),\n\t\t\tSortIndex: pulumi.Int(0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_escalation_policy_group\" \"listed_first\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Critical escalations\"\n sort_index = 0\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.EscalationPolicyGroup;\nimport com.betterstack.pulumi.EscalationPolicyGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var listedFirst = new EscalationPolicyGroup(\"listedFirst\", EscalationPolicyGroupArgs.builder()\n .name(\"Critical escalations\")\n .sortIndex(0)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n listedFirst:\n type: betterstack:EscalationPolicyGroup\n name: listed_first\n properties:\n name: Critical escalations\n sortIndex: 0\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing escalation policy group by its ID. Get the ID via [List escalation policy groups](https://betterstack.com/docs/uptime/api/list-all-existing-escalation-policy-groups/).\n\n```sh\n$ pulumi import betterstack:index/escalationPolicyGroup:EscalationPolicyGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "The group's position in your list of escalation policy groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "The group's position in your list of escalation policy groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering EscalationPolicyGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "The group's position in your list of escalation policy groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/exploration:Exploration": { "description": "A saved exploration, which is a chart with its queries and variables over logs, metrics, or traces.\n\n## Example Usage\n\n### Chart the error rate\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst errors = new betterstack.Exploration(\"errors\", {\n name: \"Error Rate Analysis\",\n chart: {\n chartType: \"line_chart\",\n },\n queries: [{\n queryType: \"sql_expression\",\n sqlQuery: \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nerrors = betterstack.Exploration(\"errors\",\n name=\"Error Rate Analysis\",\n chart={\n \"chart_type\": \"line_chart\",\n },\n queries=[{\n \"query_type\": \"sql_expression\",\n \"sql_query\": \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var errors = new BetterStack.Exploration(\"errors\", new()\n {\n Name = \"Error Rate Analysis\",\n Chart = new BetterStack.Inputs.ExplorationChartArgs\n {\n ChartType = \"line_chart\",\n },\n Queries = new[]\n {\n new BetterStack.Inputs.ExplorationQueryArgs\n {\n QueryType = \"sql_expression\",\n SqlQuery = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewExploration(ctx, \"errors\", \u0026betterstack.ExplorationArgs{\n\t\t\tName: pulumi.String(\"Error Rate Analysis\"),\n\t\t\tChart: \u0026betterstack.ExplorationChartArgs{\n\t\t\t\tChartType: pulumi.String(\"line_chart\"),\n\t\t\t},\n\t\t\tQueries: betterstack.ExplorationQueryArray{\n\t\t\t\t\u0026betterstack.ExplorationQueryArgs{\n\t\t\t\t\tQueryType: pulumi.String(\"sql_expression\"),\n\t\t\t\t\tSqlQuery: pulumi.String(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_exploration\" \"errors\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Error Rate Analysis\"\n chart = {\n chart_type = \"line_chart\"\n }\n queries = [{\n query_type = \"sql_expression\"\n sql_query = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Exploration;\nimport com.betterstack.pulumi.ExplorationArgs;\nimport com.betterstack.pulumi.inputs.ExplorationChartArgs;\nimport com.betterstack.pulumi.inputs.ExplorationQueryArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var errors = new Exploration(\"errors\", ExplorationArgs.builder()\n .name(\"Error Rate Analysis\")\n .chart(ExplorationChartArgs.builder()\n .chartType(\"line_chart\")\n .build())\n .queries(ExplorationQueryArgs.builder()\n .queryType(\"sql_expression\")\n .sqlQuery(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n errors:\n type: betterstack:Exploration\n properties:\n name: Error Rate Analysis\n chart:\n chartType: line_chart\n queries:\n - queryType: sql_expression\n sqlQuery: SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Keep an exploration in a group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst production = new betterstack.ExplorationGroup(\"production\", {name: \"Production Monitoring\"});\nconst groupedErrors = new betterstack.Exploration(\"grouped_errors\", {\n name: \"Error Rate Analysis\",\n explorationGroupId: production.id,\n chart: {\n chartType: \"line_chart\",\n },\n queries: [{\n queryType: \"sql_expression\",\n sqlQuery: \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nproduction = betterstack.ExplorationGroup(\"production\", name=\"Production Monitoring\")\ngrouped_errors = betterstack.Exploration(\"grouped_errors\",\n name=\"Error Rate Analysis\",\n exploration_group_id=production.id,\n chart={\n \"chart_type\": \"line_chart\",\n },\n queries=[{\n \"query_type\": \"sql_expression\",\n \"sql_query\": \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var production = new BetterStack.ExplorationGroup(\"production\", new()\n {\n Name = \"Production Monitoring\",\n });\n\n var groupedErrors = new BetterStack.Exploration(\"grouped_errors\", new()\n {\n Name = \"Error Rate Analysis\",\n ExplorationGroupId = production.Id,\n Chart = new BetterStack.Inputs.ExplorationChartArgs\n {\n ChartType = \"line_chart\",\n },\n Queries = new[]\n {\n new BetterStack.Inputs.ExplorationQueryArgs\n {\n QueryType = \"sql_expression\",\n SqlQuery = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tproduction, err := betterstack.NewExplorationGroup(ctx, \"production\", \u0026betterstack.ExplorationGroupArgs{\n\t\t\tName: pulumi.String(\"Production Monitoring\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewExploration(ctx, \"grouped_errors\", \u0026betterstack.ExplorationArgs{\n\t\t\tName: pulumi.String(\"Error Rate Analysis\"),\n\t\t\tExplorationGroupId: production.ID(),\n\t\t\tChart: \u0026betterstack.ExplorationChartArgs{\n\t\t\t\tChartType: pulumi.String(\"line_chart\"),\n\t\t\t},\n\t\t\tQueries: betterstack.ExplorationQueryArray{\n\t\t\t\t\u0026betterstack.ExplorationQueryArgs{\n\t\t\t\t\tQueryType: pulumi.String(\"sql_expression\"),\n\t\t\t\t\tSqlQuery: pulumi.String(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_exploration_group\" \"production\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production Monitoring\"\n}\nresource \"betterstack_exploration\" \"grouped_errors\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Error Rate Analysis\"\n exploration_group_id = betterstack_exploration_group.production.id\n chart = {\n chart_type = \"line_chart\"\n }\n queries = [{\n query_type = \"sql_expression\"\n sql_query = \"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ExplorationGroup;\nimport com.betterstack.pulumi.ExplorationGroupArgs;\nimport com.betterstack.pulumi.Exploration;\nimport com.betterstack.pulumi.ExplorationArgs;\nimport com.betterstack.pulumi.inputs.ExplorationChartArgs;\nimport com.betterstack.pulumi.inputs.ExplorationQueryArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var production = new ExplorationGroup(\"production\", ExplorationGroupArgs.builder()\n .name(\"Production Monitoring\")\n .build());\n\n var groupedErrors = new Exploration(\"groupedErrors\", ExplorationArgs.builder()\n .name(\"Error Rate Analysis\")\n .explorationGroupId(production.id())\n .chart(ExplorationChartArgs.builder()\n .chartType(\"line_chart\")\n .build())\n .queries(ExplorationQueryArgs.builder()\n .queryType(\"sql_expression\")\n .sqlQuery(\"SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n production:\n type: betterstack:ExplorationGroup\n properties:\n name: Production Monitoring\n groupedErrors:\n type: betterstack:Exploration\n name: grouped_errors\n properties:\n name: Error Rate Analysis\n explorationGroupId: ${production.id}\n chart:\n chartType: line_chart\n queries:\n - queryType: sql_expression\n sqlQuery: SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND JSONExtract(raw, 'level', 'Nullable(String)') = 'error' GROUP BY time\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Telemetry's and RUM's Explore are both served on telemetry.betterstack.com and rum.betterstack.com. \u003cspan pulumi-lang-nodejs=\"`product`\" pulumi-lang-dotnet=\"`Product`\" pulumi-lang-go=\"`product`\" pulumi-lang-python=\"`product`\" pulumi-lang-yaml=\"`product`\" pulumi-lang-java=\"`product`\" pulumi-lang-hcl=\"`product`\"\u003e`product`\u003c/span\u003e says which one an exploration lives in.\n\n\u003e Alerts on explorations are only for Telemetry's Explore. A funnel can't have alerts.\n\n## Import\n\nImport an existing exploration by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`explorationGroupId`\" pulumi-lang-dotnet=\"`ExplorationGroupId`\" pulumi-lang-go=\"`explorationGroupId`\" pulumi-lang-python=\"`exploration_group_id`\" pulumi-lang-yaml=\"`explorationGroupId`\" pulumi-lang-java=\"`explorationGroupId`\" pulumi-lang-hcl=\"`exploration_group_id`\"\u003e`explorationGroupId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/exploration:Exploration example 12345\n```\n\n", "properties": { "chart": { "$ref": "#/types/betterstack:index/ExplorationChart:ExplorationChart", "description": "Chart settings. \u003cspan pulumi-lang-nodejs=\"`chartType`\" pulumi-lang-dotnet=\"`ChartType`\" pulumi-lang-go=\"`chartType`\" pulumi-lang-python=\"`chart_type`\" pulumi-lang-yaml=\"`chartType`\" pulumi-lang-java=\"`chartType`\" pulumi-lang-hcl=\"`chart_type`\"\u003e`chartType`\u003c/span\u003e is required on create. A funnel's \u003cspan pulumi-lang-nodejs=\"`settings`\" pulumi-lang-dotnet=\"`Settings`\" pulumi-lang-go=\"`settings`\" pulumi-lang-python=\"`settings`\" pulumi-lang-yaml=\"`settings`\" pulumi-lang-java=\"`settings`\" pulumi-lang-hcl=\"`settings`\"\u003e`settings`\u003c/span\u003e accept \u003cspan pulumi-lang-nodejs=\"`funnelUnitName`\" pulumi-lang-dotnet=\"`FunnelUnitName`\" pulumi-lang-go=\"`funnelUnitName`\" pulumi-lang-python=\"`funnel_unit_name`\" pulumi-lang-yaml=\"`funnelUnitName`\" pulumi-lang-java=\"`funnelUnitName`\" pulumi-lang-hcl=\"`funnel_unit_name`\"\u003e`funnelUnitName`\u003c/span\u003e, the word the chart counts in. The chart is always placed at `x: 0, y: 0, w: 12, h: 10`, and its name comes from the exploration's name. Returned without an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e.\n" }, "createdAt": { "type": "string", "description": "When the exploration was created.\n" }, "dateRangeFrom": { "type": "string", "description": "Start of the default date range, such as `now-3h`. A funnel's range starts at `now-7d` by default. Once set, it can't be cleared. Defaults to `now-3h`.\n" }, "dateRangeTo": { "type": "string", "description": "End of the default date range, such as 'now'. Once set, it can't be cleared. Defaults to 'now'.\n" }, "explorationGroupId": { "type": "string", "description": "Group this exploration belongs to. Remove the argument or set it to `\"0\"` to clear it from its group.\n" }, "name": { "type": "string", "description": "Exploration name. Until you name the exploration, a name generated from its query is returned. The chart is named after the exploration, so you never send a chart name.\n" }, "product": { "type": "string", "description": "The Explore the exploration lives in. Leave it out on create to put the exploration in Telemetry's Explore. A funnel over web events goes in RUM's Explore instead. Changing it moves the exploration to the other Explore. 'telemetry': Telemetry's Explore. 'rum': RUM's Explore, which reads an application's web events only.\n" }, "queries": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQuery:ExplorationQuery" }, "description": "The chart's queries, oldest first. Updating an exploration replaces all of its queries. Each query accepts only the keys its \u003cspan pulumi-lang-nodejs=\"`queryType`\" pulumi-lang-dotnet=\"`QueryType`\" pulumi-lang-go=\"`queryType`\" pulumi-lang-python=\"`query_type`\" pulumi-lang-yaml=\"`queryType`\" pulumi-lang-java=\"`queryType`\" pulumi-lang-hcl=\"`query_type`\"\u003e`queryType`\u003c/span\u003e uses. A 'sql_expression' query uses \u003cspan pulumi-lang-nodejs=\"`sqlQuery`\" pulumi-lang-dotnet=\"`SqlQuery`\" pulumi-lang-go=\"`sqlQuery`\" pulumi-lang-python=\"`sql_query`\" pulumi-lang-yaml=\"`sqlQuery`\" pulumi-lang-java=\"`sqlQuery`\" pulumi-lang-hcl=\"`sql_query`\"\u003e`sqlQuery`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. A 'tail_query' uses \u003cspan pulumi-lang-nodejs=\"`whereCondition`\" pulumi-lang-dotnet=\"`WhereCondition`\" pulumi-lang-go=\"`whereCondition`\" pulumi-lang-python=\"`where_condition`\" pulumi-lang-yaml=\"`whereCondition`\" pulumi-lang-java=\"`whereCondition`\" pulumi-lang-hcl=\"`where_condition`\"\u003e`whereCondition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. A \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query uses \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e, and a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e uses \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e. A key another type uses, or more than one query on a chart other than 'line_chart', is refused.\n" }, "sourceId": { "type": "string", "description": "ID of the source a funnel reads. Required when creating a funnel, and accepted only then. Other explorations pick their sources in the 'source' variable. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sourceType": { "type": "string", "description": "The events a funnel reads from its source. When \u003cspan pulumi-lang-nodejs=\"`sourceType`\" pulumi-lang-dotnet=\"`SourceType`\" pulumi-lang-go=\"`sourceType`\" pulumi-lang-python=\"`source_type`\" pulumi-lang-yaml=\"`sourceType`\" pulumi-lang-java=\"`sourceType`\" pulumi-lang-hcl=\"`source_type`\"\u003e`sourceType`\u003c/span\u003e is left out or the source doesn't have those events, the funnel reads the first of web events, logs and spans that the source has. Valid values: 'web_events', 'logs', 'spans'. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "teamId": { "type": "string", "description": "Team that owns the exploration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the exploration.\n" }, "updatedAt": { "type": "string", "description": "When the exploration was last updated.\n" }, "variables": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationVariable:ExplorationVariable" }, "description": "Template variables, which the queries use by name. See [Query variables](https://betterstack.com/docs/logs/dashboards/variables/). An update replaces all variables, so a variable you leave out is removed, except the built-in 'time', 'start_time', 'end_time' and 'source' variables, which always exist. For a variable that already exists, any of \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e you leave out keeps its value, unless \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e changes, which clears them. \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e you leave out keeps its value too. A variable sent without \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e gets empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e, except a 'source' variable, which keeps its sources when you leave out both \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e applies only to 'select_with_sql' and 'multi_select_with_sql' variables. \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e is saved only for 'select_value' and 'select_with_sql' variables. When a variable is saved with empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e, a 'select_value' variable gets the first of its \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, and a 'string', 'number', 'boolean' or 'sql_expression' variable gets all of them. A 'select_with_sql' variable whose \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e is new or changed gets the first option its SQL returns. An ISO 8601 date in a 'date' or 'datetime' variable is saved in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e as a Unix timestamp in microseconds. A new or changed \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e or filter \u003cspan pulumi-lang-nodejs=\"`sql`\" pulumi-lang-dotnet=\"`Sql`\" pulumi-lang-go=\"`sql`\" pulumi-lang-python=\"`sql`\" pulumi-lang-yaml=\"`sql`\" pulumi-lang-java=\"`sql`\" pulumi-lang-hcl=\"`sql`\"\u003e`sql`\u003c/span\u003e runs against the selected source, and the change is refused when the query fails. A 'source' variable's values are the IDs of your sources. In a 'rum' exploration, pick each source as its web events, `\u003ctable_name\u003e:web_events`. A funnel can't have variables, and its source is set in \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e.\n" } }, "required": [ "chart", "createdAt", "dateRangeFrom", "dateRangeTo", "name", "product", "queries", "sourceId", "sourceType", "teamId", "teamName", "updatedAt", "variables" ], "inputProperties": { "chart": { "$ref": "#/types/betterstack:index/ExplorationChart:ExplorationChart", "description": "Chart settings. \u003cspan pulumi-lang-nodejs=\"`chartType`\" pulumi-lang-dotnet=\"`ChartType`\" pulumi-lang-go=\"`chartType`\" pulumi-lang-python=\"`chart_type`\" pulumi-lang-yaml=\"`chartType`\" pulumi-lang-java=\"`chartType`\" pulumi-lang-hcl=\"`chart_type`\"\u003e`chartType`\u003c/span\u003e is required on create. A funnel's \u003cspan pulumi-lang-nodejs=\"`settings`\" pulumi-lang-dotnet=\"`Settings`\" pulumi-lang-go=\"`settings`\" pulumi-lang-python=\"`settings`\" pulumi-lang-yaml=\"`settings`\" pulumi-lang-java=\"`settings`\" pulumi-lang-hcl=\"`settings`\"\u003e`settings`\u003c/span\u003e accept \u003cspan pulumi-lang-nodejs=\"`funnelUnitName`\" pulumi-lang-dotnet=\"`FunnelUnitName`\" pulumi-lang-go=\"`funnelUnitName`\" pulumi-lang-python=\"`funnel_unit_name`\" pulumi-lang-yaml=\"`funnelUnitName`\" pulumi-lang-java=\"`funnelUnitName`\" pulumi-lang-hcl=\"`funnel_unit_name`\"\u003e`funnelUnitName`\u003c/span\u003e, the word the chart counts in. The chart is always placed at `x: 0, y: 0, w: 12, h: 10`, and its name comes from the exploration's name. Returned without an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e.\n" }, "dateRangeFrom": { "type": "string", "description": "Start of the default date range, such as `now-3h`. A funnel's range starts at `now-7d` by default. Once set, it can't be cleared. Defaults to `now-3h`.\n" }, "dateRangeTo": { "type": "string", "description": "End of the default date range, such as 'now'. Once set, it can't be cleared. Defaults to 'now'.\n" }, "explorationGroupId": { "type": "string", "description": "Group this exploration belongs to. Remove the argument or set it to `\"0\"` to clear it from its group.\n" }, "name": { "type": "string", "description": "Exploration name. Until you name the exploration, a name generated from its query is returned. The chart is named after the exploration, so you never send a chart name.\n" }, "product": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/explorationProduct:ExplorationProduct" } ], "description": "The Explore the exploration lives in. Leave it out on create to put the exploration in Telemetry's Explore. A funnel over web events goes in RUM's Explore instead. Changing it moves the exploration to the other Explore. 'telemetry': Telemetry's Explore. 'rum': RUM's Explore, which reads an application's web events only.\n" }, "queries": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQuery:ExplorationQuery" }, "description": "The chart's queries, oldest first. Updating an exploration replaces all of its queries. Each query accepts only the keys its \u003cspan pulumi-lang-nodejs=\"`queryType`\" pulumi-lang-dotnet=\"`QueryType`\" pulumi-lang-go=\"`queryType`\" pulumi-lang-python=\"`query_type`\" pulumi-lang-yaml=\"`queryType`\" pulumi-lang-java=\"`queryType`\" pulumi-lang-hcl=\"`query_type`\"\u003e`queryType`\u003c/span\u003e uses. A 'sql_expression' query uses \u003cspan pulumi-lang-nodejs=\"`sqlQuery`\" pulumi-lang-dotnet=\"`SqlQuery`\" pulumi-lang-go=\"`sqlQuery`\" pulumi-lang-python=\"`sql_query`\" pulumi-lang-yaml=\"`sqlQuery`\" pulumi-lang-java=\"`sqlQuery`\" pulumi-lang-hcl=\"`sql_query`\"\u003e`sqlQuery`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. A 'tail_query' uses \u003cspan pulumi-lang-nodejs=\"`whereCondition`\" pulumi-lang-dotnet=\"`WhereCondition`\" pulumi-lang-go=\"`whereCondition`\" pulumi-lang-python=\"`where_condition`\" pulumi-lang-yaml=\"`whereCondition`\" pulumi-lang-java=\"`whereCondition`\" pulumi-lang-hcl=\"`where_condition`\"\u003e`whereCondition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. A \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query uses \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e, and a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e uses \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e. A key another type uses, or more than one query on a chart other than 'line_chart', is refused.\n" }, "sourceId": { "type": "string", "description": "ID of the source a funnel reads. Required when creating a funnel, and accepted only then. Other explorations pick their sources in the 'source' variable. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sourceType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/explorationSourceType:ExplorationSourceType" } ], "description": "The events a funnel reads from its source. When \u003cspan pulumi-lang-nodejs=\"`sourceType`\" pulumi-lang-dotnet=\"`SourceType`\" pulumi-lang-go=\"`sourceType`\" pulumi-lang-python=\"`source_type`\" pulumi-lang-yaml=\"`sourceType`\" pulumi-lang-java=\"`sourceType`\" pulumi-lang-hcl=\"`source_type`\"\u003e`sourceType`\u003c/span\u003e is left out or the source doesn't have those events, the funnel reads the first of web events, logs and spans that the source has. Valid values: 'web_events', 'logs', 'spans'. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "teamId": { "type": "string", "description": "Team that owns the exploration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "variables": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationVariable:ExplorationVariable" }, "description": "Template variables, which the queries use by name. See [Query variables](https://betterstack.com/docs/logs/dashboards/variables/). An update replaces all variables, so a variable you leave out is removed, except the built-in 'time', 'start_time', 'end_time' and 'source' variables, which always exist. For a variable that already exists, any of \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e you leave out keeps its value, unless \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e changes, which clears them. \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e you leave out keeps its value too. A variable sent without \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e gets empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e, except a 'source' variable, which keeps its sources when you leave out both \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e applies only to 'select_with_sql' and 'multi_select_with_sql' variables. \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e is saved only for 'select_value' and 'select_with_sql' variables. When a variable is saved with empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e, a 'select_value' variable gets the first of its \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, and a 'string', 'number', 'boolean' or 'sql_expression' variable gets all of them. A 'select_with_sql' variable whose \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e is new or changed gets the first option its SQL returns. An ISO 8601 date in a 'date' or 'datetime' variable is saved in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e as a Unix timestamp in microseconds. A new or changed \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e or filter \u003cspan pulumi-lang-nodejs=\"`sql`\" pulumi-lang-dotnet=\"`Sql`\" pulumi-lang-go=\"`sql`\" pulumi-lang-python=\"`sql`\" pulumi-lang-yaml=\"`sql`\" pulumi-lang-java=\"`sql`\" pulumi-lang-hcl=\"`sql`\"\u003e`sql`\u003c/span\u003e runs against the selected source, and the change is refused when the query fails. A 'source' variable's values are the IDs of your sources. In a 'rum' exploration, pick each source as its web events, `\u003ctable_name\u003e:web_events`. A funnel can't have variables, and its source is set in \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e.\n" } }, "requiredInputs": [ "chart", "name", "queries" ], "stateInputs": { "description": "Input properties used for looking up and filtering Exploration resources.\n", "properties": { "chart": { "$ref": "#/types/betterstack:index/ExplorationChart:ExplorationChart", "description": "Chart settings. \u003cspan pulumi-lang-nodejs=\"`chartType`\" pulumi-lang-dotnet=\"`ChartType`\" pulumi-lang-go=\"`chartType`\" pulumi-lang-python=\"`chart_type`\" pulumi-lang-yaml=\"`chartType`\" pulumi-lang-java=\"`chartType`\" pulumi-lang-hcl=\"`chart_type`\"\u003e`chartType`\u003c/span\u003e is required on create. A funnel's \u003cspan pulumi-lang-nodejs=\"`settings`\" pulumi-lang-dotnet=\"`Settings`\" pulumi-lang-go=\"`settings`\" pulumi-lang-python=\"`settings`\" pulumi-lang-yaml=\"`settings`\" pulumi-lang-java=\"`settings`\" pulumi-lang-hcl=\"`settings`\"\u003e`settings`\u003c/span\u003e accept \u003cspan pulumi-lang-nodejs=\"`funnelUnitName`\" pulumi-lang-dotnet=\"`FunnelUnitName`\" pulumi-lang-go=\"`funnelUnitName`\" pulumi-lang-python=\"`funnel_unit_name`\" pulumi-lang-yaml=\"`funnelUnitName`\" pulumi-lang-java=\"`funnelUnitName`\" pulumi-lang-hcl=\"`funnel_unit_name`\"\u003e`funnelUnitName`\u003c/span\u003e, the word the chart counts in. The chart is always placed at `x: 0, y: 0, w: 12, h: 10`, and its name comes from the exploration's name. Returned without an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e.\n" }, "createdAt": { "type": "string", "description": "When the exploration was created.\n" }, "dateRangeFrom": { "type": "string", "description": "Start of the default date range, such as `now-3h`. A funnel's range starts at `now-7d` by default. Once set, it can't be cleared. Defaults to `now-3h`.\n" }, "dateRangeTo": { "type": "string", "description": "End of the default date range, such as 'now'. Once set, it can't be cleared. Defaults to 'now'.\n" }, "explorationGroupId": { "type": "string", "description": "Group this exploration belongs to. Remove the argument or set it to `\"0\"` to clear it from its group.\n" }, "name": { "type": "string", "description": "Exploration name. Until you name the exploration, a name generated from its query is returned. The chart is named after the exploration, so you never send a chart name.\n" }, "product": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/explorationProduct:ExplorationProduct" } ], "description": "The Explore the exploration lives in. Leave it out on create to put the exploration in Telemetry's Explore. A funnel over web events goes in RUM's Explore instead. Changing it moves the exploration to the other Explore. 'telemetry': Telemetry's Explore. 'rum': RUM's Explore, which reads an application's web events only.\n" }, "queries": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationQuery:ExplorationQuery" }, "description": "The chart's queries, oldest first. Updating an exploration replaces all of its queries. Each query accepts only the keys its \u003cspan pulumi-lang-nodejs=\"`queryType`\" pulumi-lang-dotnet=\"`QueryType`\" pulumi-lang-go=\"`queryType`\" pulumi-lang-python=\"`query_type`\" pulumi-lang-yaml=\"`queryType`\" pulumi-lang-java=\"`queryType`\" pulumi-lang-hcl=\"`query_type`\"\u003e`queryType`\u003c/span\u003e uses. A 'sql_expression' query uses \u003cspan pulumi-lang-nodejs=\"`sqlQuery`\" pulumi-lang-dotnet=\"`SqlQuery`\" pulumi-lang-go=\"`sqlQuery`\" pulumi-lang-python=\"`sql_query`\" pulumi-lang-yaml=\"`sqlQuery`\" pulumi-lang-java=\"`sqlQuery`\" pulumi-lang-hcl=\"`sql_query`\"\u003e`sqlQuery`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. A 'tail_query' uses \u003cspan pulumi-lang-nodejs=\"`whereCondition`\" pulumi-lang-dotnet=\"`WhereCondition`\" pulumi-lang-go=\"`whereCondition`\" pulumi-lang-python=\"`where_condition`\" pulumi-lang-yaml=\"`whereCondition`\" pulumi-lang-java=\"`whereCondition`\" pulumi-lang-hcl=\"`where_condition`\"\u003e`whereCondition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`sourceVariable`\" pulumi-lang-dotnet=\"`SourceVariable`\" pulumi-lang-go=\"`sourceVariable`\" pulumi-lang-python=\"`source_variable`\" pulumi-lang-yaml=\"`sourceVariable`\" pulumi-lang-java=\"`sourceVariable`\" pulumi-lang-hcl=\"`source_variable`\"\u003e`sourceVariable`\u003c/span\u003e. A \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e query uses \u003cspan pulumi-lang-nodejs=\"`staticText`\" pulumi-lang-dotnet=\"`StaticText`\" pulumi-lang-go=\"`staticText`\" pulumi-lang-python=\"`static_text`\" pulumi-lang-yaml=\"`staticText`\" pulumi-lang-java=\"`staticText`\" pulumi-lang-hcl=\"`static_text`\"\u003e`staticText`\u003c/span\u003e, and a \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e uses \u003cspan pulumi-lang-nodejs=\"`funnelQuery`\" pulumi-lang-dotnet=\"`FunnelQuery`\" pulumi-lang-go=\"`funnelQuery`\" pulumi-lang-python=\"`funnel_query`\" pulumi-lang-yaml=\"`funnelQuery`\" pulumi-lang-java=\"`funnelQuery`\" pulumi-lang-hcl=\"`funnel_query`\"\u003e`funnelQuery`\u003c/span\u003e. A key another type uses, or more than one query on a chart other than 'line_chart', is refused.\n" }, "sourceId": { "type": "string", "description": "ID of the source a funnel reads. Required when creating a funnel, and accepted only then. Other explorations pick their sources in the 'source' variable. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sourceType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/explorationSourceType:ExplorationSourceType" } ], "description": "The events a funnel reads from its source. When \u003cspan pulumi-lang-nodejs=\"`sourceType`\" pulumi-lang-dotnet=\"`SourceType`\" pulumi-lang-go=\"`sourceType`\" pulumi-lang-python=\"`source_type`\" pulumi-lang-yaml=\"`sourceType`\" pulumi-lang-java=\"`sourceType`\" pulumi-lang-hcl=\"`source_type`\"\u003e`sourceType`\u003c/span\u003e is left out or the source doesn't have those events, the funnel reads the first of web events, logs and spans that the source has. Valid values: 'web_events', 'logs', 'spans'. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "teamId": { "type": "string", "description": "Team that owns the exploration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the exploration.\n" }, "updatedAt": { "type": "string", "description": "When the exploration was last updated.\n" }, "variables": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ExplorationVariable:ExplorationVariable" }, "description": "Template variables, which the queries use by name. See [Query variables](https://betterstack.com/docs/logs/dashboards/variables/). An update replaces all variables, so a variable you leave out is removed, except the built-in 'time', 'start_time', 'end_time' and 'source' variables, which always exist. For a variable that already exists, any of \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e you leave out keeps its value, unless \u003cspan pulumi-lang-nodejs=\"`variableType`\" pulumi-lang-dotnet=\"`VariableType`\" pulumi-lang-go=\"`variableType`\" pulumi-lang-python=\"`variable_type`\" pulumi-lang-yaml=\"`variableType`\" pulumi-lang-java=\"`variableType`\" pulumi-lang-hcl=\"`variable_type`\"\u003e`variableType`\u003c/span\u003e changes, which clears them. \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e you leave out keeps its value too. A variable sent without \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e gets empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e, except a 'source' variable, which keeps its sources when you leave out both \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`structuredValue`\" pulumi-lang-dotnet=\"`StructuredValue`\" pulumi-lang-go=\"`structuredValue`\" pulumi-lang-python=\"`structured_value`\" pulumi-lang-yaml=\"`structuredValue`\" pulumi-lang-java=\"`structuredValue`\" pulumi-lang-hcl=\"`structured_value`\"\u003e`structuredValue`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e applies only to 'select_with_sql' and 'multi_select_with_sql' variables. \u003cspan pulumi-lang-nodejs=\"`allowMultipleValues`\" pulumi-lang-dotnet=\"`AllowMultipleValues`\" pulumi-lang-go=\"`allowMultipleValues`\" pulumi-lang-python=\"`allow_multiple_values`\" pulumi-lang-yaml=\"`allowMultipleValues`\" pulumi-lang-java=\"`allowMultipleValues`\" pulumi-lang-hcl=\"`allow_multiple_values`\"\u003e`allowMultipleValues`\u003c/span\u003e is saved only for 'select_value' and 'select_with_sql' variables. When a variable is saved with empty \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e, a 'select_value' variable gets the first of its \u003cspan pulumi-lang-nodejs=\"`defaultValues`\" pulumi-lang-dotnet=\"`DefaultValues`\" pulumi-lang-go=\"`defaultValues`\" pulumi-lang-python=\"`default_values`\" pulumi-lang-yaml=\"`defaultValues`\" pulumi-lang-java=\"`defaultValues`\" pulumi-lang-hcl=\"`default_values`\"\u003e`defaultValues`\u003c/span\u003e, and a 'string', 'number', 'boolean' or 'sql_expression' variable gets all of them. A 'select_with_sql' variable whose \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e is new or changed gets the first option its SQL returns. An ISO 8601 date in a 'date' or 'datetime' variable is saved in \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e as a Unix timestamp in microseconds. A new or changed \u003cspan pulumi-lang-nodejs=\"`sqlDefinition`\" pulumi-lang-dotnet=\"`SqlDefinition`\" pulumi-lang-go=\"`sqlDefinition`\" pulumi-lang-python=\"`sql_definition`\" pulumi-lang-yaml=\"`sqlDefinition`\" pulumi-lang-java=\"`sqlDefinition`\" pulumi-lang-hcl=\"`sql_definition`\"\u003e`sqlDefinition`\u003c/span\u003e or filter \u003cspan pulumi-lang-nodejs=\"`sql`\" pulumi-lang-dotnet=\"`Sql`\" pulumi-lang-go=\"`sql`\" pulumi-lang-python=\"`sql`\" pulumi-lang-yaml=\"`sql`\" pulumi-lang-java=\"`sql`\" pulumi-lang-hcl=\"`sql`\"\u003e`sql`\u003c/span\u003e runs against the selected source, and the change is refused when the query fails. A 'source' variable's values are the IDs of your sources. In a 'rum' exploration, pick each source as its web events, `\u003ctable_name\u003e:web_events`. A funnel can't have variables, and its source is set in \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e.\n" } }, "type": "object" } }, "betterstack:index/explorationGroup:ExplorationGroup": { "description": "A group that organizes related explorations together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ExplorationGroup(\"example\", {name: \"Production Monitoring\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ExplorationGroup(\"example\", name=\"Production Monitoring\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ExplorationGroup(\"example\", new()\n {\n Name = \"Production Monitoring\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewExplorationGroup(ctx, \"example\", \u0026betterstack.ExplorationGroupArgs{\n\t\t\tName: pulumi.String(\"Production Monitoring\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_exploration_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production Monitoring\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ExplorationGroup;\nimport com.betterstack.pulumi.ExplorationGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ExplorationGroup(\"example\", ExplorationGroupArgs.builder()\n .name(\"Production Monitoring\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ExplorationGroup\n properties:\n name: Production Monitoring\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing exploration group by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/explorationGroup:ExplorationGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering ExplorationGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/extractedMetric:ExtractedMetric": { "description": "A rule that extracts a metric, or a label, from a source's logs using its \u003cspan pulumi-lang-nodejs=\"`sqlExpression`\" pulumi-lang-dotnet=\"`SqlExpression`\" pulumi-lang-go=\"`sqlExpression`\" pulumi-lang-python=\"`sql_expression`\" pulumi-lang-yaml=\"`sqlExpression`\" pulumi-lang-java=\"`sqlExpression`\" pulumi-lang-hcl=\"`sql_expression`\"\u003e`sqlExpression`\u003c/span\u003e.\n\n## Example Usage\n\n### Chart request durations from your logs\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Source(\"app\", {\n name: \"Production app\",\n platform: betterstack.SourcePlatform.Ubuntu,\n});\nconst duration = new betterstack.ExtractedMetric(\"duration\", {\n sourceId: app.id,\n name: \"duration_ms\",\n sqlExpression: \"JSONExtract(raw, 'message_json', 'duration_ms', 'Nullable(Float64)')\",\n aggregations: [\n \"avg\",\n \"histogram\",\n \"min\",\n \"max\",\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Source(\"app\",\n name=\"Production app\",\n platform=betterstack.SourcePlatform.UBUNTU)\nduration = betterstack.ExtractedMetric(\"duration\",\n source_id=app.id,\n name=\"duration_ms\",\n sql_expression=\"JSONExtract(raw, 'message_json', 'duration_ms', 'Nullable(Float64)')\",\n aggregations=[\n \"avg\",\n \"histogram\",\n \"min\",\n \"max\",\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Source(\"app\", new()\n {\n Name = \"Production app\",\n Platform = BetterStack.SourcePlatform.Ubuntu,\n });\n\n var duration = new BetterStack.ExtractedMetric(\"duration\", new()\n {\n SourceId = app.Id,\n Name = \"duration_ms\",\n SqlExpression = \"JSONExtract(raw, 'message_json', 'duration_ms', 'Nullable(Float64)')\",\n Aggregations = new[]\n {\n \"avg\",\n \"histogram\",\n \"min\",\n \"max\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewSource(ctx, \"app\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformUbuntu),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewExtractedMetric(ctx, \"duration\", \u0026betterstack.ExtractedMetricArgs{\n\t\t\tSourceId: app.ID(),\n\t\t\tName: pulumi.String(\"duration_ms\"),\n\t\t\tSqlExpression: pulumi.String(\"JSONExtract(raw, 'message_json', 'duration_ms', 'Nullable(Float64)')\"),\n\t\t\tAggregations: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"avg\"),\n\t\t\t\tpulumi.String(\"histogram\"),\n\t\t\t\tpulumi.String(\"min\"),\n\t\t\t\tpulumi.String(\"max\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n platform = \"ubuntu\"\n}\nresource \"betterstack_extracted_metric\" \"duration\" {\n lifecycle {\n create_before_destroy = true\n }\n source_id = betterstack_source.app.id\n name = \"duration_ms\"\n sql_expression = \"JSONExtract(raw, 'message_json', 'duration_ms', 'Nullable(Float64)')\"\n aggregations = [\"avg\", \"histogram\", \"min\", \"max\"]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport com.betterstack.pulumi.ExtractedMetric;\nimport com.betterstack.pulumi.ExtractedMetricArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Source(\"app\", SourceArgs.builder()\n .name(\"Production app\")\n .platform(\"ubuntu\")\n .build());\n\n var duration = new ExtractedMetric(\"duration\", ExtractedMetricArgs.builder()\n .sourceId(app.id())\n .name(\"duration_ms\")\n .sqlExpression(\"JSONExtract(raw, 'message_json', 'duration_ms', 'Nullable(Float64)')\")\n .aggregations( \n \"avg\",\n \"histogram\",\n \"min\",\n \"max\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Source\n properties:\n name: Production app\n platform: ubuntu\n duration:\n type: betterstack:ExtractedMetric\n properties:\n sourceId: ${app.id}\n name: duration_ms\n sqlExpression: JSONExtract(raw, 'message_json', 'duration_ms', 'Nullable(Float64)')\n aggregations:\n - avg\n - histogram\n - min\n - max\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Extract a label to filter by\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst app = new betterstack.Source(\"app\", {\n name: \"Production app\",\n platform: betterstack.SourcePlatform.Ubuntu,\n});\nconst logType = new betterstack.ExtractedMetric(\"log_type\", {\n sourceId: app.id,\n name: \"log_type\",\n sqlExpression: \"JSONExtract(raw, 'message_json', 'log_type', 'Nullable(String)')\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\napp = betterstack.Source(\"app\",\n name=\"Production app\",\n platform=betterstack.SourcePlatform.UBUNTU)\nlog_type = betterstack.ExtractedMetric(\"log_type\",\n source_id=app.id,\n name=\"log_type\",\n sql_expression=\"JSONExtract(raw, 'message_json', 'log_type', 'Nullable(String)')\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var app = new BetterStack.Source(\"app\", new()\n {\n Name = \"Production app\",\n Platform = BetterStack.SourcePlatform.Ubuntu,\n });\n\n var logType = new BetterStack.ExtractedMetric(\"log_type\", new()\n {\n SourceId = app.Id,\n Name = \"log_type\",\n SqlExpression = \"JSONExtract(raw, 'message_json', 'log_type', 'Nullable(String)')\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tapp, err := betterstack.NewSource(ctx, \"app\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"Production app\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformUbuntu),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewExtractedMetric(ctx, \"log_type\", \u0026betterstack.ExtractedMetricArgs{\n\t\t\tSourceId: app.ID(),\n\t\t\tName: pulumi.String(\"log_type\"),\n\t\t\tSqlExpression: pulumi.String(\"JSONExtract(raw, 'message_json', 'log_type', 'Nullable(String)')\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source\" \"app\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production app\"\n platform = \"ubuntu\"\n}\nresource \"betterstack_extracted_metric\" \"log_type\" {\n lifecycle {\n create_before_destroy = true\n }\n source_id = betterstack_source.app.id\n name = \"log_type\"\n sql_expression = \"JSONExtract(raw, 'message_json', 'log_type', 'Nullable(String)')\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport com.betterstack.pulumi.ExtractedMetric;\nimport com.betterstack.pulumi.ExtractedMetricArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var app = new Source(\"app\", SourceArgs.builder()\n .name(\"Production app\")\n .platform(\"ubuntu\")\n .build());\n\n var logType = new ExtractedMetric(\"logType\", ExtractedMetricArgs.builder()\n .sourceId(app.id())\n .name(\"log_type\")\n .sqlExpression(\"JSONExtract(raw, 'message_json', 'log_type', 'Nullable(String)')\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n app:\n type: betterstack:Source\n properties:\n name: Production app\n platform: ubuntu\n logType:\n type: betterstack:ExtractedMetric\n name: log_type\n properties:\n sourceId: ${app.id}\n name: log_type\n sqlExpression: JSONExtract(raw, 'message_json', 'log_type', 'Nullable(String)')\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n\u003e Metrics and labels share this resource. A rule with aggregations is a metric, and one without is a label.\n\n## Import\n\nImport an existing extracted metric by its ID as `source_id/id`. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/extractedMetric:ExtractedMetric example \u003csource_id\u003e/m-123\n```\n\n", "properties": { "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregations to precompute, 'avg', 'count', 'uniq', 'max', 'min', 'sum' or 'histogram'. An empty array makes this a label rather than a metric.\n" }, "buildType": { "type": "string", "description": "Whether this change also applies to logs already stored. Defaults to 'new_data'. Better Stack never returns it, so Pulumi keeps the value you set. 'new_data': Applies the rule to new logs only. 'historical_logs': Also rebuilds the stored metrics from the retained logs, which is expensive.\n" }, "name": { "type": "string", "description": "Metric or label name.\n" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "sqlExpression": { "type": "string", "description": "SQL expression evaluated for each log. Log fields are in the 'raw' JSON field, so read them with `JSONExtract(raw, ..., 'Nullable(Type)')`.\n" }, "teamId": { "type": "string", "description": "Team that owns the metric's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "type": { "type": "string", "description": "ClickHouse type the value is stored as. Valid values: 'string', 'string_low_cardinality', 'int64_delta', 'int64', 'uint64_delta', 'uint64', 'float64_delta', 'datetime64_delta', 'boolean'.\n" } }, "required": [ "aggregations", "buildType", "name", "sourceId", "sqlExpression", "teamId", "type" ], "inputProperties": { "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregations to precompute, 'avg', 'count', 'uniq', 'max', 'min', 'sum' or 'histogram'. An empty array makes this a label rather than a metric.\n" }, "buildType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/extractedMetricBuildType:ExtractedMetricBuildType" } ], "description": "Whether this change also applies to logs already stored. Defaults to 'new_data'. Better Stack never returns it, so Pulumi keeps the value you set. 'new_data': Applies the rule to new logs only. 'historical_logs': Also rebuilds the stored metrics from the retained logs, which is expensive.\n" }, "name": { "type": "string", "description": "Metric or label name.\n" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "sqlExpression": { "type": "string", "description": "SQL expression evaluated for each log. Log fields are in the 'raw' JSON field, so read them with `JSONExtract(raw, ..., 'Nullable(Type)')`.\n" }, "teamId": { "type": "string", "description": "Team that owns the metric's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "type": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/extractedMetricType:ExtractedMetricType" } ], "description": "ClickHouse type the value is stored as. Valid values: 'string', 'string_low_cardinality', 'int64_delta', 'int64', 'uint64_delta', 'uint64', 'float64_delta', 'datetime64_delta', 'boolean'.\n" } }, "requiredInputs": [ "name", "sourceId", "sqlExpression" ], "stateInputs": { "description": "Input properties used for looking up and filtering ExtractedMetric resources.\n", "properties": { "aggregations": { "type": "array", "items": { "type": "string" }, "description": "Aggregations to precompute, 'avg', 'count', 'uniq', 'max', 'min', 'sum' or 'histogram'. An empty array makes this a label rather than a metric.\n" }, "buildType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/extractedMetricBuildType:ExtractedMetricBuildType" } ], "description": "Whether this change also applies to logs already stored. Defaults to 'new_data'. Better Stack never returns it, so Pulumi keeps the value you set. 'new_data': Applies the rule to new logs only. 'historical_logs': Also rebuilds the stored metrics from the retained logs, which is expensive.\n" }, "name": { "type": "string", "description": "Metric or label name.\n" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "sqlExpression": { "type": "string", "description": "SQL expression evaluated for each log. Log fields are in the 'raw' JSON field, so read them with `JSONExtract(raw, ..., 'Nullable(Type)')`.\n" }, "teamId": { "type": "string", "description": "Team that owns the metric's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "type": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/extractedMetricType:ExtractedMetricType" } ], "description": "ClickHouse type the value is stored as. Valid values: 'string', 'string_low_cardinality', 'int64_delta', 'int64', 'uint64_delta', 'uint64', 'float64_delta', 'datetime64_delta', 'boolean'.\n" } }, "type": "object" } }, "betterstack:index/firewall:Firewall": { "description": "A named set of inbound and outbound rules that you can attach to servers. A firewall blocks all traffic that no rule allows.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Firewall(\"example\", {\n name: \"example\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Firewall(\"example\",\n name=\"example\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Firewall(\"example\", new()\n {\n Name = \"example\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewFirewall(ctx, \"example\", \u0026betterstack.FirewallArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_firewall\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Firewall;\nimport com.betterstack.pulumi.FirewallArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Firewall(\"example\", FirewallArgs.builder()\n .name(\"example\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Firewall\n properties:\n name: example\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing firewall by its ID.\n\n```sh\n$ pulumi import betterstack:index/firewall:Firewall example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the firewall was created.\n" }, "name": { "type": "string", "description": "The firewall's name, unique in your organization.\n" }, "rules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/FirewallRuleSummary:FirewallRuleSummary" }, "description": "The firewall's rules. Add a rule via [Create a firewall rule](https://betterstack.com/docs/cloud/api/firewall-rules/create-firewall-rule/) and remove one via [Remove a firewall rule](https://betterstack.com/docs/cloud/api/firewall-rules/delete-firewall-rule/).\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the firewall. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the firewall was last updated.\n" } }, "required": [ "createdAt", "name", "rules", "teamId", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "The firewall's name, unique in your organization.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the firewall. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" } }, "requiredInputs": [ "name", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering Firewall resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the firewall was created.\n" }, "name": { "type": "string", "description": "The firewall's name, unique in your organization.\n" }, "rules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/FirewallRuleSummary:FirewallRuleSummary" }, "description": "The firewall's rules. Add a rule via [Create a firewall rule](https://betterstack.com/docs/cloud/api/firewall-rules/create-firewall-rule/) and remove one via [Remove a firewall rule](https://betterstack.com/docs/cloud/api/firewall-rules/delete-firewall-rule/).\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the firewall. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the firewall was last updated.\n" } }, "type": "object" } }, "betterstack:index/firewallRule:FirewallRule": { "description": "A rule that allows traffic through a firewall. A rule matches traffic by direction, protocol, address and port range.\n\n\u003e Better Stack can't update a firewall rule in place, so changing any argument replaces it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst web = new betterstack.Firewall(\"web\", {\n name: \"web\",\n teamId: \"t123\",\n});\nconst ssh = new betterstack.FirewallRule(\"ssh\", {\n firewallId: web.id,\n direction: betterstack.FirewallRuleDirection.Inbound,\n protocol: betterstack.FirewallRuleProtocol.Tcp,\n ipAddresses: [\n \"0.0.0.0/0\",\n \"::/0\",\n ],\n portFrom: 22,\n});\nconst https = new betterstack.FirewallRule(\"https\", {\n firewallId: web.id,\n direction: betterstack.FirewallRuleDirection.Inbound,\n protocol: betterstack.FirewallRuleProtocol.Tcp,\n ipAddresses: [\n \"0.0.0.0/0\",\n \"::/0\",\n ],\n portFrom: 443,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nweb = betterstack.Firewall(\"web\",\n name=\"web\",\n team_id=\"t123\")\nssh = betterstack.FirewallRule(\"ssh\",\n firewall_id=web.id,\n direction=betterstack.FirewallRuleDirection.INBOUND,\n protocol=betterstack.FirewallRuleProtocol.TCP,\n ip_addresses=[\n \"0.0.0.0/0\",\n \"::/0\",\n ],\n port_from=22)\nhttps = betterstack.FirewallRule(\"https\",\n firewall_id=web.id,\n direction=betterstack.FirewallRuleDirection.INBOUND,\n protocol=betterstack.FirewallRuleProtocol.TCP,\n ip_addresses=[\n \"0.0.0.0/0\",\n \"::/0\",\n ],\n port_from=443)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var web = new BetterStack.Firewall(\"web\", new()\n {\n Name = \"web\",\n TeamId = \"t123\",\n });\n\n var ssh = new BetterStack.FirewallRule(\"ssh\", new()\n {\n FirewallId = web.Id,\n Direction = BetterStack.FirewallRuleDirection.Inbound,\n Protocol = BetterStack.FirewallRuleProtocol.Tcp,\n IpAddresses = new[]\n {\n \"0.0.0.0/0\",\n \"::/0\",\n },\n PortFrom = 22,\n });\n\n var https = new BetterStack.FirewallRule(\"https\", new()\n {\n FirewallId = web.Id,\n Direction = BetterStack.FirewallRuleDirection.Inbound,\n Protocol = BetterStack.FirewallRuleProtocol.Tcp,\n IpAddresses = new[]\n {\n \"0.0.0.0/0\",\n \"::/0\",\n },\n PortFrom = 443,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tweb, err := betterstack.NewFirewall(ctx, \"web\", \u0026betterstack.FirewallArgs{\n\t\t\tName: pulumi.String(\"web\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewFirewallRule(ctx, \"ssh\", \u0026betterstack.FirewallRuleArgs{\n\t\t\tFirewallId: web.ID(),\n\t\t\tDirection: pulumi.String(betterstack.FirewallRuleDirectionInbound),\n\t\t\tProtocol: pulumi.String(betterstack.FirewallRuleProtocolTcp),\n\t\t\tIpAddresses: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"0.0.0.0/0\"),\n\t\t\t\tpulumi.String(\"::/0\"),\n\t\t\t},\n\t\t\tPortFrom: pulumi.Int(22),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewFirewallRule(ctx, \"https\", \u0026betterstack.FirewallRuleArgs{\n\t\t\tFirewallId: web.ID(),\n\t\t\tDirection: pulumi.String(betterstack.FirewallRuleDirectionInbound),\n\t\t\tProtocol: pulumi.String(betterstack.FirewallRuleProtocolTcp),\n\t\t\tIpAddresses: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"0.0.0.0/0\"),\n\t\t\t\tpulumi.String(\"::/0\"),\n\t\t\t},\n\t\t\tPortFrom: pulumi.Int(443),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_firewall\" \"web\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"web\"\n team_id = \"t123\"\n}\nresource \"betterstack_firewall_rule\" \"ssh\" {\n lifecycle {\n create_before_destroy = true\n }\n firewall_id = betterstack_firewall.web.id\n direction = \"inbound\"\n protocol = \"tcp\"\n ip_addresses = [\"0.0.0.0/0\", \"::/0\"]\n port_from = 22\n}\nresource \"betterstack_firewall_rule\" \"https\" {\n lifecycle {\n create_before_destroy = true\n }\n firewall_id = betterstack_firewall.web.id\n direction = \"inbound\"\n protocol = \"tcp\"\n ip_addresses = [\"0.0.0.0/0\", \"::/0\"]\n port_from = 443\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Firewall;\nimport com.betterstack.pulumi.FirewallArgs;\nimport com.betterstack.pulumi.FirewallRule;\nimport com.betterstack.pulumi.FirewallRuleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var web = new Firewall(\"web\", FirewallArgs.builder()\n .name(\"web\")\n .teamId(\"t123\")\n .build());\n\n var ssh = new FirewallRule(\"ssh\", FirewallRuleArgs.builder()\n .firewallId(web.id())\n .direction(\"inbound\")\n .protocol(\"tcp\")\n .ipAddresses( \n \"0.0.0.0/0\",\n \"::/0\")\n .portFrom(22)\n .build());\n\n var https = new FirewallRule(\"https\", FirewallRuleArgs.builder()\n .firewallId(web.id())\n .direction(\"inbound\")\n .protocol(\"tcp\")\n .ipAddresses( \n \"0.0.0.0/0\",\n \"::/0\")\n .portFrom(443)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n web:\n type: betterstack:Firewall\n properties:\n name: web\n teamId: t123\n ssh:\n type: betterstack:FirewallRule\n properties:\n firewallId: ${web.id}\n direction: inbound\n protocol: tcp\n ipAddresses:\n - 0.0.0.0/0\n - ::/0\n portFrom: 22\n https:\n type: betterstack:FirewallRule\n properties:\n firewallId: ${web.id}\n direction: inbound\n protocol: tcp\n ipAddresses:\n - 0.0.0.0/0\n - ::/0\n portFrom: 443\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n\u003e To change a rule, add a new rule and remove the old one.\n\n## Import\n\nImport an existing firewall rule by its ID as `firewall_id/id`. Get the ID via [List firewall rules](https://betterstack.com/docs/cloud/api/firewall-rules/list-firewall-rules/).\n\n```sh\n$ pulumi import betterstack:index/firewallRule:FirewallRule example \u003cfirewall_id\u003e/12345\n```\n\n", "properties": { "direction": { "type": "string", "description": "Which traffic the rule matches. 'inbound': The rule matches traffic that arrives at the server. 'outbound': The rule matches traffic that leaves the server.\n" }, "firewallId": { "type": "string", "description": "The ID of the parent this firewall belongs to. Changing it replaces the resource.\n" }, "ipAddresses": { "type": "array", "items": { "type": "string" }, "description": "The addresses the rule applies to, in CIDR notation, such as `10.0.0.0/8`. Use `0.0.0.0/0` and `::/0` for every address. The list can't be empty.\n" }, "portFrom": { "type": "integer", "description": "The first port of the range, from '0' to '65535'. Send it for every protocol. A protocol without ports, such as 'icmp', ignores it.\n" }, "portTo": { "type": "integer", "description": "The last port of the range, from \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e to '65535'. Leave it out to match only \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e.\n" }, "protocol": { "type": "string", "description": "The IP protocol the rule matches. 'any' matches every protocol. Valid values: 'tcp', 'udp', 'icmp', 'gre', 'esp', 'any'.\n" } }, "required": [ "direction", "firewallId", "ipAddresses", "portFrom", "protocol" ], "inputProperties": { "direction": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/firewallRuleDirection:FirewallRuleDirection" } ], "description": "Which traffic the rule matches. 'inbound': The rule matches traffic that arrives at the server. 'outbound': The rule matches traffic that leaves the server.\n" }, "firewallId": { "type": "string", "description": "The ID of the parent this firewall belongs to. Changing it replaces the resource.\n" }, "ipAddresses": { "type": "array", "items": { "type": "string" }, "description": "The addresses the rule applies to, in CIDR notation, such as `10.0.0.0/8`. Use `0.0.0.0/0` and `::/0` for every address. The list can't be empty.\n" }, "portFrom": { "type": "integer", "description": "The first port of the range, from '0' to '65535'. Send it for every protocol. A protocol without ports, such as 'icmp', ignores it.\n" }, "portTo": { "type": "integer", "description": "The last port of the range, from \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e to '65535'. Leave it out to match only \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e.\n" }, "protocol": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/firewallRuleProtocol:FirewallRuleProtocol" } ], "description": "The IP protocol the rule matches. 'any' matches every protocol. Valid values: 'tcp', 'udp', 'icmp', 'gre', 'esp', 'any'.\n" } }, "requiredInputs": [ "direction", "firewallId", "ipAddresses", "portFrom", "protocol" ], "stateInputs": { "description": "Input properties used for looking up and filtering FirewallRule resources.\n", "properties": { "direction": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/firewallRuleDirection:FirewallRuleDirection" } ], "description": "Which traffic the rule matches. 'inbound': The rule matches traffic that arrives at the server. 'outbound': The rule matches traffic that leaves the server.\n" }, "firewallId": { "type": "string", "description": "The ID of the parent this firewall belongs to. Changing it replaces the resource.\n" }, "ipAddresses": { "type": "array", "items": { "type": "string" }, "description": "The addresses the rule applies to, in CIDR notation, such as `10.0.0.0/8`. Use `0.0.0.0/0` and `::/0` for every address. The list can't be empty.\n" }, "portFrom": { "type": "integer", "description": "The first port of the range, from '0' to '65535'. Send it for every protocol. A protocol without ports, such as 'icmp', ignores it.\n" }, "portTo": { "type": "integer", "description": "The last port of the range, from \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e to '65535'. Leave it out to match only \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e.\n" }, "protocol": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/firewallRuleProtocol:FirewallRuleProtocol" } ], "description": "The IP protocol the rule matches. 'any' matches every protocol. Valid values: 'tcp', 'udp', 'icmp', 'gre', 'esp', 'any'.\n" } }, "type": "object" } }, "betterstack:index/heartbeat:Heartbeat": { "description": "A heartbeat watches a cron job or background service. Your job requests the heartbeat's URL on a schedule, and we alert you when a request doesn't arrive in time.\n\n\u003e Destroying a heartbeat deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Expect a nightly job once a day\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst nightlyBackup = new betterstack.Heartbeat(\"nightly_backup\", {\n name: \"Nightly database backup\",\n period: 86400,\n grace: 7200,\n email: true,\n push: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nnightly_backup = betterstack.Heartbeat(\"nightly_backup\",\n name=\"Nightly database backup\",\n period=86400,\n grace=7200,\n email=True,\n push=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var nightlyBackup = new BetterStack.Heartbeat(\"nightly_backup\", new()\n {\n Name = \"Nightly database backup\",\n Period = 86400,\n Grace = 7200,\n Email = true,\n Push = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewHeartbeat(ctx, \"nightly_backup\", \u0026betterstack.HeartbeatArgs{\n\t\t\tName: pulumi.String(\"Nightly database backup\"),\n\t\t\tPeriod: pulumi.Int(86400),\n\t\t\tGrace: pulumi.Int(7200),\n\t\t\tEmail: pulumi.Bool(true),\n\t\t\tPush: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_heartbeat\" \"nightly_backup\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Nightly database backup\"\n period = 86400\n grace = 7200\n email = true\n push = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Heartbeat;\nimport com.betterstack.pulumi.HeartbeatArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var nightlyBackup = new Heartbeat(\"nightlyBackup\", HeartbeatArgs.builder()\n .name(\"Nightly database backup\")\n .period(86400)\n .grace(7200)\n .email(true)\n .push(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n nightlyBackup:\n type: betterstack:Heartbeat\n name: nightly_backup\n properties:\n name: Nightly database backup\n period: 86400\n grace: 7200\n email: true\n push: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy, except during weekend maintenance\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst queueWorker = new betterstack.Heartbeat(\"queue_worker\", {\n name: \"Queue worker\",\n period: 300,\n grace: 300,\n escalationPolicyId: onCall.id,\n maintenanceDays: [\n \"sat\",\n \"sun\",\n ],\n maintenanceFrom: \"00:00:00\",\n maintenanceTo: \"06:00:00\",\n maintenanceTimezone: \"London\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nqueue_worker = betterstack.Heartbeat(\"queue_worker\",\n name=\"Queue worker\",\n period=300,\n grace=300,\n escalation_policy_id=on_call.id,\n maintenance_days=[\n \"sat\",\n \"sun\",\n ],\n maintenance_from=\"00:00:00\",\n maintenance_to=\"06:00:00\",\n maintenance_timezone=\"London\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var queueWorker = new BetterStack.Heartbeat(\"queue_worker\", new()\n {\n Name = \"Queue worker\",\n Period = 300,\n Grace = 300,\n EscalationPolicyId = onCall.Id,\n MaintenanceDays = new[]\n {\n \"sat\",\n \"sun\",\n },\n MaintenanceFrom = \"00:00:00\",\n MaintenanceTo = \"06:00:00\",\n MaintenanceTimezone = \"London\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewHeartbeat(ctx, \"queue_worker\", \u0026betterstack.HeartbeatArgs{\n\t\t\tName: pulumi.String(\"Queue worker\"),\n\t\t\tPeriod: pulumi.Int(300),\n\t\t\tGrace: pulumi.Int(300),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t\tMaintenanceDays: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"sat\"),\n\t\t\t\tpulumi.String(\"sun\"),\n\t\t\t},\n\t\t\tMaintenanceFrom: pulumi.String(\"00:00:00\"),\n\t\t\tMaintenanceTo: pulumi.String(\"06:00:00\"),\n\t\t\tMaintenanceTimezone: pulumi.String(\"London\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_heartbeat\" \"queue_worker\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Queue worker\"\n period = 300\n grace = 300\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n maintenance_days = [\"sat\", \"sun\"]\n maintenance_from = \"00:00:00\"\n maintenance_to = \"06:00:00\"\n maintenance_timezone = \"London\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.Heartbeat;\nimport com.betterstack.pulumi.HeartbeatArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var queueWorker = new Heartbeat(\"queueWorker\", HeartbeatArgs.builder()\n .name(\"Queue worker\")\n .period(300)\n .grace(300)\n .escalationPolicyId(onCall.id())\n .maintenanceDays( \n \"sat\",\n \"sun\")\n .maintenanceFrom(\"00:00:00\")\n .maintenanceTo(\"06:00:00\")\n .maintenanceTimezone(\"London\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n queueWorker:\n type: betterstack:Heartbeat\n name: queue_worker\n properties:\n name: Queue worker\n period: 300\n grace: 300\n escalationPolicyId: ${onCall.id}\n maintenanceDays:\n - sat\n - sun\n maintenanceFrom: 00:00:00\n maintenanceTo: 06:00:00\n maintenanceTimezone: London\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Sending \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e replaces all of the heartbeat's metadata keys, including keys added through the metadata endpoints at `/api/v4/metadata`. Leave \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out to keep it unchanged, or send `{}` to clear it. Set a heartbeat's metadata either here or through the metadata endpoints, not both.\n\n## Import\n\nImport an existing heartbeat by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/heartbeat:Heartbeat example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "createdAt": { "type": "string", "description": "When the heartbeat was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this heartbeat is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Get the ID via [List escalation policies](https://betterstack.com/docs/uptime/api/list-all-escalation-policies/).\n" }, "grace": { "type": "integer", "description": "How late a request can arrive after \u003cspan pulumi-lang-nodejs=\"`period`\" pulumi-lang-dotnet=\"`Period`\" pulumi-lang-go=\"`period`\" pulumi-lang-python=\"`period`\" pulumi-lang-yaml=\"`period`\" pulumi-lang-java=\"`period`\" pulumi-lang-hcl=\"`period`\"\u003e`period`\u003c/span\u003e, in seconds, before it counts as missed. At least '0' and less than a year.\n" }, "heartbeatGroupId": { "type": "string", "description": "ID of the heartbeat group this heartbeat belongs to.\n" }, "maintenanceDays": { "type": "array", "items": { "type": "string" }, "description": "Days of the week the maintenance window applies to, any of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. An overnight window counts for the day it starts. Defaults to `[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\", \"sat\", \"sun\"]`.\n" }, "maintenanceFrom": { "type": "string", "description": "Start time of the daily maintenance window, like `01:00`. We don't check the heartbeat during the window. Returned as `HH:MM:SS`, or null when no window is set.\n" }, "maintenanceTimezone": { "type": "string", "description": "Time zone of the maintenance window, as a short name like `Amsterdam` or an IANA name like `Europe/Amsterdam`. Returned as the short name. null means UTC.\n" }, "maintenanceTo": { "type": "string", "description": "End time of the daily maintenance window, like `03:00`. Required with \u003cspan pulumi-lang-nodejs=\"`maintenanceFrom`\" pulumi-lang-dotnet=\"`MaintenanceFrom`\" pulumi-lang-go=\"`maintenanceFrom`\" pulumi-lang-python=\"`maintenance_from`\" pulumi-lang-yaml=\"`maintenanceFrom`\" pulumi-lang-java=\"`maintenanceFrom`\" pulumi-lang-hcl=\"`maintenance_from`\"\u003e`maintenanceFrom`\u003c/span\u003e. A window that ends before it starts runs overnight. Returned as `HH:MM:SS`, or null when no window is set.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/HeartbeatMetadata:HeartbeatMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. An update replaces all of the heartbeat's metadata with the object. `{}` removes it all. Leave \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out to keep it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "Heartbeat name.\n" }, "paused": { "type": "boolean", "description": "Whether the heartbeat is paused. A paused heartbeat doesn't notify you about downtime. Set it to false to resume it. Defaults to false.\n" }, "pausedAt": { "type": "string", "description": "When the heartbeat was paused.\n" }, "period": { "type": "integer", "description": "How often the heartbeat expects a request, in seconds. At least '30' and less than a year.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "serverTimezone": { "type": "string", "description": "The time zone your job runs in, as an IANA name like `Europe/Berlin`. Set it so a job scheduled by local time isn't counted as late when the clocks change for daylight saving. Only accepted for a \u003cspan pulumi-lang-nodejs=\"`period`\" pulumi-lang-dotnet=\"`Period`\" pulumi-lang-go=\"`period`\" pulumi-lang-python=\"`period`\" pulumi-lang-yaml=\"`period`\" pulumi-lang-java=\"`period`\" pulumi-lang-hcl=\"`period`\"\u003e`period`\u003c/span\u003e of at least 3600 seconds, which is 1 hour. Remove the argument or set it to an empty string to clear it.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sortIndex": { "type": "integer", "description": "A sort value you can set through the API. The dashboard doesn't use it to order heartbeats.\n" }, "status": { "type": "string", "description": "The heartbeat's current status. \u003cspan pulumi-lang-nodejs=\"`paused`\" pulumi-lang-dotnet=\"`Paused`\" pulumi-lang-go=\"`paused`\" pulumi-lang-python=\"`paused`\" pulumi-lang-yaml=\"`paused`\" pulumi-lang-java=\"`paused`\" pulumi-lang-hcl=\"`paused`\"\u003e`paused`\u003c/span\u003e: The heartbeat is paused. 'pending': The first request hasn't arrived yet. 'maintenance': The heartbeat is in its maintenance window. 'up': There's no open incident. 'validating': Requests arrive again, and the open incident resolves once the recovery period passes. 'down': A request didn't arrive in time or reported a failure.\n" }, "teamId": { "type": "string", "description": "Team that owns this heartbeat, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this heartbeat.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "updatedAt": { "type": "string", "description": "When the heartbeat was last updated.\n" }, "url": { "type": "string", "description": "The unique URL your service requests to report a heartbeat. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "call", "createdAt", "criticalAlert", "deletionProtection", "email", "grace", "maintenanceDays", "metadata", "name", "paused", "pausedAt", "period", "push", "sms", "status", "teamId", "teamName", "updatedAt", "url" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this heartbeat is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Get the ID via [List escalation policies](https://betterstack.com/docs/uptime/api/list-all-escalation-policies/).\n" }, "grace": { "type": "integer", "description": "How late a request can arrive after \u003cspan pulumi-lang-nodejs=\"`period`\" pulumi-lang-dotnet=\"`Period`\" pulumi-lang-go=\"`period`\" pulumi-lang-python=\"`period`\" pulumi-lang-yaml=\"`period`\" pulumi-lang-java=\"`period`\" pulumi-lang-hcl=\"`period`\"\u003e`period`\u003c/span\u003e, in seconds, before it counts as missed. At least '0' and less than a year.\n" }, "heartbeatGroupId": { "type": "string", "description": "ID of the heartbeat group this heartbeat belongs to.\n" }, "maintenanceDays": { "type": "array", "items": { "type": "string" }, "description": "Days of the week the maintenance window applies to, any of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. An overnight window counts for the day it starts. Defaults to `[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\", \"sat\", \"sun\"]`.\n" }, "maintenanceFrom": { "type": "string", "description": "Start time of the daily maintenance window, like `01:00`. We don't check the heartbeat during the window. Returned as `HH:MM:SS`, or null when no window is set.\n" }, "maintenanceTimezone": { "type": "string", "description": "Time zone of the maintenance window, as a short name like `Amsterdam` or an IANA name like `Europe/Amsterdam`. Returned as the short name. null means UTC.\n" }, "maintenanceTo": { "type": "string", "description": "End time of the daily maintenance window, like `03:00`. Required with \u003cspan pulumi-lang-nodejs=\"`maintenanceFrom`\" pulumi-lang-dotnet=\"`MaintenanceFrom`\" pulumi-lang-go=\"`maintenanceFrom`\" pulumi-lang-python=\"`maintenance_from`\" pulumi-lang-yaml=\"`maintenanceFrom`\" pulumi-lang-java=\"`maintenanceFrom`\" pulumi-lang-hcl=\"`maintenance_from`\"\u003e`maintenanceFrom`\u003c/span\u003e. A window that ends before it starts runs overnight. Returned as `HH:MM:SS`, or null when no window is set.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/HeartbeatMetadata:HeartbeatMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. An update replaces all of the heartbeat's metadata with the object. `{}` removes it all. Leave \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out to keep it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "Heartbeat name.\n" }, "paused": { "type": "boolean", "description": "Whether the heartbeat is paused. A paused heartbeat doesn't notify you about downtime. Set it to false to resume it. Defaults to false.\n" }, "period": { "type": "integer", "description": "How often the heartbeat expects a request, in seconds. At least '30' and less than a year.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "serverTimezone": { "type": "string", "description": "The time zone your job runs in, as an IANA name like `Europe/Berlin`. Set it so a job scheduled by local time isn't counted as late when the clocks change for daylight saving. Only accepted for a \u003cspan pulumi-lang-nodejs=\"`period`\" pulumi-lang-dotnet=\"`Period`\" pulumi-lang-go=\"`period`\" pulumi-lang-python=\"`period`\" pulumi-lang-yaml=\"`period`\" pulumi-lang-java=\"`period`\" pulumi-lang-hcl=\"`period`\"\u003e`period`\u003c/span\u003e of at least 3600 seconds, which is 1 hour. Remove the argument or set it to an empty string to clear it.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sortIndex": { "type": "integer", "description": "A sort value you can set through the API. The dashboard doesn't use it to order heartbeats.\n" }, "teamId": { "type": "string", "description": "Team that owns this heartbeat, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "requiredInputs": [ "grace", "name", "period" ], "stateInputs": { "description": "Input properties used for looking up and filtering Heartbeat resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "createdAt": { "type": "string", "description": "When the heartbeat was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this heartbeat is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Get the ID via [List escalation policies](https://betterstack.com/docs/uptime/api/list-all-escalation-policies/).\n" }, "grace": { "type": "integer", "description": "How late a request can arrive after \u003cspan pulumi-lang-nodejs=\"`period`\" pulumi-lang-dotnet=\"`Period`\" pulumi-lang-go=\"`period`\" pulumi-lang-python=\"`period`\" pulumi-lang-yaml=\"`period`\" pulumi-lang-java=\"`period`\" pulumi-lang-hcl=\"`period`\"\u003e`period`\u003c/span\u003e, in seconds, before it counts as missed. At least '0' and less than a year.\n" }, "heartbeatGroupId": { "type": "string", "description": "ID of the heartbeat group this heartbeat belongs to.\n" }, "maintenanceDays": { "type": "array", "items": { "type": "string" }, "description": "Days of the week the maintenance window applies to, any of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. An overnight window counts for the day it starts. Defaults to `[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\", \"sat\", \"sun\"]`.\n" }, "maintenanceFrom": { "type": "string", "description": "Start time of the daily maintenance window, like `01:00`. We don't check the heartbeat during the window. Returned as `HH:MM:SS`, or null when no window is set.\n" }, "maintenanceTimezone": { "type": "string", "description": "Time zone of the maintenance window, as a short name like `Amsterdam` or an IANA name like `Europe/Amsterdam`. Returned as the short name. null means UTC.\n" }, "maintenanceTo": { "type": "string", "description": "End time of the daily maintenance window, like `03:00`. Required with \u003cspan pulumi-lang-nodejs=\"`maintenanceFrom`\" pulumi-lang-dotnet=\"`MaintenanceFrom`\" pulumi-lang-go=\"`maintenanceFrom`\" pulumi-lang-python=\"`maintenance_from`\" pulumi-lang-yaml=\"`maintenanceFrom`\" pulumi-lang-java=\"`maintenanceFrom`\" pulumi-lang-hcl=\"`maintenance_from`\"\u003e`maintenanceFrom`\u003c/span\u003e. A window that ends before it starts runs overnight. Returned as `HH:MM:SS`, or null when no window is set.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/HeartbeatMetadata:HeartbeatMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. An update replaces all of the heartbeat's metadata with the object. `{}` removes it all. Leave \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out to keep it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "Heartbeat name.\n" }, "paused": { "type": "boolean", "description": "Whether the heartbeat is paused. A paused heartbeat doesn't notify you about downtime. Set it to false to resume it. Defaults to false.\n" }, "pausedAt": { "type": "string", "description": "When the heartbeat was paused.\n" }, "period": { "type": "integer", "description": "How often the heartbeat expects a request, in seconds. At least '30' and less than a year.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "serverTimezone": { "type": "string", "description": "The time zone your job runs in, as an IANA name like `Europe/Berlin`. Set it so a job scheduled by local time isn't counted as late when the clocks change for daylight saving. Only accepted for a \u003cspan pulumi-lang-nodejs=\"`period`\" pulumi-lang-dotnet=\"`Period`\" pulumi-lang-go=\"`period`\" pulumi-lang-python=\"`period`\" pulumi-lang-yaml=\"`period`\" pulumi-lang-java=\"`period`\" pulumi-lang-hcl=\"`period`\"\u003e`period`\u003c/span\u003e of at least 3600 seconds, which is 1 hour. Remove the argument or set it to an empty string to clear it.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sortIndex": { "type": "integer", "description": "A sort value you can set through the API. The dashboard doesn't use it to order heartbeats.\n" }, "status": { "type": "string", "description": "The heartbeat's current status. \u003cspan pulumi-lang-nodejs=\"`paused`\" pulumi-lang-dotnet=\"`Paused`\" pulumi-lang-go=\"`paused`\" pulumi-lang-python=\"`paused`\" pulumi-lang-yaml=\"`paused`\" pulumi-lang-java=\"`paused`\" pulumi-lang-hcl=\"`paused`\"\u003e`paused`\u003c/span\u003e: The heartbeat is paused. 'pending': The first request hasn't arrived yet. 'maintenance': The heartbeat is in its maintenance window. 'up': There's no open incident. 'validating': Requests arrive again, and the open incident resolves once the recovery period passes. 'down': A request didn't arrive in time or reported a failure.\n" }, "teamId": { "type": "string", "description": "Team that owns this heartbeat, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this heartbeat.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "updatedAt": { "type": "string", "description": "When the heartbeat was last updated.\n" }, "url": { "type": "string", "description": "The unique URL your service requests to report a heartbeat. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/heartbeatGroup:HeartbeatGroup": { "description": "A group that organizes related heartbeats together.\n\n## Example Usage\n\n### Create a heartbeat group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.HeartbeatGroup(\"example\", {name: \"Backend services\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.HeartbeatGroup(\"example\", name=\"Backend services\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.HeartbeatGroup(\"example\", new()\n {\n Name = \"Backend services\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewHeartbeatGroup(ctx, \"example\", \u0026betterstack.HeartbeatGroupArgs{\n\t\t\tName: pulumi.String(\"Backend services\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_heartbeat_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend services\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.HeartbeatGroup;\nimport com.betterstack.pulumi.HeartbeatGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new HeartbeatGroup(\"example\", HeartbeatGroupArgs.builder()\n .name(\"Backend services\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:HeartbeatGroup\n properties:\n name: Backend services\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Listed first\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst listedFirst = new betterstack.HeartbeatGroup(\"listed_first\", {\n name: \"Database backups\",\n sortIndex: 0,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nlisted_first = betterstack.HeartbeatGroup(\"listed_first\",\n name=\"Database backups\",\n sort_index=0)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var listedFirst = new BetterStack.HeartbeatGroup(\"listed_first\", new()\n {\n Name = \"Database backups\",\n SortIndex = 0,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewHeartbeatGroup(ctx, \"listed_first\", \u0026betterstack.HeartbeatGroupArgs{\n\t\t\tName: pulumi.String(\"Database backups\"),\n\t\t\tSortIndex: pulumi.Int(0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_heartbeat_group\" \"listed_first\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Database backups\"\n sort_index = 0\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.HeartbeatGroup;\nimport com.betterstack.pulumi.HeartbeatGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var listedFirst = new HeartbeatGroup(\"listedFirst\", HeartbeatGroupArgs.builder()\n .name(\"Database backups\")\n .sortIndex(0)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n listedFirst:\n type: betterstack:HeartbeatGroup\n name: listed_first\n properties:\n name: Database backups\n sortIndex: 0\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing heartbeat group by its ID. Get the ID via [List heartbeat groups](https://betterstack.com/docs/uptime/api/list-all-existing-heartbeat-groups/).\n\n```sh\n$ pulumi import betterstack:index/heartbeatGroup:HeartbeatGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "paused": { "type": "boolean", "description": "Whether every heartbeat in the group is paused, false when the group has none. Set it to true to pause every heartbeat in the group or false to resume them. Accepted on create, but has no effect there.\n" }, "sortIndex": { "type": "integer", "description": "The position of the group in your list of heartbeat groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this heartbeat group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this heartbeat group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "paused", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "paused": { "type": "boolean", "description": "Whether every heartbeat in the group is paused, false when the group has none. Set it to true to pause every heartbeat in the group or false to resume them. Accepted on create, but has no effect there.\n" }, "sortIndex": { "type": "integer", "description": "The position of the group in your list of heartbeat groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this heartbeat group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering HeartbeatGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "paused": { "type": "boolean", "description": "Whether every heartbeat in the group is paused, false when the group has none. Set it to true to pause every heartbeat in the group or false to resume them. Accepted on create, but has no effect there.\n" }, "sortIndex": { "type": "integer", "description": "The position of the group in your list of heartbeat groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this heartbeat group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this heartbeat group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/incidentsAmazonSnsIntegration:IncidentsAmazonSnsIntegration": { "description": "An Amazon SNS integration opens incidents from the notifications your Amazon SNS topic sends. Rules you set decide which notifications open, acknowledge or resolve an incident.\n\n## Example Usage\n\n### Create an Amazon SNS integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsAmazonSnsIntegration(\"example\", {name: \"Backend alerts\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsAmazonSnsIntegration(\"example\", name=\"Backend alerts\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsAmazonSnsIntegration(\"example\", new()\n {\n Name = \"Backend alerts\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsAmazonSnsIntegration(ctx, \"example\", \u0026betterstack.IncidentsAmazonSnsIntegrationArgs{\n\t\t\tName: pulumi.String(\"Backend alerts\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_amazon_sns_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend alerts\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsAmazonSnsIntegration;\nimport com.betterstack.pulumi.IncidentsAmazonSnsIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsAmazonSnsIntegration(\"example\", IncidentsAmazonSnsIntegrationArgs.builder()\n .name(\"Backend alerts\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsAmazonSnsIntegration\n properties:\n name: Backend alerts\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsAmazonSnsIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Backend alerts\",\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsAmazonSnsIntegration(\"alert_through_an_escalation_policy\",\n name=\"Backend alerts\",\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsAmazonSnsIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Backend alerts\",\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsAmazonSnsIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsAmazonSnsIntegrationArgs{\n\t\t\tName: pulumi.String(\"Backend alerts\"),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_amazon_sns_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend alerts\"\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsAmazonSnsIntegration;\nimport com.betterstack.pulumi.IncidentsAmazonSnsIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsAmazonSnsIntegration(\"alertThroughAnEscalationPolicy\", IncidentsAmazonSnsIntegrationArgs.builder()\n .name(\"Backend alerts\")\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsAmazonSnsIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Backend alerts\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`titleField`\" pulumi-lang-dotnet=\"`TitleField`\" pulumi-lang-go=\"`titleField`\" pulumi-lang-python=\"`title_field`\" pulumi-lang-yaml=\"`titleField`\" pulumi-lang-java=\"`titleField`\" pulumi-lang-hcl=\"`title_field`\"\u003e`titleField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e attributes each hold one extraction field, as an object or null. \u003cspan pulumi-lang-nodejs=\"`otherStartedFields`\" pulumi-lang-dotnet=\"`OtherStartedFields`\" pulumi-lang-go=\"`otherStartedFields`\" pulumi-lang-python=\"`other_started_fields`\" pulumi-lang-yaml=\"`otherStartedFields`\" pulumi-lang-java=\"`otherStartedFields`\" pulumi-lang-hcl=\"`other_started_fields`\"\u003e`otherStartedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`otherAcknowledgedFields`\" pulumi-lang-dotnet=\"`OtherAcknowledgedFields`\" pulumi-lang-go=\"`otherAcknowledgedFields`\" pulumi-lang-python=\"`other_acknowledged_fields`\" pulumi-lang-yaml=\"`otherAcknowledgedFields`\" pulumi-lang-java=\"`otherAcknowledgedFields`\" pulumi-lang-hcl=\"`other_acknowledged_fields`\"\u003e`otherAcknowledgedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`otherResolvedFields`\" pulumi-lang-dotnet=\"`OtherResolvedFields`\" pulumi-lang-go=\"`otherResolvedFields`\" pulumi-lang-python=\"`other_resolved_fields`\" pulumi-lang-yaml=\"`otherResolvedFields`\" pulumi-lang-java=\"`otherResolvedFields`\" pulumi-lang-hcl=\"`other_resolved_fields`\"\u003e`otherResolvedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e are lists. Each list is the complete set for its event, and sending one replaces the current list.\n\n\u003e The receiving URL has the form `/api/v1/incoming-webhook/:token`. A new integration extracts the cause and alert ID from the message body, and the title from the SNS Subject. \u003cspan pulumi-lang-nodejs=\"`topicArn`\" pulumi-lang-dotnet=\"`TopicArn`\" pulumi-lang-go=\"`topicArn`\" pulumi-lang-python=\"`topic_arn`\" pulumi-lang-yaml=\"`topicArn`\" pulumi-lang-java=\"`topicArn`\" pulumi-lang-hcl=\"`topic_arn`\"\u003e`topicArn`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`subscriptionState`\" pulumi-lang-dotnet=\"`SubscriptionState`\" pulumi-lang-go=\"`subscriptionState`\" pulumi-lang-python=\"`subscription_state`\" pulumi-lang-yaml=\"`subscriptionState`\" pulumi-lang-java=\"`subscriptionState`\" pulumi-lang-hcl=\"`subscription_state`\"\u003e`subscriptionState`\u003c/span\u003e are read-only.\n\n\u003e Sending \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e replaces all of the integration's metadata keys, including keys added through the metadata endpoints at `/api/v4/metadata`. Leave \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out to keep it unchanged, or send `{}` to clear it. Set an integration's metadata either here or through the metadata endpoints, not both.\n\n## Import\n\nImport an existing Amazon SNS integration by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/incidentsAmazonSnsIntegration:IncidentsAmazonSnsIntegration example 12345\n```\n\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField:IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from a notification that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "description": "When notifications acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': Notifications never acknowledge an incident. 'any': A notification acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': A notification acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedRule:IncidentsAmazonSnsIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationCauseField:IncidentsAmazonSnsIntegrationCauseField", "description": "How to extract the incident cause from the notification that starts an incident. Defaults to the whole message.\n" }, "createdAt": { "type": "string", "description": "When the integration was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationMetadata:IncidentsAmazonSnsIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the Amazon SNS integration shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherAcknowledgedField:IncidentsAmazonSnsIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from a notification that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherResolvedField:IncidentsAmazonSnsIntegrationOtherResolvedField" }, "description": "Custom fields extracted from a notification that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherStartedField:IncidentsAmazonSnsIntegrationOtherStartedField" }, "description": "Custom fields extracted from the notification that starts an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait, in seconds, after a matching resolving notification before the incident resolves. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationResolvedAlertIdField:IncidentsAmazonSnsIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from a notification that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "description": "When notifications resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Resolving is checked first, then acknowledging, then opening, and a notification that matches no open incident can still open one. Defaults to 'unused'. 'unused': Notifications never resolve an incident. 'any': A notification resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': A notification resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationResolvedRule:IncidentsAmazonSnsIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sampleBody": { "type": "string", "description": "The body of the sample SNS message saved in the dashboard to preview extraction.\n" }, "sampleHeaders": { "type": "string", "description": "The headers of the sample notification saved in the dashboard to preview extraction.\n" }, "sampleQueryString": { "type": "string", "description": "The query string of the sample notification saved in the dashboard to preview extraction.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationStartedAlertIdField:IncidentsAmazonSnsIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the notification that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later notifications acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "description": "When notifications open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the notification goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every notification that doesn't acknowledge or resolve an incident opens one. 'any': A notification opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': A notification opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationStartedRule:IncidentsAmazonSnsIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "subscriptionState": { "type": "string", "description": "Whether AWS has confirmed the SNS subscription. 'awaiting': AWS hasn't confirmed the subscription yet. 'active': AWS has confirmed the subscription.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationTitleField:IncidentsAmazonSnsIntegrationTitleField", "description": "How to extract a custom incident title from the notification that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. By default, the title is the whole SNS `Subject`, with \u003cspan pulumi-lang-nodejs=\"`fieldTarget`\" pulumi-lang-dotnet=\"`FieldTarget`\" pulumi-lang-go=\"`fieldTarget`\" pulumi-lang-python=\"`field_target`\" pulumi-lang-yaml=\"`fieldTarget`\" pulumi-lang-java=\"`fieldTarget`\" pulumi-lang-hcl=\"`field_target`\"\u003e`fieldTarget`\u003c/span\u003e set to 'sns_envelope', \u003cspan pulumi-lang-nodejs=\"`targetField`\" pulumi-lang-dotnet=\"`TargetField`\" pulumi-lang-go=\"`targetField`\" pulumi-lang-python=\"`target_field`\" pulumi-lang-yaml=\"`targetField`\" pulumi-lang-java=\"`targetField`\" pulumi-lang-hcl=\"`target_field`\"\u003e`targetField`\u003c/span\u003e to `Subject` and \u003cspan pulumi-lang-nodejs=\"`matchType`\" pulumi-lang-dotnet=\"`MatchType`\" pulumi-lang-go=\"`matchType`\" pulumi-lang-python=\"`match_type`\" pulumi-lang-yaml=\"`matchType`\" pulumi-lang-java=\"`matchType`\" pulumi-lang-hcl=\"`match_type`\"\u003e`matchType`\u003c/span\u003e to 'match_everything'. null extracts no title. Leaving it out clears it, on create too.\n" }, "topicArn": { "type": "string", "description": "The ARN of the subscribed Amazon SNS topic, or null until AWS confirms the subscription.\n" }, "updatedAt": { "type": "string", "description": "When the integration was last updated.\n" }, "url": { "type": "string", "description": "The endpoint to subscribe your Amazon SNS topic to. Leave **Enable raw message delivery** off on the subscription, or every notification is rejected with '400'. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "acknowledgedRuleType", "acknowledgedRules", "call", "causeField", "createdAt", "criticalAlert", "email", "metadata", "paused", "push", "recoveryPeriod", "resolvedRuleType", "resolvedRules", "sampleBody", "sampleHeaders", "sampleQueryString", "sms", "startedAlertIdField", "startedRuleType", "startedRules", "subscriptionState", "teamId", "teamName", "topicArn", "updatedAt", "url" ], "inputProperties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField:IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from a notification that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsAmazonSnsIntegrationAcknowledgedRuleType:IncidentsAmazonSnsIntegrationAcknowledgedRuleType" } ], "description": "When notifications acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': Notifications never acknowledge an incident. 'any': A notification acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': A notification acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedRule:IncidentsAmazonSnsIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationCauseField:IncidentsAmazonSnsIntegrationCauseField", "description": "How to extract the incident cause from the notification that starts an incident. Defaults to the whole message.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationMetadata:IncidentsAmazonSnsIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the Amazon SNS integration shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherAcknowledgedField:IncidentsAmazonSnsIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from a notification that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherResolvedField:IncidentsAmazonSnsIntegrationOtherResolvedField" }, "description": "Custom fields extracted from a notification that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherStartedField:IncidentsAmazonSnsIntegrationOtherStartedField" }, "description": "Custom fields extracted from the notification that starts an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait, in seconds, after a matching resolving notification before the incident resolves. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationResolvedAlertIdField:IncidentsAmazonSnsIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from a notification that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsAmazonSnsIntegrationResolvedRuleType:IncidentsAmazonSnsIntegrationResolvedRuleType" } ], "description": "When notifications resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Resolving is checked first, then acknowledging, then opening, and a notification that matches no open incident can still open one. Defaults to 'unused'. 'unused': Notifications never resolve an incident. 'any': A notification resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': A notification resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationResolvedRule:IncidentsAmazonSnsIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationStartedAlertIdField:IncidentsAmazonSnsIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the notification that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later notifications acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsAmazonSnsIntegrationStartedRuleType:IncidentsAmazonSnsIntegrationStartedRuleType" } ], "description": "When notifications open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the notification goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every notification that doesn't acknowledge or resolve an incident opens one. 'any': A notification opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': A notification opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationStartedRule:IncidentsAmazonSnsIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationTitleField:IncidentsAmazonSnsIntegrationTitleField", "description": "How to extract a custom incident title from the notification that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. By default, the title is the whole SNS `Subject`, with \u003cspan pulumi-lang-nodejs=\"`fieldTarget`\" pulumi-lang-dotnet=\"`FieldTarget`\" pulumi-lang-go=\"`fieldTarget`\" pulumi-lang-python=\"`field_target`\" pulumi-lang-yaml=\"`fieldTarget`\" pulumi-lang-java=\"`fieldTarget`\" pulumi-lang-hcl=\"`field_target`\"\u003e`fieldTarget`\u003c/span\u003e set to 'sns_envelope', \u003cspan pulumi-lang-nodejs=\"`targetField`\" pulumi-lang-dotnet=\"`TargetField`\" pulumi-lang-go=\"`targetField`\" pulumi-lang-python=\"`target_field`\" pulumi-lang-yaml=\"`targetField`\" pulumi-lang-java=\"`targetField`\" pulumi-lang-hcl=\"`target_field`\"\u003e`targetField`\u003c/span\u003e to `Subject` and \u003cspan pulumi-lang-nodejs=\"`matchType`\" pulumi-lang-dotnet=\"`MatchType`\" pulumi-lang-go=\"`matchType`\" pulumi-lang-python=\"`match_type`\" pulumi-lang-yaml=\"`matchType`\" pulumi-lang-java=\"`matchType`\" pulumi-lang-hcl=\"`match_type`\"\u003e`matchType`\u003c/span\u003e to 'match_everything'. null extracts no title. Leaving it out clears it, on create too.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsAmazonSnsIntegration resources.\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField:IncidentsAmazonSnsIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from a notification that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsAmazonSnsIntegrationAcknowledgedRuleType:IncidentsAmazonSnsIntegrationAcknowledgedRuleType" } ], "description": "When notifications acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': Notifications never acknowledge an incident. 'any': A notification acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': A notification acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationAcknowledgedRule:IncidentsAmazonSnsIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationCauseField:IncidentsAmazonSnsIntegrationCauseField", "description": "How to extract the incident cause from the notification that starts an incident. Defaults to the whole message.\n" }, "createdAt": { "type": "string", "description": "When the integration was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationMetadata:IncidentsAmazonSnsIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the Amazon SNS integration shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherAcknowledgedField:IncidentsAmazonSnsIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from a notification that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherResolvedField:IncidentsAmazonSnsIntegrationOtherResolvedField" }, "description": "Custom fields extracted from a notification that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationOtherStartedField:IncidentsAmazonSnsIntegrationOtherStartedField" }, "description": "Custom fields extracted from the notification that starts an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait, in seconds, after a matching resolving notification before the incident resolves. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationResolvedAlertIdField:IncidentsAmazonSnsIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from a notification that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsAmazonSnsIntegrationResolvedRuleType:IncidentsAmazonSnsIntegrationResolvedRuleType" } ], "description": "When notifications resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Resolving is checked first, then acknowledging, then opening, and a notification that matches no open incident can still open one. Defaults to 'unused'. 'unused': Notifications never resolve an incident. 'any': A notification resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': A notification resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationResolvedRule:IncidentsAmazonSnsIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sampleBody": { "type": "string", "description": "The body of the sample SNS message saved in the dashboard to preview extraction.\n" }, "sampleHeaders": { "type": "string", "description": "The headers of the sample notification saved in the dashboard to preview extraction.\n" }, "sampleQueryString": { "type": "string", "description": "The query string of the sample notification saved in the dashboard to preview extraction.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationStartedAlertIdField:IncidentsAmazonSnsIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the notification that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later notifications acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsAmazonSnsIntegrationStartedRuleType:IncidentsAmazonSnsIntegrationStartedRuleType" } ], "description": "When notifications open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the notification goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every notification that doesn't acknowledge or resolve an incident opens one. 'any': A notification opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': A notification opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationStartedRule:IncidentsAmazonSnsIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "subscriptionState": { "type": "string", "description": "Whether AWS has confirmed the SNS subscription. 'awaiting': AWS hasn't confirmed the subscription yet. 'active': AWS has confirmed the subscription.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsAmazonSnsIntegrationTitleField:IncidentsAmazonSnsIntegrationTitleField", "description": "How to extract a custom incident title from the notification that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. By default, the title is the whole SNS `Subject`, with \u003cspan pulumi-lang-nodejs=\"`fieldTarget`\" pulumi-lang-dotnet=\"`FieldTarget`\" pulumi-lang-go=\"`fieldTarget`\" pulumi-lang-python=\"`field_target`\" pulumi-lang-yaml=\"`fieldTarget`\" pulumi-lang-java=\"`fieldTarget`\" pulumi-lang-hcl=\"`field_target`\"\u003e`fieldTarget`\u003c/span\u003e set to 'sns_envelope', \u003cspan pulumi-lang-nodejs=\"`targetField`\" pulumi-lang-dotnet=\"`TargetField`\" pulumi-lang-go=\"`targetField`\" pulumi-lang-python=\"`target_field`\" pulumi-lang-yaml=\"`targetField`\" pulumi-lang-java=\"`targetField`\" pulumi-lang-hcl=\"`target_field`\"\u003e`targetField`\u003c/span\u003e to `Subject` and \u003cspan pulumi-lang-nodejs=\"`matchType`\" pulumi-lang-dotnet=\"`MatchType`\" pulumi-lang-go=\"`matchType`\" pulumi-lang-python=\"`match_type`\" pulumi-lang-yaml=\"`matchType`\" pulumi-lang-java=\"`matchType`\" pulumi-lang-hcl=\"`match_type`\"\u003e`matchType`\u003c/span\u003e to 'match_everything'. null extracts no title. Leaving it out clears it, on create too.\n" }, "topicArn": { "type": "string", "description": "The ARN of the subscribed Amazon SNS topic, or null until AWS confirms the subscription.\n" }, "updatedAt": { "type": "string", "description": "When the integration was last updated.\n" }, "url": { "type": "string", "description": "The endpoint to subscribe your Amazon SNS topic to. Leave **Enable raw message delivery** off on the subscription, or every notification is rejected with '400'. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsAwsCloudWatchIntegration:IncidentsAwsCloudWatchIntegration": { "description": "Receives alerts from AWS CloudWatch and opens Better Stack incidents.\n\n## Example Usage\n\n### Create an AWS CloudWatch integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsAwsCloudWatchIntegration(\"example\", {\n name: \"AWS CloudWatch alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsAwsCloudWatchIntegration(\"example\",\n name=\"AWS CloudWatch alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsAwsCloudWatchIntegration(\"example\", new()\n {\n Name = \"AWS CloudWatch alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsAwsCloudWatchIntegration(ctx, \"example\", \u0026betterstack.IncidentsAwsCloudWatchIntegrationArgs{\n\t\t\tName: pulumi.String(\"AWS CloudWatch alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_aws_cloud_watch_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"AWS CloudWatch alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsAwsCloudWatchIntegration;\nimport com.betterstack.pulumi.IncidentsAwsCloudWatchIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsAwsCloudWatchIntegration(\"example\", IncidentsAwsCloudWatchIntegrationArgs.builder()\n .name(\"AWS CloudWatch alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsAwsCloudWatchIntegration\n properties:\n name: AWS CloudWatch alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsAwsCloudWatchIntegration(\"alert_through_an_escalation_policy\", {\n name: \"AWS CloudWatch alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsAwsCloudWatchIntegration(\"alert_through_an_escalation_policy\",\n name=\"AWS CloudWatch alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsAwsCloudWatchIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"AWS CloudWatch alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsAwsCloudWatchIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsAwsCloudWatchIntegrationArgs{\n\t\t\tName: pulumi.String(\"AWS CloudWatch alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_aws_cloud_watch_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"AWS CloudWatch alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsAwsCloudWatchIntegration;\nimport com.betterstack.pulumi.IncidentsAwsCloudWatchIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsAwsCloudWatchIntegration(\"alertThroughAnEscalationPolicy\", IncidentsAwsCloudWatchIntegrationArgs.builder()\n .name(\"AWS CloudWatch alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsAwsCloudWatchIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: AWS CloudWatch alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The 'alerting_rule' attribute is accepted on create and update but never returned.\n\n## Import\n\nImport an existing AWS CloudWatch integration by its ID. Get the ID via [List AWS CloudWatch integrations](https://betterstack.com/docs/uptime/api/list-all-aws-cloudwatch-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsAwsCloudWatchIntegration:IncidentsAwsCloudWatchIntegration example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into AWS CloudWatch. Alerts AWS CloudWatch sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsAwsCloudWatchIntegration resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into AWS CloudWatch. Alerts AWS CloudWatch sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsAzureIntegration:IncidentsAzureIntegration": { "description": "An Azure integration turns alerts from Azure into incidents.\n\n## Example Usage\n\n### Create an Azure integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsAzureIntegration(\"example\", {\n name: \"Azure alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsAzureIntegration(\"example\",\n name=\"Azure alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsAzureIntegration(\"example\", new()\n {\n Name = \"Azure alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsAzureIntegration(ctx, \"example\", \u0026betterstack.IncidentsAzureIntegrationArgs{\n\t\t\tName: pulumi.String(\"Azure alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_azure_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Azure alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsAzureIntegration;\nimport com.betterstack.pulumi.IncidentsAzureIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsAzureIntegration(\"example\", IncidentsAzureIntegrationArgs.builder()\n .name(\"Azure alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsAzureIntegration\n properties:\n name: Azure alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsAzureIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Azure alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsAzureIntegration(\"alert_through_an_escalation_policy\",\n name=\"Azure alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsAzureIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Azure alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsAzureIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsAzureIntegrationArgs{\n\t\t\tName: pulumi.String(\"Azure alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_azure_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Azure alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsAzureIntegration;\nimport com.betterstack.pulumi.IncidentsAzureIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsAzureIntegration(\"alertThroughAnEscalationPolicy\", IncidentsAzureIntegrationArgs.builder()\n .name(\"Azure alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsAzureIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Azure alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e You can send 'alerting_rule' on create and update, but responses don't return it.\n\n## Import\n\nImport an existing Azure integration by its ID. Get the ID via [List Azure integrations](https://betterstack.com/docs/uptime/api/list-all-azure-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsAzureIntegration:IncidentsAzureIntegration example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Azure. Alerts Azure sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsAzureIntegration resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Azure. Alerts Azure sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsDatadogIntegration:IncidentsDatadogIntegration": { "description": "Receives alerts from Datadog and opens Better Stack incidents.\n\n## Example Usage\n\n### Create a Datadog integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsDatadogIntegration(\"example\", {\n name: \"Datadog alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsDatadogIntegration(\"example\",\n name=\"Datadog alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsDatadogIntegration(\"example\", new()\n {\n Name = \"Datadog alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsDatadogIntegration(ctx, \"example\", \u0026betterstack.IncidentsDatadogIntegrationArgs{\n\t\t\tName: pulumi.String(\"Datadog alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_datadog_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Datadog alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsDatadogIntegration;\nimport com.betterstack.pulumi.IncidentsDatadogIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsDatadogIntegration(\"example\", IncidentsDatadogIntegrationArgs.builder()\n .name(\"Datadog alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsDatadogIntegration\n properties:\n name: Datadog alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsDatadogIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Datadog alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsDatadogIntegration(\"alert_through_an_escalation_policy\",\n name=\"Datadog alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsDatadogIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Datadog alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsDatadogIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsDatadogIntegrationArgs{\n\t\t\tName: pulumi.String(\"Datadog alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_datadog_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Datadog alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsDatadogIntegration;\nimport com.betterstack.pulumi.IncidentsDatadogIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsDatadogIntegration(\"alertThroughAnEscalationPolicy\", IncidentsDatadogIntegrationArgs.builder()\n .name(\"Datadog alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsDatadogIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Datadog alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing Datadog integration by its ID. Get the ID via [List Datadog integrations](https://betterstack.com/docs/uptime/api/list-all-datadog-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsDatadogIntegration:IncidentsDatadogIntegration example 12345\n```\n\n", "properties": { "alertingRule": { "type": "string", "description": "Which Datadog alert levels open incidents. Defaults to 'alert'. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Datadog. Alerts Datadog sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "alertingRule", "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "alertingRule": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsDatadogIntegrationAlertingRule:IncidentsDatadogIntegrationAlertingRule" } ], "description": "Which Datadog alert levels open incidents. Defaults to 'alert'. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsDatadogIntegration resources.\n", "properties": { "alertingRule": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsDatadogIntegrationAlertingRule:IncidentsDatadogIntegrationAlertingRule" } ], "description": "Which Datadog alert levels open incidents. Defaults to 'alert'. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Datadog. Alerts Datadog sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsElasticIntegration:IncidentsElasticIntegration": { "description": "An Elastic integration turns alerts from Elastic into incidents.\n\n## Example Usage\n\n### Create an Elastic integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsElasticIntegration(\"example\", {\n name: \"Elastic alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsElasticIntegration(\"example\",\n name=\"Elastic alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsElasticIntegration(\"example\", new()\n {\n Name = \"Elastic alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsElasticIntegration(ctx, \"example\", \u0026betterstack.IncidentsElasticIntegrationArgs{\n\t\t\tName: pulumi.String(\"Elastic alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_elastic_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Elastic alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsElasticIntegration;\nimport com.betterstack.pulumi.IncidentsElasticIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsElasticIntegration(\"example\", IncidentsElasticIntegrationArgs.builder()\n .name(\"Elastic alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsElasticIntegration\n properties:\n name: Elastic alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsElasticIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Elastic alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsElasticIntegration(\"alert_through_an_escalation_policy\",\n name=\"Elastic alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsElasticIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Elastic alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsElasticIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsElasticIntegrationArgs{\n\t\t\tName: pulumi.String(\"Elastic alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_elastic_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Elastic alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsElasticIntegration;\nimport com.betterstack.pulumi.IncidentsElasticIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsElasticIntegration(\"alertThroughAnEscalationPolicy\", IncidentsElasticIntegrationArgs.builder()\n .name(\"Elastic alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsElasticIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Elastic alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e You can send 'alerting_rule' on create and update, but responses don't return it.\n\n## Import\n\nImport an existing Elastic integration by its ID. Get the ID via [List Elastic integrations](https://betterstack.com/docs/uptime/api/list-all-elastic-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsElasticIntegration:IncidentsElasticIntegration example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Elastic. Alerts Elastic sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsElasticIntegration resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Elastic. Alerts Elastic sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsGoogleMonitoringIntegration:IncidentsGoogleMonitoringIntegration": { "description": "Receives alerts from Google Monitoring and opens Better Stack incidents.\n\n## Example Usage\n\n### Create a Google Monitoring integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsGoogleMonitoringIntegration(\"example\", {\n name: \"Google Monitoring alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsGoogleMonitoringIntegration(\"example\",\n name=\"Google Monitoring alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsGoogleMonitoringIntegration(\"example\", new()\n {\n Name = \"Google Monitoring alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsGoogleMonitoringIntegration(ctx, \"example\", \u0026betterstack.IncidentsGoogleMonitoringIntegrationArgs{\n\t\t\tName: pulumi.String(\"Google Monitoring alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_google_monitoring_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Google Monitoring alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsGoogleMonitoringIntegration;\nimport com.betterstack.pulumi.IncidentsGoogleMonitoringIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsGoogleMonitoringIntegration(\"example\", IncidentsGoogleMonitoringIntegrationArgs.builder()\n .name(\"Google Monitoring alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsGoogleMonitoringIntegration\n properties:\n name: Google Monitoring alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsGoogleMonitoringIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Google Monitoring alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsGoogleMonitoringIntegration(\"alert_through_an_escalation_policy\",\n name=\"Google Monitoring alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsGoogleMonitoringIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Google Monitoring alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsGoogleMonitoringIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsGoogleMonitoringIntegrationArgs{\n\t\t\tName: pulumi.String(\"Google Monitoring alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_google_monitoring_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Google Monitoring alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsGoogleMonitoringIntegration;\nimport com.betterstack.pulumi.IncidentsGoogleMonitoringIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsGoogleMonitoringIntegration(\"alertThroughAnEscalationPolicy\", IncidentsGoogleMonitoringIntegrationArgs.builder()\n .name(\"Google Monitoring alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsGoogleMonitoringIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Google Monitoring alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The 'alerting_rule' attribute is accepted on create and update but never returned.\n\n## Import\n\nImport an existing Google Monitoring integration by its ID. Get the ID via [List Google Monitoring integrations](https://betterstack.com/docs/uptime/api/list-all-google-monitoring-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsGoogleMonitoringIntegration:IncidentsGoogleMonitoringIntegration example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Google Monitoring. Alerts Google Monitoring sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsGoogleMonitoringIntegration resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Google Monitoring. Alerts Google Monitoring sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsGrafanaIntegration:IncidentsGrafanaIntegration": { "description": "A Grafana integration turns alerts from Grafana into incidents.\n\n## Example Usage\n\n### Create a Grafana integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsGrafanaIntegration(\"example\", {\n name: \"Grafana alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsGrafanaIntegration(\"example\",\n name=\"Grafana alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsGrafanaIntegration(\"example\", new()\n {\n Name = \"Grafana alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsGrafanaIntegration(ctx, \"example\", \u0026betterstack.IncidentsGrafanaIntegrationArgs{\n\t\t\tName: pulumi.String(\"Grafana alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_grafana_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Grafana alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsGrafanaIntegration;\nimport com.betterstack.pulumi.IncidentsGrafanaIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsGrafanaIntegration(\"example\", IncidentsGrafanaIntegrationArgs.builder()\n .name(\"Grafana alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsGrafanaIntegration\n properties:\n name: Grafana alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsGrafanaIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Grafana alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsGrafanaIntegration(\"alert_through_an_escalation_policy\",\n name=\"Grafana alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsGrafanaIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Grafana alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsGrafanaIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsGrafanaIntegrationArgs{\n\t\t\tName: pulumi.String(\"Grafana alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_grafana_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Grafana alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsGrafanaIntegration;\nimport com.betterstack.pulumi.IncidentsGrafanaIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsGrafanaIntegration(\"alertThroughAnEscalationPolicy\", IncidentsGrafanaIntegrationArgs.builder()\n .name(\"Grafana alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsGrafanaIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Grafana alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e You can send 'alerting_rule' on create and update, but responses don't return it.\n\n## Import\n\nImport an existing Grafana integration by its ID. Get the ID via [List Grafana integrations](https://betterstack.com/docs/uptime/api/list-all-grafana-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsGrafanaIntegration:IncidentsGrafanaIntegration example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Grafana. Alerts Grafana sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsGrafanaIntegration resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Grafana. Alerts Grafana sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsIncomingEmailIntegration:IncidentsIncomingEmailIntegration": { "description": "An e-mail address that opens incidents from the e-mails it receives. Fields you set pick values such as the cause out of each e-mail, and rules decide whether an e-mail opens, acknowledges or resolves an incident.\n\n## Example Usage\n\n### Create an incoming e-mail integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsIncomingEmailIntegration(\"example\", {name: \"Backend e-mail alerts\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsIncomingEmailIntegration(\"example\", name=\"Backend e-mail alerts\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsIncomingEmailIntegration(\"example\", new()\n {\n Name = \"Backend e-mail alerts\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsIncomingEmailIntegration(ctx, \"example\", \u0026betterstack.IncidentsIncomingEmailIntegrationArgs{\n\t\t\tName: pulumi.String(\"Backend e-mail alerts\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_incoming_email_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend e-mail alerts\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsIncomingEmailIntegration;\nimport com.betterstack.pulumi.IncidentsIncomingEmailIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsIncomingEmailIntegration(\"example\", IncidentsIncomingEmailIntegrationArgs.builder()\n .name(\"Backend e-mail alerts\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsIncomingEmailIntegration\n properties:\n name: Backend e-mail alerts\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsIncomingEmailIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Backend e-mail alerts\",\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsIncomingEmailIntegration(\"alert_through_an_escalation_policy\",\n name=\"Backend e-mail alerts\",\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsIncomingEmailIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Backend e-mail alerts\",\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsIncomingEmailIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsIncomingEmailIntegrationArgs{\n\t\t\tName: pulumi.String(\"Backend e-mail alerts\"),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_incoming_email_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend e-mail alerts\"\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsIncomingEmailIntegration;\nimport com.betterstack.pulumi.IncidentsIncomingEmailIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsIncomingEmailIntegration(\"alertThroughAnEscalationPolicy\", IncidentsIncomingEmailIntegrationArgs.builder()\n .name(\"Backend e-mail alerts\")\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsIncomingEmailIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Backend e-mail alerts\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`titleField`\" pulumi-lang-dotnet=\"`TitleField`\" pulumi-lang-go=\"`titleField`\" pulumi-lang-python=\"`title_field`\" pulumi-lang-yaml=\"`titleField`\" pulumi-lang-java=\"`titleField`\" pulumi-lang-hcl=\"`title_field`\"\u003e`titleField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e attributes each hold one extraction field, as an object or null. \u003cspan pulumi-lang-nodejs=\"`otherStartedFields`\" pulumi-lang-dotnet=\"`OtherStartedFields`\" pulumi-lang-go=\"`otherStartedFields`\" pulumi-lang-python=\"`other_started_fields`\" pulumi-lang-yaml=\"`otherStartedFields`\" pulumi-lang-java=\"`otherStartedFields`\" pulumi-lang-hcl=\"`other_started_fields`\"\u003e`otherStartedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`otherAcknowledgedFields`\" pulumi-lang-dotnet=\"`OtherAcknowledgedFields`\" pulumi-lang-go=\"`otherAcknowledgedFields`\" pulumi-lang-python=\"`other_acknowledged_fields`\" pulumi-lang-yaml=\"`otherAcknowledgedFields`\" pulumi-lang-java=\"`otherAcknowledgedFields`\" pulumi-lang-hcl=\"`other_acknowledged_fields`\"\u003e`otherAcknowledgedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`otherResolvedFields`\" pulumi-lang-dotnet=\"`OtherResolvedFields`\" pulumi-lang-go=\"`otherResolvedFields`\" pulumi-lang-python=\"`other_resolved_fields`\" pulumi-lang-yaml=\"`otherResolvedFields`\" pulumi-lang-java=\"`otherResolvedFields`\" pulumi-lang-hcl=\"`other_resolved_fields`\"\u003e`otherResolvedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e are lists. Each list is the complete set for its event and replaces the current one.\n\n\u003e A metadata object replaces all keys, including keys written through the metadata endpoints at `/api/v4/metadata`. Leaving metadata out keeps it unchanged, and an empty object, `{}`, clears it. Write an object's metadata either here or through the metadata endpoints, not both.\n\n## Import\n\nImport an existing incoming e-mail integration by its ID. Get the ID via [List e-mail integrations](https://betterstack.com/docs/uptime/api/list-all-email-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsIncomingEmailIntegration:IncidentsIncomingEmailIntegration example 12345\n```\n\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField:IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "description": "When e-mails acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': E-mails never acknowledge an incident. 'any': An e-mail acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': An e-mail acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedRule:IncidentsIncomingEmailIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationCauseField:IncidentsIncomingEmailIntegrationCauseField", "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.\n" }, "createdAt": { "type": "string", "description": "When the integration was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "emailAddress": { "type": "string", "description": "The address to forward your e-mails to. E-mails sent to it open incidents.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationMetadata:IncidentsIncomingEmailIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the e-mail integration shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherAcknowledgedField:IncidentsIncomingEmailIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from an e-mail that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherResolvedField:IncidentsIncomingEmailIntegrationOtherResolvedField" }, "description": "Custom fields extracted from an e-mail that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherStartedField:IncidentsIncomingEmailIntegrationOtherStartedField" }, "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationResolvedAlertIdField:IncidentsIncomingEmailIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "description": "When e-mails resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one. Defaults to 'unused'. 'unused': E-mails never resolve an incident. 'any': An e-mail resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': An e-mail resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationResolvedRule:IncidentsIncomingEmailIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationStartedAlertIdField:IncidentsIncomingEmailIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "description": "When e-mails open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every e-mail that doesn't acknowledge or resolve an incident opens one. 'any': An e-mail opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': An e-mail opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationStartedRule:IncidentsIncomingEmailIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationTitleField:IncidentsIncomingEmailIntegrationTitleField", "description": "Field that extracts the incident title, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the integration was last updated.\n" } }, "required": [ "acknowledgedRuleType", "acknowledgedRules", "call", "causeField", "createdAt", "criticalAlert", "email", "emailAddress", "metadata", "paused", "push", "recoveryPeriod", "resolvedRuleType", "resolvedRules", "sms", "startedRuleType", "startedRules", "teamId", "teamName", "updatedAt" ], "inputProperties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField:IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingEmailIntegrationAcknowledgedRuleType:IncidentsIncomingEmailIntegrationAcknowledgedRuleType" } ], "description": "When e-mails acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': E-mails never acknowledge an incident. 'any': An e-mail acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': An e-mail acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedRule:IncidentsIncomingEmailIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationCauseField:IncidentsIncomingEmailIntegrationCauseField", "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationMetadata:IncidentsIncomingEmailIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the e-mail integration shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherAcknowledgedField:IncidentsIncomingEmailIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from an e-mail that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherResolvedField:IncidentsIncomingEmailIntegrationOtherResolvedField" }, "description": "Custom fields extracted from an e-mail that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherStartedField:IncidentsIncomingEmailIntegrationOtherStartedField" }, "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationResolvedAlertIdField:IncidentsIncomingEmailIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingEmailIntegrationResolvedRuleType:IncidentsIncomingEmailIntegrationResolvedRuleType" } ], "description": "When e-mails resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one. Defaults to 'unused'. 'unused': E-mails never resolve an incident. 'any': An e-mail resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': An e-mail resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationResolvedRule:IncidentsIncomingEmailIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationStartedAlertIdField:IncidentsIncomingEmailIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingEmailIntegrationStartedRuleType:IncidentsIncomingEmailIntegrationStartedRuleType" } ], "description": "When e-mails open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every e-mail that doesn't acknowledge or resolve an incident opens one. 'any': An e-mail opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': An e-mail opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationStartedRule:IncidentsIncomingEmailIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationTitleField:IncidentsIncomingEmailIntegrationTitleField", "description": "Field that extracts the incident title, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsIncomingEmailIntegration resources.\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField:IncidentsIncomingEmailIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingEmailIntegrationAcknowledgedRuleType:IncidentsIncomingEmailIntegrationAcknowledgedRuleType" } ], "description": "When e-mails acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': E-mails never acknowledge an incident. 'any': An e-mail acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': An e-mail acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationAcknowledgedRule:IncidentsIncomingEmailIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationCauseField:IncidentsIncomingEmailIntegrationCauseField", "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.\n" }, "createdAt": { "type": "string", "description": "When the integration was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "emailAddress": { "type": "string", "description": "The address to forward your e-mails to. E-mails sent to it open incidents.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationMetadata:IncidentsIncomingEmailIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the e-mail integration shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherAcknowledgedField:IncidentsIncomingEmailIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from an e-mail that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherResolvedField:IncidentsIncomingEmailIntegrationOtherResolvedField" }, "description": "Custom fields extracted from an e-mail that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationOtherStartedField:IncidentsIncomingEmailIntegrationOtherStartedField" }, "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationResolvedAlertIdField:IncidentsIncomingEmailIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingEmailIntegrationResolvedRuleType:IncidentsIncomingEmailIntegrationResolvedRuleType" } ], "description": "When e-mails resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one. Defaults to 'unused'. 'unused': E-mails never resolve an incident. 'any': An e-mail resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': An e-mail resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationResolvedRule:IncidentsIncomingEmailIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationStartedAlertIdField:IncidentsIncomingEmailIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingEmailIntegrationStartedRuleType:IncidentsIncomingEmailIntegrationStartedRuleType" } ], "description": "When e-mails open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every e-mail that doesn't acknowledge or resolve an incident opens one. 'any': An e-mail opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': An e-mail opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationStartedRule:IncidentsIncomingEmailIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsIncomingEmailIntegrationTitleField:IncidentsIncomingEmailIntegrationTitleField", "description": "Field that extracts the incident title, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the integration was last updated.\n" } }, "type": "object" } }, "betterstack:index/incidentsIncomingWebhookIntegration:IncidentsIncomingWebhookIntegration": { "description": "A webhook URL that opens incidents from the requests it receives. Fields you set pick values such as the cause out of each request, and rules decide whether a request opens, acknowledges or resolves an incident.\n\n## Example Usage\n\n### Create an incoming webhook integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsIncomingWebhookIntegration(\"example\", {name: \"Backend service\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsIncomingWebhookIntegration(\"example\", name=\"Backend service\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsIncomingWebhookIntegration(\"example\", new()\n {\n Name = \"Backend service\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsIncomingWebhookIntegration(ctx, \"example\", \u0026betterstack.IncidentsIncomingWebhookIntegrationArgs{\n\t\t\tName: pulumi.String(\"Backend service\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_incoming_webhook_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend service\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsIncomingWebhookIntegration;\nimport com.betterstack.pulumi.IncidentsIncomingWebhookIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsIncomingWebhookIntegration(\"example\", IncidentsIncomingWebhookIntegrationArgs.builder()\n .name(\"Backend service\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsIncomingWebhookIntegration\n properties:\n name: Backend service\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsIncomingWebhookIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Backend service\",\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsIncomingWebhookIntegration(\"alert_through_an_escalation_policy\",\n name=\"Backend service\",\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsIncomingWebhookIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Backend service\",\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsIncomingWebhookIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsIncomingWebhookIntegrationArgs{\n\t\t\tName: pulumi.String(\"Backend service\"),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_incoming_webhook_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend service\"\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsIncomingWebhookIntegration;\nimport com.betterstack.pulumi.IncidentsIncomingWebhookIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsIncomingWebhookIntegration(\"alertThroughAnEscalationPolicy\", IncidentsIncomingWebhookIntegrationArgs.builder()\n .name(\"Backend service\")\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsIncomingWebhookIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Backend service\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`titleField`\" pulumi-lang-dotnet=\"`TitleField`\" pulumi-lang-go=\"`titleField`\" pulumi-lang-python=\"`title_field`\" pulumi-lang-yaml=\"`titleField`\" pulumi-lang-java=\"`titleField`\" pulumi-lang-hcl=\"`title_field`\"\u003e`titleField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e attributes each hold one extraction field, as an object or null. \u003cspan pulumi-lang-nodejs=\"`otherStartedFields`\" pulumi-lang-dotnet=\"`OtherStartedFields`\" pulumi-lang-go=\"`otherStartedFields`\" pulumi-lang-python=\"`other_started_fields`\" pulumi-lang-yaml=\"`otherStartedFields`\" pulumi-lang-java=\"`otherStartedFields`\" pulumi-lang-hcl=\"`other_started_fields`\"\u003e`otherStartedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`otherAcknowledgedFields`\" pulumi-lang-dotnet=\"`OtherAcknowledgedFields`\" pulumi-lang-go=\"`otherAcknowledgedFields`\" pulumi-lang-python=\"`other_acknowledged_fields`\" pulumi-lang-yaml=\"`otherAcknowledgedFields`\" pulumi-lang-java=\"`otherAcknowledgedFields`\" pulumi-lang-hcl=\"`other_acknowledged_fields`\"\u003e`otherAcknowledgedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`otherResolvedFields`\" pulumi-lang-dotnet=\"`OtherResolvedFields`\" pulumi-lang-go=\"`otherResolvedFields`\" pulumi-lang-python=\"`other_resolved_fields`\" pulumi-lang-yaml=\"`otherResolvedFields`\" pulumi-lang-java=\"`otherResolvedFields`\" pulumi-lang-hcl=\"`other_resolved_fields`\"\u003e`otherResolvedFields`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e are lists. Each list is the complete set for its event and replaces the current one.\n\n\u003e A metadata object replaces all keys, including keys written through the metadata endpoints at `/api/v4/metadata`. Leaving metadata out keeps it unchanged, and an empty object, `{}`, clears it. Write an object's metadata either here or through the metadata endpoints, not both.\n\n## Import\n\nImport an existing incoming webhook integration by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/incidentsIncomingWebhookIntegration:IncidentsIncomingWebhookIntegration example 12345\n```\n\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField:IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from a request that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "description": "When requests acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': Requests never acknowledge an incident. 'any': A request acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': A request acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedRule:IncidentsIncomingWebhookIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationCauseField:IncidentsIncomingWebhookIntegrationCauseField", "description": "How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is `Unknown cause`.\n" }, "createdAt": { "type": "string", "description": "When the integration was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationMetadata:IncidentsIncomingWebhookIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the incoming webhook shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherAcknowledgedField:IncidentsIncomingWebhookIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from a request that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherResolvedField:IncidentsIncomingWebhookIntegrationOtherResolvedField" }, "description": "Custom fields extracted from a request that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherStartedField:IncidentsIncomingWebhookIntegrationOtherStartedField" }, "description": "Custom fields extracted from the request that opens an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationResolvedAlertIdField:IncidentsIncomingWebhookIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from a request that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "description": "When requests resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one. Defaults to 'unused'. 'unused': Requests never resolve an incident. 'any': A request resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': A request resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationResolvedRule:IncidentsIncomingWebhookIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sampleBody": { "type": "string", "description": "The body of the sample request saved in the dashboard to preview extraction.\n" }, "sampleHeaders": { "type": "string", "description": "The headers of the sample request saved in the dashboard to preview extraction.\n" }, "sampleQueryString": { "type": "string", "description": "The query string of the sample request saved in the dashboard to preview extraction.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationStartedAlertIdField:IncidentsIncomingWebhookIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the request that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later requests acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "description": "When requests open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every request that doesn't acknowledge or resolve an incident opens one. 'any': A request opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': A request opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationStartedRule:IncidentsIncomingWebhookIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationTitleField:IncidentsIncomingWebhookIntegrationTitleField", "description": "Field that extracts the incident title, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the integration was last updated.\n" }, "url": { "type": "string", "description": "The URL that receives your webhooks. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "acknowledgedRuleType", "acknowledgedRules", "call", "createdAt", "criticalAlert", "email", "metadata", "paused", "push", "recoveryPeriod", "resolvedRuleType", "resolvedRules", "sampleBody", "sampleHeaders", "sampleQueryString", "sms", "startedRuleType", "startedRules", "teamId", "teamName", "updatedAt", "url" ], "inputProperties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField:IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from a request that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingWebhookIntegrationAcknowledgedRuleType:IncidentsIncomingWebhookIntegrationAcknowledgedRuleType" } ], "description": "When requests acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': Requests never acknowledge an incident. 'any': A request acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': A request acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedRule:IncidentsIncomingWebhookIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationCauseField:IncidentsIncomingWebhookIntegrationCauseField", "description": "How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is `Unknown cause`.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationMetadata:IncidentsIncomingWebhookIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the incoming webhook shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherAcknowledgedField:IncidentsIncomingWebhookIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from a request that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherResolvedField:IncidentsIncomingWebhookIntegrationOtherResolvedField" }, "description": "Custom fields extracted from a request that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherStartedField:IncidentsIncomingWebhookIntegrationOtherStartedField" }, "description": "Custom fields extracted from the request that opens an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationResolvedAlertIdField:IncidentsIncomingWebhookIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from a request that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingWebhookIntegrationResolvedRuleType:IncidentsIncomingWebhookIntegrationResolvedRuleType" } ], "description": "When requests resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one. Defaults to 'unused'. 'unused': Requests never resolve an incident. 'any': A request resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': A request resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationResolvedRule:IncidentsIncomingWebhookIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationStartedAlertIdField:IncidentsIncomingWebhookIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the request that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later requests acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingWebhookIntegrationStartedRuleType:IncidentsIncomingWebhookIntegrationStartedRuleType" } ], "description": "When requests open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every request that doesn't acknowledge or resolve an incident opens one. 'any': A request opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': A request opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationStartedRule:IncidentsIncomingWebhookIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationTitleField:IncidentsIncomingWebhookIntegrationTitleField", "description": "Field that extracts the incident title, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsIncomingWebhookIntegration resources.\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField:IncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from a request that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingWebhookIntegrationAcknowledgedRuleType:IncidentsIncomingWebhookIntegrationAcknowledgedRuleType" } ], "description": "When requests acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. Defaults to 'unused'. 'unused': Requests never acknowledge an incident. 'any': A request acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': A request acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n" }, "acknowledgedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationAcknowledgedRule:IncidentsIncomingWebhookIntegrationAcknowledgedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "causeField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationCauseField:IncidentsIncomingWebhookIntegrationCauseField", "description": "How to extract the incident cause from the request that starts an incident. When it's missing or extracts nothing, the cause is `Unknown cause`.\n" }, "createdAt": { "type": "string", "description": "When the integration was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationMetadata:IncidentsIncomingWebhookIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. An update replaces all of the integration's metadata with the object, `{}` removes it all, and leaving \u003cspan pulumi-lang-nodejs=\"`metadata`\" pulumi-lang-dotnet=\"`Metadata`\" pulumi-lang-go=\"`metadata`\" pulumi-lang-python=\"`metadata`\" pulumi-lang-yaml=\"`metadata`\" pulumi-lang-java=\"`metadata`\" pulumi-lang-hcl=\"`metadata`\"\u003e`metadata`\u003c/span\u003e out keeps it. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "name": { "type": "string", "description": "The name of the incoming webhook shown in the dashboard.\n" }, "otherAcknowledgedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherAcknowledgedField:IncidentsIncomingWebhookIntegrationOtherAcknowledgedField" }, "description": "Custom fields extracted from a request that acknowledges an incident.\n" }, "otherResolvedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherResolvedField:IncidentsIncomingWebhookIntegrationOtherResolvedField" }, "description": "Custom fields extracted from a request that resolves an incident.\n" }, "otherStartedFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationOtherStartedField:IncidentsIncomingWebhookIntegrationOtherStartedField" }, "description": "Custom fields extracted from the request that opens an incident, saved as incident metadata.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long to wait after a resolving request before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '0'.\n" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationResolvedAlertIdField:IncidentsIncomingWebhookIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from a request that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingWebhookIntegrationResolvedRuleType:IncidentsIncomingWebhookIntegrationResolvedRuleType" } ], "description": "When requests resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Each request is checked against the resolve rules first, then the acknowledge rules, then the open rules. A request that matches no open incident can still open one. Defaults to 'unused'. 'unused': Requests never resolve an incident. 'any': A request resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': A request resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n" }, "resolvedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationResolvedRule:IncidentsIncomingWebhookIntegrationResolvedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n" }, "sampleBody": { "type": "string", "description": "The body of the sample request saved in the dashboard to preview extraction.\n" }, "sampleHeaders": { "type": "string", "description": "The headers of the sample request saved in the dashboard to preview extraction.\n" }, "sampleQueryString": { "type": "string", "description": "The query string of the sample request saved in the dashboard to preview extraction.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationStartedAlertIdField:IncidentsIncomingWebhookIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the request that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later requests acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsIncomingWebhookIntegrationStartedRuleType:IncidentsIncomingWebhookIntegrationStartedRuleType" } ], "description": "When requests open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the request goes to that incident instead of opening a new one. Defaults to 'unused'. 'unused': Every request that doesn't acknowledge or resolve an incident opens one. 'any': A request opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': A request opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n" }, "startedRules": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationStartedRule:IncidentsIncomingWebhookIntegrationStartedRule" }, "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "titleField": { "$ref": "#/types/betterstack:index/IncidentsIncomingWebhookIntegrationTitleField:IncidentsIncomingWebhookIntegrationTitleField", "description": "Field that extracts the incident title, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the integration was last updated.\n" }, "url": { "type": "string", "description": "The URL that receives your webhooks. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsJiraIntegration:IncidentsJiraIntegration": { "description": "A Jira integration creates Jira issues for your incidents and keeps them in sync.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsJiraIntegration(\"example\", {integrationId: \"12345\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsJiraIntegration(\"example\", integration_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsJiraIntegration(\"example\", new()\n {\n IntegrationId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsJiraIntegration(ctx, \"example\", \u0026betterstack.IncidentsJiraIntegrationArgs{\n\t\t\tIntegrationId: pulumi.String(\"12345\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_jira_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsJiraIntegration;\nimport com.betterstack.pulumi.IncidentsJiraIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsJiraIntegration(\"example\", IncidentsJiraIntegrationArgs.builder()\n .integrationId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsJiraIntegration\n properties:\n integrationId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing Jira integration by its ID.\n\n```sh\n$ pulumi import betterstack:index/incidentsJiraIntegration:IncidentsJiraIntegration example 12345\n```\n\n", "properties": { "automaticIssueCreation": { "type": "boolean", "description": "Whether to create a Jira issue for every incident automatically. Defaults to false.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "Extra Jira fields to set on created issues, keyed by Jira field ID. Set the integration up in the app, then use the \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e from [Get a Jira integration](https://betterstack.com/docs/uptime/api/single-jira-integration/) as a template. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`. Defaults to `{}`.\n" }, "jiraIssueTypeId": { "type": "string", "description": "ID of the Jira issue type for created issues. Get the ID via the Get issue types for project endpoint of Jira's REST API.\n" }, "jiraProjectKey": { "type": "string", "description": "Key of the Jira project that issues are created in. Get the key from your Jira issue keys, such as `ABC` in `ABC-123`. A key that isn't found is refused, and the error lists the available keys.\n" }, "name": { "type": "string", "description": "Integration name. null while the integration is still being connected.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" } }, "required": [ "automaticIssueCreation", "integrationId", "jiraFields", "jiraIssueTypeId", "jiraProjectKey", "name", "teamId", "teamName" ], "inputProperties": { "automaticIssueCreation": { "type": "boolean", "description": "Whether to create a Jira issue for every incident automatically. Defaults to false.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "Extra Jira fields to set on created issues, keyed by Jira field ID. Set the integration up in the app, then use the \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e from [Get a Jira integration](https://betterstack.com/docs/uptime/api/single-jira-integration/) as a template. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`. Defaults to `{}`.\n" }, "jiraIssueTypeId": { "type": "string", "description": "ID of the Jira issue type for created issues. Get the ID via the Get issue types for project endpoint of Jira's REST API.\n" }, "jiraProjectKey": { "type": "string", "description": "Key of the Jira project that issues are created in. Get the key from your Jira issue keys, such as `ABC` in `ABC-123`. A key that isn't found is refused, and the error lists the available keys.\n" }, "name": { "type": "string", "description": "Integration name. null while the integration is still being connected.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "integrationId" ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsJiraIntegration resources.\n", "properties": { "automaticIssueCreation": { "type": "boolean", "description": "Whether to create a Jira issue for every incident automatically. Defaults to false.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "Extra Jira fields to set on created issues, keyed by Jira field ID. Set the integration up in the app, then use the \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e from [Get a Jira integration](https://betterstack.com/docs/uptime/api/single-jira-integration/) as a template. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`. Defaults to `{}`.\n" }, "jiraIssueTypeId": { "type": "string", "description": "ID of the Jira issue type for created issues. Get the ID via the Get issue types for project endpoint of Jira's REST API.\n" }, "jiraProjectKey": { "type": "string", "description": "Key of the Jira project that issues are created in. Get the key from your Jira issue keys, such as `ABC` in `ABC-123`. A key that isn't found is refused, and the error lists the available keys.\n" }, "name": { "type": "string", "description": "Integration name. null while the integration is still being connected.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" } }, "type": "object" } }, "betterstack:index/incidentsLinearIntegration:IncidentsLinearIntegration": { "description": "A Linear integration creates Linear issues for your incidents.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsLinearIntegration(\"example\", {integrationId: \"12345\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsLinearIntegration(\"example\", integration_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsLinearIntegration(\"example\", new()\n {\n IntegrationId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsLinearIntegration(ctx, \"example\", \u0026betterstack.IncidentsLinearIntegrationArgs{\n\t\t\tIntegrationId: pulumi.String(\"12345\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_linear_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsLinearIntegration;\nimport com.betterstack.pulumi.IncidentsLinearIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsLinearIntegration(\"example\", IncidentsLinearIntegrationArgs.builder()\n .integrationId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsLinearIntegration\n properties:\n integrationId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing Linear integration by its ID.\n\n```sh\n$ pulumi import betterstack:index/incidentsLinearIntegration:IncidentsLinearIntegration example 12345\n```\n\n", "properties": { "automaticIssueClosure": { "type": "boolean", "description": "Whether to move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the incident is resolved.\n" }, "automaticIssueCreation": { "type": "boolean", "description": "Whether to create a Linear issue for every incident automatically.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "linearAssigneeId": { "type": "string", "description": "ID of the Linear user that issues are assigned to. null leaves issues unassigned.\n" }, "linearLabels": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsLinearIntegrationLinearLabel:IncidentsLinearIntegrationLinearLabel" }, "description": "Labels added to the issues created. Send each label as an object with its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, as a read returns it. An update replaces the whole list. Only one label from each Linear label group can be set.\n" }, "linearPriority": { "type": "string", "description": "Priority of the issues created. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n" }, "linearProjectId": { "type": "string", "description": "ID of the Linear project that issues are added to. null adds them to no project.\n" }, "linearResolvedStatusId": { "type": "string", "description": "ID of the Linear status that issues move to when the incident is resolved. Required when \u003cspan pulumi-lang-nodejs=\"`automaticIssueClosure`\" pulumi-lang-dotnet=\"`AutomaticIssueClosure`\" pulumi-lang-go=\"`automaticIssueClosure`\" pulumi-lang-python=\"`automatic_issue_closure`\" pulumi-lang-yaml=\"`automaticIssueClosure`\" pulumi-lang-java=\"`automaticIssueClosure`\" pulumi-lang-hcl=\"`automatic_issue_closure`\"\u003e`automaticIssueClosure`\u003c/span\u003e is true.\n" }, "linearStatusId": { "type": "string", "description": "ID of the Linear status that issues start in. null uses the Linear team's default status.\n" }, "linearTeamId": { "type": "string", "description": "ID of the Linear team that issues are created in.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" } }, "required": [ "automaticIssueClosure", "automaticIssueCreation", "integrationId", "linearLabels", "linearPriority", "linearTeamId", "name", "teamId", "teamName" ], "inputProperties": { "automaticIssueClosure": { "type": "boolean", "description": "Whether to move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the incident is resolved.\n" }, "automaticIssueCreation": { "type": "boolean", "description": "Whether to create a Linear issue for every incident automatically.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "linearAssigneeId": { "type": "string", "description": "ID of the Linear user that issues are assigned to. null leaves issues unassigned.\n" }, "linearLabels": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsLinearIntegrationLinearLabel:IncidentsLinearIntegrationLinearLabel" }, "description": "Labels added to the issues created. Send each label as an object with its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, as a read returns it. An update replaces the whole list. Only one label from each Linear label group can be set.\n" }, "linearPriority": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsLinearIntegrationLinearPriority:IncidentsLinearIntegrationLinearPriority" } ], "description": "Priority of the issues created. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n" }, "linearProjectId": { "type": "string", "description": "ID of the Linear project that issues are added to. null adds them to no project.\n" }, "linearResolvedStatusId": { "type": "string", "description": "ID of the Linear status that issues move to when the incident is resolved. Required when \u003cspan pulumi-lang-nodejs=\"`automaticIssueClosure`\" pulumi-lang-dotnet=\"`AutomaticIssueClosure`\" pulumi-lang-go=\"`automaticIssueClosure`\" pulumi-lang-python=\"`automatic_issue_closure`\" pulumi-lang-yaml=\"`automaticIssueClosure`\" pulumi-lang-java=\"`automaticIssueClosure`\" pulumi-lang-hcl=\"`automatic_issue_closure`\"\u003e`automaticIssueClosure`\u003c/span\u003e is true.\n" }, "linearStatusId": { "type": "string", "description": "ID of the Linear status that issues start in. null uses the Linear team's default status.\n" }, "linearTeamId": { "type": "string", "description": "ID of the Linear team that issues are created in.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "integrationId" ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsLinearIntegration resources.\n", "properties": { "automaticIssueClosure": { "type": "boolean", "description": "Whether to move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the incident is resolved.\n" }, "automaticIssueCreation": { "type": "boolean", "description": "Whether to create a Linear issue for every incident automatically.\n" }, "integrationId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "linearAssigneeId": { "type": "string", "description": "ID of the Linear user that issues are assigned to. null leaves issues unassigned.\n" }, "linearLabels": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsLinearIntegrationLinearLabel:IncidentsLinearIntegrationLinearLabel" }, "description": "Labels added to the issues created. Send each label as an object with its \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, as a read returns it. An update replaces the whole list. Only one label from each Linear label group can be set.\n" }, "linearPriority": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsLinearIntegrationLinearPriority:IncidentsLinearIntegrationLinearPriority" } ], "description": "Priority of the issues created. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n" }, "linearProjectId": { "type": "string", "description": "ID of the Linear project that issues are added to. null adds them to no project.\n" }, "linearResolvedStatusId": { "type": "string", "description": "ID of the Linear status that issues move to when the incident is resolved. Required when \u003cspan pulumi-lang-nodejs=\"`automaticIssueClosure`\" pulumi-lang-dotnet=\"`AutomaticIssueClosure`\" pulumi-lang-go=\"`automaticIssueClosure`\" pulumi-lang-python=\"`automatic_issue_closure`\" pulumi-lang-yaml=\"`automaticIssueClosure`\" pulumi-lang-java=\"`automaticIssueClosure`\" pulumi-lang-hcl=\"`automatic_issue_closure`\"\u003e`automaticIssueClosure`\u003c/span\u003e is true.\n" }, "linearStatusId": { "type": "string", "description": "ID of the Linear status that issues start in. null uses the Linear team's default status.\n" }, "linearTeamId": { "type": "string", "description": "ID of the Linear team that issues are created in.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" } }, "type": "object" } }, "betterstack:index/incidentsNewRelicIntegration:IncidentsNewRelicIntegration": { "description": "Receives alerts from New Relic and opens Better Stack incidents.\n\n## Example Usage\n\n### Create a New Relic integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsNewRelicIntegration(\"example\", {\n name: \"New Relic alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsNewRelicIntegration(\"example\",\n name=\"New Relic alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsNewRelicIntegration(\"example\", new()\n {\n Name = \"New Relic alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsNewRelicIntegration(ctx, \"example\", \u0026betterstack.IncidentsNewRelicIntegrationArgs{\n\t\t\tName: pulumi.String(\"New Relic alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_new_relic_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"New Relic alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsNewRelicIntegration;\nimport com.betterstack.pulumi.IncidentsNewRelicIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsNewRelicIntegration(\"example\", IncidentsNewRelicIntegrationArgs.builder()\n .name(\"New Relic alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsNewRelicIntegration\n properties:\n name: New Relic alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsNewRelicIntegration(\"alert_through_an_escalation_policy\", {\n name: \"New Relic alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsNewRelicIntegration(\"alert_through_an_escalation_policy\",\n name=\"New Relic alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsNewRelicIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"New Relic alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsNewRelicIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsNewRelicIntegrationArgs{\n\t\t\tName: pulumi.String(\"New Relic alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_new_relic_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"New Relic alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsNewRelicIntegration;\nimport com.betterstack.pulumi.IncidentsNewRelicIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsNewRelicIntegration(\"alertThroughAnEscalationPolicy\", IncidentsNewRelicIntegrationArgs.builder()\n .name(\"New Relic alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsNewRelicIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: New Relic alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing New Relic integration by its ID. Get the ID via [List New Relic integrations](https://betterstack.com/docs/uptime/api/list-all-new-relic-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsNewRelicIntegration:IncidentsNewRelicIntegration example 12345\n```\n\n", "properties": { "alertingRule": { "type": "string", "description": "Which New Relic alert levels open incidents. Defaults to 'alert'. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into New Relic. Alerts New Relic sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "alertingRule", "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "alertingRule": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsNewRelicIntegrationAlertingRule:IncidentsNewRelicIntegrationAlertingRule" } ], "description": "Which New Relic alert levels open incidents. Defaults to 'alert'. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsNewRelicIntegration resources.\n", "properties": { "alertingRule": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsNewRelicIntegrationAlertingRule:IncidentsNewRelicIntegrationAlertingRule" } ], "description": "Which New Relic alert levels open incidents. Defaults to 'alert'. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n" }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into New Relic. Alerts New Relic sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsOutgoingEmailIntegration:IncidentsOutgoingEmailIntegration": { "description": "Sends e-mails about your incidents to addresses outside Better Stack, such as a customer's distribution list. You can write your own subject, title and body for each stage of an incident.\n\n## Example Usage\n\n### Custom subject\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst customSubject = new betterstack.IncidentsOutgoingEmailIntegration(\"custom_subject\", {\n name: \"Client distribution list\",\n recipients: [\n {\n email: \"noc@client.com\",\n },\n {\n email: \"ops@client.com\",\n },\n ],\n onIncidentStarted: true,\n onIncidentResolved: true,\n templates: [{\n incidentStage: \"started\",\n subject: \"Incident: $NAME\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ncustom_subject = betterstack.IncidentsOutgoingEmailIntegration(\"custom_subject\",\n name=\"Client distribution list\",\n recipients=[\n {\n \"email\": \"noc@client.com\",\n },\n {\n \"email\": \"ops@client.com\",\n },\n ],\n on_incident_started=True,\n on_incident_resolved=True,\n templates=[{\n \"incident_stage\": \"started\",\n \"subject\": \"Incident: $NAME\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var customSubject = new BetterStack.IncidentsOutgoingEmailIntegration(\"custom_subject\", new()\n {\n Name = \"Client distribution list\",\n Recipients = new[]\n {\n new BetterStack.Inputs.IncidentsOutgoingEmailIntegrationRecipientArgs\n {\n Email = \"noc@client.com\",\n },\n new BetterStack.Inputs.IncidentsOutgoingEmailIntegrationRecipientArgs\n {\n Email = \"ops@client.com\",\n },\n },\n OnIncidentStarted = true,\n OnIncidentResolved = true,\n Templates = new[]\n {\n new BetterStack.Inputs.IncidentsOutgoingEmailIntegrationTemplateArgs\n {\n IncidentStage = \"started\",\n Subject = \"Incident: $NAME\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsOutgoingEmailIntegration(ctx, \"custom_subject\", \u0026betterstack.IncidentsOutgoingEmailIntegrationArgs{\n\t\t\tName: pulumi.String(\"Client distribution list\"),\n\t\t\tRecipients: betterstack.IncidentsOutgoingEmailIntegrationRecipientArray{\n\t\t\t\t\u0026betterstack.IncidentsOutgoingEmailIntegrationRecipientArgs{\n\t\t\t\t\tEmail: pulumi.String(\"noc@client.com\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.IncidentsOutgoingEmailIntegrationRecipientArgs{\n\t\t\t\t\tEmail: pulumi.String(\"ops@client.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tOnIncidentStarted: pulumi.Bool(true),\n\t\t\tOnIncidentResolved: pulumi.Bool(true),\n\t\t\tTemplates: betterstack.IncidentsOutgoingEmailIntegrationTemplateArray{\n\t\t\t\t\u0026betterstack.IncidentsOutgoingEmailIntegrationTemplateArgs{\n\t\t\t\t\tIncidentStage: pulumi.String(\"started\"),\n\t\t\t\t\tSubject: pulumi.String(\"Incident: $NAME\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_outgoing_email_integration\" \"custom_subject\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Client distribution list\"\n recipients = [{\n email = \"noc@client.com\"\n }, {\n email = \"ops@client.com\"\n }]\n on_incident_started = true\n on_incident_resolved = true\n templates = [{\n incident_stage = \"started\"\n subject = \"Incident: $NAME\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsOutgoingEmailIntegration;\nimport com.betterstack.pulumi.IncidentsOutgoingEmailIntegrationArgs;\nimport com.betterstack.pulumi.inputs.IncidentsOutgoingEmailIntegrationRecipientArgs;\nimport com.betterstack.pulumi.inputs.IncidentsOutgoingEmailIntegrationTemplateArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var customSubject = new IncidentsOutgoingEmailIntegration(\"customSubject\", IncidentsOutgoingEmailIntegrationArgs.builder()\n .name(\"Client distribution list\")\n .recipients( \n IncidentsOutgoingEmailIntegrationRecipientArgs.builder()\n .email(\"noc@client.com\")\n .build(),\n IncidentsOutgoingEmailIntegrationRecipientArgs.builder()\n .email(\"ops@client.com\")\n .build())\n .onIncidentStarted(true)\n .onIncidentResolved(true)\n .templates(IncidentsOutgoingEmailIntegrationTemplateArgs.builder()\n .incidentStage(\"started\")\n .subject(\"Incident: $NAME\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n customSubject:\n type: betterstack:IncidentsOutgoingEmailIntegration\n name: custom_subject\n properties:\n name: Client distribution list\n recipients:\n - email: noc@client.com\n - email: ops@client.com\n onIncidentStarted: true\n onIncidentResolved: true\n templates:\n - incidentStage: started\n subject: 'Incident: $NAME'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Only start and resolve\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst onlyStartAndResolve = new betterstack.IncidentsOutgoingEmailIntegration(\"only_start_and_resolve\", {\n name: \"Executive updates\",\n recipients: [\n {\n email: \"cto@example.com\",\n },\n {\n email: \"vp-engineering@example.com\",\n },\n ],\n onIncidentAcknowledged: false,\n onIncidentReopened: false,\n onIncidentComment: false,\n templates: [\n {\n incidentStage: \"started\",\n subject: \"[Outage] $NAME\",\n body: \"We detected a problem: $CAUSE. Follow along at $INCIDENT_URL.\",\n },\n {\n incidentStage: \"resolved\",\n subject: \"[Resolved] $NAME\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nonly_start_and_resolve = betterstack.IncidentsOutgoingEmailIntegration(\"only_start_and_resolve\",\n name=\"Executive updates\",\n recipients=[\n {\n \"email\": \"cto@example.com\",\n },\n {\n \"email\": \"vp-engineering@example.com\",\n },\n ],\n on_incident_acknowledged=False,\n on_incident_reopened=False,\n on_incident_comment=False,\n templates=[\n {\n \"incident_stage\": \"started\",\n \"subject\": \"[Outage] $NAME\",\n \"body\": \"We detected a problem: $CAUSE. Follow along at $INCIDENT_URL.\",\n },\n {\n \"incident_stage\": \"resolved\",\n \"subject\": \"[Resolved] $NAME\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var onlyStartAndResolve = new BetterStack.IncidentsOutgoingEmailIntegration(\"only_start_and_resolve\", new()\n {\n Name = \"Executive updates\",\n Recipients = new[]\n {\n new BetterStack.Inputs.IncidentsOutgoingEmailIntegrationRecipientArgs\n {\n Email = \"cto@example.com\",\n },\n new BetterStack.Inputs.IncidentsOutgoingEmailIntegrationRecipientArgs\n {\n Email = \"vp-engineering@example.com\",\n },\n },\n OnIncidentAcknowledged = false,\n OnIncidentReopened = false,\n OnIncidentComment = false,\n Templates = new[]\n {\n new BetterStack.Inputs.IncidentsOutgoingEmailIntegrationTemplateArgs\n {\n IncidentStage = \"started\",\n Subject = \"[Outage] $NAME\",\n Body = \"We detected a problem: $CAUSE. Follow along at $INCIDENT_URL.\",\n },\n new BetterStack.Inputs.IncidentsOutgoingEmailIntegrationTemplateArgs\n {\n IncidentStage = \"resolved\",\n Subject = \"[Resolved] $NAME\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsOutgoingEmailIntegration(ctx, \"only_start_and_resolve\", \u0026betterstack.IncidentsOutgoingEmailIntegrationArgs{\n\t\t\tName: pulumi.String(\"Executive updates\"),\n\t\t\tRecipients: betterstack.IncidentsOutgoingEmailIntegrationRecipientArray{\n\t\t\t\t\u0026betterstack.IncidentsOutgoingEmailIntegrationRecipientArgs{\n\t\t\t\t\tEmail: pulumi.String(\"cto@example.com\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.IncidentsOutgoingEmailIntegrationRecipientArgs{\n\t\t\t\t\tEmail: pulumi.String(\"vp-engineering@example.com\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tOnIncidentAcknowledged: pulumi.Bool(false),\n\t\t\tOnIncidentReopened: pulumi.Bool(false),\n\t\t\tOnIncidentComment: pulumi.Bool(false),\n\t\t\tTemplates: betterstack.IncidentsOutgoingEmailIntegrationTemplateArray{\n\t\t\t\t\u0026betterstack.IncidentsOutgoingEmailIntegrationTemplateArgs{\n\t\t\t\t\tIncidentStage: pulumi.String(\"started\"),\n\t\t\t\t\tSubject: pulumi.String(\"[Outage] $NAME\"),\n\t\t\t\t\tBody: pulumi.String(\"We detected a problem: $CAUSE. Follow along at $INCIDENT_URL.\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.IncidentsOutgoingEmailIntegrationTemplateArgs{\n\t\t\t\t\tIncidentStage: pulumi.String(\"resolved\"),\n\t\t\t\t\tSubject: pulumi.String(\"[Resolved] $NAME\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_outgoing_email_integration\" \"only_start_and_resolve\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Executive updates\"\n recipients = [{\n email = \"cto@example.com\"\n }, {\n email = \"vp-engineering@example.com\"\n }]\n on_incident_acknowledged = false\n on_incident_reopened = false\n on_incident_comment = false\n templates = [{\n incident_stage = \"started\"\n subject = \"[Outage] $NAME\"\n body = \"We detected a problem: $CAUSE. Follow along at $INCIDENT_URL.\"\n }, {\n incident_stage = \"resolved\"\n subject = \"[Resolved] $NAME\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsOutgoingEmailIntegration;\nimport com.betterstack.pulumi.IncidentsOutgoingEmailIntegrationArgs;\nimport com.betterstack.pulumi.inputs.IncidentsOutgoingEmailIntegrationRecipientArgs;\nimport com.betterstack.pulumi.inputs.IncidentsOutgoingEmailIntegrationTemplateArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var onlyStartAndResolve = new IncidentsOutgoingEmailIntegration(\"onlyStartAndResolve\", IncidentsOutgoingEmailIntegrationArgs.builder()\n .name(\"Executive updates\")\n .recipients( \n IncidentsOutgoingEmailIntegrationRecipientArgs.builder()\n .email(\"cto@example.com\")\n .build(),\n IncidentsOutgoingEmailIntegrationRecipientArgs.builder()\n .email(\"vp-engineering@example.com\")\n .build())\n .onIncidentAcknowledged(false)\n .onIncidentReopened(false)\n .onIncidentComment(false)\n .templates( \n IncidentsOutgoingEmailIntegrationTemplateArgs.builder()\n .incidentStage(\"started\")\n .subject(\"[Outage] $NAME\")\n .body(\"We detected a problem: $CAUSE. Follow along at $INCIDENT_URL.\")\n .build(),\n IncidentsOutgoingEmailIntegrationTemplateArgs.builder()\n .incidentStage(\"resolved\")\n .subject(\"[Resolved] $NAME\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onlyStartAndResolve:\n type: betterstack:IncidentsOutgoingEmailIntegration\n name: only_start_and_resolve\n properties:\n name: Executive updates\n recipients:\n - email: cto@example.com\n - email: vp-engineering@example.com\n onIncidentAcknowledged: false\n onIncidentReopened: false\n onIncidentComment: false\n templates:\n - incidentStage: started\n subject: '[Outage] $NAME'\n body: 'We detected a problem: $CAUSE. Follow along at $INCIDENT_URL.'\n - incidentStage: resolved\n subject: '[Resolved] $NAME'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing outgoing e-mail integration by its ID. Get the ID via [List outgoing e-mail integrations](https://betterstack.com/docs/uptime/api/list-all-outgoing-email-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsOutgoingEmailIntegration:IncidentsOutgoingEmailIntegration example 12345\n```\n\n", "properties": { "name": { "type": "string", "description": "The integration's name, shown in the dashboard.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy. Defaults to true.\n" }, "onIncidentAcknowledged": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is acknowledged. Defaults to true.\n" }, "onIncidentComment": { "type": "boolean", "description": "Whether to e-mail the recipients when a new comment is posted on an incident. Defaults to true.\n" }, "onIncidentReopened": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is reopened. Defaults to true.\n" }, "onIncidentResolved": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is resolved. Defaults to true.\n" }, "onIncidentStarted": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident starts. Defaults to true.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration sends no e-mails.\n" }, "recipients": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingEmailIntegrationRecipient:IncidentsOutgoingEmailIntegrationRecipient" }, "description": "The people the integration e-mails. Each recipient is an object with an \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e key and up to 10 extra text keys, such as 'first_name', which templates render as `$RECIPIENT.\u003ckey\u003e`.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "templates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingEmailIntegrationTemplate:IncidentsOutgoingEmailIntegrationTemplate" }, "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.\n" } }, "required": [ "notifyAlongsidePrimaryResponder", "onIncidentAcknowledged", "onIncidentComment", "onIncidentReopened", "onIncidentResolved", "onIncidentStarted", "paused", "recipients", "teamId", "teamName", "templates" ], "inputProperties": { "name": { "type": "string", "description": "The integration's name, shown in the dashboard.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy. Defaults to true.\n" }, "onIncidentAcknowledged": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is acknowledged. Defaults to true.\n" }, "onIncidentComment": { "type": "boolean", "description": "Whether to e-mail the recipients when a new comment is posted on an incident. Defaults to true.\n" }, "onIncidentReopened": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is reopened. Defaults to true.\n" }, "onIncidentResolved": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is resolved. Defaults to true.\n" }, "onIncidentStarted": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident starts. Defaults to true.\n" }, "recipients": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingEmailIntegrationRecipient:IncidentsOutgoingEmailIntegrationRecipient" }, "description": "The people the integration e-mails. Each recipient is an object with an \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e key and up to 10 extra text keys, such as 'first_name', which templates render as `$RECIPIENT.\u003ckey\u003e`.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "templates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingEmailIntegrationTemplate:IncidentsOutgoingEmailIntegrationTemplate" }, "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.\n" } }, "requiredInputs": [ "recipients" ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsOutgoingEmailIntegration resources.\n", "properties": { "name": { "type": "string", "description": "The integration's name, shown in the dashboard.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy. Defaults to true.\n" }, "onIncidentAcknowledged": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is acknowledged. Defaults to true.\n" }, "onIncidentComment": { "type": "boolean", "description": "Whether to e-mail the recipients when a new comment is posted on an incident. Defaults to true.\n" }, "onIncidentReopened": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is reopened. Defaults to true.\n" }, "onIncidentResolved": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident is resolved. Defaults to true.\n" }, "onIncidentStarted": { "type": "boolean", "description": "Whether to e-mail the recipients when an incident starts. Defaults to true.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration sends no e-mails.\n" }, "recipients": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingEmailIntegrationRecipient:IncidentsOutgoingEmailIntegrationRecipient" }, "description": "The people the integration e-mails. Each recipient is an object with an \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e key and up to 10 extra text keys, such as 'first_name', which templates render as `$RECIPIENT.\u003ckey\u003e`.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "templates": { "type": "array", "items": { "$ref": "#/types/betterstack:index/IncidentsOutgoingEmailIntegrationTemplate:IncidentsOutgoingEmailIntegrationTemplate" }, "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.\n" } }, "type": "object" } }, "betterstack:index/incidentsOutgoingPagerDutyIntegration:IncidentsOutgoingPagerDutyIntegration": { "description": "Forwards Better Stack incidents to a PagerDuty service.\n\n## Example Usage\n\n### Send as critical\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst sendAsCritical = new betterstack.IncidentsOutgoingPagerDutyIntegration(\"send_as_critical\", {\n name: \"Production on-call\",\n key: \"e93facc04764012d7bfb002500d5d1a6\",\n severity: betterstack.IncidentsOutgoingPagerDutyIntegrationSeverity.Critical,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nsend_as_critical = betterstack.IncidentsOutgoingPagerDutyIntegration(\"send_as_critical\",\n name=\"Production on-call\",\n key=\"e93facc04764012d7bfb002500d5d1a6\",\n severity=betterstack.IncidentsOutgoingPagerDutyIntegrationSeverity.CRITICAL)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sendAsCritical = new BetterStack.IncidentsOutgoingPagerDutyIntegration(\"send_as_critical\", new()\n {\n Name = \"Production on-call\",\n Key = \"e93facc04764012d7bfb002500d5d1a6\",\n Severity = BetterStack.IncidentsOutgoingPagerDutyIntegrationSeverity.Critical,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsOutgoingPagerDutyIntegration(ctx, \"send_as_critical\", \u0026betterstack.IncidentsOutgoingPagerDutyIntegrationArgs{\n\t\t\tName: pulumi.String(\"Production on-call\"),\n\t\t\tKey: pulumi.String(\"e93facc04764012d7bfb002500d5d1a6\"),\n\t\t\tSeverity: pulumi.String(betterstack.IncidentsOutgoingPagerDutyIntegrationSeverityCritical),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_outgoing_pager_duty_integration\" \"send_as_critical\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production on-call\"\n key = \"e93facc04764012d7bfb002500d5d1a6\"\n severity = \"critical\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsOutgoingPagerDutyIntegration;\nimport com.betterstack.pulumi.IncidentsOutgoingPagerDutyIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var sendAsCritical = new IncidentsOutgoingPagerDutyIntegration(\"sendAsCritical\", IncidentsOutgoingPagerDutyIntegrationArgs.builder()\n .name(\"Production on-call\")\n .key(\"e93facc04764012d7bfb002500d5d1a6\")\n .severity(\"critical\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n sendAsCritical:\n type: betterstack:IncidentsOutgoingPagerDutyIntegration\n name: send_as_critical\n properties:\n name: Production on-call\n key: e93facc04764012d7bfb002500d5d1a6\n severity: critical\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Only when a policy notifies it\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst onlyWhenAPolicyNotifiesIt = new betterstack.IncidentsOutgoingPagerDutyIntegration(\"only_when_a_policy_notifies_it\", {\n name: \"Staging alerts\",\n key: \"a1b2c3d4e5f60718293a4b5c6d7e8f90\",\n severity: betterstack.IncidentsOutgoingPagerDutyIntegrationSeverity.Warning,\n notifyAlongsidePrimaryResponder: false,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nonly_when_a_policy_notifies_it = betterstack.IncidentsOutgoingPagerDutyIntegration(\"only_when_a_policy_notifies_it\",\n name=\"Staging alerts\",\n key=\"a1b2c3d4e5f60718293a4b5c6d7e8f90\",\n severity=betterstack.IncidentsOutgoingPagerDutyIntegrationSeverity.WARNING,\n notify_alongside_primary_responder=False)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var onlyWhenAPolicyNotifiesIt = new BetterStack.IncidentsOutgoingPagerDutyIntegration(\"only_when_a_policy_notifies_it\", new()\n {\n Name = \"Staging alerts\",\n Key = \"a1b2c3d4e5f60718293a4b5c6d7e8f90\",\n Severity = BetterStack.IncidentsOutgoingPagerDutyIntegrationSeverity.Warning,\n NotifyAlongsidePrimaryResponder = false,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsOutgoingPagerDutyIntegration(ctx, \"only_when_a_policy_notifies_it\", \u0026betterstack.IncidentsOutgoingPagerDutyIntegrationArgs{\n\t\t\tName: pulumi.String(\"Staging alerts\"),\n\t\t\tKey: pulumi.String(\"a1b2c3d4e5f60718293a4b5c6d7e8f90\"),\n\t\t\tSeverity: pulumi.String(betterstack.IncidentsOutgoingPagerDutyIntegrationSeverityWarning),\n\t\t\tNotifyAlongsidePrimaryResponder: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_outgoing_pager_duty_integration\" \"only_when_a_policy_notifies_it\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Staging alerts\"\n key = \"a1b2c3d4e5f60718293a4b5c6d7e8f90\"\n severity = \"warning\"\n notify_alongside_primary_responder = false\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsOutgoingPagerDutyIntegration;\nimport com.betterstack.pulumi.IncidentsOutgoingPagerDutyIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var onlyWhenAPolicyNotifiesIt = new IncidentsOutgoingPagerDutyIntegration(\"onlyWhenAPolicyNotifiesIt\", IncidentsOutgoingPagerDutyIntegrationArgs.builder()\n .name(\"Staging alerts\")\n .key(\"a1b2c3d4e5f60718293a4b5c6d7e8f90\")\n .severity(\"warning\")\n .notifyAlongsidePrimaryResponder(false)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onlyWhenAPolicyNotifiesIt:\n type: betterstack:IncidentsOutgoingPagerDutyIntegration\n name: only_when_a_policy_notifies_it\n properties:\n name: Staging alerts\n key: a1b2c3d4e5f60718293a4b5c6d7e8f90\n severity: warning\n notifyAlongsidePrimaryResponder: false\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing outgoing PagerDuty integration by its ID. Get the ID via [List PagerDuty integrations](https://betterstack.com/docs/uptime/api/list-all-pagerduty-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsOutgoingPagerDutyIntegration:IncidentsOutgoingPagerDutyIntegration example 12345\n```\n\n", "properties": { "key": { "type": "string", "description": "PagerDuty integration key, also called the routing key.\n", "secret": true }, "name": { "type": "string", "description": "Integration name.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to notify this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's notified only when a step of that policy notifies it. Defaults to true.\n" }, "severity": { "type": "string", "description": "PagerDuty severity sent with the event. Valid values: 'info', 'warning', 'error', 'critical'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" } }, "required": [ "key", "name", "notifyAlongsidePrimaryResponder", "severity", "teamId", "teamName" ], "inputProperties": { "key": { "type": "string", "description": "PagerDuty integration key, also called the routing key.\n", "secret": true }, "name": { "type": "string", "description": "Integration name.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to notify this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's notified only when a step of that policy notifies it. Defaults to true.\n" }, "severity": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsOutgoingPagerDutyIntegrationSeverity:IncidentsOutgoingPagerDutyIntegrationSeverity" } ], "description": "PagerDuty severity sent with the event. Valid values: 'info', 'warning', 'error', 'critical'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "key", "name", "severity" ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsOutgoingPagerDutyIntegration resources.\n", "properties": { "key": { "type": "string", "description": "PagerDuty integration key, also called the routing key.\n", "secret": true }, "name": { "type": "string", "description": "Integration name.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to notify this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's notified only when a step of that policy notifies it. Defaults to true.\n" }, "severity": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsOutgoingPagerDutyIntegrationSeverity:IncidentsOutgoingPagerDutyIntegrationSeverity" } ], "description": "PagerDuty severity sent with the event. Valid values: 'info', 'warning', 'error', 'critical'.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" } }, "type": "object" } }, "betterstack:index/incidentsOutgoingWebhookIntegration:IncidentsOutgoingWebhookIntegration": { "description": "An outgoing webhook integration sends a request to your URL when an incident, an on-call shift or a monitor changes.\n\n## Example Usage\n\n### On-call changes\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst onCallChanges = new betterstack.IncidentsOutgoingWebhookIntegration(\"on_call_changes\", {\n name: \"Test\",\n url: \"https://example.com\",\n triggerType: betterstack.IncidentsOutgoingWebhookIntegrationTriggerType.OnCallChange,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\non_call_changes = betterstack.IncidentsOutgoingWebhookIntegration(\"on_call_changes\",\n name=\"Test\",\n url=\"https://example.com\",\n trigger_type=betterstack.IncidentsOutgoingWebhookIntegrationTriggerType.ON_CALL_CHANGE)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var onCallChanges = new BetterStack.IncidentsOutgoingWebhookIntegration(\"on_call_changes\", new()\n {\n Name = \"Test\",\n Url = \"https://example.com\",\n TriggerType = BetterStack.IncidentsOutgoingWebhookIntegrationTriggerType.OnCallChange,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsOutgoingWebhookIntegration(ctx, \"on_call_changes\", \u0026betterstack.IncidentsOutgoingWebhookIntegrationArgs{\n\t\t\tName: pulumi.String(\"Test\"),\n\t\t\tUrl: pulumi.String(\"https://example.com\"),\n\t\t\tTriggerType: pulumi.String(betterstack.IncidentsOutgoingWebhookIntegrationTriggerTypeOnCallChange),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_outgoing_webhook_integration\" \"on_call_changes\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Test\"\n url = \"https://example.com\"\n trigger_type = \"on_call_change\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsOutgoingWebhookIntegration;\nimport com.betterstack.pulumi.IncidentsOutgoingWebhookIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var onCallChanges = new IncidentsOutgoingWebhookIntegration(\"onCallChanges\", IncidentsOutgoingWebhookIntegrationArgs.builder()\n .name(\"Test\")\n .url(\"https://example.com\")\n .triggerType(\"on_call_change\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCallChanges:\n type: betterstack:IncidentsOutgoingWebhookIntegration\n name: on_call_changes\n properties:\n name: Test\n url: https://example.com\n triggerType: on_call_change\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Incidents as text\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst incidentsAsText = new betterstack.IncidentsOutgoingWebhookIntegration(\"incidents_as_text\", {\n name: \"Incidents to ops tooling\",\n url: \"https://example.com/webhooks/incidents\",\n triggerType: betterstack.IncidentsOutgoingWebhookIntegrationTriggerType.IncidentChange,\n customWebhookTemplateAttributes: {\n httpMethod: \"post\",\n bodyTemplate: `{\n \"data\": {\n \"id\": \"INCIDENT_ID\",\n \"type\": \"incident\",\n \"attributes\": {\n \"name\": \"NAME\",\n \"url\": \"URL\",\n \"http_method\": \"HTTP_METHOD\",\n \"cause\": \"CAUSE\",\n \"started_at\": \"STARTED_AT\",\n \"acknowledged_at\": \"ACKNOWLEDGED_AT\",\n \"resolved_at\": \"RESOLVED_AT\",\n \"response_content\": \"RESPONSE_CONTENT\",\n \"response_url\": \"RESPONSE_URL\",\n \"screenshot_url\": \"SCREENSHOT_URL\"\n }\n }\n}\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nincidents_as_text = betterstack.IncidentsOutgoingWebhookIntegration(\"incidents_as_text\",\n name=\"Incidents to ops tooling\",\n url=\"https://example.com/webhooks/incidents\",\n trigger_type=betterstack.IncidentsOutgoingWebhookIntegrationTriggerType.INCIDENT_CHANGE,\n custom_webhook_template_attributes={\n \"http_method\": \"post\",\n \"body_template\": \"\"\"{\n \"data\": {\n \"id\": \"$INCIDENT_ID\",\n \"type\": \"incident\",\n \"attributes\": {\n \"name\": \"$NAME\",\n \"url\": \"$URL\",\n \"http_method\": \"$HTTP_METHOD\",\n \"cause\": \"$CAUSE\",\n \"started_at\": \"$STARTED_AT\",\n \"acknowledged_at\": \"$ACKNOWLEDGED_AT\",\n \"resolved_at\": \"$RESOLVED_AT\",\n \"response_content\": \"$RESPONSE_CONTENT\",\n \"response_url\": \"$RESPONSE_URL\",\n \"screenshot_url\": \"$SCREENSHOT_URL\"\n }\n }\n}\n\"\"\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var incidentsAsText = new BetterStack.IncidentsOutgoingWebhookIntegration(\"incidents_as_text\", new()\n {\n Name = \"Incidents to ops tooling\",\n Url = \"https://example.com/webhooks/incidents\",\n TriggerType = BetterStack.IncidentsOutgoingWebhookIntegrationTriggerType.IncidentChange,\n CustomWebhookTemplateAttributes = new BetterStack.Inputs.IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs\n {\n HttpMethod = \"post\",\n BodyTemplate = @\"{\n \"\"data\"\": {\n \"\"id\"\": \"\"$INCIDENT_ID\"\",\n \"\"type\"\": \"\"incident\"\",\n \"\"attributes\"\": {\n \"\"name\"\": \"\"$NAME\"\",\n \"\"url\"\": \"\"$URL\"\",\n \"\"http_method\"\": \"\"$HTTP_METHOD\"\",\n \"\"cause\"\": \"\"$CAUSE\"\",\n \"\"started_at\"\": \"\"$STARTED_AT\"\",\n \"\"acknowledged_at\"\": \"\"$ACKNOWLEDGED_AT\"\",\n \"\"resolved_at\"\": \"\"$RESOLVED_AT\"\",\n \"\"response_content\"\": \"\"$RESPONSE_CONTENT\"\",\n \"\"response_url\"\": \"\"$RESPONSE_URL\"\",\n \"\"screenshot_url\"\": \"\"$SCREENSHOT_URL\"\"\n }\n }\n}\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsOutgoingWebhookIntegration(ctx, \"incidents_as_text\", \u0026betterstack.IncidentsOutgoingWebhookIntegrationArgs{\n\t\t\tName: pulumi.String(\"Incidents to ops tooling\"),\n\t\t\tUrl: pulumi.String(\"https://example.com/webhooks/incidents\"),\n\t\t\tTriggerType: pulumi.String(betterstack.IncidentsOutgoingWebhookIntegrationTriggerTypeIncidentChange),\n\t\t\tCustomWebhookTemplateAttributes: \u0026betterstack.IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs{\n\t\t\t\tHttpMethod: pulumi.String(\"post\"),\n\t\t\t\tBodyTemplate: pulumi.String(`{\n \"data\": {\n \"id\": \"$INCIDENT_ID\",\n \"type\": \"incident\",\n \"attributes\": {\n \"name\": \"$NAME\",\n \"url\": \"$URL\",\n \"http_method\": \"$HTTP_METHOD\",\n \"cause\": \"$CAUSE\",\n \"started_at\": \"$STARTED_AT\",\n \"acknowledged_at\": \"$ACKNOWLEDGED_AT\",\n \"resolved_at\": \"$RESOLVED_AT\",\n \"response_content\": \"$RESPONSE_CONTENT\",\n \"response_url\": \"$RESPONSE_URL\",\n \"screenshot_url\": \"$SCREENSHOT_URL\"\n }\n }\n}\n`),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_outgoing_webhook_integration\" \"incidents_as_text\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Incidents to ops tooling\"\n url = \"https://example.com/webhooks/incidents\"\n trigger_type = \"incident_change\"\n custom_webhook_template_attributes = {\n http_method = \"post\"\n body_template = \"{\\n \\\"data\\\": {\\n \\\"id\\\": \\\"$INCIDENT_ID\\\",\\n \\\"type\\\": \\\"incident\\\",\\n \\\"attributes\\\": {\\n \\\"name\\\": \\\"$NAME\\\",\\n \\\"url\\\": \\\"$URL\\\",\\n \\\"http_method\\\": \\\"$HTTP_METHOD\\\",\\n \\\"cause\\\": \\\"$CAUSE\\\",\\n \\\"started_at\\\": \\\"$STARTED_AT\\\",\\n \\\"acknowledged_at\\\": \\\"$ACKNOWLEDGED_AT\\\",\\n \\\"resolved_at\\\": \\\"$RESOLVED_AT\\\",\\n \\\"response_content\\\": \\\"$RESPONSE_CONTENT\\\",\\n \\\"response_url\\\": \\\"$RESPONSE_URL\\\",\\n \\\"screenshot_url\\\": \\\"$SCREENSHOT_URL\\\"\\n }\\n }\\n}\\n\"\n }\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsOutgoingWebhookIntegration;\nimport com.betterstack.pulumi.IncidentsOutgoingWebhookIntegrationArgs;\nimport com.betterstack.pulumi.inputs.IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var incidentsAsText = new IncidentsOutgoingWebhookIntegration(\"incidentsAsText\", IncidentsOutgoingWebhookIntegrationArgs.builder()\n .name(\"Incidents to ops tooling\")\n .url(\"https://example.com/webhooks/incidents\")\n .triggerType(\"incident_change\")\n .customWebhookTemplateAttributes(IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs.builder()\n .httpMethod(\"post\")\n .bodyTemplate(\"\"\"\n{\n \"data\": {\n \"id\": \"$INCIDENT_ID\",\n \"type\": \"incident\",\n \"attributes\": {\n \"name\": \"$NAME\",\n \"url\": \"$URL\",\n \"http_method\": \"$HTTP_METHOD\",\n \"cause\": \"$CAUSE\",\n \"started_at\": \"$STARTED_AT\",\n \"acknowledged_at\": \"$ACKNOWLEDGED_AT\",\n \"resolved_at\": \"$RESOLVED_AT\",\n \"response_content\": \"$RESPONSE_CONTENT\",\n \"response_url\": \"$RESPONSE_URL\",\n \"screenshot_url\": \"$SCREENSHOT_URL\"\n }\n }\n}\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n incidentsAsText:\n type: betterstack:IncidentsOutgoingWebhookIntegration\n name: incidents_as_text\n properties:\n name: Incidents to ops tooling\n url: https://example.com/webhooks/incidents\n triggerType: incident_change\n customWebhookTemplateAttributes:\n httpMethod: post\n bodyTemplate: |\n {\n \"data\": {\n \"id\": \"$INCIDENT_ID\",\n \"type\": \"incident\",\n \"attributes\": {\n \"name\": \"$NAME\",\n \"url\": \"$URL\",\n \"http_method\": \"$HTTP_METHOD\",\n \"cause\": \"$CAUSE\",\n \"started_at\": \"$STARTED_AT\",\n \"acknowledged_at\": \"$ACKNOWLEDGED_AT\",\n \"resolved_at\": \"$RESOLVED_AT\",\n \"response_content\": \"$RESPONSE_CONTENT\",\n \"response_url\": \"$RESPONSE_URL\",\n \"screenshot_url\": \"$SCREENSHOT_URL\"\n }\n }\n }\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Custom on-call body\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst customOnCallBody = new betterstack.IncidentsOutgoingWebhookIntegration(\"custom_on_call_body\", {\n name: \"On-call changes to ops tooling\",\n url: \"https://example.com/webhooks/on-call\",\n triggerType: betterstack.IncidentsOutgoingWebhookIntegrationTriggerType.OnCallChange,\n customWebhookTemplateAttributes: {\n bodyTemplate: `{\n \"data\":{\n \"message\": \"MESSAGE\",\n \"emails\": EMAILS_JSON_ARRAY,\n \"on_holiday_emails\": ON_HOLIDAY_EMAILS_JSON_ARRAY,\n \"change\": \"CHANGE\",\n \"calendar_id\": ON_CALL_CALENDAR_ID,\n \"calendar_name\": \"ON_CALL_CALENDAR_NAME\",\n \"primary_calendar\": DEFAULT_ON_CALL_CALENDAR\n }\n}\n`,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ncustom_on_call_body = betterstack.IncidentsOutgoingWebhookIntegration(\"custom_on_call_body\",\n name=\"On-call changes to ops tooling\",\n url=\"https://example.com/webhooks/on-call\",\n trigger_type=betterstack.IncidentsOutgoingWebhookIntegrationTriggerType.ON_CALL_CHANGE,\n custom_webhook_template_attributes={\n \"body_template\": \"\"\"{\n \"data\":{\n \"message\": \"$MESSAGE\",\n \"emails\": $EMAILS_JSON_ARRAY,\n \"on_holiday_emails\": $ON_HOLIDAY_EMAILS_JSON_ARRAY,\n \"change\": \"$CHANGE\",\n \"calendar_id\": $ON_CALL_CALENDAR_ID,\n \"calendar_name\": \"$ON_CALL_CALENDAR_NAME\",\n \"primary_calendar\": $DEFAULT_ON_CALL_CALENDAR\n }\n}\n\"\"\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var customOnCallBody = new BetterStack.IncidentsOutgoingWebhookIntegration(\"custom_on_call_body\", new()\n {\n Name = \"On-call changes to ops tooling\",\n Url = \"https://example.com/webhooks/on-call\",\n TriggerType = BetterStack.IncidentsOutgoingWebhookIntegrationTriggerType.OnCallChange,\n CustomWebhookTemplateAttributes = new BetterStack.Inputs.IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs\n {\n BodyTemplate = @\"{\n \"\"data\"\":{\n \"\"message\"\": \"\"$MESSAGE\"\",\n \"\"emails\"\": $EMAILS_JSON_ARRAY,\n \"\"on_holiday_emails\"\": $ON_HOLIDAY_EMAILS_JSON_ARRAY,\n \"\"change\"\": \"\"$CHANGE\"\",\n \"\"calendar_id\"\": $ON_CALL_CALENDAR_ID,\n \"\"calendar_name\"\": \"\"$ON_CALL_CALENDAR_NAME\"\",\n \"\"primary_calendar\"\": $DEFAULT_ON_CALL_CALENDAR\n }\n}\n\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsOutgoingWebhookIntegration(ctx, \"custom_on_call_body\", \u0026betterstack.IncidentsOutgoingWebhookIntegrationArgs{\n\t\t\tName: pulumi.String(\"On-call changes to ops tooling\"),\n\t\t\tUrl: pulumi.String(\"https://example.com/webhooks/on-call\"),\n\t\t\tTriggerType: pulumi.String(betterstack.IncidentsOutgoingWebhookIntegrationTriggerTypeOnCallChange),\n\t\t\tCustomWebhookTemplateAttributes: \u0026betterstack.IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs{\n\t\t\t\tBodyTemplate: pulumi.String(`{\n \"data\":{\n \"message\": \"$MESSAGE\",\n \"emails\": $EMAILS_JSON_ARRAY,\n \"on_holiday_emails\": $ON_HOLIDAY_EMAILS_JSON_ARRAY,\n \"change\": \"$CHANGE\",\n \"calendar_id\": $ON_CALL_CALENDAR_ID,\n \"calendar_name\": \"$ON_CALL_CALENDAR_NAME\",\n \"primary_calendar\": $DEFAULT_ON_CALL_CALENDAR\n }\n}\n`),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_outgoing_webhook_integration\" \"custom_on_call_body\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call changes to ops tooling\"\n url = \"https://example.com/webhooks/on-call\"\n trigger_type = \"on_call_change\"\n custom_webhook_template_attributes = {\n body_template = \"{\\n \\\"data\\\":{\\n \\\"message\\\": \\\"$MESSAGE\\\",\\n \\\"emails\\\": $EMAILS_JSON_ARRAY,\\n \\\"on_holiday_emails\\\": $ON_HOLIDAY_EMAILS_JSON_ARRAY,\\n \\\"change\\\": \\\"$CHANGE\\\",\\n \\\"calendar_id\\\": $ON_CALL_CALENDAR_ID,\\n \\\"calendar_name\\\": \\\"$ON_CALL_CALENDAR_NAME\\\",\\n \\\"primary_calendar\\\": $DEFAULT_ON_CALL_CALENDAR\\n }\\n}\\n\"\n }\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsOutgoingWebhookIntegration;\nimport com.betterstack.pulumi.IncidentsOutgoingWebhookIntegrationArgs;\nimport com.betterstack.pulumi.inputs.IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var customOnCallBody = new IncidentsOutgoingWebhookIntegration(\"customOnCallBody\", IncidentsOutgoingWebhookIntegrationArgs.builder()\n .name(\"On-call changes to ops tooling\")\n .url(\"https://example.com/webhooks/on-call\")\n .triggerType(\"on_call_change\")\n .customWebhookTemplateAttributes(IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributesArgs.builder()\n .bodyTemplate(\"\"\"\n{\n \"data\":{\n \"message\": \"$MESSAGE\",\n \"emails\": $EMAILS_JSON_ARRAY,\n \"on_holiday_emails\": $ON_HOLIDAY_EMAILS_JSON_ARRAY,\n \"change\": \"$CHANGE\",\n \"calendar_id\": $ON_CALL_CALENDAR_ID,\n \"calendar_name\": \"$ON_CALL_CALENDAR_NAME\",\n \"primary_calendar\": $DEFAULT_ON_CALL_CALENDAR\n }\n}\n \"\"\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n customOnCallBody:\n type: betterstack:IncidentsOutgoingWebhookIntegration\n name: custom_on_call_body\n properties:\n name: On-call changes to ops tooling\n url: https://example.com/webhooks/on-call\n triggerType: on_call_change\n customWebhookTemplateAttributes:\n bodyTemplate: |\n {\n \"data\":{\n \"message\": \"$MESSAGE\",\n \"emails\": $EMAILS_JSON_ARRAY,\n \"on_holiday_emails\": $ON_HOLIDAY_EMAILS_JSON_ARRAY,\n \"change\": \"$CHANGE\",\n \"calendar_id\": $ON_CALL_CALENDAR_ID,\n \"calendar_name\": \"$ON_CALL_CALENDAR_NAME\",\n \"primary_calendar\": $DEFAULT_ON_CALL_CALENDAR\n }\n }\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing outgoing webhook integration by its ID. Get the ID via [List outgoing webhook integrations](https://betterstack.com/docs/uptime/api/list-all-outgoing-webhook-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsOutgoingWebhookIntegration:IncidentsOutgoingWebhookIntegration example 12345\n```\n\n", "properties": { "customWebhookTemplate": { "$ref": "#/types/betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplate:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplate", "description": "The saved request template, returned under 'included'. null when the webhook has no custom template.\n" }, "customWebhookTemplateAttributes": { "$ref": "#/types/betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes", "description": "Custom request method, headers, body and basic authentication. Without a custom template, an 'incident_change' or 'monitor_change' webhook sends the incident or monitor under 'data', with what happened in 'event', such as 'started' or 'created'. Without a custom template, an 'on_call_change' webhook sends the on-call schedule's 'message', 'emails', 'on_holiday_emails', 'change', 'calendar_id', 'calendar_name' and 'primary_calendar' under 'data'. Returned as \u003cspan pulumi-lang-nodejs=\"`customWebhookTemplate`\" pulumi-lang-dotnet=\"`CustomWebhookTemplate`\" pulumi-lang-go=\"`customWebhookTemplate`\" pulumi-lang-python=\"`custom_webhook_template`\" pulumi-lang-yaml=\"`customWebhookTemplate`\" pulumi-lang-java=\"`customWebhookTemplate`\" pulumi-lang-hcl=\"`custom_webhook_template`\"\u003e`customWebhookTemplate`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "metadataApiVersion": { "type": "string", "description": "How the `$METADATA` variables in the URL and \u003cspan pulumi-lang-nodejs=\"`bodyTemplate`\" pulumi-lang-dotnet=\"`BodyTemplate`\" pulumi-lang-go=\"`bodyTemplate`\" pulumi-lang-python=\"`body_template`\" pulumi-lang-yaml=\"`bodyTemplate`\" pulumi-lang-java=\"`bodyTemplate`\" pulumi-lang-hcl=\"`body_template`\"\u003e`bodyTemplate`\u003c/span\u003e render. Defaults to 'v3'. 'v2': Renders `$METADATA.\u003ckey\u003e` as the key's last plain-text value. 'v3': Renders `$METADATA.\u003ckey\u003e` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.\u003ckey\u003e.values` list each value with its type.\n" }, "name": { "type": "string", "description": "The integration's name, shown in the dashboard.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentAcknowledged": { "type": "boolean", "description": "Whether to send the webhook when an incident is acknowledged. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentComment": { "type": "boolean", "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a 'comment' object, whose 'attributes' hold the comment's 'content', 'created_at', 'updated_at', 'user_id' and 'user_email'. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentReopened": { "type": "boolean", "description": "Whether to send the webhook when an incident is reopened. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentResolved": { "type": "boolean", "description": "Whether to send the webhook when an incident is resolved. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentStarted": { "type": "boolean", "description": "Whether to send the webhook when an incident starts. Only for an 'incident_change' webhook. Defaults to true.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration sends no webhooks.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "triggerType": { "type": "string", "description": "What triggers the webhook. Fixed once the integration is created. 'incident_change': Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment. 'on_call_change': Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift. 'monitor_change': Sends the webhook when a monitor is created, updated, paused, unpaused or removed.\n" }, "url": { "type": "string", "description": "The URL the webhook is sent to. For an 'incident_change' webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.\n" } }, "required": [ "customWebhookTemplate", "customWebhookTemplateAttributes", "metadataApiVersion", "notifyAlongsidePrimaryResponder", "onIncidentAcknowledged", "onIncidentComment", "onIncidentReopened", "onIncidentResolved", "onIncidentStarted", "paused", "teamId", "teamName", "triggerType", "url" ], "inputProperties": { "customWebhookTemplateAttributes": { "$ref": "#/types/betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes", "description": "Custom request method, headers, body and basic authentication. Without a custom template, an 'incident_change' or 'monitor_change' webhook sends the incident or monitor under 'data', with what happened in 'event', such as 'started' or 'created'. Without a custom template, an 'on_call_change' webhook sends the on-call schedule's 'message', 'emails', 'on_holiday_emails', 'change', 'calendar_id', 'calendar_name' and 'primary_calendar' under 'data'. Returned as \u003cspan pulumi-lang-nodejs=\"`customWebhookTemplate`\" pulumi-lang-dotnet=\"`CustomWebhookTemplate`\" pulumi-lang-go=\"`customWebhookTemplate`\" pulumi-lang-python=\"`custom_webhook_template`\" pulumi-lang-yaml=\"`customWebhookTemplate`\" pulumi-lang-java=\"`customWebhookTemplate`\" pulumi-lang-hcl=\"`custom_webhook_template`\"\u003e`customWebhookTemplate`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "metadataApiVersion": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsOutgoingWebhookIntegrationMetadataApiVersion:IncidentsOutgoingWebhookIntegrationMetadataApiVersion" } ], "description": "How the `$METADATA` variables in the URL and \u003cspan pulumi-lang-nodejs=\"`bodyTemplate`\" pulumi-lang-dotnet=\"`BodyTemplate`\" pulumi-lang-go=\"`bodyTemplate`\" pulumi-lang-python=\"`body_template`\" pulumi-lang-yaml=\"`bodyTemplate`\" pulumi-lang-java=\"`bodyTemplate`\" pulumi-lang-hcl=\"`body_template`\"\u003e`bodyTemplate`\u003c/span\u003e render. Defaults to 'v3'. 'v2': Renders `$METADATA.\u003ckey\u003e` as the key's last plain-text value. 'v3': Renders `$METADATA.\u003ckey\u003e` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.\u003ckey\u003e.values` list each value with its type.\n" }, "name": { "type": "string", "description": "The integration's name, shown in the dashboard.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentAcknowledged": { "type": "boolean", "description": "Whether to send the webhook when an incident is acknowledged. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentComment": { "type": "boolean", "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a 'comment' object, whose 'attributes' hold the comment's 'content', 'created_at', 'updated_at', 'user_id' and 'user_email'. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentReopened": { "type": "boolean", "description": "Whether to send the webhook when an incident is reopened. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentResolved": { "type": "boolean", "description": "Whether to send the webhook when an incident is resolved. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentStarted": { "type": "boolean", "description": "Whether to send the webhook when an incident starts. Only for an 'incident_change' webhook. Defaults to true.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "triggerType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsOutgoingWebhookIntegrationTriggerType:IncidentsOutgoingWebhookIntegrationTriggerType" } ], "description": "What triggers the webhook. Fixed once the integration is created. 'incident_change': Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment. 'on_call_change': Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift. 'monitor_change': Sends the webhook when a monitor is created, updated, paused, unpaused or removed.\n" }, "url": { "type": "string", "description": "The URL the webhook is sent to. For an 'incident_change' webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.\n" } }, "requiredInputs": [ "triggerType", "url" ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsOutgoingWebhookIntegration resources.\n", "properties": { "customWebhookTemplate": { "$ref": "#/types/betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplate:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplate", "description": "The saved request template, returned under 'included'. null when the webhook has no custom template.\n" }, "customWebhookTemplateAttributes": { "$ref": "#/types/betterstack:index/IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes:IncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes", "description": "Custom request method, headers, body and basic authentication. Without a custom template, an 'incident_change' or 'monitor_change' webhook sends the incident or monitor under 'data', with what happened in 'event', such as 'started' or 'created'. Without a custom template, an 'on_call_change' webhook sends the on-call schedule's 'message', 'emails', 'on_holiday_emails', 'change', 'calendar_id', 'calendar_name' and 'primary_calendar' under 'data'. Returned as \u003cspan pulumi-lang-nodejs=\"`customWebhookTemplate`\" pulumi-lang-dotnet=\"`CustomWebhookTemplate`\" pulumi-lang-go=\"`customWebhookTemplate`\" pulumi-lang-python=\"`custom_webhook_template`\" pulumi-lang-yaml=\"`customWebhookTemplate`\" pulumi-lang-java=\"`customWebhookTemplate`\" pulumi-lang-hcl=\"`custom_webhook_template`\"\u003e`customWebhookTemplate`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "metadataApiVersion": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsOutgoingWebhookIntegrationMetadataApiVersion:IncidentsOutgoingWebhookIntegrationMetadataApiVersion" } ], "description": "How the `$METADATA` variables in the URL and \u003cspan pulumi-lang-nodejs=\"`bodyTemplate`\" pulumi-lang-dotnet=\"`BodyTemplate`\" pulumi-lang-go=\"`bodyTemplate`\" pulumi-lang-python=\"`body_template`\" pulumi-lang-yaml=\"`bodyTemplate`\" pulumi-lang-java=\"`bodyTemplate`\" pulumi-lang-hcl=\"`body_template`\"\u003e`bodyTemplate`\u003c/span\u003e render. Defaults to 'v3'. 'v2': Renders `$METADATA.\u003ckey\u003e` as the key's last plain-text value. 'v3': Renders `$METADATA.\u003ckey\u003e` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.\u003ckey\u003e.values` list each value with its type.\n" }, "name": { "type": "string", "description": "The integration's name, shown in the dashboard.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentAcknowledged": { "type": "boolean", "description": "Whether to send the webhook when an incident is acknowledged. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentComment": { "type": "boolean", "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a 'comment' object, whose 'attributes' hold the comment's 'content', 'created_at', 'updated_at', 'user_id' and 'user_email'. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentReopened": { "type": "boolean", "description": "Whether to send the webhook when an incident is reopened. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentResolved": { "type": "boolean", "description": "Whether to send the webhook when an incident is resolved. Only for an 'incident_change' webhook. Defaults to true.\n" }, "onIncidentStarted": { "type": "boolean", "description": "Whether to send the webhook when an incident starts. Only for an 'incident_change' webhook. Defaults to true.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration sends no webhooks.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "triggerType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/incidentsOutgoingWebhookIntegrationTriggerType:IncidentsOutgoingWebhookIntegrationTriggerType" } ], "description": "What triggers the webhook. Fixed once the integration is created. 'incident_change': Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment. 'on_call_change': Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift. 'monitor_change': Sends the webhook when a monitor is created, updated, paused, unpaused or removed.\n" }, "url": { "type": "string", "description": "The URL the webhook is sent to. For an 'incident_change' webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.\n" } }, "type": "object" } }, "betterstack:index/incidentsPrometheusIntegration:IncidentsPrometheusIntegration": { "description": "A Prometheus integration turns alerts from Prometheus into incidents.\n\n## Example Usage\n\n### Create a Prometheus integration\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.IncidentsPrometheusIntegration(\"example\", {\n name: \"Prometheus alerts\",\n sms: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.IncidentsPrometheusIntegration(\"example\",\n name=\"Prometheus alerts\",\n sms=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.IncidentsPrometheusIntegration(\"example\", new()\n {\n Name = \"Prometheus alerts\",\n Sms = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsPrometheusIntegration(ctx, \"example\", \u0026betterstack.IncidentsPrometheusIntegrationArgs{\n\t\t\tName: pulumi.String(\"Prometheus alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_prometheus_integration\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Prometheus alerts\"\n sms = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsPrometheusIntegration;\nimport com.betterstack.pulumi.IncidentsPrometheusIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new IncidentsPrometheusIntegration(\"example\", IncidentsPrometheusIntegrationArgs.builder()\n .name(\"Prometheus alerts\")\n .sms(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:IncidentsPrometheusIntegration\n properties:\n name: Prometheus alerts\n sms: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert through an escalation policy\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst alertThroughAnEscalationPolicy = new betterstack.IncidentsPrometheusIntegration(\"alert_through_an_escalation_policy\", {\n name: \"Prometheus alerts\",\n sms: true,\n teamWait: 180,\n escalationPolicyId: onCall.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\nalert_through_an_escalation_policy = betterstack.IncidentsPrometheusIntegration(\"alert_through_an_escalation_policy\",\n name=\"Prometheus alerts\",\n sms=True,\n team_wait=180,\n escalation_policy_id=on_call.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var alertThroughAnEscalationPolicy = new BetterStack.IncidentsPrometheusIntegration(\"alert_through_an_escalation_policy\", new()\n {\n Name = \"Prometheus alerts\",\n Sms = true,\n TeamWait = 180,\n EscalationPolicyId = onCall.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewIncidentsPrometheusIntegration(ctx, \"alert_through_an_escalation_policy\", \u0026betterstack.IncidentsPrometheusIntegrationArgs{\n\t\t\tName: pulumi.String(\"Prometheus alerts\"),\n\t\t\tSms: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_incidents_prometheus_integration\" \"alert_through_an_escalation_policy\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Prometheus alerts\"\n sms = true\n team_wait = 180\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.IncidentsPrometheusIntegration;\nimport com.betterstack.pulumi.IncidentsPrometheusIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var alertThroughAnEscalationPolicy = new IncidentsPrometheusIntegration(\"alertThroughAnEscalationPolicy\", IncidentsPrometheusIntegrationArgs.builder()\n .name(\"Prometheus alerts\")\n .sms(true)\n .teamWait(180)\n .escalationPolicyId(onCall.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n alertThroughAnEscalationPolicy:\n type: betterstack:IncidentsPrometheusIntegration\n name: alert_through_an_escalation_policy\n properties:\n name: Prometheus alerts\n sms: true\n teamWait: 180\n escalationPolicyId: ${onCall.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e You can send 'alerting_rule' on create and update, but responses don't return it.\n\n## Import\n\nImport an existing Prometheus integration by its ID. Get the ID via [List Prometheus integrations](https://betterstack.com/docs/uptime/api/list-all-prometheus-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsPrometheusIntegration:IncidentsPrometheusIntegration example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Prometheus. Alerts Prometheus sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "required": [ "call", "criticalAlert", "email", "paused", "push", "sms", "teamId", "teamName", "webhookUrl" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsPrometheusIntegration resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "name": { "type": "string", "description": "Integration name.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration opens no incidents. Defaults to false.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "webhookUrl": { "type": "string", "description": "The URL to paste into Prometheus. Alerts Prometheus sends to it open incidents. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true } }, "type": "object" } }, "betterstack:index/incidentsSplunkOnCallIntegration:IncidentsSplunkOnCallIntegration": { "description": "A Splunk On-Call integration sends your incidents to Splunk On-Call, formerly VictorOps.\n\n## Example Usage\n\n### Forward every incident\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst forwardEveryIncident = new betterstack.IncidentsSplunkOnCallIntegration(\"forward_every_incident\", {\n name: \"Production alerts\",\n url: \"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nforward_every_incident = betterstack.IncidentsSplunkOnCallIntegration(\"forward_every_incident\",\n name=\"Production alerts\",\n url=\"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var forwardEveryIncident = new BetterStack.IncidentsSplunkOnCallIntegration(\"forward_every_incident\", new()\n {\n Name = \"Production alerts\",\n Url = \"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsSplunkOnCallIntegration(ctx, \"forward_every_incident\", \u0026betterstack.IncidentsSplunkOnCallIntegrationArgs{\n\t\t\tName: pulumi.String(\"Production alerts\"),\n\t\t\tUrl: pulumi.String(\"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_splunk_on_call_integration\" \"forward_every_incident\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production alerts\"\n url = \"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsSplunkOnCallIntegration;\nimport com.betterstack.pulumi.IncidentsSplunkOnCallIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var forwardEveryIncident = new IncidentsSplunkOnCallIntegration(\"forwardEveryIncident\", IncidentsSplunkOnCallIntegrationArgs.builder()\n .name(\"Production alerts\")\n .url(\"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n forwardEveryIncident:\n type: betterstack:IncidentsSplunkOnCallIntegration\n name: forward_every_incident\n properties:\n name: Production alerts\n url: https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/production\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Only when a policy notifies it\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst onlyWhenAPolicyNotifiesIt = new betterstack.IncidentsSplunkOnCallIntegration(\"only_when_a_policy_notifies_it\", {\n name: \"Database escalations\",\n url: \"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database\",\n notifyAlongsidePrimaryResponder: false,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nonly_when_a_policy_notifies_it = betterstack.IncidentsSplunkOnCallIntegration(\"only_when_a_policy_notifies_it\",\n name=\"Database escalations\",\n url=\"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database\",\n notify_alongside_primary_responder=False)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var onlyWhenAPolicyNotifiesIt = new BetterStack.IncidentsSplunkOnCallIntegration(\"only_when_a_policy_notifies_it\", new()\n {\n Name = \"Database escalations\",\n Url = \"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database\",\n NotifyAlongsidePrimaryResponder = false,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewIncidentsSplunkOnCallIntegration(ctx, \"only_when_a_policy_notifies_it\", \u0026betterstack.IncidentsSplunkOnCallIntegrationArgs{\n\t\t\tName: pulumi.String(\"Database escalations\"),\n\t\t\tUrl: pulumi.String(\"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database\"),\n\t\t\tNotifyAlongsidePrimaryResponder: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_incidents_splunk_on_call_integration\" \"only_when_a_policy_notifies_it\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Database escalations\"\n url = \"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database\"\n notify_alongside_primary_responder = false\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.IncidentsSplunkOnCallIntegration;\nimport com.betterstack.pulumi.IncidentsSplunkOnCallIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var onlyWhenAPolicyNotifiesIt = new IncidentsSplunkOnCallIntegration(\"onlyWhenAPolicyNotifiesIt\", IncidentsSplunkOnCallIntegrationArgs.builder()\n .name(\"Database escalations\")\n .url(\"https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database\")\n .notifyAlongsidePrimaryResponder(false)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onlyWhenAPolicyNotifiesIt:\n type: betterstack:IncidentsSplunkOnCallIntegration\n name: only_when_a_policy_notifies_it\n properties:\n name: Database escalations\n url: https://alert.victorops.com/integrations/generic/20131114/alert/3f1e6a2b-8c4d-4e5f-9a0b-1c2d3e4f5a6b/database\n notifyAlongsidePrimaryResponder: false\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Updating or deleting a Splunk On-Call integration with the ID of an outgoing webhook integration acts on that webhook. Use only IDs from [List Splunk On-Call integrations](https://betterstack.com/docs/uptime/api/list-all-splunk-on-call-integrations/).\n\n## Import\n\nImport an existing Splunk On-Call integration by its ID. Get the ID via [List Splunk On-Call integrations](https://betterstack.com/docs/uptime/api/list-all-splunk-on-call-integrations/).\n\n```sh\n$ pulumi import betterstack:index/incidentsSplunkOnCallIntegration:IncidentsSplunkOnCallIntegration example 12345\n```\n\n", "properties": { "name": { "type": "string", "description": "Integration name.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration. Defaults to true.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration sends nothing to Splunk On-Call.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "url": { "type": "string", "description": "Splunk On-Call REST endpoint URL.\n", "secret": true } }, "required": [ "notifyAlongsidePrimaryResponder", "paused", "teamId", "teamName", "url" ], "inputProperties": { "name": { "type": "string", "description": "Integration name.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration. Defaults to true.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "url": { "type": "string", "description": "Splunk On-Call REST endpoint URL.\n", "secret": true } }, "requiredInputs": [ "url" ], "stateInputs": { "description": "Input properties used for looking up and filtering IncidentsSplunkOnCallIntegration resources.\n", "properties": { "name": { "type": "string", "description": "Integration name.\n" }, "notifyAlongsidePrimaryResponder": { "type": "boolean", "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration. Defaults to true.\n" }, "paused": { "type": "boolean", "description": "Whether the integration is paused. A paused integration sends nothing to Splunk On-Call.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this integration.\n" }, "url": { "type": "string", "description": "Splunk On-Call REST endpoint URL.\n", "secret": true } }, "type": "object" } }, "betterstack:index/kafka:Kafka": { "description": "A managed Kafka cluster with one or three brokers, running in KRaft mode.\n\n\u003e Destroying a Kafka cluster deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Kafka(\"example\", {\n name: \"example\",\n type: \"KA1\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Kafka(\"example\",\n name=\"example\",\n type=\"KA1\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Kafka(\"example\", new()\n {\n Name = \"example\",\n Type = \"KA1\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewKafka(ctx, \"example\", \u0026betterstack.KafkaArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"KA1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_kafka\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"KA1\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Kafka;\nimport com.betterstack.pulumi.KafkaArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Kafka(\"example\", KafkaArgs.builder()\n .name(\"example\")\n .type(\"KA1\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Kafka\n properties:\n name: example\n type: KA1\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e We don't back up Kafka clusters. Your data is kept only on the brokers, for as long as each topic's retention keeps it. To keep a copy elsewhere, replicate the data to another cluster yourself.\n\n## Import\n\nImport an existing Kafka cluster by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/kafka:Kafka example 12345\n```\n\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the cluster to, which is only the next version we offer. Empty when the cluster runs the newest version.\n" }, "brokerCount": { "type": "integer", "description": "The number of brokers, '1' for development or '3' to keep the cluster running when a broker fails. Can't be changed after the cluster is created.\n" }, "brokers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaBroker:KafkaBroker" }, "description": "The cluster's brokers, with their addresses on your networks and their last reported health. All brokers have the same role.\n" }, "createdAt": { "type": "string", "description": "When the cluster was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kafka is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/KafkaEndpoint:KafkaEndpoint", "description": "The addresses clients connect to, with the bootstrap address and one address for each broker. Clients must reach every broker, not only the bootstrap address. The fields that start with `public_` are present only when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is on.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact Kafka release installed, such as `4.4.0`.\n" }, "engineVersion": { "type": "string", "description": "The Kafka version as major and minor, such as `4.4`.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to every broker. A cluster can have one firewall.\n" }, "maxPartitions": { "type": "integer", "description": "The most partitions the cluster's type allows across all topics.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag.\n" }, "minInsyncReplicas": { "type": "integer", "description": "The number of copies that must confirm a write, '1' with one broker and '2' with three.\n" }, "name": { "type": "string", "description": "The cluster's name, at most 255 characters. Must be unique among your organization's clusters that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of your networks attached to every broker.\n" }, "partitionCount": { "type": "integer", "description": "The number of partitions across all topics.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the cluster also has public endpoints. Clients connect with TLS and SCRAM on both the private and the public endpoints.\n" }, "replicationFactor": { "type": "integer", "description": "The number of copies of each partition, the same as \u003cspan pulumi-lang-nodejs=\"`brokerCount`\" pulumi-lang-dotnet=\"`BrokerCount`\" pulumi-lang-go=\"`brokerCount`\" pulumi-lang-python=\"`broker_count`\" pulumi-lang-yaml=\"`brokerCount`\" pulumi-lang-java=\"`brokerCount`\" pulumi-lang-hcl=\"`broker_count`\"\u003e`brokerCount`\u003c/span\u003e. Every broker stores every partition.\n" }, "status": { "type": "string", "description": "The cluster's state. 'provisioning': We're starting the brokers and installing Kafka. 'running': The cluster is ready. Right after it's created, brokers can still be starting. 'degraded': A broker is down, partitions are missing copies or a disk is almost full. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the cluster's type. 'upgrading': We're upgrading the cluster to a newer Kafka version. 'failed': We couldn't create the cluster. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The cluster is destroyed.\n" }, "statusMessage": { "type": "string", "description": "Why the cluster is in its current state, such as which broker is down, or null when there's nothing to report.\n" }, "storageBudgetBytes": { "type": "integer", "description": "The storage budget of each broker, in bytes. All topics together must fit in it.\n" }, "storageBudgetUsedBytes": { "type": "integer", "description": "The storage your topics reserve, in bytes. Each topic reserves its \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e times its number of partitions, plus one segment for each partition.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the cluster. Can't be changed after the cluster is created.\n" }, "term": { "type": "string", "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "topics": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaTopicSummary:KafkaTopicSummary" }, "description": "The cluster's topics. Add a topic via [Create a Kafka topic](https://betterstack.com/docs/cloud/api/kafka-topics/create-kafka-topic/).\n" }, "type": { "type": "string", "description": "The cluster's type, such as `KA1`.\n" }, "updatedAt": { "type": "string", "description": "When the cluster was last updated.\n" }, "usableStorageGb": { "type": "integer", "description": "The storage for your topics on each broker, in GiB.\n" }, "users": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaUserSummary:KafkaUserSummary" }, "description": "The cluster's users. Add a user via [Create a Kafka user](https://betterstack.com/docs/cloud/api/kafka-users/create-kafka-user/). Get a user's password via [Get a Kafka user's credentials](https://betterstack.com/docs/cloud/api/kafka-users/credentials-kafka-user/).\n" } }, "required": [ "availableEngineVersions", "brokerCount", "brokers", "createdAt", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "maxPartitions", "metadata", "minInsyncReplicas", "name", "networkIds", "partitionCount", "publicAccess", "replicationFactor", "status", "statusMessage", "storageBudgetBytes", "storageBudgetUsedBytes", "teamId", "term", "topics", "type", "updatedAt", "usableStorageGb", "users" ], "inputProperties": { "brokerCount": { "type": "integer", "description": "The number of brokers, '1' for development or '3' to keep the cluster running when a broker fails. Can't be changed after the cluster is created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kafka is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "engineVersion": { "type": "string", "description": "The Kafka version as major and minor, such as `4.4`.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to every broker. A cluster can have one firewall.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag.\n" }, "name": { "type": "string", "description": "The cluster's name, at most 255 characters. Must be unique among your organization's clusters that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of your networks attached to every broker.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the cluster also has public endpoints. Clients connect with TLS and SCRAM on both the private and the public endpoints.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the cluster. Can't be changed after the cluster is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/kafkaTerm:KafkaTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The cluster's type, such as `KA1`.\n" } }, "requiredInputs": [ "name", "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering Kafka resources.\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the cluster to, which is only the next version we offer. Empty when the cluster runs the newest version.\n" }, "brokerCount": { "type": "integer", "description": "The number of brokers, '1' for development or '3' to keep the cluster running when a broker fails. Can't be changed after the cluster is created.\n" }, "brokers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaBroker:KafkaBroker" }, "description": "The cluster's brokers, with their addresses on your networks and their last reported health. All brokers have the same role.\n" }, "createdAt": { "type": "string", "description": "When the cluster was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kafka is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/KafkaEndpoint:KafkaEndpoint", "description": "The addresses clients connect to, with the bootstrap address and one address for each broker. Clients must reach every broker, not only the bootstrap address. The fields that start with `public_` are present only when \u003cspan pulumi-lang-nodejs=\"`publicAccess`\" pulumi-lang-dotnet=\"`PublicAccess`\" pulumi-lang-go=\"`publicAccess`\" pulumi-lang-python=\"`public_access`\" pulumi-lang-yaml=\"`publicAccess`\" pulumi-lang-java=\"`publicAccess`\" pulumi-lang-hcl=\"`public_access`\"\u003e`publicAccess`\u003c/span\u003e is on.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact Kafka release installed, such as `4.4.0`.\n" }, "engineVersion": { "type": "string", "description": "The Kafka version as major and minor, such as `4.4`.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to every broker. A cluster can have one firewall.\n" }, "maxPartitions": { "type": "integer", "description": "The most partitions the cluster's type allows across all topics.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag.\n" }, "minInsyncReplicas": { "type": "integer", "description": "The number of copies that must confirm a write, '1' with one broker and '2' with three.\n" }, "name": { "type": "string", "description": "The cluster's name, at most 255 characters. Must be unique among your organization's clusters that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of your networks attached to every broker.\n" }, "partitionCount": { "type": "integer", "description": "The number of partitions across all topics.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the cluster also has public endpoints. Clients connect with TLS and SCRAM on both the private and the public endpoints.\n" }, "replicationFactor": { "type": "integer", "description": "The number of copies of each partition, the same as \u003cspan pulumi-lang-nodejs=\"`brokerCount`\" pulumi-lang-dotnet=\"`BrokerCount`\" pulumi-lang-go=\"`brokerCount`\" pulumi-lang-python=\"`broker_count`\" pulumi-lang-yaml=\"`brokerCount`\" pulumi-lang-java=\"`brokerCount`\" pulumi-lang-hcl=\"`broker_count`\"\u003e`brokerCount`\u003c/span\u003e. Every broker stores every partition.\n" }, "status": { "type": "string", "description": "The cluster's state. 'provisioning': We're starting the brokers and installing Kafka. 'running': The cluster is ready. Right after it's created, brokers can still be starting. 'degraded': A broker is down, partitions are missing copies or a disk is almost full. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the cluster's type. 'upgrading': We're upgrading the cluster to a newer Kafka version. 'failed': We couldn't create the cluster. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The cluster is destroyed.\n" }, "statusMessage": { "type": "string", "description": "Why the cluster is in its current state, such as which broker is down, or null when there's nothing to report.\n" }, "storageBudgetBytes": { "type": "integer", "description": "The storage budget of each broker, in bytes. All topics together must fit in it.\n" }, "storageBudgetUsedBytes": { "type": "integer", "description": "The storage your topics reserve, in bytes. Each topic reserves its \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e times its number of partitions, plus one segment for each partition.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the cluster. Can't be changed after the cluster is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/kafkaTerm:KafkaTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "topics": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaTopicSummary:KafkaTopicSummary" }, "description": "The cluster's topics. Add a topic via [Create a Kafka topic](https://betterstack.com/docs/cloud/api/kafka-topics/create-kafka-topic/).\n" }, "type": { "type": "string", "description": "The cluster's type, such as `KA1`.\n" }, "updatedAt": { "type": "string", "description": "When the cluster was last updated.\n" }, "usableStorageGb": { "type": "integer", "description": "The storage for your topics on each broker, in GiB.\n" }, "users": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaUserSummary:KafkaUserSummary" }, "description": "The cluster's users. Add a user via [Create a Kafka user](https://betterstack.com/docs/cloud/api/kafka-users/create-kafka-user/). Get a user's password via [Get a Kafka user's credentials](https://betterstack.com/docs/cloud/api/kafka-users/credentials-kafka-user/).\n" } }, "type": "object" } }, "betterstack:index/kafkaTopic:KafkaTopic": { "description": "A topic on a managed Kafka cluster. Clients can't create topics on the cluster, so create them via [Create a Kafka topic](https://betterstack.com/docs/cloud/api/kafka-topics/create-kafka-topic/).\n\n\u003e Destroying a Kafka topic deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Kafka(\"example\", {\n name: \"example\",\n type: \"KA1\",\n teamId: \"t123\",\n});\nconst exampleKafkaTopic = new betterstack.KafkaTopic(\"example\", {\n kafkaId: example.id,\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Kafka(\"example\",\n name=\"example\",\n type=\"KA1\",\n team_id=\"t123\")\nexample_kafka_topic = betterstack.KafkaTopic(\"example\",\n kafka_id=example.id,\n name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Kafka(\"example\", new()\n {\n Name = \"example\",\n Type = \"KA1\",\n TeamId = \"t123\",\n });\n\n var exampleKafkaTopic = new BetterStack.KafkaTopic(\"example\", new()\n {\n KafkaId = example.Id,\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewKafka(ctx, \"example\", \u0026betterstack.KafkaArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"KA1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewKafkaTopic(ctx, \"example\", \u0026betterstack.KafkaTopicArgs{\n\t\t\tKafkaId: example.ID(),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_kafka\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"KA1\"\n team_id = \"t123\"\n}\nresource \"betterstack_kafka_topic\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n kafka_id = betterstack_kafka.example.id\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Kafka;\nimport com.betterstack.pulumi.KafkaArgs;\nimport com.betterstack.pulumi.KafkaTopic;\nimport com.betterstack.pulumi.KafkaTopicArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Kafka(\"example\", KafkaArgs.builder()\n .name(\"example\")\n .type(\"KA1\")\n .teamId(\"t123\")\n .build());\n\n var exampleKafkaTopic = new KafkaTopic(\"exampleKafkaTopic\", KafkaTopicArgs.builder()\n .kafkaId(example.id())\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Kafka\n properties:\n name: example\n type: KA1\n teamId: t123\n exampleKafkaTopic:\n type: betterstack:KafkaTopic\n name: example\n properties:\n kafkaId: ${example.id}\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing Kafka topic by its ID as `kafka_id/id`.\n\n```sh\n$ pulumi import betterstack:index/kafkaTopic:KafkaTopic example \u003ckafka_id\u003e/12345\n```\n\n", "properties": { "budgetBytes": { "type": "integer", "description": "The most disk space the topic can use on each broker, in bytes. The budget is \u003cspan pulumi-lang-nodejs=\"`partitions`\" pulumi-lang-dotnet=\"`Partitions`\" pulumi-lang-go=\"`partitions`\" pulumi-lang-python=\"`partitions`\" pulumi-lang-yaml=\"`partitions`\" pulumi-lang-java=\"`partitions`\" pulumi-lang-hcl=\"`partitions`\"\u003e`partitions`\u003c/span\u003e times \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e, plus one segment for each partition.\n" }, "cleanupPolicy": { "type": "string", "description": "How Kafka removes old messages. 'delete': Deletes messages older than the retention time or past the retention size. 'compact': Keeps only the latest message for each key. 'compact_delete': Keeps only the latest message for each key, and also deletes messages past retention. Kafka calls it `compact,delete`.\n" }, "createdAt": { "type": "string", "description": "When the topic was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kafka topic is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" }, "maxMessageBytes": { "type": "integer", "description": "The largest message the topic accepts, in bytes, from 1024 to 8388608.\n" }, "name": { "type": "string", "description": "The topic's name, unique in the cluster, 1–249 letters, digits, dots, hyphens and underscores. Can't be `.` or `..` or start with `__`.\n" }, "partitions": { "type": "integer", "description": "The number of partitions, at least 1. All topics together must fit within the cluster type's 'max_partitions'. On update, you can only increase it.\n" }, "replicationFactor": { "type": "integer", "description": "The number of copies of each partition, the same as the cluster's number of brokers.\n" }, "retentionBytes": { "type": "integer", "description": "The most data to keep in each partition, in bytes, at least 1048576. All topics together, plus one segment for each partition, must fit in the cluster's storage budget.\n" }, "retentionMs": { "type": "integer", "description": "How long to keep messages, in milliseconds, at least 60000. `-1` keeps them with no time limit, and \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e still limits their size.\n" }, "updatedAt": { "type": "string", "description": "When the topic was last updated.\n" } }, "required": [ "budgetBytes", "cleanupPolicy", "createdAt", "deletionProtection", "kafkaId", "maxMessageBytes", "name", "partitions", "replicationFactor", "retentionBytes", "retentionMs", "updatedAt" ], "inputProperties": { "cleanupPolicy": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/kafkaTopicCleanupPolicy:KafkaTopicCleanupPolicy" } ], "description": "How Kafka removes old messages. 'delete': Deletes messages older than the retention time or past the retention size. 'compact': Keeps only the latest message for each key. 'compact_delete': Keeps only the latest message for each key, and also deletes messages past retention. Kafka calls it `compact,delete`.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kafka topic is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" }, "maxMessageBytes": { "type": "integer", "description": "The largest message the topic accepts, in bytes, from 1024 to 8388608.\n" }, "name": { "type": "string", "description": "The topic's name, unique in the cluster, 1–249 letters, digits, dots, hyphens and underscores. Can't be `.` or `..` or start with `__`.\n" }, "partitions": { "type": "integer", "description": "The number of partitions, at least 1. All topics together must fit within the cluster type's 'max_partitions'. On update, you can only increase it.\n" }, "retentionBytes": { "type": "integer", "description": "The most data to keep in each partition, in bytes, at least 1048576. All topics together, plus one segment for each partition, must fit in the cluster's storage budget.\n" }, "retentionMs": { "type": "integer", "description": "How long to keep messages, in milliseconds, at least 60000. `-1` keeps them with no time limit, and \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e still limits their size.\n" } }, "requiredInputs": [ "kafkaId", "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering KafkaTopic resources.\n", "properties": { "budgetBytes": { "type": "integer", "description": "The most disk space the topic can use on each broker, in bytes. The budget is \u003cspan pulumi-lang-nodejs=\"`partitions`\" pulumi-lang-dotnet=\"`Partitions`\" pulumi-lang-go=\"`partitions`\" pulumi-lang-python=\"`partitions`\" pulumi-lang-yaml=\"`partitions`\" pulumi-lang-java=\"`partitions`\" pulumi-lang-hcl=\"`partitions`\"\u003e`partitions`\u003c/span\u003e times \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e, plus one segment for each partition.\n" }, "cleanupPolicy": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/kafkaTopicCleanupPolicy:KafkaTopicCleanupPolicy" } ], "description": "How Kafka removes old messages. 'delete': Deletes messages older than the retention time or past the retention size. 'compact': Keeps only the latest message for each key. 'compact_delete': Keeps only the latest message for each key, and also deletes messages past retention. Kafka calls it `compact,delete`.\n" }, "createdAt": { "type": "string", "description": "When the topic was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kafka topic is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" }, "maxMessageBytes": { "type": "integer", "description": "The largest message the topic accepts, in bytes, from 1024 to 8388608.\n" }, "name": { "type": "string", "description": "The topic's name, unique in the cluster, 1–249 letters, digits, dots, hyphens and underscores. Can't be `.` or `..` or start with `__`.\n" }, "partitions": { "type": "integer", "description": "The number of partitions, at least 1. All topics together must fit within the cluster type's 'max_partitions'. On update, you can only increase it.\n" }, "replicationFactor": { "type": "integer", "description": "The number of copies of each partition, the same as the cluster's number of brokers.\n" }, "retentionBytes": { "type": "integer", "description": "The most data to keep in each partition, in bytes, at least 1048576. All topics together, plus one segment for each partition, must fit in the cluster's storage budget.\n" }, "retentionMs": { "type": "integer", "description": "How long to keep messages, in milliseconds, at least 60000. `-1` keeps them with no time limit, and \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e still limits their size.\n" }, "updatedAt": { "type": "string", "description": "When the topic was last updated.\n" } }, "type": "object" } }, "betterstack:index/kafkaUser:KafkaUser": { "description": "A user of a Kafka cluster. Clients sign in as a user with SCRAM, and can use only the topics the user's privileges allow.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Kafka(\"example\", {\n name: \"example\",\n type: \"KA1\",\n teamId: \"t123\",\n});\nconst exampleKafkaUser = new betterstack.KafkaUser(\"example\", {\n kafkaId: example.id,\n username: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Kafka(\"example\",\n name=\"example\",\n type=\"KA1\",\n team_id=\"t123\")\nexample_kafka_user = betterstack.KafkaUser(\"example\",\n kafka_id=example.id,\n username=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Kafka(\"example\", new()\n {\n Name = \"example\",\n Type = \"KA1\",\n TeamId = \"t123\",\n });\n\n var exampleKafkaUser = new BetterStack.KafkaUser(\"example\", new()\n {\n KafkaId = example.Id,\n Username = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewKafka(ctx, \"example\", \u0026betterstack.KafkaArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"KA1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewKafkaUser(ctx, \"example\", \u0026betterstack.KafkaUserArgs{\n\t\t\tKafkaId: example.ID(),\n\t\t\tUsername: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_kafka\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"KA1\"\n team_id = \"t123\"\n}\nresource \"betterstack_kafka_user\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n kafka_id = betterstack_kafka.example.id\n username = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Kafka;\nimport com.betterstack.pulumi.KafkaArgs;\nimport com.betterstack.pulumi.KafkaUser;\nimport com.betterstack.pulumi.KafkaUserArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Kafka(\"example\", KafkaArgs.builder()\n .name(\"example\")\n .type(\"KA1\")\n .teamId(\"t123\")\n .build());\n\n var exampleKafkaUser = new KafkaUser(\"exampleKafkaUser\", KafkaUserArgs.builder()\n .kafkaId(example.id())\n .username(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Kafka\n properties:\n name: example\n type: KA1\n teamId: t123\n exampleKafkaUser:\n type: betterstack:KafkaUser\n name: example\n properties:\n kafkaId: ${example.id}\n username: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing Kafka user by its ID as `kafka_id/id`.\n\n```sh\n$ pulumi import betterstack:index/kafkaUser:KafkaUser example \u003ckafka_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the user was created.\n" }, "defaultUser": { "type": "boolean", "description": "Whether this is the cluster's 'default' user, which every cluster comes with. You can't delete the 'default' user, but you can change its privileges.\n" }, "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" }, "privileges": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaUserPrivilege:KafkaUserPrivilege" }, "description": "The topics the user can use and what it can do on them, up to 25 entries. A user with no privileges has an empty list.\n" }, "updatedAt": { "type": "string", "description": "When the user was last updated.\n" }, "username": { "type": "string", "description": "The name clients sign in with, unique in the cluster, up to 64 lowercase letters, digits, hyphens and underscores, starting with a letter or digit. Can't start with 'betterstack'.\n" } }, "required": [ "createdAt", "defaultUser", "kafkaId", "privileges", "updatedAt", "username" ], "inputProperties": { "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" }, "privileges": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaUserPrivilege:KafkaUserPrivilege" }, "description": "The topics the user can use and what it can do on them, up to 25 entries. A user with no privileges has an empty list.\n" }, "username": { "type": "string", "description": "The name clients sign in with, unique in the cluster, up to 64 lowercase letters, digits, hyphens and underscores, starting with a letter or digit. Can't start with 'betterstack'.\n" } }, "requiredInputs": [ "kafkaId", "username" ], "stateInputs": { "description": "Input properties used for looking up and filtering KafkaUser resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the user was created.\n" }, "defaultUser": { "type": "boolean", "description": "Whether this is the cluster's 'default' user, which every cluster comes with. You can't delete the 'default' user, but you can change its privileges.\n" }, "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" }, "privileges": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KafkaUserPrivilege:KafkaUserPrivilege" }, "description": "The topics the user can use and what it can do on them, up to 25 entries. A user with no privileges has an empty list.\n" }, "updatedAt": { "type": "string", "description": "When the user was last updated.\n" }, "username": { "type": "string", "description": "The name clients sign in with, unique in the cluster, up to 64 lowercase letters, digits, hyphens and underscores, starting with a letter or digit. Can't start with 'betterstack'.\n" } }, "type": "object" } }, "betterstack:index/kubernetesCluster:KubernetesCluster": { "description": "A managed Kubernetes cluster, with a control plane and groups of workers in \u003cspan pulumi-lang-nodejs=\"`nodePools`\" pulumi-lang-dotnet=\"`NodePools`\" pulumi-lang-go=\"`nodePools`\" pulumi-lang-python=\"`node_pools`\" pulumi-lang-yaml=\"`nodePools`\" pulumi-lang-java=\"`nodePools`\" pulumi-lang-hcl=\"`node_pools`\"\u003e`nodePools`\u003c/span\u003e. The control plane runs on a single server.\n\n\u003e Destroying a Kubernetes cluster deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.KubernetesCluster(\"example\", {\n name: \"example\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.KubernetesCluster(\"example\",\n name=\"example\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.KubernetesCluster(\"example\", new()\n {\n Name = \"example\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewKubernetesCluster(ctx, \"example\", \u0026betterstack.KubernetesClusterArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_kubernetes_cluster\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.KubernetesCluster;\nimport com.betterstack.pulumi.KubernetesClusterArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new KubernetesCluster(\"example\", KubernetesClusterArgs.builder()\n .name(\"example\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:KubernetesCluster\n properties:\n name: example\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The cluster's workers show up in your server list, but the cluster manages them. Change how many workers there are via [Update a Kubernetes node pool](https://betterstack.com/docs/cloud/api/kubernetes-node-pools/update-kubernetes-node-pool/), and replace a worker via [Replace a Kubernetes worker](https://betterstack.com/docs/cloud/api/kubernetes-node-pools/recycle-kubernetes-node-pool/). Each node pool uses one server type. Get the types via [List server types](https://betterstack.com/docs/cloud/api/server-types/list-server-types/).\n\n## Import\n\nImport an existing Kubernetes cluster by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/kubernetesCluster:KubernetesCluster example 12345\n```\n\n", "properties": { "apiAllowedCidrs": { "type": "array", "items": { "type": "string" }, "description": "The IP ranges allowed to reach the cluster's Kubernetes API, as 1 to 50 IPv4 or IPv6 CIDRs. Responses show the current ranges under \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e. Defaults to `[\"0.0.0.0/0\", \"::/0\"]`. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "availableVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the cluster to now. Holds the next minor version once we offer it.\n" }, "createdAt": { "type": "string", "description": "When the cluster was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kubernetes cluster is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/KubernetesClusterEndpoint:KubernetesClusterEndpoint", "description": "Where to reach the cluster's Kubernetes API, and from which IP ranges.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to the workers. The list is empty while the cluster has no workers.\n" }, "kubeconfigRotatedAt": { "type": "string", "description": "When the admin credentials of the kubeconfig were first issued or last rotated, or null before they're issued.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest 'available' snapshot of the control plane was created, or null when there is none.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. The keys `kubernetes-cluster`, `kubernetes-node-pool` and `kubernetes-service-uid` are reserved for Better Stack and can't be set.\n" }, "name": { "type": "string", "description": "The cluster's name, up to 255 characters. Must be unique among your organization's clusters that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the cluster. The list is empty while the cluster has no workers. Must be networks of the cluster's team.\n" }, "nodePools": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesClusterNodePool:KubernetesClusterNodePool" }, "description": "The cluster's node pools, each with its workers. Deleted node pools aren't listed.\n" }, "nodesReady": { "type": "integer", "description": "How many workers were ready when we last checked.\n" }, "nodesTotal": { "type": "integer", "description": "How many workers the cluster has now. Each node pool's \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e says how many it should have.\n" }, "patchVersion": { "type": "string", "description": "The exact Kubernetes build we installed for \u003cspan pulumi-lang-nodejs=\"`version`\" pulumi-lang-dotnet=\"`Version`\" pulumi-lang-go=\"`version`\" pulumi-lang-python=\"`version`\" pulumi-lang-yaml=\"`version`\" pulumi-lang-java=\"`version`\" pulumi-lang-hcl=\"`version`\"\u003e`version`\u003c/span\u003e, such as `v1.37.2+k3s1`.\n" }, "podCidr": { "type": "string", "description": "The IPv4 range for pods. Can't overlap \u003cspan pulumi-lang-nodejs=\"`serviceCidr`\" pulumi-lang-dotnet=\"`ServiceCidr`\" pulumi-lang-go=\"`serviceCidr`\" pulumi-lang-python=\"`service_cidr`\" pulumi-lang-yaml=\"`serviceCidr`\" pulumi-lang-java=\"`serviceCidr`\" pulumi-lang-hcl=\"`service_cidr`\"\u003e`serviceCidr`\u003c/span\u003e, a network you attach, or `100.89.94.0/24`, which we use for the cluster. Defaults to `10.42.0.0/16`.\n" }, "serviceCidr": { "type": "string", "description": "The IPv4 range for Kubernetes services. Can't overlap \u003cspan pulumi-lang-nodejs=\"`podCidr`\" pulumi-lang-dotnet=\"`PodCidr`\" pulumi-lang-go=\"`podCidr`\" pulumi-lang-python=\"`pod_cidr`\" pulumi-lang-yaml=\"`podCidr`\" pulumi-lang-java=\"`podCidr`\" pulumi-lang-hcl=\"`pod_cidr`\"\u003e`podCidr`\u003c/span\u003e, a network you attach, or `100.89.94.0/24`, which we use for the cluster. Defaults to `10.43.0.0/16`.\n" }, "status": { "type": "string", "description": "The state of the cluster's control plane. The cluster is ready when it's 'running' and every node pool has \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e workers that are all 'ready'. 'provisioning': We're creating the control plane and the workers. 'running': The control plane works. Check \u003cspan pulumi-lang-nodejs=\"`nodePools`\" pulumi-lang-dotnet=\"`NodePools`\" pulumi-lang-go=\"`nodePools`\" pulumi-lang-python=\"`node_pools`\" pulumi-lang-yaml=\"`nodePools`\" pulumi-lang-java=\"`nodePools`\" pulumi-lang-hcl=\"`node_pools`\"\u003e`nodePools`\u003c/span\u003e to see whether the workers are ready. 'degraded': The control plane or some workers aren't healthy. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'upgrading': We're upgrading the control plane and then the workers. 'restoring': We're restoring the control plane from a snapshot. 'failed': We couldn't create the cluster. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The cluster is deleted.\n" }, "statusMessage": { "type": "string", "description": "What went wrong while creating, scaling or running the cluster, or null.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the cluster. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the cluster was last updated.\n" }, "version": { "type": "string", "description": "The Kubernetes version as major and minor number, such as `1.36`. Defaults to the newest version. Get the versions via [List Kubernetes versions](https://betterstack.com/docs/cloud/api/kubernetes-versions/list-kubernetes-versions/).\n" } }, "required": [ "apiAllowedCidrs", "availableVersions", "createdAt", "deletionProtection", "endpoint", "firewallIds", "kubeconfigRotatedAt", "latestSnapshotAt", "metadata", "name", "networkIds", "nodePools", "nodesReady", "nodesTotal", "patchVersion", "podCidr", "serviceCidr", "status", "statusMessage", "teamId", "updatedAt", "version" ], "inputProperties": { "apiAllowedCidrs": { "type": "array", "items": { "type": "string" }, "description": "The IP ranges allowed to reach the cluster's Kubernetes API, as 1 to 50 IPv4 or IPv6 CIDRs. Responses show the current ranges under \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e. Defaults to `[\"0.0.0.0/0\", \"::/0\"]`. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kubernetes cluster is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to the workers. The list is empty while the cluster has no workers.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. The keys `kubernetes-cluster`, `kubernetes-node-pool` and `kubernetes-service-uid` are reserved for Better Stack and can't be set.\n" }, "name": { "type": "string", "description": "The cluster's name, up to 255 characters. Must be unique among your organization's clusters that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the cluster. The list is empty while the cluster has no workers. Must be networks of the cluster's team.\n" }, "podCidr": { "type": "string", "description": "The IPv4 range for pods. Can't overlap \u003cspan pulumi-lang-nodejs=\"`serviceCidr`\" pulumi-lang-dotnet=\"`ServiceCidr`\" pulumi-lang-go=\"`serviceCidr`\" pulumi-lang-python=\"`service_cidr`\" pulumi-lang-yaml=\"`serviceCidr`\" pulumi-lang-java=\"`serviceCidr`\" pulumi-lang-hcl=\"`service_cidr`\"\u003e`serviceCidr`\u003c/span\u003e, a network you attach, or `100.89.94.0/24`, which we use for the cluster. Defaults to `10.42.0.0/16`.\n" }, "serviceCidr": { "type": "string", "description": "The IPv4 range for Kubernetes services. Can't overlap \u003cspan pulumi-lang-nodejs=\"`podCidr`\" pulumi-lang-dotnet=\"`PodCidr`\" pulumi-lang-go=\"`podCidr`\" pulumi-lang-python=\"`pod_cidr`\" pulumi-lang-yaml=\"`podCidr`\" pulumi-lang-java=\"`podCidr`\" pulumi-lang-hcl=\"`pod_cidr`\"\u003e`podCidr`\u003c/span\u003e, a network you attach, or `100.89.94.0/24`, which we use for the cluster. Defaults to `10.43.0.0/16`.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the cluster. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "version": { "type": "string", "description": "The Kubernetes version as major and minor number, such as `1.36`. Defaults to the newest version. Get the versions via [List Kubernetes versions](https://betterstack.com/docs/cloud/api/kubernetes-versions/list-kubernetes-versions/).\n" } }, "requiredInputs": [ "name", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering KubernetesCluster resources.\n", "properties": { "apiAllowedCidrs": { "type": "array", "items": { "type": "string" }, "description": "The IP ranges allowed to reach the cluster's Kubernetes API, as 1 to 50 IPv4 or IPv6 CIDRs. Responses show the current ranges under \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e. Defaults to `[\"0.0.0.0/0\", \"::/0\"]`. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "availableVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the cluster to now. Holds the next minor version once we offer it.\n" }, "createdAt": { "type": "string", "description": "When the cluster was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this kubernetes cluster is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/KubernetesClusterEndpoint:KubernetesClusterEndpoint", "description": "Where to reach the cluster's Kubernetes API, and from which IP ranges.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to the workers. The list is empty while the cluster has no workers.\n" }, "kubeconfigRotatedAt": { "type": "string", "description": "When the admin credentials of the kubeconfig were first issued or last rotated, or null before they're issued.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest 'available' snapshot of the control plane was created, or null when there is none.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. The keys `kubernetes-cluster`, `kubernetes-node-pool` and `kubernetes-service-uid` are reserved for Better Stack and can't be set.\n" }, "name": { "type": "string", "description": "The cluster's name, up to 255 characters. Must be unique among your organization's clusters that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the cluster. The list is empty while the cluster has no workers. Must be networks of the cluster's team.\n" }, "nodePools": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesClusterNodePool:KubernetesClusterNodePool" }, "description": "The cluster's node pools, each with its workers. Deleted node pools aren't listed.\n" }, "nodesReady": { "type": "integer", "description": "How many workers were ready when we last checked.\n" }, "nodesTotal": { "type": "integer", "description": "How many workers the cluster has now. Each node pool's \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e says how many it should have.\n" }, "patchVersion": { "type": "string", "description": "The exact Kubernetes build we installed for \u003cspan pulumi-lang-nodejs=\"`version`\" pulumi-lang-dotnet=\"`Version`\" pulumi-lang-go=\"`version`\" pulumi-lang-python=\"`version`\" pulumi-lang-yaml=\"`version`\" pulumi-lang-java=\"`version`\" pulumi-lang-hcl=\"`version`\"\u003e`version`\u003c/span\u003e, such as `v1.37.2+k3s1`.\n" }, "podCidr": { "type": "string", "description": "The IPv4 range for pods. Can't overlap \u003cspan pulumi-lang-nodejs=\"`serviceCidr`\" pulumi-lang-dotnet=\"`ServiceCidr`\" pulumi-lang-go=\"`serviceCidr`\" pulumi-lang-python=\"`service_cidr`\" pulumi-lang-yaml=\"`serviceCidr`\" pulumi-lang-java=\"`serviceCidr`\" pulumi-lang-hcl=\"`service_cidr`\"\u003e`serviceCidr`\u003c/span\u003e, a network you attach, or `100.89.94.0/24`, which we use for the cluster. Defaults to `10.42.0.0/16`.\n" }, "serviceCidr": { "type": "string", "description": "The IPv4 range for Kubernetes services. Can't overlap \u003cspan pulumi-lang-nodejs=\"`podCidr`\" pulumi-lang-dotnet=\"`PodCidr`\" pulumi-lang-go=\"`podCidr`\" pulumi-lang-python=\"`pod_cidr`\" pulumi-lang-yaml=\"`podCidr`\" pulumi-lang-java=\"`podCidr`\" pulumi-lang-hcl=\"`pod_cidr`\"\u003e`podCidr`\u003c/span\u003e, a network you attach, or `100.89.94.0/24`, which we use for the cluster. Defaults to `10.43.0.0/16`.\n" }, "status": { "type": "string", "description": "The state of the cluster's control plane. The cluster is ready when it's 'running' and every node pool has \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e workers that are all 'ready'. 'provisioning': We're creating the control plane and the workers. 'running': The control plane works. Check \u003cspan pulumi-lang-nodejs=\"`nodePools`\" pulumi-lang-dotnet=\"`NodePools`\" pulumi-lang-go=\"`nodePools`\" pulumi-lang-python=\"`node_pools`\" pulumi-lang-yaml=\"`nodePools`\" pulumi-lang-java=\"`nodePools`\" pulumi-lang-hcl=\"`node_pools`\"\u003e`nodePools`\u003c/span\u003e to see whether the workers are ready. 'degraded': The control plane or some workers aren't healthy. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'upgrading': We're upgrading the control plane and then the workers. 'restoring': We're restoring the control plane from a snapshot. 'failed': We couldn't create the cluster. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The cluster is deleted.\n" }, "statusMessage": { "type": "string", "description": "What went wrong while creating, scaling or running the cluster, or null.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the cluster. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the cluster was last updated.\n" }, "version": { "type": "string", "description": "The Kubernetes version as major and minor number, such as `1.36`. Defaults to the newest version. Get the versions via [List Kubernetes versions](https://betterstack.com/docs/cloud/api/kubernetes-versions/list-kubernetes-versions/).\n" } }, "type": "object" } }, "betterstack:index/kubernetesNodePool:KubernetesNodePool": { "description": "A group of workers in a Kubernetes cluster, all of one server type. You add, scale and remove workers through the cluster's node pools.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.KubernetesCluster(\"example\", {\n name: \"example\",\n teamId: \"t123\",\n});\nconst exampleKubernetesNodePool = new betterstack.KubernetesNodePool(\"example\", {\n kubernetesClusterId: example.id,\n name: \"example\",\n serverType: \"AM2\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.KubernetesCluster(\"example\",\n name=\"example\",\n team_id=\"t123\")\nexample_kubernetes_node_pool = betterstack.KubernetesNodePool(\"example\",\n kubernetes_cluster_id=example.id,\n name=\"example\",\n server_type=\"AM2\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.KubernetesCluster(\"example\", new()\n {\n Name = \"example\",\n TeamId = \"t123\",\n });\n\n var exampleKubernetesNodePool = new BetterStack.KubernetesNodePool(\"example\", new()\n {\n KubernetesClusterId = example.Id,\n Name = \"example\",\n ServerType = \"AM2\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewKubernetesCluster(ctx, \"example\", \u0026betterstack.KubernetesClusterArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewKubernetesNodePool(ctx, \"example\", \u0026betterstack.KubernetesNodePoolArgs{\n\t\t\tKubernetesClusterId: example.ID(),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tServerType: pulumi.String(\"AM2\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_kubernetes_cluster\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n team_id = \"t123\"\n}\nresource \"betterstack_kubernetes_node_pool\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n kubernetes_cluster_id = betterstack_kubernetes_cluster.example.id\n name = \"example\"\n server_type = \"AM2\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.KubernetesCluster;\nimport com.betterstack.pulumi.KubernetesClusterArgs;\nimport com.betterstack.pulumi.KubernetesNodePool;\nimport com.betterstack.pulumi.KubernetesNodePoolArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new KubernetesCluster(\"example\", KubernetesClusterArgs.builder()\n .name(\"example\")\n .teamId(\"t123\")\n .build());\n\n var exampleKubernetesNodePool = new KubernetesNodePool(\"exampleKubernetesNodePool\", KubernetesNodePoolArgs.builder()\n .kubernetesClusterId(example.id())\n .name(\"example\")\n .serverType(\"AM2\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:KubernetesCluster\n properties:\n name: example\n teamId: t123\n exampleKubernetesNodePool:\n type: betterstack:KubernetesNodePool\n name: example\n properties:\n kubernetesClusterId: ${example.id}\n name: example\n serverType: AM2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n\u003e Workers are servers of a server type, and they count toward your server quotas. The cluster manages its workers, so the server endpoints refuse to change them.\n\n## Import\n\nImport an existing Kubernetes node pool by its ID as `kubernetes_cluster_id/id`.\n\n```sh\n$ pulumi import betterstack:index/kubernetesNodePool:KubernetesNodePool example \u003ckubernetes_cluster_id\u003e/12345\n```\n\n", "properties": { "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" }, "labels": { "$ref": "pulumi.json#/Any", "description": "The Kubernetes labels of the workers, as string pairs, or an empty object when there are none.\n" }, "name": { "type": "string", "description": "The node pool's name, unique among the cluster's node pools. Up to 30 lowercase letters, digits and hyphens, starting and ending with a letter or digit.\n" }, "nodeCount": { "type": "integer", "description": "How many workers the node pool should have, from 0 to 100. The node pools of a cluster can have 100 workers in total. \u003cspan pulumi-lang-nodejs=\"`nodes`\" pulumi-lang-dotnet=\"`Nodes`\" pulumi-lang-go=\"`nodes`\" pulumi-lang-python=\"`nodes`\" pulumi-lang-yaml=\"`nodes`\" pulumi-lang-java=\"`nodes`\" pulumi-lang-hcl=\"`nodes`\"\u003e`nodes`\u003c/span\u003e lists the workers the node pool has now. Defaults to '1'.\n" }, "nodes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesNodePoolNode:KubernetesNodePoolNode" }, "description": "The node pool's workers. New workers show up at once as 'queued', then go through 'provisioning' and 'joining' to 'ready'.\n" }, "nodesReady": { "type": "integer", "description": "How many workers of the node pool are 'ready'.\n" }, "scaling": { "$ref": "#/types/betterstack:index/KubernetesNodePoolScaling:KubernetesNodePoolScaling", "description": "How a change of size is going while \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e is \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e, or null otherwise.\n" }, "serverType": { "type": "string", "description": "The server type of the workers. Get the types via [List server types](https://betterstack.com/docs/cloud/api/server-types/list-server-types/). Can't be changed after the node pool is created.\n" }, "status": { "type": "string", "description": "The node pool's state. The node pool is ready when the cluster is 'running' and every worker of the node pool is 'ready'. 'active': The node pool isn't changing size. The node pool's workers can still be joining or being replaced. \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e: We're adding or removing workers to reach \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e. Scaling happens after you change \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, or when the node pool has more or fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e. 'deleting': We're removing the node pool. 'destroyed': The node pool is deleted.\n" }, "statusMessage": { "type": "string", "description": "Why the node pool has fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, such as a quota limit, no capacity for the server type in the zone, or a server we couldn't create. null again once the node pool reaches \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e.\n" }, "taints": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesNodePoolTaint:KubernetesNodePoolTaint" }, "description": "The Kubernetes taints of the workers, or an empty list when there are none.\n" } }, "required": [ "kubernetesClusterId", "labels", "name", "nodeCount", "nodes", "nodesReady", "scaling", "serverType", "status", "statusMessage", "taints" ], "inputProperties": { "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" }, "labels": { "$ref": "pulumi.json#/Any", "description": "The Kubernetes labels of the workers, as string pairs, or an empty object when there are none.\n" }, "name": { "type": "string", "description": "The node pool's name, unique among the cluster's node pools. Up to 30 lowercase letters, digits and hyphens, starting and ending with a letter or digit.\n" }, "nodeCount": { "type": "integer", "description": "How many workers the node pool should have, from 0 to 100. The node pools of a cluster can have 100 workers in total. \u003cspan pulumi-lang-nodejs=\"`nodes`\" pulumi-lang-dotnet=\"`Nodes`\" pulumi-lang-go=\"`nodes`\" pulumi-lang-python=\"`nodes`\" pulumi-lang-yaml=\"`nodes`\" pulumi-lang-java=\"`nodes`\" pulumi-lang-hcl=\"`nodes`\"\u003e`nodes`\u003c/span\u003e lists the workers the node pool has now. Defaults to '1'.\n" }, "serverType": { "type": "string", "description": "The server type of the workers. Get the types via [List server types](https://betterstack.com/docs/cloud/api/server-types/list-server-types/). Can't be changed after the node pool is created.\n" }, "taints": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesNodePoolTaint:KubernetesNodePoolTaint" }, "description": "The Kubernetes taints of the workers, or an empty list when there are none.\n" } }, "requiredInputs": [ "kubernetesClusterId", "name", "serverType" ], "stateInputs": { "description": "Input properties used for looking up and filtering KubernetesNodePool resources.\n", "properties": { "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" }, "labels": { "$ref": "pulumi.json#/Any", "description": "The Kubernetes labels of the workers, as string pairs, or an empty object when there are none.\n" }, "name": { "type": "string", "description": "The node pool's name, unique among the cluster's node pools. Up to 30 lowercase letters, digits and hyphens, starting and ending with a letter or digit.\n" }, "nodeCount": { "type": "integer", "description": "How many workers the node pool should have, from 0 to 100. The node pools of a cluster can have 100 workers in total. \u003cspan pulumi-lang-nodejs=\"`nodes`\" pulumi-lang-dotnet=\"`Nodes`\" pulumi-lang-go=\"`nodes`\" pulumi-lang-python=\"`nodes`\" pulumi-lang-yaml=\"`nodes`\" pulumi-lang-java=\"`nodes`\" pulumi-lang-hcl=\"`nodes`\"\u003e`nodes`\u003c/span\u003e lists the workers the node pool has now. Defaults to '1'.\n" }, "nodes": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesNodePoolNode:KubernetesNodePoolNode" }, "description": "The node pool's workers. New workers show up at once as 'queued', then go through 'provisioning' and 'joining' to 'ready'.\n" }, "nodesReady": { "type": "integer", "description": "How many workers of the node pool are 'ready'.\n" }, "scaling": { "$ref": "#/types/betterstack:index/KubernetesNodePoolScaling:KubernetesNodePoolScaling", "description": "How a change of size is going while \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e is \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e, or null otherwise.\n" }, "serverType": { "type": "string", "description": "The server type of the workers. Get the types via [List server types](https://betterstack.com/docs/cloud/api/server-types/list-server-types/). Can't be changed after the node pool is created.\n" }, "status": { "type": "string", "description": "The node pool's state. The node pool is ready when the cluster is 'running' and every worker of the node pool is 'ready'. 'active': The node pool isn't changing size. The node pool's workers can still be joining or being replaced. \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e: We're adding or removing workers to reach \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e. Scaling happens after you change \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, or when the node pool has more or fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e. 'deleting': We're removing the node pool. 'destroyed': The node pool is deleted.\n" }, "statusMessage": { "type": "string", "description": "Why the node pool has fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, such as a quota limit, no capacity for the server type in the zone, or a server we couldn't create. null again once the node pool reaches \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e.\n" }, "taints": { "type": "array", "items": { "$ref": "#/types/betterstack:index/KubernetesNodePoolTaint:KubernetesNodePoolTaint" }, "description": "The Kubernetes taints of the workers, or an empty list when there are none.\n" } }, "type": "object" } }, "betterstack:index/kubernetesScheduledSnapshot:KubernetesScheduledSnapshot": { "description": "A schedule that creates snapshots of a Kubernetes cluster's control plane.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.KubernetesCluster(\"example\", {\n name: \"example\",\n teamId: \"t123\",\n});\nconst exampleKubernetesScheduledSnapshot = new betterstack.KubernetesScheduledSnapshot(\"example\", {\n kubernetesClusterId: example.id,\n frequency: betterstack.KubernetesScheduledSnapshotFrequency.Hourly,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.KubernetesCluster(\"example\",\n name=\"example\",\n team_id=\"t123\")\nexample_kubernetes_scheduled_snapshot = betterstack.KubernetesScheduledSnapshot(\"example\",\n kubernetes_cluster_id=example.id,\n frequency=betterstack.KubernetesScheduledSnapshotFrequency.HOURLY)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.KubernetesCluster(\"example\", new()\n {\n Name = \"example\",\n TeamId = \"t123\",\n });\n\n var exampleKubernetesScheduledSnapshot = new BetterStack.KubernetesScheduledSnapshot(\"example\", new()\n {\n KubernetesClusterId = example.Id,\n Frequency = BetterStack.KubernetesScheduledSnapshotFrequency.Hourly,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewKubernetesCluster(ctx, \"example\", \u0026betterstack.KubernetesClusterArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewKubernetesScheduledSnapshot(ctx, \"example\", \u0026betterstack.KubernetesScheduledSnapshotArgs{\n\t\t\tKubernetesClusterId: example.ID(),\n\t\t\tFrequency: pulumi.String(betterstack.KubernetesScheduledSnapshotFrequencyHourly),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_kubernetes_cluster\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n team_id = \"t123\"\n}\nresource \"betterstack_kubernetes_scheduled_snapshot\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n kubernetes_cluster_id = betterstack_kubernetes_cluster.example.id\n frequency = \"hourly\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.KubernetesCluster;\nimport com.betterstack.pulumi.KubernetesClusterArgs;\nimport com.betterstack.pulumi.KubernetesScheduledSnapshot;\nimport com.betterstack.pulumi.KubernetesScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new KubernetesCluster(\"example\", KubernetesClusterArgs.builder()\n .name(\"example\")\n .teamId(\"t123\")\n .build());\n\n var exampleKubernetesScheduledSnapshot = new KubernetesScheduledSnapshot(\"exampleKubernetesScheduledSnapshot\", KubernetesScheduledSnapshotArgs.builder()\n .kubernetesClusterId(example.id())\n .frequency(\"hourly\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:KubernetesCluster\n properties:\n name: example\n teamId: t123\n exampleKubernetesScheduledSnapshot:\n type: betterstack:KubernetesScheduledSnapshot\n name: example\n properties:\n kubernetesClusterId: ${example.id}\n frequency: hourly\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n\u003e Deleting the cluster deletes its schedules.\n\n## Import\n\nImport an existing Kubernetes scheduled snapshot by its ID as `kubernetes_cluster_id/id`.\n\n```sh\n$ pulumi import betterstack:index/kubernetesScheduledSnapshot:KubernetesScheduledSnapshot example \u003ckubernetes_cluster_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "description": "How often to create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the cluster's control plane.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "required": [ "createdAt", "frequency", "kubernetesClusterId", "lastRunAt", "serverId", "updatedAt" ], "inputProperties": { "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/kubernetesScheduledSnapshotFrequency:KubernetesScheduledSnapshotFrequency" } ], "description": "How often to create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" } }, "requiredInputs": [ "frequency", "kubernetesClusterId" ], "stateInputs": { "description": "Input properties used for looking up and filtering KubernetesScheduledSnapshot resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/kubernetesScheduledSnapshotFrequency:KubernetesScheduledSnapshotFrequency" } ], "description": "How often to create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the cluster's control plane.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "type": "object" } }, "betterstack:index/loadBalancer:LoadBalancer": { "description": "A managed load balancer that spreads TCP, UDP, HTTP and HTTPS traffic over your servers. A load balancer has services that listen for traffic and targets that receive it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.LoadBalancer(\"example\", {\n name: \"example\",\n type: \"LB1\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.LoadBalancer(\"example\",\n name=\"example\",\n type=\"LB1\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.LoadBalancer(\"example\", new()\n {\n Name = \"example\",\n Type = \"LB1\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewLoadBalancer(ctx, \"example\", \u0026betterstack.LoadBalancerArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"LB1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_load_balancer\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"LB1\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.LoadBalancer;\nimport com.betterstack.pulumi.LoadBalancerArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new LoadBalancer(\"example\", LoadBalancerArgs.builder()\n .name(\"example\")\n .type(\"LB1\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:LoadBalancer\n properties:\n name: example\n type: LB1\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing load balancer by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/loadBalancer:LoadBalancer example 12345\n```\n\n", "properties": { "algorithm": { "type": "string", "description": "How the load balancer picks a target for each connection. Defaults to 'round_robin'. 'round_robin': Sends each new connection to the next target in turn. 'least_connections': Sends each new connection to the target with the fewest open connections. 'source_ip': Sends all connections from one client IP to the same target.\n" }, "configAppliedAt": { "type": "string", "description": "When we last applied the configuration to the load balancer, or null until we first apply it.\n" }, "createdAt": { "type": "string", "description": "When the load balancer was created.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to the load balancer, at most one.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag, so an empty object removes every tag.\n" }, "name": { "type": "string", "description": "The load balancer's name. Must be unique among your organization's load balancers that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the networks attached to the load balancer.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerPrivateIp:LoadBalancerPrivateIp" }, "description": "The load balancer's private IP in each attached network.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerPublicIp:LoadBalancerPublicIp" }, "description": "The load balancer's public IP addresses, one IPv4 and one IPv6.\n" }, "services": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerServiceSummary:LoadBalancerServiceSummary" }, "description": "The services that listen for traffic, with their settings and the latest health of each target. Add a service via [Create a load balancer service](https://betterstack.com/docs/cloud/api/load-balancer-services/create-load-balancer-service/).\n" }, "status": { "type": "string", "description": "The load balancer's state. 'provisioning': We're starting the load balancer. 'running': The load balancer is ready. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e reports any problem. \u003cspan pulumi-lang-nodejs=\"`configAppliedAt`\" pulumi-lang-dotnet=\"`ConfigAppliedAt`\" pulumi-lang-go=\"`configAppliedAt`\" pulumi-lang-python=\"`config_applied_at`\" pulumi-lang-yaml=\"`configAppliedAt`\" pulumi-lang-java=\"`configAppliedAt`\" pulumi-lang-hcl=\"`config_applied_at`\"\u003e`configAppliedAt`\u003c/span\u003e says when we last applied your configuration. 'rescaling': We're changing the load balancer's type. The load balancer returns to 'running' even when we couldn't apply its configuration yet. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e then says why. 'failed': We couldn't create the load balancer. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The load balancer is deleted.\n" }, "statusMessage": { "type": "string", "description": "What went wrong when we created or configured the load balancer, or what's wrong with it now. null when there's nothing to report.\n" }, "targets": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerTargetSummary:LoadBalancerTargetSummary" }, "description": "The targets that receive the traffic. A 'label_selector' target is one entry, however many servers match it.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the load balancer. Can't be changed after the load balancer is created.\n" }, "term": { "type": "string", "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The load balancer's type, such as `LB1`. Get the types via [List load balancer types](https://betterstack.com/docs/cloud/api/load-balancer-types/list-load-balancer-types/).\n" }, "updatedAt": { "type": "string", "description": "When the load balancer was last updated.\n" } }, "required": [ "algorithm", "configAppliedAt", "createdAt", "firewallIds", "metadata", "name", "networkIds", "privateIps", "publicIps", "services", "status", "statusMessage", "targets", "teamId", "term", "type", "updatedAt" ], "inputProperties": { "algorithm": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerAlgorithm:LoadBalancerAlgorithm" } ], "description": "How the load balancer picks a target for each connection. Defaults to 'round_robin'. 'round_robin': Sends each new connection to the next target in turn. 'least_connections': Sends each new connection to the target with the fewest open connections. 'source_ip': Sends all connections from one client IP to the same target.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to the load balancer, at most one.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag, so an empty object removes every tag.\n" }, "name": { "type": "string", "description": "The load balancer's name. Must be unique among your organization's load balancers that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the networks attached to the load balancer.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the load balancer. Can't be changed after the load balancer is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerTerm:LoadBalancerTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The load balancer's type, such as `LB1`. Get the types via [List load balancer types](https://betterstack.com/docs/cloud/api/load-balancer-types/list-load-balancer-types/).\n" } }, "requiredInputs": [ "name", "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering LoadBalancer resources.\n", "properties": { "algorithm": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerAlgorithm:LoadBalancerAlgorithm" } ], "description": "How the load balancer picks a target for each connection. Defaults to 'round_robin'. 'round_robin': Sends each new connection to the next target in turn. 'least_connections': Sends each new connection to the target with the fewest open connections. 'source_ip': Sends all connections from one client IP to the same target.\n" }, "configAppliedAt": { "type": "string", "description": "When we last applied the configuration to the load balancer, or null until we first apply it.\n" }, "createdAt": { "type": "string", "description": "When the load balancer was created.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the firewalls attached to the load balancer, at most one.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag, so an empty object removes every tag.\n" }, "name": { "type": "string", "description": "The load balancer's name. Must be unique among your organization's load balancers that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the networks attached to the load balancer.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerPrivateIp:LoadBalancerPrivateIp" }, "description": "The load balancer's private IP in each attached network.\n" }, "publicIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerPublicIp:LoadBalancerPublicIp" }, "description": "The load balancer's public IP addresses, one IPv4 and one IPv6.\n" }, "services": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerServiceSummary:LoadBalancerServiceSummary" }, "description": "The services that listen for traffic, with their settings and the latest health of each target. Add a service via [Create a load balancer service](https://betterstack.com/docs/cloud/api/load-balancer-services/create-load-balancer-service/).\n" }, "status": { "type": "string", "description": "The load balancer's state. 'provisioning': We're starting the load balancer. 'running': The load balancer is ready. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e reports any problem. \u003cspan pulumi-lang-nodejs=\"`configAppliedAt`\" pulumi-lang-dotnet=\"`ConfigAppliedAt`\" pulumi-lang-go=\"`configAppliedAt`\" pulumi-lang-python=\"`config_applied_at`\" pulumi-lang-yaml=\"`configAppliedAt`\" pulumi-lang-java=\"`configAppliedAt`\" pulumi-lang-hcl=\"`config_applied_at`\"\u003e`configAppliedAt`\u003c/span\u003e says when we last applied your configuration. 'rescaling': We're changing the load balancer's type. The load balancer returns to 'running' even when we couldn't apply its configuration yet. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e then says why. 'failed': We couldn't create the load balancer. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The load balancer is deleted.\n" }, "statusMessage": { "type": "string", "description": "What went wrong when we created or configured the load balancer, or what's wrong with it now. null when there's nothing to report.\n" }, "targets": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerTargetSummary:LoadBalancerTargetSummary" }, "description": "The targets that receive the traffic. A 'label_selector' target is one entry, however many servers match it.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the load balancer. Can't be changed after the load balancer is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerTerm:LoadBalancerTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The load balancer's type, such as `LB1`. Get the types via [List load balancer types](https://betterstack.com/docs/cloud/api/load-balancer-types/list-load-balancer-types/).\n" }, "updatedAt": { "type": "string", "description": "When the load balancer was last updated.\n" } }, "type": "object" } }, "betterstack:index/loadBalancerService:LoadBalancerService": { "description": "A port a load balancer listens on, with how it forwards the traffic to the load balancer's targets. Each service checks the targets' health on its own.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.LoadBalancer(\"example\", {\n name: \"example\",\n type: \"LB1\",\n teamId: \"t123\",\n});\nconst exampleLoadBalancerService = new betterstack.LoadBalancerService(\"example\", {\n loadBalancerId: example.id,\n protocol: betterstack.LoadBalancerServiceProtocol.Tcp,\n listenPort: 80,\n destinationPort: 8080,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.LoadBalancer(\"example\",\n name=\"example\",\n type=\"LB1\",\n team_id=\"t123\")\nexample_load_balancer_service = betterstack.LoadBalancerService(\"example\",\n load_balancer_id=example.id,\n protocol=betterstack.LoadBalancerServiceProtocol.TCP,\n listen_port=80,\n destination_port=8080)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.LoadBalancer(\"example\", new()\n {\n Name = \"example\",\n Type = \"LB1\",\n TeamId = \"t123\",\n });\n\n var exampleLoadBalancerService = new BetterStack.LoadBalancerService(\"example\", new()\n {\n LoadBalancerId = example.Id,\n Protocol = BetterStack.LoadBalancerServiceProtocol.Tcp,\n ListenPort = 80,\n DestinationPort = 8080,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewLoadBalancer(ctx, \"example\", \u0026betterstack.LoadBalancerArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"LB1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewLoadBalancerService(ctx, \"example\", \u0026betterstack.LoadBalancerServiceArgs{\n\t\t\tLoadBalancerId: example.ID(),\n\t\t\tProtocol: pulumi.String(betterstack.LoadBalancerServiceProtocolTcp),\n\t\t\tListenPort: pulumi.Int(80),\n\t\t\tDestinationPort: pulumi.Int(8080),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_load_balancer\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"LB1\"\n team_id = \"t123\"\n}\nresource \"betterstack_load_balancer_service\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n load_balancer_id = betterstack_load_balancer.example.id\n protocol = \"tcp\"\n listen_port = 80\n destination_port = 8080\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.LoadBalancer;\nimport com.betterstack.pulumi.LoadBalancerArgs;\nimport com.betterstack.pulumi.LoadBalancerService;\nimport com.betterstack.pulumi.LoadBalancerServiceArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new LoadBalancer(\"example\", LoadBalancerArgs.builder()\n .name(\"example\")\n .type(\"LB1\")\n .teamId(\"t123\")\n .build());\n\n var exampleLoadBalancerService = new LoadBalancerService(\"exampleLoadBalancerService\", LoadBalancerServiceArgs.builder()\n .loadBalancerId(example.id())\n .protocol(\"tcp\")\n .listenPort(80)\n .destinationPort(8080)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:LoadBalancer\n properties:\n name: example\n type: LB1\n teamId: t123\n exampleLoadBalancerService:\n type: betterstack:LoadBalancerService\n name: example\n properties:\n loadBalancerId: ${example.id}\n protocol: tcp\n listenPort: 80\n destinationPort: 8080\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing load balancer service by its ID as `load_balancer_id/id`.\n\n```sh\n$ pulumi import betterstack:index/loadBalancerService:LoadBalancerService example \u003cload_balancer_id\u003e/12345\n```\n\n", "properties": { "certificateIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the certificates the service presents. Get them via [List certificates](https://betterstack.com/docs/cloud/api/certificates/list-certificates/). Each certificate must be in the load balancer's team. An 'https' service requires at least one certificate. An update replaces the whole list.\n" }, "createdAt": { "type": "string", "description": "When the service was created.\n" }, "destinationPort": { "type": "integer", "description": "The port on the targets that traffic goes to, 1–65535.\n" }, "healthCheck": { "$ref": "#/types/betterstack:index/LoadBalancerServiceHealthCheck:LoadBalancerServiceHealthCheck", "description": "How the service checks that its targets are healthy. An update changes only the health check fields you send.\n" }, "httpTimeoutSeconds": { "type": "integer", "description": "How long the service waits for a client or a target to send data during an HTTP request, in seconds, 5–600. Only 'http' and 'https' services use it. Defaults to '50'.\n" }, "listenPort": { "type": "integer", "description": "The port the service listens on, 1–65535. Can't be '8402' or '9901', which the load balancer uses itself. A 'tcp' and a 'udp' service can use the same port.\n" }, "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" }, "protocol": { "type": "string", "description": "The protocol the service listens for. 'tcp': Forwards TCP connections. 'http': Forwards HTTP requests. 'https': Decrypts HTTPS traffic with the service's certificates and forwards HTTP requests. An 'https' service requires at least one certificate in \u003cspan pulumi-lang-nodejs=\"`certificateIds`\" pulumi-lang-dotnet=\"`CertificateIds`\" pulumi-lang-go=\"`certificateIds`\" pulumi-lang-python=\"`certificate_ids`\" pulumi-lang-yaml=\"`certificateIds`\" pulumi-lang-java=\"`certificateIds`\" pulumi-lang-hcl=\"`certificate_ids`\"\u003e`certificateIds`\u003c/span\u003e. 'udp': Forwards UDP traffic. A 'udp' service can't use certificates, \u003cspan pulumi-lang-nodejs=\"`stickySessions`\" pulumi-lang-dotnet=\"`StickySessions`\" pulumi-lang-go=\"`stickySessions`\" pulumi-lang-python=\"`sticky_sessions`\" pulumi-lang-yaml=\"`stickySessions`\" pulumi-lang-java=\"`stickySessions`\" pulumi-lang-hcl=\"`sticky_sessions`\"\u003e`stickySessions`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`redirectHttp`\" pulumi-lang-dotnet=\"`RedirectHttp`\" pulumi-lang-go=\"`redirectHttp`\" pulumi-lang-python=\"`redirect_http`\" pulumi-lang-yaml=\"`redirectHttp`\" pulumi-lang-java=\"`redirectHttp`\" pulumi-lang-hcl=\"`redirect_http`\"\u003e`redirectHttp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`proxyProtocol`\" pulumi-lang-dotnet=\"`ProxyProtocol`\" pulumi-lang-go=\"`proxyProtocol`\" pulumi-lang-python=\"`proxy_protocol`\" pulumi-lang-yaml=\"`proxyProtocol`\" pulumi-lang-java=\"`proxyProtocol`\" pulumi-lang-hcl=\"`proxy_protocol`\"\u003e`proxyProtocol`\u003c/span\u003e.\n" }, "proxyProtocol": { "type": "string", "description": "The PROXY protocol version the targets accept, or 'disabled'. A 'udp' service can't use it. Valid values: 'disabled', 'v1', 'v2'. Defaults to 'disabled'.\n" }, "redirectHttp": { "type": "boolean", "description": "Whether HTTP requests are redirected to this HTTPS service. Only 'https' services can redirect. Defaults to false.\n" }, "stickyCookieLifetimeSeconds": { "type": "integer", "description": "How long the sticky session cookie lasts, 1–86400 seconds. Defaults to '300'.\n" }, "stickyCookieName": { "type": "string", "description": "The name of the sticky session cookie, 1–64 letters, digits, underscores, dots or hyphens. Defaults to `BSLBSTICKY`.\n" }, "stickySessions": { "type": "boolean", "description": "Whether a cookie sends each client to the same target. Only 'http' and 'https' services can use sticky sessions. Defaults to false.\n" }, "targetHealths": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerServiceTargetHealth:LoadBalancerServiceTargetHealth" }, "description": "The latest health of each target, updated about every 30 seconds.\n" }, "updatedAt": { "type": "string", "description": "When the service was last updated.\n" } }, "required": [ "certificateIds", "createdAt", "destinationPort", "healthCheck", "httpTimeoutSeconds", "listenPort", "loadBalancerId", "protocol", "proxyProtocol", "redirectHttp", "stickyCookieLifetimeSeconds", "stickyCookieName", "stickySessions", "targetHealths", "updatedAt" ], "inputProperties": { "certificateIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the certificates the service presents. Get them via [List certificates](https://betterstack.com/docs/cloud/api/certificates/list-certificates/). Each certificate must be in the load balancer's team. An 'https' service requires at least one certificate. An update replaces the whole list.\n" }, "destinationPort": { "type": "integer", "description": "The port on the targets that traffic goes to, 1–65535.\n" }, "healthCheck": { "$ref": "#/types/betterstack:index/LoadBalancerServiceHealthCheck:LoadBalancerServiceHealthCheck", "description": "How the service checks that its targets are healthy. An update changes only the health check fields you send.\n" }, "httpTimeoutSeconds": { "type": "integer", "description": "How long the service waits for a client or a target to send data during an HTTP request, in seconds, 5–600. Only 'http' and 'https' services use it. Defaults to '50'.\n" }, "listenPort": { "type": "integer", "description": "The port the service listens on, 1–65535. Can't be '8402' or '9901', which the load balancer uses itself. A 'tcp' and a 'udp' service can use the same port.\n" }, "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" }, "protocol": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerServiceProtocol:LoadBalancerServiceProtocol" } ], "description": "The protocol the service listens for. 'tcp': Forwards TCP connections. 'http': Forwards HTTP requests. 'https': Decrypts HTTPS traffic with the service's certificates and forwards HTTP requests. An 'https' service requires at least one certificate in \u003cspan pulumi-lang-nodejs=\"`certificateIds`\" pulumi-lang-dotnet=\"`CertificateIds`\" pulumi-lang-go=\"`certificateIds`\" pulumi-lang-python=\"`certificate_ids`\" pulumi-lang-yaml=\"`certificateIds`\" pulumi-lang-java=\"`certificateIds`\" pulumi-lang-hcl=\"`certificate_ids`\"\u003e`certificateIds`\u003c/span\u003e. 'udp': Forwards UDP traffic. A 'udp' service can't use certificates, \u003cspan pulumi-lang-nodejs=\"`stickySessions`\" pulumi-lang-dotnet=\"`StickySessions`\" pulumi-lang-go=\"`stickySessions`\" pulumi-lang-python=\"`sticky_sessions`\" pulumi-lang-yaml=\"`stickySessions`\" pulumi-lang-java=\"`stickySessions`\" pulumi-lang-hcl=\"`sticky_sessions`\"\u003e`stickySessions`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`redirectHttp`\" pulumi-lang-dotnet=\"`RedirectHttp`\" pulumi-lang-go=\"`redirectHttp`\" pulumi-lang-python=\"`redirect_http`\" pulumi-lang-yaml=\"`redirectHttp`\" pulumi-lang-java=\"`redirectHttp`\" pulumi-lang-hcl=\"`redirect_http`\"\u003e`redirectHttp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`proxyProtocol`\" pulumi-lang-dotnet=\"`ProxyProtocol`\" pulumi-lang-go=\"`proxyProtocol`\" pulumi-lang-python=\"`proxy_protocol`\" pulumi-lang-yaml=\"`proxyProtocol`\" pulumi-lang-java=\"`proxyProtocol`\" pulumi-lang-hcl=\"`proxy_protocol`\"\u003e`proxyProtocol`\u003c/span\u003e.\n" }, "proxyProtocol": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerServiceProxyProtocol:LoadBalancerServiceProxyProtocol" } ], "description": "The PROXY protocol version the targets accept, or 'disabled'. A 'udp' service can't use it. Valid values: 'disabled', 'v1', 'v2'. Defaults to 'disabled'.\n" }, "redirectHttp": { "type": "boolean", "description": "Whether HTTP requests are redirected to this HTTPS service. Only 'https' services can redirect. Defaults to false.\n" }, "stickyCookieLifetimeSeconds": { "type": "integer", "description": "How long the sticky session cookie lasts, 1–86400 seconds. Defaults to '300'.\n" }, "stickyCookieName": { "type": "string", "description": "The name of the sticky session cookie, 1–64 letters, digits, underscores, dots or hyphens. Defaults to `BSLBSTICKY`.\n" }, "stickySessions": { "type": "boolean", "description": "Whether a cookie sends each client to the same target. Only 'http' and 'https' services can use sticky sessions. Defaults to false.\n" } }, "requiredInputs": [ "destinationPort", "listenPort", "loadBalancerId", "protocol" ], "stateInputs": { "description": "Input properties used for looking up and filtering LoadBalancerService resources.\n", "properties": { "certificateIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the certificates the service presents. Get them via [List certificates](https://betterstack.com/docs/cloud/api/certificates/list-certificates/). Each certificate must be in the load balancer's team. An 'https' service requires at least one certificate. An update replaces the whole list.\n" }, "createdAt": { "type": "string", "description": "When the service was created.\n" }, "destinationPort": { "type": "integer", "description": "The port on the targets that traffic goes to, 1–65535.\n" }, "healthCheck": { "$ref": "#/types/betterstack:index/LoadBalancerServiceHealthCheck:LoadBalancerServiceHealthCheck", "description": "How the service checks that its targets are healthy. An update changes only the health check fields you send.\n" }, "httpTimeoutSeconds": { "type": "integer", "description": "How long the service waits for a client or a target to send data during an HTTP request, in seconds, 5–600. Only 'http' and 'https' services use it. Defaults to '50'.\n" }, "listenPort": { "type": "integer", "description": "The port the service listens on, 1–65535. Can't be '8402' or '9901', which the load balancer uses itself. A 'tcp' and a 'udp' service can use the same port.\n" }, "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" }, "protocol": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerServiceProtocol:LoadBalancerServiceProtocol" } ], "description": "The protocol the service listens for. 'tcp': Forwards TCP connections. 'http': Forwards HTTP requests. 'https': Decrypts HTTPS traffic with the service's certificates and forwards HTTP requests. An 'https' service requires at least one certificate in \u003cspan pulumi-lang-nodejs=\"`certificateIds`\" pulumi-lang-dotnet=\"`CertificateIds`\" pulumi-lang-go=\"`certificateIds`\" pulumi-lang-python=\"`certificate_ids`\" pulumi-lang-yaml=\"`certificateIds`\" pulumi-lang-java=\"`certificateIds`\" pulumi-lang-hcl=\"`certificate_ids`\"\u003e`certificateIds`\u003c/span\u003e. 'udp': Forwards UDP traffic. A 'udp' service can't use certificates, \u003cspan pulumi-lang-nodejs=\"`stickySessions`\" pulumi-lang-dotnet=\"`StickySessions`\" pulumi-lang-go=\"`stickySessions`\" pulumi-lang-python=\"`sticky_sessions`\" pulumi-lang-yaml=\"`stickySessions`\" pulumi-lang-java=\"`stickySessions`\" pulumi-lang-hcl=\"`sticky_sessions`\"\u003e`stickySessions`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`redirectHttp`\" pulumi-lang-dotnet=\"`RedirectHttp`\" pulumi-lang-go=\"`redirectHttp`\" pulumi-lang-python=\"`redirect_http`\" pulumi-lang-yaml=\"`redirectHttp`\" pulumi-lang-java=\"`redirectHttp`\" pulumi-lang-hcl=\"`redirect_http`\"\u003e`redirectHttp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`proxyProtocol`\" pulumi-lang-dotnet=\"`ProxyProtocol`\" pulumi-lang-go=\"`proxyProtocol`\" pulumi-lang-python=\"`proxy_protocol`\" pulumi-lang-yaml=\"`proxyProtocol`\" pulumi-lang-java=\"`proxyProtocol`\" pulumi-lang-hcl=\"`proxy_protocol`\"\u003e`proxyProtocol`\u003c/span\u003e.\n" }, "proxyProtocol": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerServiceProxyProtocol:LoadBalancerServiceProxyProtocol" } ], "description": "The PROXY protocol version the targets accept, or 'disabled'. A 'udp' service can't use it. Valid values: 'disabled', 'v1', 'v2'. Defaults to 'disabled'.\n" }, "redirectHttp": { "type": "boolean", "description": "Whether HTTP requests are redirected to this HTTPS service. Only 'https' services can redirect. Defaults to false.\n" }, "stickyCookieLifetimeSeconds": { "type": "integer", "description": "How long the sticky session cookie lasts, 1–86400 seconds. Defaults to '300'.\n" }, "stickyCookieName": { "type": "string", "description": "The name of the sticky session cookie, 1–64 letters, digits, underscores, dots or hyphens. Defaults to `BSLBSTICKY`.\n" }, "stickySessions": { "type": "boolean", "description": "Whether a cookie sends each client to the same target. Only 'http' and 'https' services can use sticky sessions. Defaults to false.\n" }, "targetHealths": { "type": "array", "items": { "$ref": "#/types/betterstack:index/LoadBalancerServiceTargetHealth:LoadBalancerServiceTargetHealth" }, "description": "The latest health of each target, updated about every 30 seconds.\n" }, "updatedAt": { "type": "string", "description": "When the service was last updated.\n" } }, "type": "object" } }, "betterstack:index/loadBalancerTarget:LoadBalancerTarget": { "description": "A server, or every server with a set of tags, that a load balancer sends traffic to.\n\n\u003e Better Stack can't update a load balancer target in place, so changing any argument replaces it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.LoadBalancer(\"example\", {\n name: \"example\",\n type: \"LB1\",\n teamId: \"t123\",\n});\nconst exampleLoadBalancerTarget = new betterstack.LoadBalancerTarget(\"example\", {\n loadBalancerId: example.id,\n type: betterstack.LoadBalancerTargetType.LabelSelector,\n selector: {\n role: \"web\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.LoadBalancer(\"example\",\n name=\"example\",\n type=\"LB1\",\n team_id=\"t123\")\nexample_load_balancer_target = betterstack.LoadBalancerTarget(\"example\",\n load_balancer_id=example.id,\n type=betterstack.LoadBalancerTargetType.LABEL_SELECTOR,\n selector={\n \"role\": \"web\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.LoadBalancer(\"example\", new()\n {\n Name = \"example\",\n Type = \"LB1\",\n TeamId = \"t123\",\n });\n\n var exampleLoadBalancerTarget = new BetterStack.LoadBalancerTarget(\"example\", new()\n {\n LoadBalancerId = example.Id,\n Type = BetterStack.LoadBalancerTargetType.LabelSelector,\n Selector = new Dictionary\u003cstring, object?\u003e\n {\n [\"role\"] = \"web\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewLoadBalancer(ctx, \"example\", \u0026betterstack.LoadBalancerArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"LB1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewLoadBalancerTarget(ctx, \"example\", \u0026betterstack.LoadBalancerTargetArgs{\n\t\t\tLoadBalancerId: example.ID(),\n\t\t\tType: pulumi.String(betterstack.LoadBalancerTargetTypeLabelSelector),\n\t\t\tSelector: pulumi.Any(map[string]interface{}{\n\t\t\t\t\"role\": \"web\",\n\t\t\t}),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_load_balancer\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"LB1\"\n team_id = \"t123\"\n}\nresource \"betterstack_load_balancer_target\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n load_balancer_id = betterstack_load_balancer.example.id\n type = \"label_selector\"\n selector = {\n \"role\" = \"web\"\n }\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.LoadBalancer;\nimport com.betterstack.pulumi.LoadBalancerArgs;\nimport com.betterstack.pulumi.LoadBalancerTarget;\nimport com.betterstack.pulumi.LoadBalancerTargetArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new LoadBalancer(\"example\", LoadBalancerArgs.builder()\n .name(\"example\")\n .type(\"LB1\")\n .teamId(\"t123\")\n .build());\n\n var exampleLoadBalancerTarget = new LoadBalancerTarget(\"exampleLoadBalancerTarget\", LoadBalancerTargetArgs.builder()\n .loadBalancerId(example.id())\n .type(\"label_selector\")\n .selector(Map.of(\"role\", \"web\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:LoadBalancer\n properties:\n name: example\n type: LB1\n teamId: t123\n exampleLoadBalancerTarget:\n type: betterstack:LoadBalancerTarget\n name: example\n properties:\n loadBalancerId: ${example.id}\n type: label_selector\n selector:\n role: web\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing load balancer target by its ID as `load_balancer_id/id`.\n\n```sh\n$ pulumi import betterstack:index/loadBalancerTarget:LoadBalancerTarget example \u003cload_balancer_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the target was added.\n" }, "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" }, "selector": { "$ref": "pulumi.json#/Any", "description": "The tags a server must have to receive traffic, as string pairs. A server must have every pair. Keys and values can't be empty.\n" }, "serverId": { "type": "string", "description": "The ID of the server to send traffic to. The server must be in the load balancer's team. A load balancer can have each server as a target once.\n" }, "type": { "type": "string", "description": "What the target points at. 'server': One server. Send \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. 'label_selector': Every server that has the tags in \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. Send \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the target was last updated.\n" }, "usePrivateIp": { "type": "boolean", "description": "Whether to send traffic to the servers' private IP on a network they share with the load balancer, instead of their public IP. Defaults to false.\n" } }, "required": [ "createdAt", "loadBalancerId", "type", "updatedAt", "usePrivateIp" ], "inputProperties": { "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" }, "selector": { "$ref": "pulumi.json#/Any", "description": "The tags a server must have to receive traffic, as string pairs. A server must have every pair. Keys and values can't be empty.\n" }, "serverId": { "type": "string", "description": "The ID of the server to send traffic to. The server must be in the load balancer's team. A load balancer can have each server as a target once.\n" }, "type": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerTargetType:LoadBalancerTargetType" } ], "description": "What the target points at. 'server': One server. Send \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. 'label_selector': Every server that has the tags in \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. Send \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e.\n" }, "usePrivateIp": { "type": "boolean", "description": "Whether to send traffic to the servers' private IP on a network they share with the load balancer, instead of their public IP. Defaults to false.\n" } }, "requiredInputs": [ "loadBalancerId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering LoadBalancerTarget resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the target was added.\n" }, "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" }, "selector": { "$ref": "pulumi.json#/Any", "description": "The tags a server must have to receive traffic, as string pairs. A server must have every pair. Keys and values can't be empty.\n" }, "serverId": { "type": "string", "description": "The ID of the server to send traffic to. The server must be in the load balancer's team. A load balancer can have each server as a target once.\n" }, "type": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/loadBalancerTargetType:LoadBalancerTargetType" } ], "description": "What the target points at. 'server': One server. Send \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. 'label_selector': Every server that has the tags in \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. Send \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e.\n" }, "updatedAt": { "type": "string", "description": "When the target was last updated.\n" }, "usePrivateIp": { "type": "boolean", "description": "Whether to send traffic to the servers' private IP on a network they share with the load balancer, instead of their public IP. Defaults to false.\n" } }, "type": "object" } }, "betterstack:index/metadata:Metadata": { "description": "Metadata is a key with one or more values that you attach to a monitor, heartbeat, incident or integration, such as the team that owns it.\n\n## Example Usage\n\n### Tag a monitor with the team that owns it\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst website = new betterstack.Monitor(\"website\", {\n url: \"https://uptime.betterstack.com\",\n pronounceableName: \"Website\",\n});\nconst owner = new betterstack.Metadata(\"owner\", {\n ownerType: \"Monitor\",\n ownerId: website.id,\n key: \"Owner\",\n values: [{\n type: \"String\",\n value: \"Platform team\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nwebsite = betterstack.Monitor(\"website\",\n url=\"https://uptime.betterstack.com\",\n pronounceable_name=\"Website\")\nowner = betterstack.Metadata(\"owner\",\n owner_type=\"Monitor\",\n owner_id=website.id,\n key=\"Owner\",\n values=[{\n \"type\": \"String\",\n \"value\": \"Platform team\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var website = new BetterStack.Monitor(\"website\", new()\n {\n Url = \"https://uptime.betterstack.com\",\n PronounceableName = \"Website\",\n });\n\n var owner = new BetterStack.Metadata(\"owner\", new()\n {\n OwnerType = \"Monitor\",\n OwnerId = website.Id,\n Key = \"Owner\",\n Values = new[]\n {\n new BetterStack.Inputs.MetadataValueArgs\n {\n Type = \"String\",\n Value = \"Platform team\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twebsite, err := betterstack.NewMonitor(ctx, \"website\", \u0026betterstack.MonitorArgs{\n\t\t\tUrl: pulumi.String(\"https://uptime.betterstack.com\"),\n\t\t\tPronounceableName: pulumi.String(\"Website\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewMetadata(ctx, \"owner\", \u0026betterstack.MetadataArgs{\n\t\t\tOwnerType: pulumi.String(\"Monitor\"),\n\t\t\tOwnerId: website.ID(),\n\t\t\tKey: pulumi.String(\"Owner\"),\n\t\t\tValues: betterstack.MetadataValueArray{\n\t\t\t\t\u0026betterstack.MetadataValueArgs{\n\t\t\t\t\tType: pulumi.String(\"String\"),\n\t\t\t\t\tValue: pulumi.String(\"Platform team\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_monitor\" \"website\" {\n lifecycle {\n create_before_destroy = true\n }\n url = \"https://uptime.betterstack.com\"\n pronounceable_name = \"Website\"\n}\nresource \"betterstack_metadata\" \"owner\" {\n lifecycle {\n create_before_destroy = true\n }\n owner_type = \"Monitor\"\n owner_id = betterstack_monitor.website.id\n key = \"Owner\"\n values = [{\n type = \"String\"\n value = \"Platform team\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Monitor;\nimport com.betterstack.pulumi.MonitorArgs;\nimport com.betterstack.pulumi.Metadata;\nimport com.betterstack.pulumi.MetadataArgs;\nimport com.betterstack.pulumi.inputs.MetadataValueArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var website = new Monitor(\"website\", MonitorArgs.builder()\n .url(\"https://uptime.betterstack.com\")\n .pronounceableName(\"Website\")\n .build());\n\n var owner = new Metadata(\"owner\", MetadataArgs.builder()\n .ownerType(\"Monitor\")\n .ownerId(website.id())\n .key(\"Owner\")\n .values(MetadataValueArgs.builder()\n .type(\"String\")\n .value(\"Platform team\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n website:\n type: betterstack:Monitor\n properties:\n url: https://uptime.betterstack.com\n pronounceableName: Website\n owner:\n type: betterstack:Metadata\n properties:\n ownerType: Monitor\n ownerId: ${website.id}\n key: Owner\n values:\n - type: String\n value: Platform team\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Point a monitor at the escalation policy that owns it\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst checkout = new betterstack.EscalationPolicy(\"checkout\", {\n name: \"Checkout on-call\",\n steps: [{\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n }],\n});\nconst checkoutMonitor = new betterstack.Monitor(\"checkout\", {\n url: \"https://uptime.betterstack.com\",\n pronounceableName: \"Checkout\",\n});\nconst escalation = new betterstack.Metadata(\"escalation\", {\n ownerType: \"Monitor\",\n ownerId: checkoutMonitor.id,\n key: \"Escalation policy\",\n values: [{\n type: \"EscalationPolicy\",\n itemId: checkout.id,\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\ncheckout = betterstack.EscalationPolicy(\"checkout\",\n name=\"Checkout on-call\",\n steps=[{\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n }])\ncheckout_monitor = betterstack.Monitor(\"checkout\",\n url=\"https://uptime.betterstack.com\",\n pronounceable_name=\"Checkout\")\nescalation = betterstack.Metadata(\"escalation\",\n owner_type=\"Monitor\",\n owner_id=checkout_monitor.id,\n key=\"Escalation policy\",\n values=[{\n \"type\": \"EscalationPolicy\",\n \"item_id\": checkout.id,\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var checkout = new BetterStack.EscalationPolicy(\"checkout\", new()\n {\n Name = \"Checkout on-call\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n },\n });\n\n var checkoutMonitor = new BetterStack.Monitor(\"checkout\", new()\n {\n Url = \"https://uptime.betterstack.com\",\n PronounceableName = \"Checkout\",\n });\n\n var escalation = new BetterStack.Metadata(\"escalation\", new()\n {\n OwnerType = \"Monitor\",\n OwnerId = checkoutMonitor.Id,\n Key = \"Escalation policy\",\n Values = new[]\n {\n new BetterStack.Inputs.MetadataValueArgs\n {\n Type = \"EscalationPolicy\",\n ItemId = checkout.Id,\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcheckout, err := betterstack.NewEscalationPolicy(ctx, \"checkout\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"Checkout on-call\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcheckoutMonitor, err := betterstack.NewMonitor(ctx, \"checkout\", \u0026betterstack.MonitorArgs{\n\t\t\tUrl: pulumi.String(\"https://uptime.betterstack.com\"),\n\t\t\tPronounceableName: pulumi.String(\"Checkout\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewMetadata(ctx, \"escalation\", \u0026betterstack.MetadataArgs{\n\t\t\tOwnerType: pulumi.String(\"Monitor\"),\n\t\t\tOwnerId: checkoutMonitor.ID(),\n\t\t\tKey: pulumi.String(\"Escalation policy\"),\n\t\t\tValues: betterstack.MetadataValueArray{\n\t\t\t\t\u0026betterstack.MetadataValueArgs{\n\t\t\t\t\tType: pulumi.String(\"EscalationPolicy\"),\n\t\t\t\t\tItemId: checkout.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"checkout\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Checkout on-call\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }]\n}\nresource \"betterstack_monitor\" \"checkout\" {\n lifecycle {\n create_before_destroy = true\n }\n url = \"https://uptime.betterstack.com\"\n pronounceable_name = \"Checkout\"\n}\nresource \"betterstack_metadata\" \"escalation\" {\n lifecycle {\n create_before_destroy = true\n }\n owner_type = \"Monitor\"\n owner_id = betterstack_monitor.checkout.id\n key = \"Escalation policy\"\n values = [{\n type = \"EscalationPolicy\"\n item_id = betterstack_escalation_policy.checkout.id\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.Monitor;\nimport com.betterstack.pulumi.MonitorArgs;\nimport com.betterstack.pulumi.Metadata;\nimport com.betterstack.pulumi.MetadataArgs;\nimport com.betterstack.pulumi.inputs.MetadataValueArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var checkout = new EscalationPolicy(\"checkout\", EscalationPolicyArgs.builder()\n .name(\"Checkout on-call\")\n .steps(EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build())\n .build());\n\n var checkoutMonitor = new Monitor(\"checkoutMonitor\", MonitorArgs.builder()\n .url(\"https://uptime.betterstack.com\")\n .pronounceableName(\"Checkout\")\n .build());\n\n var escalation = new Metadata(\"escalation\", MetadataArgs.builder()\n .ownerType(\"Monitor\")\n .ownerId(checkoutMonitor.id())\n .key(\"Escalation policy\")\n .values(MetadataValueArgs.builder()\n .type(\"EscalationPolicy\")\n .itemId(checkout.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n checkout:\n type: betterstack:EscalationPolicy\n properties:\n name: Checkout on-call\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n checkoutMonitor:\n type: betterstack:Monitor\n name: checkout\n properties:\n url: https://uptime.betterstack.com\n pronounceableName: Checkout\n escalation:\n type: betterstack:Metadata\n properties:\n ownerType: Monitor\n ownerId: ${checkoutMonitor.id}\n key: Escalation policy\n values:\n - type: EscalationPolicy\n itemId: ${checkout.id}\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The \u003cspan pulumi-lang-nodejs=\"`ownerId`\" pulumi-lang-dotnet=\"`OwnerId`\" pulumi-lang-go=\"`ownerId`\" pulumi-lang-python=\"`owner_id`\" pulumi-lang-yaml=\"`ownerId`\" pulumi-lang-java=\"`ownerId`\" pulumi-lang-hcl=\"`owner_id`\"\u003e`ownerId`\u003c/span\u003e attribute is the object's ID, as its own endpoints return it. Some \u003cspan pulumi-lang-nodejs=\"`ownerType`\" pulumi-lang-dotnet=\"`OwnerType`\" pulumi-lang-go=\"`ownerType`\" pulumi-lang-python=\"`owner_type`\" pulumi-lang-yaml=\"`ownerType`\" pulumi-lang-java=\"`ownerType`\" pulumi-lang-hcl=\"`owner_type`\"\u003e`ownerType`\u003c/span\u003e values don't match a resource name in this API. For example, `WebhookIntegration` covers integrations such as Datadog, Grafana, Prometheus and AWS CloudWatch.\n\n\u003e Sending 'metadata' when you create or update a monitor, heartbeat or integration replaces all of its metadata keys, including keys set here. Edit an object's metadata either here or through its 'metadata' field, not both.\n\n\u003e A value is `{type: \"String\", value: \"...\"}` or a reference to an item in the organization. An item is looked up by `{type: \u003cItemType\u003e, item_id: \u003cid\u003e}`, `{type:, name:}` or `{type: \"User\", email:}`. Every response returns a reference as `{type:, item_id:, name:}`, plus \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e for a User. A reference's type is one of `User`, `Team`, `EscalationPolicy`, `OnCallSchedule`, `Monitor`, `SlackIntegration`, `LinearIntegration`, `JiraIntegration`, `MicrosoftTeamsIntegration`, `ZapierZap`, `OutgoingWebhook`, `PagerDutyIntegration` or `Source`. A team's \u003cspan pulumi-lang-nodejs=\"`itemId`\" pulumi-lang-dotnet=\"`ItemId`\" pulumi-lang-go=\"`itemId`\" pulumi-lang-python=\"`item_id`\" pulumi-lang-yaml=\"`itemId`\" pulumi-lang-java=\"`itemId`\" pulumi-lang-hcl=\"`item_id`\"\u003e`itemId`\u003c/span\u003e is its ID starting with 't', such as 't123', and is accepted the same way.\n\n## Import\n\nImport an existing metadata by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`ownerType`\" pulumi-lang-dotnet=\"`OwnerType`\" pulumi-lang-go=\"`ownerType`\" pulumi-lang-python=\"`owner_type`\" pulumi-lang-yaml=\"`ownerType`\" pulumi-lang-java=\"`ownerType`\" pulumi-lang-hcl=\"`owner_type`\"\u003e`ownerType`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`ownerId`\" pulumi-lang-dotnet=\"`OwnerId`\" pulumi-lang-go=\"`ownerId`\" pulumi-lang-python=\"`owner_id`\" pulumi-lang-yaml=\"`ownerId`\" pulumi-lang-java=\"`ownerId`\" pulumi-lang-hcl=\"`owner_id`\"\u003e`ownerId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`key`\" pulumi-lang-dotnet=\"`Key`\" pulumi-lang-go=\"`key`\" pulumi-lang-python=\"`key`\" pulumi-lang-yaml=\"`key`\" pulumi-lang-java=\"`key`\" pulumi-lang-hcl=\"`key`\"\u003e`key`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/metadata:Metadata example 12345\n```\n\n", "properties": { "key": { "type": "string", "description": "Metadata key. Renaming it keeps the entry's ID and values.\n" }, "mode": { "type": "string", "description": "What create does when the object already has this key. Defaults to 'replace'. Better Stack never returns it, so Pulumi keeps the value you set. 'replace': Overwrites the key's values. 'merge': Adds the new values to the key and skips duplicates.\n" }, "ownerId": { "type": "string", "description": "ID of the object this metadata is attached to.\n" }, "ownerType": { "type": "string", "description": "Type of object this metadata is attached to, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`. Create and update accept every type except `CallRouting`. Changing it together with \u003cspan pulumi-lang-nodejs=\"`ownerId`\" pulumi-lang-dotnet=\"`OwnerId`\" pulumi-lang-go=\"`ownerId`\" pulumi-lang-python=\"`owner_id`\" pulumi-lang-yaml=\"`ownerId`\" pulumi-lang-java=\"`ownerId`\" pulumi-lang-hcl=\"`owner_id`\"\u003e`ownerId`\u003c/span\u003e moves the key to another object.\n" }, "teamId": { "type": "string", "description": "Team that owns the object this metadata is attached to, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the object this metadata is attached to.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MetadataValue:MetadataValue" }, "description": "Values attached to the key. Required on create. An update replaces all current values, and an empty list removes the key.\n" } }, "required": [ "key", "mode", "ownerId", "ownerType", "teamId", "teamName", "values" ], "inputProperties": { "key": { "type": "string", "description": "Metadata key. Renaming it keeps the entry's ID and values.\n" }, "mode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/metadataMode:MetadataMode" } ], "description": "What create does when the object already has this key. Defaults to 'replace'. Better Stack never returns it, so Pulumi keeps the value you set. 'replace': Overwrites the key's values. 'merge': Adds the new values to the key and skips duplicates.\n" }, "ownerId": { "type": "string", "description": "ID of the object this metadata is attached to.\n" }, "ownerType": { "type": "string", "description": "Type of object this metadata is attached to, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`. Create and update accept every type except `CallRouting`. Changing it together with \u003cspan pulumi-lang-nodejs=\"`ownerId`\" pulumi-lang-dotnet=\"`OwnerId`\" pulumi-lang-go=\"`ownerId`\" pulumi-lang-python=\"`owner_id`\" pulumi-lang-yaml=\"`ownerId`\" pulumi-lang-java=\"`ownerId`\" pulumi-lang-hcl=\"`owner_id`\"\u003e`ownerId`\u003c/span\u003e moves the key to another object.\n" }, "teamId": { "type": "string", "description": "Team that owns the object this metadata is attached to, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MetadataValue:MetadataValue" }, "description": "Values attached to the key. Required on create. An update replaces all current values, and an empty list removes the key.\n" } }, "requiredInputs": [ "key", "ownerId", "ownerType", "values" ], "stateInputs": { "description": "Input properties used for looking up and filtering Metadata resources.\n", "properties": { "key": { "type": "string", "description": "Metadata key. Renaming it keeps the entry's ID and values.\n" }, "mode": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/metadataMode:MetadataMode" } ], "description": "What create does when the object already has this key. Defaults to 'replace'. Better Stack never returns it, so Pulumi keeps the value you set. 'replace': Overwrites the key's values. 'merge': Adds the new values to the key and skips duplicates.\n" }, "ownerId": { "type": "string", "description": "ID of the object this metadata is attached to.\n" }, "ownerType": { "type": "string", "description": "Type of object this metadata is attached to, one of `Monitor`, `Heartbeat`, `Incident`, `WebhookIntegration`, `EmailIntegration`, `IncomingWebhook`, `AmazonSnsIntegration` or `CallRouting`. Create and update accept every type except `CallRouting`. Changing it together with \u003cspan pulumi-lang-nodejs=\"`ownerId`\" pulumi-lang-dotnet=\"`OwnerId`\" pulumi-lang-go=\"`ownerId`\" pulumi-lang-python=\"`owner_id`\" pulumi-lang-yaml=\"`ownerId`\" pulumi-lang-java=\"`ownerId`\" pulumi-lang-hcl=\"`owner_id`\"\u003e`ownerId`\u003c/span\u003e moves the key to another object.\n" }, "teamId": { "type": "string", "description": "Team that owns the object this metadata is attached to, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the object this metadata is attached to.\n" }, "values": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MetadataValue:MetadataValue" }, "description": "Values attached to the key. Required on create. An update replaces all current values, and an empty list removes the key.\n" } }, "type": "object" } }, "betterstack:index/monitor:Monitor": { "description": "An uptime monitor that periodically checks a URL, host, or service and alerts on failures.\n\n\u003e Destroying a monitor deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Check a website every 30 seconds\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst website = new betterstack.Monitor(\"website\", {\n url: \"https://uptime.betterstack.com\",\n monitorType: betterstack.MonitorType.Status,\n pronounceableName: \"Uptime homepage\",\n checkFrequency: 30,\n confirmationPeriod: 60,\n regions: [\n \"us\",\n \"eu\",\n ],\n sslExpiration: 14,\n domainExpiration: 14,\n email: true,\n push: true,\n teamWait: 180,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nwebsite = betterstack.Monitor(\"website\",\n url=\"https://uptime.betterstack.com\",\n monitor_type=betterstack.MonitorType.STATUS,\n pronounceable_name=\"Uptime homepage\",\n check_frequency=30,\n confirmation_period=60,\n regions=[\n \"us\",\n \"eu\",\n ],\n ssl_expiration=14,\n domain_expiration=14,\n email=True,\n push=True,\n team_wait=180)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var website = new BetterStack.Monitor(\"website\", new()\n {\n Url = \"https://uptime.betterstack.com\",\n MonitorType = BetterStack.MonitorType.Status,\n PronounceableName = \"Uptime homepage\",\n CheckFrequency = 30,\n ConfirmationPeriod = 60,\n Regions = new[]\n {\n \"us\",\n \"eu\",\n },\n SslExpiration = 14,\n DomainExpiration = 14,\n Email = true,\n Push = true,\n TeamWait = 180,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewMonitor(ctx, \"website\", \u0026betterstack.MonitorArgs{\n\t\t\tUrl: pulumi.String(\"https://uptime.betterstack.com\"),\n\t\t\tMonitorType: pulumi.String(betterstack.MonitorTypeStatus),\n\t\t\tPronounceableName: pulumi.String(\"Uptime homepage\"),\n\t\t\tCheckFrequency: pulumi.Int(30),\n\t\t\tConfirmationPeriod: pulumi.Int(60),\n\t\t\tRegions: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"us\"),\n\t\t\t\tpulumi.String(\"eu\"),\n\t\t\t},\n\t\t\tSslExpiration: pulumi.Int(14),\n\t\t\tDomainExpiration: pulumi.Int(14),\n\t\t\tEmail: pulumi.Bool(true),\n\t\t\tPush: pulumi.Bool(true),\n\t\t\tTeamWait: pulumi.Int(180),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_monitor\" \"website\" {\n lifecycle {\n create_before_destroy = true\n }\n url = \"https://uptime.betterstack.com\"\n monitor_type = \"status\"\n pronounceable_name = \"Uptime homepage\"\n check_frequency = 30\n confirmation_period = 60\n regions = [\"us\", \"eu\"]\n ssl_expiration = 14\n domain_expiration = 14\n email = true\n push = true\n team_wait = 180\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Monitor;\nimport com.betterstack.pulumi.MonitorArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var website = new Monitor(\"website\", MonitorArgs.builder()\n .url(\"https://uptime.betterstack.com\")\n .monitorType(\"status\")\n .pronounceableName(\"Uptime homepage\")\n .checkFrequency(30)\n .confirmationPeriod(60)\n .regions( \n \"us\",\n \"eu\")\n .sslExpiration(14)\n .domainExpiration(14)\n .email(true)\n .push(true)\n .teamWait(180)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n website:\n type: betterstack:Monitor\n properties:\n url: https://uptime.betterstack.com\n monitorType: status\n pronounceableName: Uptime homepage\n checkFrequency: 30\n confirmationPeriod: 60\n regions:\n - us\n - eu\n sslExpiration: 14\n domainExpiration: 14\n email: true\n push: true\n teamWait: 180\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Look for a keyword, alert through an escalation policy and pause at night\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst high = betterstack.getSeverity({\n name: \"High severity\",\n});\nconst onCall = new betterstack.EscalationPolicy(\"on_call\", {\n name: \"On-call, then the whole team\",\n steps: [\n {\n type: \"escalation\",\n waitBefore: 0,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"current_on_call\",\n }],\n },\n {\n type: \"escalation\",\n waitBefore: 600,\n severityId: high.then(high =\u003e high.id),\n stepMembers: [{\n type: \"entire_team\",\n }],\n },\n ],\n});\nconst pricing = new betterstack.Monitor(\"pricing\", {\n url: \"https://betterstack.com/pricing\",\n monitorType: betterstack.MonitorType.Keyword,\n requiredKeyword: \"Pricing\",\n pronounceableName: \"Pricing page\",\n checkFrequency: 60,\n recoveryPeriod: 300,\n requestHeaders: [{\n name: \"Accept-Language\",\n value: \"en\",\n }],\n escalationPolicyId: onCall.id,\n maintenanceFrom: \"02:00:00\",\n maintenanceTo: \"05:00:00\",\n maintenanceTimezone: \"UTC\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhigh = betterstack.get_severity(name=\"High severity\")\non_call = betterstack.EscalationPolicy(\"on_call\",\n name=\"On-call, then the whole team\",\n steps=[\n {\n \"type\": \"escalation\",\n \"wait_before\": 0,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"current_on_call\",\n }],\n },\n {\n \"type\": \"escalation\",\n \"wait_before\": 600,\n \"severity_id\": high.id,\n \"step_members\": [{\n \"type\": \"entire_team\",\n }],\n },\n ])\npricing = betterstack.Monitor(\"pricing\",\n url=\"https://betterstack.com/pricing\",\n monitor_type=betterstack.MonitorType.KEYWORD,\n required_keyword=\"Pricing\",\n pronounceable_name=\"Pricing page\",\n check_frequency=60,\n recovery_period=300,\n request_headers=[{\n \"name\": \"Accept-Language\",\n \"value\": \"en\",\n }],\n escalation_policy_id=on_call.id,\n maintenance_from=\"02:00:00\",\n maintenance_to=\"05:00:00\",\n maintenance_timezone=\"UTC\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var high = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"High severity\",\n });\n\n var onCall = new BetterStack.EscalationPolicy(\"on_call\", new()\n {\n Name = \"On-call, then the whole team\",\n Steps = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 0,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"current_on_call\",\n },\n },\n },\n new BetterStack.Inputs.EscalationPolicyStepArgs\n {\n Type = \"escalation\",\n WaitBefore = 600,\n SeverityId = high.Apply(getSeverityResult =\u003e getSeverityResult.Id),\n StepMembers = new[]\n {\n new BetterStack.Inputs.EscalationPolicyStepStepMemberArgs\n {\n Type = \"entire_team\",\n },\n },\n },\n },\n });\n\n var pricing = new BetterStack.Monitor(\"pricing\", new()\n {\n Url = \"https://betterstack.com/pricing\",\n MonitorType = BetterStack.MonitorType.Keyword,\n RequiredKeyword = \"Pricing\",\n PronounceableName = \"Pricing page\",\n CheckFrequency = 60,\n RecoveryPeriod = 300,\n RequestHeaders = new[]\n {\n new BetterStack.Inputs.MonitorRequestHeaderArgs\n {\n Name = \"Accept-Language\",\n Value = \"en\",\n },\n },\n EscalationPolicyId = onCall.Id,\n MaintenanceFrom = \"02:00:00\",\n MaintenanceTo = \"05:00:00\",\n MaintenanceTimezone = \"UTC\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\thigh, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"High severity\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tonCall, err := betterstack.NewEscalationPolicy(ctx, \"on_call\", \u0026betterstack.EscalationPolicyArgs{\n\t\t\tName: pulumi.String(\"On-call, then the whole team\"),\n\t\t\tSteps: betterstack.EscalationPolicyStepArray{\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(0),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"current_on_call\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.EscalationPolicyStepArgs{\n\t\t\t\t\tType: pulumi.String(\"escalation\"),\n\t\t\t\t\tWaitBefore: pulumi.Int(600),\n\t\t\t\t\tSeverityId: pulumi.String(high.Id),\n\t\t\t\t\tStepMembers: betterstack.EscalationPolicyStepStepMemberArray{\n\t\t\t\t\t\t\u0026betterstack.EscalationPolicyStepStepMemberArgs{\n\t\t\t\t\t\t\tType: pulumi.String(\"entire_team\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewMonitor(ctx, \"pricing\", \u0026betterstack.MonitorArgs{\n\t\t\tUrl: pulumi.String(\"https://betterstack.com/pricing\"),\n\t\t\tMonitorType: pulumi.String(betterstack.MonitorTypeKeyword),\n\t\t\tRequiredKeyword: pulumi.String(\"Pricing\"),\n\t\t\tPronounceableName: pulumi.String(\"Pricing page\"),\n\t\t\tCheckFrequency: pulumi.Int(60),\n\t\t\tRecoveryPeriod: pulumi.Int(300),\n\t\t\tRequestHeaders: betterstack.MonitorRequestHeaderArray{\n\t\t\t\t\u0026betterstack.MonitorRequestHeaderArgs{\n\t\t\t\t\tName: pulumi.String(\"Accept-Language\"),\n\t\t\t\t\tValue: pulumi.String(\"en\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEscalationPolicyId: onCall.ID(),\n\t\t\tMaintenanceFrom: pulumi.String(\"02:00:00\"),\n\t\t\tMaintenanceTo: pulumi.String(\"05:00:00\"),\n\t\t\tMaintenanceTimezone: pulumi.String(\"UTC\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"high\" {\n name = \"High severity\"\n}\n\nresource \"betterstack_escalation_policy\" \"on_call\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"On-call, then the whole team\"\n steps = [{\n type = \"escalation\"\n wait_before = 0\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"current_on_call\"\n }]\n }, {\n type = \"escalation\"\n wait_before = 600\n severity_id = data.betterstack_severity.high.id\n step_members = [{\n type = \"entire_team\"\n }]\n }]\n}\nresource \"betterstack_monitor\" \"pricing\" {\n lifecycle {\n create_before_destroy = true\n }\n url = \"https://betterstack.com/pricing\"\n monitor_type = \"keyword\"\n required_keyword = \"Pricing\"\n pronounceable_name = \"Pricing page\"\n check_frequency = 60\n recovery_period = 300\n request_headers = [{\n name = \"Accept-Language\"\n value = \"en\"\n }]\n escalation_policy_id = betterstack_escalation_policy.on_call.id\n maintenance_from = \"02:00:00\"\n maintenance_to = \"05:00:00\"\n maintenance_timezone = \"UTC\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport com.betterstack.pulumi.EscalationPolicy;\nimport com.betterstack.pulumi.EscalationPolicyArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepArgs;\nimport com.betterstack.pulumi.inputs.EscalationPolicyStepStepMemberArgs;\nimport com.betterstack.pulumi.Monitor;\nimport com.betterstack.pulumi.MonitorArgs;\nimport com.betterstack.pulumi.inputs.MonitorRequestHeaderArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var high = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"High severity\")\n .build());\n\n var onCall = new EscalationPolicy(\"onCall\", EscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .steps( \n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(0)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"current_on_call\")\n .build())\n .build(),\n EscalationPolicyStepArgs.builder()\n .type(\"escalation\")\n .waitBefore(600)\n .severityId(high.id())\n .stepMembers(EscalationPolicyStepStepMemberArgs.builder()\n .type(\"entire_team\")\n .build())\n .build())\n .build());\n\n var pricing = new Monitor(\"pricing\", MonitorArgs.builder()\n .url(\"https://betterstack.com/pricing\")\n .monitorType(\"keyword\")\n .requiredKeyword(\"Pricing\")\n .pronounceableName(\"Pricing page\")\n .checkFrequency(60)\n .recoveryPeriod(300)\n .requestHeaders(MonitorRequestHeaderArgs.builder()\n .name(\"Accept-Language\")\n .value(\"en\")\n .build())\n .escalationPolicyId(onCall.id())\n .maintenanceFrom(\"02:00:00\")\n .maintenanceTo(\"05:00:00\")\n .maintenanceTimezone(\"UTC\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n onCall:\n type: betterstack:EscalationPolicy\n name: on_call\n properties:\n name: On-call, then the whole team\n steps:\n - type: escalation\n waitBefore: 0\n severityId: ${high.id}\n stepMembers:\n - type: current_on_call\n - type: escalation\n waitBefore: 600\n severityId: ${high.id}\n stepMembers:\n - type: entire_team\n pricing:\n type: betterstack:Monitor\n properties:\n url: https://betterstack.com/pricing\n monitorType: keyword\n requiredKeyword: Pricing\n pronounceableName: Pricing page\n checkFrequency: 60\n recoveryPeriod: 300\n requestHeaders:\n - name: Accept-Language\n value: en\n escalationPolicyId: ${onCall.id}\n maintenanceFrom: 02:00:00\n maintenanceTo: 05:00:00\n maintenanceTimezone: UTC\nvariables:\n high:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: High severity\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nAt least one of \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e must be configured. The provider validates this condition before creating or updating the resource.\n\n\u003e A metadata object replaces all keys, including keys written through the metadata endpoints at `/api/v4/metadata`. Leaving metadata out keeps it unchanged, and an empty object, `{}`, clears it. Edit an object's metadata either here or through the metadata endpoints, not both.\n\n## Import\n\nImport an existing monitor by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`pronounceableName`\" pulumi-lang-dotnet=\"`PronounceableName`\" pulumi-lang-go=\"`pronounceableName`\" pulumi-lang-python=\"`pronounceable_name`\" pulumi-lang-yaml=\"`pronounceableName`\" pulumi-lang-java=\"`pronounceableName`\" pulumi-lang-hcl=\"`pronounceable_name`\"\u003e`pronounceableName`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/monitor:Monitor example 12345\n```\n\n", "properties": { "authPassword": { "type": "string", "description": "HTTP basic-auth password. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "authUsername": { "type": "string", "description": "HTTP basic-auth username. null when none is set.\n", "secret": true }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "checkFrequency": { "type": "integer", "description": "How often to check, in seconds. Must be at least the \u003cspan pulumi-lang-nodejs=\"`requestTimeout`\" pulumi-lang-dotnet=\"`RequestTimeout`\" pulumi-lang-go=\"`requestTimeout`\" pulumi-lang-python=\"`request_timeout`\" pulumi-lang-yaml=\"`requestTimeout`\" pulumi-lang-java=\"`requestTimeout`\" pulumi-lang-hcl=\"`request_timeout`\"\u003e`requestTimeout`\u003c/span\u003e. A new or changed value below the plan's shortest interval is refused with a 422. A value the monitor already has, such as one set before a plan change, can still be sent. Accepted values depend on \u003cspan pulumi-lang-nodejs=\"`monitorType`\" pulumi-lang-dotnet=\"`MonitorType`\" pulumi-lang-go=\"`monitorType`\" pulumi-lang-python=\"`monitor_type`\" pulumi-lang-yaml=\"`monitorType`\" pulumi-lang-java=\"`monitorType`\" pulumi-lang-hcl=\"`monitor_type`\"\u003e`monitorType`\u003c/span\u003e. Defaults to '180'. 'playwright': accepts '60', '180', '300', '600', '900', '1800', '3600', '21600', '43200' or '86400'. Every other type: accepts '30', '45', '60', '120', '180', '300', '600', '900' or '1800'.\n" }, "checksVersion": { "type": "string", "description": "Version of the checks engine. Always 'v2'.\n" }, "confirmationPeriod": { "type": "integer", "description": "How long to wait after a failure before starting an incident, in seconds, from '0' to '86400'. Defaults to '0'.\n" }, "createdAt": { "type": "string", "description": "When the monitor was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this monitor is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "domainExpiration": { "type": "integer", "description": "How many days before the domain expires we alert you. null turns the check off and is the default. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each. Valid values: '1', '2', '3', '7', '14', '30', '60'.\n" }, "effectiveCheckFrequency": { "type": "integer", "description": "How often the monitor actually checks, in seconds. \u003cspan pulumi-lang-nodejs=\"`effectiveCheckFrequencyReason`\" pulumi-lang-dotnet=\"`EffectiveCheckFrequencyReason`\" pulumi-lang-go=\"`effectiveCheckFrequencyReason`\" pulumi-lang-python=\"`effective_check_frequency_reason`\" pulumi-lang-yaml=\"`effectiveCheckFrequencyReason`\" pulumi-lang-java=\"`effectiveCheckFrequencyReason`\" pulumi-lang-hcl=\"`effective_check_frequency_reason`\"\u003e`effectiveCheckFrequencyReason`\u003c/span\u003e says why it differs from \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e.\n" }, "effectiveCheckFrequencyReason": { "type": "string", "description": "Why \u003cspan pulumi-lang-nodejs=\"`effectiveCheckFrequency`\" pulumi-lang-dotnet=\"`EffectiveCheckFrequency`\" pulumi-lang-go=\"`effectiveCheckFrequency`\" pulumi-lang-python=\"`effective_check_frequency`\" pulumi-lang-yaml=\"`effectiveCheckFrequency`\" pulumi-lang-java=\"`effectiveCheckFrequency`\" pulumi-lang-hcl=\"`effective_check_frequency`\"\u003e`effectiveCheckFrequency`\u003c/span\u003e differs from \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e. null when they're the same. 'slowed_down': We check less often after repeated '429' responses or timeouts. 'plan_minimum': Your plan's shortest interval between checks is longer than \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e, which was saved before the plan changed. \u003cspan pulumi-lang-nodejs=\"`requestTimeout`\" pulumi-lang-dotnet=\"`RequestTimeout`\" pulumi-lang-go=\"`requestTimeout`\" pulumi-lang-python=\"`request_timeout`\" pulumi-lang-yaml=\"`requestTimeout`\" pulumi-lang-java=\"`requestTimeout`\" pulumi-lang-hcl=\"`request_timeout`\"\u003e`requestTimeout`\u003c/span\u003e: The monitor's \u003cspan pulumi-lang-nodejs=\"`requestTimeout`\" pulumi-lang-dotnet=\"`RequestTimeout`\" pulumi-lang-go=\"`requestTimeout`\" pulumi-lang-python=\"`request_timeout`\" pulumi-lang-yaml=\"`requestTimeout`\" pulumi-lang-java=\"`requestTimeout`\" pulumi-lang-hcl=\"`request_timeout`\"\u003e`requestTimeout`\u003c/span\u003e is longer than \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "environmentVariables": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Environment variables the 'playwright' scenario can use, as name and value pairs like `{\"PASSWORD\": \"passw0rd\"}`. Better Stack returns only the names, so Pulumi keeps the values you set. A name added or removed outside Pulumi shows in the preview.\n", "secret": true }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "expectedStatusCodes": { "type": "array", "items": { "type": "integer" }, "description": "HTTP status codes from '100' to '599' that count as up. A '3xx' code needs \u003cspan pulumi-lang-nodejs=\"`followRedirects`\" pulumi-lang-dotnet=\"`FollowRedirects`\" pulumi-lang-go=\"`followRedirects`\" pulumi-lang-python=\"`follow_redirects`\" pulumi-lang-yaml=\"`followRedirects`\" pulumi-lang-java=\"`followRedirects`\" pulumi-lang-hcl=\"`follow_redirects`\"\u003e`followRedirects`\u003c/span\u003e set to false. Required for 'expected_status_code' monitors. Defaults to `[]`.\n" }, "expirationEscalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts about expiring SSL certificates and domains. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.\n" }, "followRedirects": { "type": "boolean", "description": "Whether we follow HTTP redirects. Defaults to true.\n" }, "httpMethod": { "type": "string", "description": "The HTTP method of the request. Accepts 'get', 'head', 'post', 'put', 'patch' or 'options'. Responses return the method in lowercase. 'head' can't be used with 'keyword' or 'keyword_absence' monitors. Defaults to 'get'.\n" }, "ipVersion": { "type": "string", "description": "The IP version to check over. null checks over both IPv4 and IPv6. 'ipv4': Checks over IPv4 only. 'ipv6': Checks over IPv6 only.\n" }, "lastCheckedAt": { "type": "string", "description": "When the monitor was last checked.\n" }, "maintenanceDays": { "type": "array", "items": { "type": "string" }, "description": "Days of the week the maintenance window applies to, any of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. An overnight window belongs to the day it starts. Defaults to `[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\", \"sat\", \"sun\"]`.\n" }, "maintenanceFrom": { "type": "string", "description": "Start of the daily maintenance window, when we don't check, as `HH:MM:SS`, like `01:00:00`. null when no window is set.\n" }, "maintenanceTimezone": { "type": "string", "description": "The time zone of the maintenance window, as a Rails time zone name like `Amsterdam` or its IANA ID like `Europe/Amsterdam`. null when it isn't set, which works as UTC. Defaults to `UTC`.\n" }, "maintenanceTo": { "type": "string", "description": "End of the daily maintenance window, as `HH:MM:SS`, like `03:00:00`. Required with \u003cspan pulumi-lang-nodejs=\"`maintenanceFrom`\" pulumi-lang-dotnet=\"`MaintenanceFrom`\" pulumi-lang-go=\"`maintenanceFrom`\" pulumi-lang-python=\"`maintenance_from`\" pulumi-lang-yaml=\"`maintenanceFrom`\" pulumi-lang-java=\"`maintenanceFrom`\" pulumi-lang-hcl=\"`maintenance_from`\"\u003e`maintenanceFrom`\u003c/span\u003e. null when no window is set.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/MonitorMetadata:MonitorMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "monitorGroupId": { "type": "string", "description": "ID of the monitor group this monitor belongs to.\n" }, "monitorType": { "type": "string", "description": "What the monitor checks. Defaults to 'status'. \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e: Checks that the URL returns a 2XX status code. 'expected_status_code': Checks that the URL returns one of \u003cspan pulumi-lang-nodejs=\"`expectedStatusCodes`\" pulumi-lang-dotnet=\"`ExpectedStatusCodes`\" pulumi-lang-go=\"`expectedStatusCodes`\" pulumi-lang-python=\"`expected_status_codes`\" pulumi-lang-yaml=\"`expectedStatusCodes`\" pulumi-lang-java=\"`expectedStatusCodes`\" pulumi-lang-hcl=\"`expected_status_codes`\"\u003e`expectedStatusCodes`\u003c/span\u003e. 'keyword': Checks that the page contains \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'keyword_absence': Checks that the page doesn't contain \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'ping': Pings the host in \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e. 'tcp': Checks that a TCP \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e on the host accepts connections. 'udp': Sends \u003cspan pulumi-lang-nodejs=\"`requestBody`\" pulumi-lang-dotnet=\"`RequestBody`\" pulumi-lang-go=\"`requestBody`\" pulumi-lang-python=\"`request_body`\" pulumi-lang-yaml=\"`requestBody`\" pulumi-lang-java=\"`requestBody`\" pulumi-lang-hcl=\"`request_body`\"\u003e`requestBody`\u003c/span\u003e to a UDP \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e on the host and checks that the answer contains \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'smtp': Checks for an SMTP server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'pop': Checks for a POP3 server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'imap': Checks for an IMAP server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'dns': Checks that the DNS server on the host answers a query for the domain in \u003cspan pulumi-lang-nodejs=\"`requestBody`\" pulumi-lang-dotnet=\"`RequestBody`\" pulumi-lang-go=\"`requestBody`\" pulumi-lang-python=\"`request_body`\" pulumi-lang-yaml=\"`requestBody`\" pulumi-lang-java=\"`requestBody`\" pulumi-lang-hcl=\"`request_body`\"\u003e`requestBody`\u003c/span\u003e. 'playwright': Runs the scenario in \u003cspan pulumi-lang-nodejs=\"`playwrightScript`\" pulumi-lang-dotnet=\"`PlaywrightScript`\" pulumi-lang-go=\"`playwrightScript`\" pulumi-lang-python=\"`playwright_script`\" pulumi-lang-yaml=\"`playwrightScript`\" pulumi-lang-java=\"`playwrightScript`\" pulumi-lang-hcl=\"`playwright_script`\"\u003e`playwrightScript`\u003c/span\u003e.\n" }, "paused": { "type": "boolean", "description": "Whether the monitor is paused. A paused monitor opens no incidents and sends no alerts. Set it to true to pause it or false to resume it. Defaults to false.\n" }, "pausedAt": { "type": "string", "description": "When the monitor was paused.\n" }, "playwrightScript": { "type": "string", "description": "The JavaScript source of the scenario, for 'playwright' monitors.\n" }, "port": { "type": "string", "description": "The port to check. 'tcp' and 'udp' accept one port. 'smtp' accepts '25', '465' or '587', 'pop' accepts '110' or '995', and 'imap' accepts '143' or '993', with several separated by commas like `25,465,587`. Required for 'tcp', 'udp', 'smtp', 'pop' and 'imap' monitors.\n" }, "pronounceableName": { "type": "string", "description": "The name of the monitor, which we use when we call you.\n" }, "proxyHost": { "type": "string", "description": "The host of the proxy server we send the check through, without a protocol. Can include credentials, like `user:pass@proxy.example.com`. Only for \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e, 'expected_status_code', 'keyword' and 'keyword_absence' monitors.\n" }, "proxyPort": { "type": "integer", "description": "The port of the proxy server, from '1' to '65535'. Requires \u003cspan pulumi-lang-nodejs=\"`proxyHost`\" pulumi-lang-dotnet=\"`ProxyHost`\" pulumi-lang-go=\"`proxyHost`\" pulumi-lang-python=\"`proxy_host`\" pulumi-lang-yaml=\"`proxyHost`\" pulumi-lang-java=\"`proxyHost`\" pulumi-lang-hcl=\"`proxy_host`\"\u003e`proxyHost`\u003c/span\u003e.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long checks must keep passing before the incident resolves, in seconds. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '180'.\n" }, "regions": { "type": "array", "items": { "type": "string" }, "description": "Regions to check from, as any combination of 'us', 'eu', 'as' and 'au'. When none are set, we check from all regions. Responses then list all of them.\n" }, "rememberCookies": { "type": "boolean", "description": "Whether we keep cookies when redirecting. Defaults to true.\n" }, "requestBody": { "type": "string", "description": "The body of the request. A 'dns' monitor requires it. Set it to the domain to query. A 'udp' monitor sends it as its content. Must be empty for 'get', 'head' and 'options' requests.\n" }, "requestHeaders": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MonitorRequestHeader:MonitorRequestHeader" }, "description": "Custom request headers, as a list of `{name, value}` objects. A list replaces all headers, and an empty list removes them all.\n" }, "requestTimeout": { "type": "integer", "description": "How long a check waits before it times out. The unit and accepted values depend on \u003cspan pulumi-lang-nodejs=\"`monitorType`\" pulumi-lang-dotnet=\"`MonitorType`\" pulumi-lang-go=\"`monitorType`\" pulumi-lang-python=\"`monitor_type`\" pulumi-lang-yaml=\"`monitorType`\" pulumi-lang-java=\"`monitorType`\" pulumi-lang-hcl=\"`monitor_type`\"\u003e`monitorType`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e, 'expected_status_code', 'keyword' and 'keyword_absence': in seconds, accepts '2', '3', '5', '10', '15', '30', '45', '60', '90', '120' or '180' and defaults to '30'. 'ping', 'tcp', 'udp', 'smtp', 'pop', 'imap' and 'dns': in milliseconds, accepts '500', '1000', '2000', '3000' or '5000' and defaults to '5000'. 'playwright': in seconds, accepts '15', '30', '45', '60', '120', '180', '240', '300', '360', '480', '600' or '900' and defaults to '30'.\n" }, "requiredKeyword": { "type": "string", "description": "The keyword to look for. Required for 'keyword', 'keyword_absence' and 'udp' monitors.\n" }, "scenarioName": { "type": "string", "description": "The name of a 'playwright' monitor's scenario. Required for 'playwright' monitors, and returned only for them. At least one of \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e must be configured.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sslExpiration": { "type": "integer", "description": "How many days before the SSL certificate expires we alert you. null turns the check off and is the default. Monitors of exactly the same domain share this setting, not its subdomains. For example, monitors of `example.com/a` and `example.com/b` share it, while `www.example.com` has its own. A value set on one monitor is copied to all of them, so set the same value on each. Valid values: '1', '2', '3', '7', '14', '30', '60'.\n" }, "status": { "type": "string", "description": "The monitor's current status. 'up': Checks pass. 'down': Checks fail. 'validating': The service seems back up, but the \u003cspan pulumi-lang-nodejs=\"`recoveryPeriod`\" pulumi-lang-dotnet=\"`RecoveryPeriod`\" pulumi-lang-go=\"`recoveryPeriod`\" pulumi-lang-python=\"`recovery_period`\" pulumi-lang-yaml=\"`recoveryPeriod`\" pulumi-lang-java=\"`recoveryPeriod`\" pulumi-lang-hcl=\"`recovery_period`\"\u003e`recoveryPeriod`\u003c/span\u003e hasn't passed yet. \u003cspan pulumi-lang-nodejs=\"`paused`\" pulumi-lang-dotnet=\"`Paused`\" pulumi-lang-go=\"`paused`\" pulumi-lang-python=\"`paused`\" pulumi-lang-yaml=\"`paused`\" pulumi-lang-java=\"`paused`\" pulumi-lang-hcl=\"`paused`\"\u003e`paused`\u003c/span\u003e: The monitor is paused. 'pending': The monitor waits for its first check. 'maintenance': The monitor is in a maintenance window.\n" }, "teamId": { "type": "string", "description": "Team that owns this monitor, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this monitor.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "updatedAt": { "type": "string", "description": "When the monitor was last updated.\n" }, "url": { "type": "string", "description": "The URL of your website, or the host to check for 'ping', 'tcp', 'udp', 'smtp', 'pop', 'imap' and 'dns' monitors, without a protocol. null on 'playwright' monitors. Required for every type except 'playwright', which accepts \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e instead. At least one of \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e must be configured.\n" }, "verifySsl": { "type": "boolean", "description": "Whether a check fails on an invalid SSL certificate. Defaults to true.\n" } }, "required": [ "authPassword", "authUsername", "call", "checkFrequency", "checksVersion", "confirmationPeriod", "createdAt", "criticalAlert", "deletionProtection", "domainExpiration", "effectiveCheckFrequency", "effectiveCheckFrequencyReason", "email", "environmentVariables", "expectedStatusCodes", "expirationEscalationPolicyId", "followRedirects", "httpMethod", "lastCheckedAt", "maintenanceDays", "maintenanceTimezone", "metadata", "monitorType", "paused", "pausedAt", "pronounceableName", "push", "recoveryPeriod", "regions", "rememberCookies", "requestHeaders", "requestTimeout", "scenarioName", "sms", "sslExpiration", "status", "teamId", "teamName", "updatedAt", "verifySsl" ], "inputProperties": { "authPassword": { "type": "string", "description": "HTTP basic-auth password. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "authUsername": { "type": "string", "description": "HTTP basic-auth username. null when none is set.\n", "secret": true }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "checkFrequency": { "type": "integer", "description": "How often to check, in seconds. Must be at least the \u003cspan pulumi-lang-nodejs=\"`requestTimeout`\" pulumi-lang-dotnet=\"`RequestTimeout`\" pulumi-lang-go=\"`requestTimeout`\" pulumi-lang-python=\"`request_timeout`\" pulumi-lang-yaml=\"`requestTimeout`\" pulumi-lang-java=\"`requestTimeout`\" pulumi-lang-hcl=\"`request_timeout`\"\u003e`requestTimeout`\u003c/span\u003e. A new or changed value below the plan's shortest interval is refused with a 422. A value the monitor already has, such as one set before a plan change, can still be sent. Accepted values depend on \u003cspan pulumi-lang-nodejs=\"`monitorType`\" pulumi-lang-dotnet=\"`MonitorType`\" pulumi-lang-go=\"`monitorType`\" pulumi-lang-python=\"`monitor_type`\" pulumi-lang-yaml=\"`monitorType`\" pulumi-lang-java=\"`monitorType`\" pulumi-lang-hcl=\"`monitor_type`\"\u003e`monitorType`\u003c/span\u003e. Defaults to '180'. 'playwright': accepts '60', '180', '300', '600', '900', '1800', '3600', '21600', '43200' or '86400'. Every other type: accepts '30', '45', '60', '120', '180', '300', '600', '900' or '1800'.\n" }, "confirmationPeriod": { "type": "integer", "description": "How long to wait after a failure before starting an incident, in seconds, from '0' to '86400'. Defaults to '0'.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this monitor is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "domainExpiration": { "type": "integer", "description": "How many days before the domain expires we alert you. null turns the check off and is the default. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each. Valid values: '1', '2', '3', '7', '14', '30', '60'.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "environmentVariables": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Environment variables the 'playwright' scenario can use, as name and value pairs like `{\"PASSWORD\": \"passw0rd\"}`. Better Stack returns only the names, so Pulumi keeps the values you set. A name added or removed outside Pulumi shows in the preview.\n", "secret": true }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "expectedStatusCodes": { "type": "array", "items": { "type": "integer" }, "description": "HTTP status codes from '100' to '599' that count as up. A '3xx' code needs \u003cspan pulumi-lang-nodejs=\"`followRedirects`\" pulumi-lang-dotnet=\"`FollowRedirects`\" pulumi-lang-go=\"`followRedirects`\" pulumi-lang-python=\"`follow_redirects`\" pulumi-lang-yaml=\"`followRedirects`\" pulumi-lang-java=\"`followRedirects`\" pulumi-lang-hcl=\"`follow_redirects`\"\u003e`followRedirects`\u003c/span\u003e set to false. Required for 'expected_status_code' monitors. Defaults to `[]`.\n" }, "expirationEscalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts about expiring SSL certificates and domains. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.\n" }, "followRedirects": { "type": "boolean", "description": "Whether we follow HTTP redirects. Defaults to true.\n" }, "httpMethod": { "type": "string", "description": "The HTTP method of the request. Accepts 'get', 'head', 'post', 'put', 'patch' or 'options'. Responses return the method in lowercase. 'head' can't be used with 'keyword' or 'keyword_absence' monitors. Defaults to 'get'.\n" }, "ipVersion": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/monitorIpVersion:MonitorIpVersion" } ], "description": "The IP version to check over. null checks over both IPv4 and IPv6. 'ipv4': Checks over IPv4 only. 'ipv6': Checks over IPv6 only.\n" }, "maintenanceDays": { "type": "array", "items": { "type": "string" }, "description": "Days of the week the maintenance window applies to, any of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. An overnight window belongs to the day it starts. Defaults to `[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\", \"sat\", \"sun\"]`.\n" }, "maintenanceFrom": { "type": "string", "description": "Start of the daily maintenance window, when we don't check, as `HH:MM:SS`, like `01:00:00`. null when no window is set.\n" }, "maintenanceTimezone": { "type": "string", "description": "The time zone of the maintenance window, as a Rails time zone name like `Amsterdam` or its IANA ID like `Europe/Amsterdam`. null when it isn't set, which works as UTC. Defaults to `UTC`.\n" }, "maintenanceTo": { "type": "string", "description": "End of the daily maintenance window, as `HH:MM:SS`, like `03:00:00`. Required with \u003cspan pulumi-lang-nodejs=\"`maintenanceFrom`\" pulumi-lang-dotnet=\"`MaintenanceFrom`\" pulumi-lang-go=\"`maintenanceFrom`\" pulumi-lang-python=\"`maintenance_from`\" pulumi-lang-yaml=\"`maintenanceFrom`\" pulumi-lang-java=\"`maintenanceFrom`\" pulumi-lang-hcl=\"`maintenance_from`\"\u003e`maintenanceFrom`\u003c/span\u003e. null when no window is set.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/MonitorMetadata:MonitorMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "monitorGroupId": { "type": "string", "description": "ID of the monitor group this monitor belongs to.\n" }, "monitorType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/monitorType:MonitorType" } ], "description": "What the monitor checks. Defaults to 'status'. \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e: Checks that the URL returns a 2XX status code. 'expected_status_code': Checks that the URL returns one of \u003cspan pulumi-lang-nodejs=\"`expectedStatusCodes`\" pulumi-lang-dotnet=\"`ExpectedStatusCodes`\" pulumi-lang-go=\"`expectedStatusCodes`\" pulumi-lang-python=\"`expected_status_codes`\" pulumi-lang-yaml=\"`expectedStatusCodes`\" pulumi-lang-java=\"`expectedStatusCodes`\" pulumi-lang-hcl=\"`expected_status_codes`\"\u003e`expectedStatusCodes`\u003c/span\u003e. 'keyword': Checks that the page contains \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'keyword_absence': Checks that the page doesn't contain \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'ping': Pings the host in \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e. 'tcp': Checks that a TCP \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e on the host accepts connections. 'udp': Sends \u003cspan pulumi-lang-nodejs=\"`requestBody`\" pulumi-lang-dotnet=\"`RequestBody`\" pulumi-lang-go=\"`requestBody`\" pulumi-lang-python=\"`request_body`\" pulumi-lang-yaml=\"`requestBody`\" pulumi-lang-java=\"`requestBody`\" pulumi-lang-hcl=\"`request_body`\"\u003e`requestBody`\u003c/span\u003e to a UDP \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e on the host and checks that the answer contains \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'smtp': Checks for an SMTP server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'pop': Checks for a POP3 server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'imap': Checks for an IMAP server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'dns': Checks that the DNS server on the host answers a query for the domain in \u003cspan pulumi-lang-nodejs=\"`requestBody`\" pulumi-lang-dotnet=\"`RequestBody`\" pulumi-lang-go=\"`requestBody`\" pulumi-lang-python=\"`request_body`\" pulumi-lang-yaml=\"`requestBody`\" pulumi-lang-java=\"`requestBody`\" pulumi-lang-hcl=\"`request_body`\"\u003e`requestBody`\u003c/span\u003e. 'playwright': Runs the scenario in \u003cspan pulumi-lang-nodejs=\"`playwrightScript`\" pulumi-lang-dotnet=\"`PlaywrightScript`\" pulumi-lang-go=\"`playwrightScript`\" pulumi-lang-python=\"`playwright_script`\" pulumi-lang-yaml=\"`playwrightScript`\" pulumi-lang-java=\"`playwrightScript`\" pulumi-lang-hcl=\"`playwright_script`\"\u003e`playwrightScript`\u003c/span\u003e.\n" }, "paused": { "type": "boolean", "description": "Whether the monitor is paused. A paused monitor opens no incidents and sends no alerts. Set it to true to pause it or false to resume it. Defaults to false.\n" }, "playwrightScript": { "type": "string", "description": "The JavaScript source of the scenario, for 'playwright' monitors.\n" }, "port": { "type": "string", "description": "The port to check. 'tcp' and 'udp' accept one port. 'smtp' accepts '25', '465' or '587', 'pop' accepts '110' or '995', and 'imap' accepts '143' or '993', with several separated by commas like `25,465,587`. Required for 'tcp', 'udp', 'smtp', 'pop' and 'imap' monitors.\n" }, "pronounceableName": { "type": "string", "description": "The name of the monitor, which we use when we call you.\n" }, "proxyHost": { "type": "string", "description": "The host of the proxy server we send the check through, without a protocol. Can include credentials, like `user:pass@proxy.example.com`. Only for \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e, 'expected_status_code', 'keyword' and 'keyword_absence' monitors.\n" }, "proxyPort": { "type": "integer", "description": "The port of the proxy server, from '1' to '65535'. Requires \u003cspan pulumi-lang-nodejs=\"`proxyHost`\" pulumi-lang-dotnet=\"`ProxyHost`\" pulumi-lang-go=\"`proxyHost`\" pulumi-lang-python=\"`proxy_host`\" pulumi-lang-yaml=\"`proxyHost`\" pulumi-lang-java=\"`proxyHost`\" pulumi-lang-hcl=\"`proxy_host`\"\u003e`proxyHost`\u003c/span\u003e.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long checks must keep passing before the incident resolves, in seconds. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '180'.\n" }, "regions": { "type": "array", "items": { "type": "string" }, "description": "Regions to check from, as any combination of 'us', 'eu', 'as' and 'au'. When none are set, we check from all regions. Responses then list all of them.\n" }, "rememberCookies": { "type": "boolean", "description": "Whether we keep cookies when redirecting. Defaults to true.\n" }, "requestBody": { "type": "string", "description": "The body of the request. A 'dns' monitor requires it. Set it to the domain to query. A 'udp' monitor sends it as its content. Must be empty for 'get', 'head' and 'options' requests.\n" }, "requestHeaders": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MonitorRequestHeader:MonitorRequestHeader" }, "description": "Custom request headers, as a list of `{name, value}` objects. A list replaces all headers, and an empty list removes them all.\n" }, "requestTimeout": { "type": "integer", "description": "How long a check waits before it times out. The unit and accepted values depend on \u003cspan pulumi-lang-nodejs=\"`monitorType`\" pulumi-lang-dotnet=\"`MonitorType`\" pulumi-lang-go=\"`monitorType`\" pulumi-lang-python=\"`monitor_type`\" pulumi-lang-yaml=\"`monitorType`\" pulumi-lang-java=\"`monitorType`\" pulumi-lang-hcl=\"`monitor_type`\"\u003e`monitorType`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e, 'expected_status_code', 'keyword' and 'keyword_absence': in seconds, accepts '2', '3', '5', '10', '15', '30', '45', '60', '90', '120' or '180' and defaults to '30'. 'ping', 'tcp', 'udp', 'smtp', 'pop', 'imap' and 'dns': in milliseconds, accepts '500', '1000', '2000', '3000' or '5000' and defaults to '5000'. 'playwright': in seconds, accepts '15', '30', '45', '60', '120', '180', '240', '300', '360', '480', '600' or '900' and defaults to '30'.\n" }, "requiredKeyword": { "type": "string", "description": "The keyword to look for. Required for 'keyword', 'keyword_absence' and 'udp' monitors.\n" }, "scenarioName": { "type": "string", "description": "The name of a 'playwright' monitor's scenario. Required for 'playwright' monitors, and returned only for them. At least one of \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e must be configured.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sslExpiration": { "type": "integer", "description": "How many days before the SSL certificate expires we alert you. null turns the check off and is the default. Monitors of exactly the same domain share this setting, not its subdomains. For example, monitors of `example.com/a` and `example.com/b` share it, while `www.example.com` has its own. A value set on one monitor is copied to all of them, so set the same value on each. Valid values: '1', '2', '3', '7', '14', '30', '60'.\n" }, "teamId": { "type": "string", "description": "Team that owns this monitor, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "url": { "type": "string", "description": "The URL of your website, or the host to check for 'ping', 'tcp', 'udp', 'smtp', 'pop', 'imap' and 'dns' monitors, without a protocol. null on 'playwright' monitors. Required for every type except 'playwright', which accepts \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e instead. At least one of \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e must be configured.\n" }, "verifySsl": { "type": "boolean", "description": "Whether a check fails on an invalid SSL certificate. Defaults to true.\n" } }, "stateInputs": { "description": "Input properties used for looking up and filtering Monitor resources.\n", "properties": { "authPassword": { "type": "string", "description": "HTTP basic-auth password. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "authUsername": { "type": "string", "description": "HTTP basic-auth username. null when none is set.\n", "secret": true }, "call": { "type": "boolean", "description": "Whether to call the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "checkFrequency": { "type": "integer", "description": "How often to check, in seconds. Must be at least the \u003cspan pulumi-lang-nodejs=\"`requestTimeout`\" pulumi-lang-dotnet=\"`RequestTimeout`\" pulumi-lang-go=\"`requestTimeout`\" pulumi-lang-python=\"`request_timeout`\" pulumi-lang-yaml=\"`requestTimeout`\" pulumi-lang-java=\"`requestTimeout`\" pulumi-lang-hcl=\"`request_timeout`\"\u003e`requestTimeout`\u003c/span\u003e. A new or changed value below the plan's shortest interval is refused with a 422. A value the monitor already has, such as one set before a plan change, can still be sent. Accepted values depend on \u003cspan pulumi-lang-nodejs=\"`monitorType`\" pulumi-lang-dotnet=\"`MonitorType`\" pulumi-lang-go=\"`monitorType`\" pulumi-lang-python=\"`monitor_type`\" pulumi-lang-yaml=\"`monitorType`\" pulumi-lang-java=\"`monitorType`\" pulumi-lang-hcl=\"`monitor_type`\"\u003e`monitorType`\u003c/span\u003e. Defaults to '180'. 'playwright': accepts '60', '180', '300', '600', '900', '1800', '3600', '21600', '43200' or '86400'. Every other type: accepts '30', '45', '60', '120', '180', '300', '600', '900' or '1800'.\n" }, "checksVersion": { "type": "string", "description": "Version of the checks engine. Always 'v2'.\n" }, "confirmationPeriod": { "type": "integer", "description": "How long to wait after a failure before starting an incident, in seconds, from '0' to '86400'. Defaults to '0'.\n" }, "createdAt": { "type": "string", "description": "When the monitor was created.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this monitor is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "domainExpiration": { "type": "integer", "description": "How many days before the domain expires we alert you. null turns the check off and is the default. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each. Valid values: '1', '2', '3', '7', '14', '30', '60'.\n" }, "effectiveCheckFrequency": { "type": "integer", "description": "How often the monitor actually checks, in seconds. \u003cspan pulumi-lang-nodejs=\"`effectiveCheckFrequencyReason`\" pulumi-lang-dotnet=\"`EffectiveCheckFrequencyReason`\" pulumi-lang-go=\"`effectiveCheckFrequencyReason`\" pulumi-lang-python=\"`effective_check_frequency_reason`\" pulumi-lang-yaml=\"`effectiveCheckFrequencyReason`\" pulumi-lang-java=\"`effectiveCheckFrequencyReason`\" pulumi-lang-hcl=\"`effective_check_frequency_reason`\"\u003e`effectiveCheckFrequencyReason`\u003c/span\u003e says why it differs from \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e.\n" }, "effectiveCheckFrequencyReason": { "type": "string", "description": "Why \u003cspan pulumi-lang-nodejs=\"`effectiveCheckFrequency`\" pulumi-lang-dotnet=\"`EffectiveCheckFrequency`\" pulumi-lang-go=\"`effectiveCheckFrequency`\" pulumi-lang-python=\"`effective_check_frequency`\" pulumi-lang-yaml=\"`effectiveCheckFrequency`\" pulumi-lang-java=\"`effectiveCheckFrequency`\" pulumi-lang-hcl=\"`effective_check_frequency`\"\u003e`effectiveCheckFrequency`\u003c/span\u003e differs from \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e. null when they're the same. 'slowed_down': We check less often after repeated '429' responses or timeouts. 'plan_minimum': Your plan's shortest interval between checks is longer than \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e, which was saved before the plan changed. \u003cspan pulumi-lang-nodejs=\"`requestTimeout`\" pulumi-lang-dotnet=\"`RequestTimeout`\" pulumi-lang-go=\"`requestTimeout`\" pulumi-lang-python=\"`request_timeout`\" pulumi-lang-yaml=\"`requestTimeout`\" pulumi-lang-java=\"`requestTimeout`\" pulumi-lang-hcl=\"`request_timeout`\"\u003e`requestTimeout`\u003c/span\u003e: The monitor's \u003cspan pulumi-lang-nodejs=\"`requestTimeout`\" pulumi-lang-dotnet=\"`RequestTimeout`\" pulumi-lang-go=\"`requestTimeout`\" pulumi-lang-python=\"`request_timeout`\" pulumi-lang-yaml=\"`requestTimeout`\" pulumi-lang-java=\"`requestTimeout`\" pulumi-lang-hcl=\"`request_timeout`\"\u003e`requestTimeout`\u003c/span\u003e is longer than \u003cspan pulumi-lang-nodejs=\"`checkFrequency`\" pulumi-lang-dotnet=\"`CheckFrequency`\" pulumi-lang-go=\"`checkFrequency`\" pulumi-lang-python=\"`check_frequency`\" pulumi-lang-yaml=\"`checkFrequency`\" pulumi-lang-java=\"`checkFrequency`\" pulumi-lang-hcl=\"`check_frequency`\"\u003e`checkFrequency`\u003c/span\u003e.\n" }, "email": { "type": "boolean", "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set. Defaults to true.\n" }, "environmentVariables": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Environment variables the 'playwright' scenario can use, as name and value pairs like `{\"PASSWORD\": \"passw0rd\"}`. Better Stack returns only the names, so Pulumi keeps the values you set. A name added or removed outside Pulumi shows in the preview.\n", "secret": true }, "escalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n" }, "expectedStatusCodes": { "type": "array", "items": { "type": "integer" }, "description": "HTTP status codes from '100' to '599' that count as up. A '3xx' code needs \u003cspan pulumi-lang-nodejs=\"`followRedirects`\" pulumi-lang-dotnet=\"`FollowRedirects`\" pulumi-lang-go=\"`followRedirects`\" pulumi-lang-python=\"`follow_redirects`\" pulumi-lang-yaml=\"`followRedirects`\" pulumi-lang-java=\"`followRedirects`\" pulumi-lang-hcl=\"`follow_redirects`\"\u003e`followRedirects`\u003c/span\u003e set to false. Required for 'expected_status_code' monitors. Defaults to `[]`.\n" }, "expirationEscalationPolicyId": { "type": "string", "description": "ID of the escalation policy for alerts about expiring SSL certificates and domains. Monitors of the same domain share this setting, subdomains included. For example, monitors of `example.com` and `www.example.com` share it. A value set on one monitor is copied to all of them, so set the same value on each.\n" }, "followRedirects": { "type": "boolean", "description": "Whether we follow HTTP redirects. Defaults to true.\n" }, "httpMethod": { "type": "string", "description": "The HTTP method of the request. Accepts 'get', 'head', 'post', 'put', 'patch' or 'options'. Responses return the method in lowercase. 'head' can't be used with 'keyword' or 'keyword_absence' monitors. Defaults to 'get'.\n" }, "ipVersion": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/monitorIpVersion:MonitorIpVersion" } ], "description": "The IP version to check over. null checks over both IPv4 and IPv6. 'ipv4': Checks over IPv4 only. 'ipv6': Checks over IPv6 only.\n" }, "lastCheckedAt": { "type": "string", "description": "When the monitor was last checked.\n" }, "maintenanceDays": { "type": "array", "items": { "type": "string" }, "description": "Days of the week the maintenance window applies to, any of 'mon', 'tue', 'wed', 'thu', 'fri', 'sat' and 'sun'. An overnight window belongs to the day it starts. Defaults to `[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\", \"sat\", \"sun\"]`.\n" }, "maintenanceFrom": { "type": "string", "description": "Start of the daily maintenance window, when we don't check, as `HH:MM:SS`, like `01:00:00`. null when no window is set.\n" }, "maintenanceTimezone": { "type": "string", "description": "The time zone of the maintenance window, as a Rails time zone name like `Amsterdam` or its IANA ID like `Europe/Amsterdam`. null when it isn't set, which works as UTC. Defaults to `UTC`.\n" }, "maintenanceTo": { "type": "string", "description": "End of the daily maintenance window, as `HH:MM:SS`, like `03:00:00`. Required with \u003cspan pulumi-lang-nodejs=\"`maintenanceFrom`\" pulumi-lang-dotnet=\"`MaintenanceFrom`\" pulumi-lang-go=\"`maintenanceFrom`\" pulumi-lang-python=\"`maintenance_from`\" pulumi-lang-yaml=\"`maintenanceFrom`\" pulumi-lang-java=\"`maintenanceFrom`\" pulumi-lang-hcl=\"`maintenance_from`\"\u003e`maintenanceFrom`\u003c/span\u003e. null when no window is set.\n" }, "metadata": { "type": "object", "additionalProperties": { "$ref": "#/types/betterstack:index/MonitorMetadata:MonitorMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Values under one key must all be the same type and can't repeat. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n" }, "monitorGroupId": { "type": "string", "description": "ID of the monitor group this monitor belongs to.\n" }, "monitorType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/monitorType:MonitorType" } ], "description": "What the monitor checks. Defaults to 'status'. \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e: Checks that the URL returns a 2XX status code. 'expected_status_code': Checks that the URL returns one of \u003cspan pulumi-lang-nodejs=\"`expectedStatusCodes`\" pulumi-lang-dotnet=\"`ExpectedStatusCodes`\" pulumi-lang-go=\"`expectedStatusCodes`\" pulumi-lang-python=\"`expected_status_codes`\" pulumi-lang-yaml=\"`expectedStatusCodes`\" pulumi-lang-java=\"`expectedStatusCodes`\" pulumi-lang-hcl=\"`expected_status_codes`\"\u003e`expectedStatusCodes`\u003c/span\u003e. 'keyword': Checks that the page contains \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'keyword_absence': Checks that the page doesn't contain \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'ping': Pings the host in \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e. 'tcp': Checks that a TCP \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e on the host accepts connections. 'udp': Sends \u003cspan pulumi-lang-nodejs=\"`requestBody`\" pulumi-lang-dotnet=\"`RequestBody`\" pulumi-lang-go=\"`requestBody`\" pulumi-lang-python=\"`request_body`\" pulumi-lang-yaml=\"`requestBody`\" pulumi-lang-java=\"`requestBody`\" pulumi-lang-hcl=\"`request_body`\"\u003e`requestBody`\u003c/span\u003e to a UDP \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e on the host and checks that the answer contains \u003cspan pulumi-lang-nodejs=\"`requiredKeyword`\" pulumi-lang-dotnet=\"`RequiredKeyword`\" pulumi-lang-go=\"`requiredKeyword`\" pulumi-lang-python=\"`required_keyword`\" pulumi-lang-yaml=\"`requiredKeyword`\" pulumi-lang-java=\"`requiredKeyword`\" pulumi-lang-hcl=\"`required_keyword`\"\u003e`requiredKeyword`\u003c/span\u003e. 'smtp': Checks for an SMTP server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'pop': Checks for a POP3 server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'imap': Checks for an IMAP server on the host at \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e. 'dns': Checks that the DNS server on the host answers a query for the domain in \u003cspan pulumi-lang-nodejs=\"`requestBody`\" pulumi-lang-dotnet=\"`RequestBody`\" pulumi-lang-go=\"`requestBody`\" pulumi-lang-python=\"`request_body`\" pulumi-lang-yaml=\"`requestBody`\" pulumi-lang-java=\"`requestBody`\" pulumi-lang-hcl=\"`request_body`\"\u003e`requestBody`\u003c/span\u003e. 'playwright': Runs the scenario in \u003cspan pulumi-lang-nodejs=\"`playwrightScript`\" pulumi-lang-dotnet=\"`PlaywrightScript`\" pulumi-lang-go=\"`playwrightScript`\" pulumi-lang-python=\"`playwright_script`\" pulumi-lang-yaml=\"`playwrightScript`\" pulumi-lang-java=\"`playwrightScript`\" pulumi-lang-hcl=\"`playwright_script`\"\u003e`playwrightScript`\u003c/span\u003e.\n" }, "paused": { "type": "boolean", "description": "Whether the monitor is paused. A paused monitor opens no incidents and sends no alerts. Set it to true to pause it or false to resume it. Defaults to false.\n" }, "pausedAt": { "type": "string", "description": "When the monitor was paused.\n" }, "playwrightScript": { "type": "string", "description": "The JavaScript source of the scenario, for 'playwright' monitors.\n" }, "port": { "type": "string", "description": "The port to check. 'tcp' and 'udp' accept one port. 'smtp' accepts '25', '465' or '587', 'pop' accepts '110' or '995', and 'imap' accepts '143' or '993', with several separated by commas like `25,465,587`. Required for 'tcp', 'udp', 'smtp', 'pop' and 'imap' monitors.\n" }, "pronounceableName": { "type": "string", "description": "The name of the monitor, which we use when we call you.\n" }, "proxyHost": { "type": "string", "description": "The host of the proxy server we send the check through, without a protocol. Can include credentials, like `user:pass@proxy.example.com`. Only for \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e, 'expected_status_code', 'keyword' and 'keyword_absence' monitors.\n" }, "proxyPort": { "type": "integer", "description": "The port of the proxy server, from '1' to '65535'. Requires \u003cspan pulumi-lang-nodejs=\"`proxyHost`\" pulumi-lang-dotnet=\"`ProxyHost`\" pulumi-lang-go=\"`proxyHost`\" pulumi-lang-python=\"`proxy_host`\" pulumi-lang-yaml=\"`proxyHost`\" pulumi-lang-java=\"`proxyHost`\" pulumi-lang-hcl=\"`proxy_host`\"\u003e`proxyHost`\u003c/span\u003e.\n" }, "push": { "type": "boolean", "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "recoveryPeriod": { "type": "integer", "description": "How long checks must keep passing before the incident resolves, in seconds. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'. Defaults to '180'.\n" }, "regions": { "type": "array", "items": { "type": "string" }, "description": "Regions to check from, as any combination of 'us', 'eu', 'as' and 'au'. When none are set, we check from all regions. Responses then list all of them.\n" }, "rememberCookies": { "type": "boolean", "description": "Whether we keep cookies when redirecting. Defaults to true.\n" }, "requestBody": { "type": "string", "description": "The body of the request. A 'dns' monitor requires it. Set it to the domain to query. A 'udp' monitor sends it as its content. Must be empty for 'get', 'head' and 'options' requests.\n" }, "requestHeaders": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MonitorRequestHeader:MonitorRequestHeader" }, "description": "Custom request headers, as a list of `{name, value}` objects. A list replaces all headers, and an empty list removes them all.\n" }, "requestTimeout": { "type": "integer", "description": "How long a check waits before it times out. The unit and accepted values depend on \u003cspan pulumi-lang-nodejs=\"`monitorType`\" pulumi-lang-dotnet=\"`MonitorType`\" pulumi-lang-go=\"`monitorType`\" pulumi-lang-python=\"`monitor_type`\" pulumi-lang-yaml=\"`monitorType`\" pulumi-lang-java=\"`monitorType`\" pulumi-lang-hcl=\"`monitor_type`\"\u003e`monitorType`\u003c/span\u003e. \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e, 'expected_status_code', 'keyword' and 'keyword_absence': in seconds, accepts '2', '3', '5', '10', '15', '30', '45', '60', '90', '120' or '180' and defaults to '30'. 'ping', 'tcp', 'udp', 'smtp', 'pop', 'imap' and 'dns': in milliseconds, accepts '500', '1000', '2000', '3000' or '5000' and defaults to '5000'. 'playwright': in seconds, accepts '15', '30', '45', '60', '120', '180', '240', '300', '360', '480', '600' or '900' and defaults to '30'.\n" }, "requiredKeyword": { "type": "string", "description": "The keyword to look for. Required for 'keyword', 'keyword_absence' and 'udp' monitors.\n" }, "scenarioName": { "type": "string", "description": "The name of a 'playwright' monitor's scenario. Required for 'playwright' monitors, and returned only for them. At least one of \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e must be configured.\n" }, "sms": { "type": "boolean", "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set. Defaults to false.\n" }, "sslExpiration": { "type": "integer", "description": "How many days before the SSL certificate expires we alert you. null turns the check off and is the default. Monitors of exactly the same domain share this setting, not its subdomains. For example, monitors of `example.com/a` and `example.com/b` share it, while `www.example.com` has its own. A value set on one monitor is copied to all of them, so set the same value on each. Valid values: '1', '2', '3', '7', '14', '30', '60'.\n" }, "status": { "type": "string", "description": "The monitor's current status. 'up': Checks pass. 'down': Checks fail. 'validating': The service seems back up, but the \u003cspan pulumi-lang-nodejs=\"`recoveryPeriod`\" pulumi-lang-dotnet=\"`RecoveryPeriod`\" pulumi-lang-go=\"`recoveryPeriod`\" pulumi-lang-python=\"`recovery_period`\" pulumi-lang-yaml=\"`recoveryPeriod`\" pulumi-lang-java=\"`recoveryPeriod`\" pulumi-lang-hcl=\"`recovery_period`\"\u003e`recoveryPeriod`\u003c/span\u003e hasn't passed yet. \u003cspan pulumi-lang-nodejs=\"`paused`\" pulumi-lang-dotnet=\"`Paused`\" pulumi-lang-go=\"`paused`\" pulumi-lang-python=\"`paused`\" pulumi-lang-yaml=\"`paused`\" pulumi-lang-java=\"`paused`\" pulumi-lang-hcl=\"`paused`\"\u003e`paused`\u003c/span\u003e: The monitor is paused. 'pending': The monitor waits for its first check. 'maintenance': The monitor is in a maintenance window.\n" }, "teamId": { "type": "string", "description": "Team that owns this monitor, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this monitor.\n" }, "teamWait": { "type": "integer", "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n" }, "updatedAt": { "type": "string", "description": "When the monitor was last updated.\n" }, "url": { "type": "string", "description": "The URL of your website, or the host to check for 'ping', 'tcp', 'udp', 'smtp', 'pop', 'imap' and 'dns' monitors, without a protocol. null on 'playwright' monitors. Required for every type except 'playwright', which accepts \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e instead. At least one of \u003cspan pulumi-lang-nodejs=\"`url`\" pulumi-lang-dotnet=\"`Url`\" pulumi-lang-go=\"`url`\" pulumi-lang-python=\"`url`\" pulumi-lang-yaml=\"`url`\" pulumi-lang-java=\"`url`\" pulumi-lang-hcl=\"`url`\"\u003e`url`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`scenarioName`\" pulumi-lang-dotnet=\"`ScenarioName`\" pulumi-lang-go=\"`scenarioName`\" pulumi-lang-python=\"`scenario_name`\" pulumi-lang-yaml=\"`scenarioName`\" pulumi-lang-java=\"`scenarioName`\" pulumi-lang-hcl=\"`scenario_name`\"\u003e`scenarioName`\u003c/span\u003e must be configured.\n" }, "verifySsl": { "type": "boolean", "description": "Whether a check fails on an invalid SSL certificate. Defaults to true.\n" } }, "type": "object" } }, "betterstack:index/monitorGroup:MonitorGroup": { "description": "A group that organizes related monitors together.\n\n## Example Usage\n\n### Create a monitor group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.MonitorGroup(\"example\", {name: \"Backend services\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.MonitorGroup(\"example\", name=\"Backend services\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.MonitorGroup(\"example\", new()\n {\n Name = \"Backend services\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewMonitorGroup(ctx, \"example\", \u0026betterstack.MonitorGroupArgs{\n\t\t\tName: pulumi.String(\"Backend services\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_monitor_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend services\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.MonitorGroup;\nimport com.betterstack.pulumi.MonitorGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new MonitorGroup(\"example\", MonitorGroupArgs.builder()\n .name(\"Backend services\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:MonitorGroup\n properties:\n name: Backend services\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Listed first\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst listedFirst = new betterstack.MonitorGroup(\"listed_first\", {\n name: \"Customer-facing websites\",\n sortIndex: 0,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nlisted_first = betterstack.MonitorGroup(\"listed_first\",\n name=\"Customer-facing websites\",\n sort_index=0)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var listedFirst = new BetterStack.MonitorGroup(\"listed_first\", new()\n {\n Name = \"Customer-facing websites\",\n SortIndex = 0,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewMonitorGroup(ctx, \"listed_first\", \u0026betterstack.MonitorGroupArgs{\n\t\t\tName: pulumi.String(\"Customer-facing websites\"),\n\t\t\tSortIndex: pulumi.Int(0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_monitor_group\" \"listed_first\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Customer-facing websites\"\n sort_index = 0\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.MonitorGroup;\nimport com.betterstack.pulumi.MonitorGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var listedFirst = new MonitorGroup(\"listedFirst\", MonitorGroupArgs.builder()\n .name(\"Customer-facing websites\")\n .sortIndex(0)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n listedFirst:\n type: betterstack:MonitorGroup\n name: listed_first\n properties:\n name: Customer-facing websites\n sortIndex: 0\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing monitor group by its ID. Get the ID via [List monitor groups](https://betterstack.com/docs/uptime/api/list-all-existing-monitor-groups/).\n\n```sh\n$ pulumi import betterstack:index/monitorGroup:MonitorGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "paused": { "type": "boolean", "description": "Whether every monitor in the group is paused, false when the group has none. Set it to true to pause every monitor in the group or false to resume them. Has no effect on create.\n" }, "sortIndex": { "type": "integer", "description": "The position of the group in your list of monitor groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this monitor group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this monitor group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "paused", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "paused": { "type": "boolean", "description": "Whether every monitor in the group is paused, false when the group has none. Set it to true to pause every monitor in the group or false to resume them. Has no effect on create.\n" }, "sortIndex": { "type": "integer", "description": "The position of the group in your list of monitor groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this monitor group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering MonitorGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "paused": { "type": "boolean", "description": "Whether every monitor in the group is paused, false when the group has none. Set it to true to pause every monitor in the group or false to resume them. Has no effect on create.\n" }, "sortIndex": { "type": "integer", "description": "The position of the group in your list of monitor groups, lower values first. null when no position was set.\n" }, "teamId": { "type": "string", "description": "Team that owns this monitor group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this monitor group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/mySQL:MySQL": { "description": "A managed MySQL instance with a primary and up to two read replicas. Replicas copy the primary asynchronously.\n\n\u003e Destroying a MySQL instance deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.MySQL(\"example\", {\n name: \"example\",\n type: \"MY1\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.MySQL(\"example\",\n name=\"example\",\n type=\"MY1\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.MySQL(\"example\", new()\n {\n Name = \"example\",\n Type = \"MY1\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewMySQL(ctx, \"example\", \u0026betterstack.MySQLArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"MY1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_my_s_q_l\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"MY1\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.MySQL;\nimport com.betterstack.pulumi.MySQLArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new MySQL(\"example\", MySQLArgs.builder()\n .name(\"example\")\n .type(\"MY1\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:MySQL\n properties:\n name: example\n type: MY1\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing MySQL instance by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/mySQL:MySQL example 12345\n```\n\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the instance to. An upgrade can't be undone.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "defaultTimeZone": { "type": "string", "description": "The default time zone. Accepts `SYSTEM`, `UTC`, an offset from `-13:59` to `+14:00`, or an IANA time zone name such as `Europe/Prague`. Defaults to `UTC`.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this mysql is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/MySQLEndpoint:MySQLEndpoint", "description": "Where to connect to the instance's primary.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact MySQL version the instance runs, or null until we know it.\n" }, "engineVersion": { "type": "string", "description": "The MySQL version, as major and minor, such as `9.7`. Get the versions via [List MySQL versions](https://betterstack.com/docs/cloud/api/mysql-versions/list-mysql-versions/). Defaults to the latest version.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to every node. An instance can have at most one firewall.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was taken, or null when there's none.\n" }, "maxAllowedPacket": { "type": "integer", "description": "The largest packet MySQL accepts, in bytes, from '16777216' to '1073741824'. Defaults to '67108864'.\n" }, "maxConnections": { "type": "integer", "description": "How many clients can connect to the instance at once.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MySQLMember:MySQLMember" }, "description": "The instance's nodes, the primary and its replicas. A replica's \u003cspan pulumi-lang-nodejs=\"`replicationLagSeconds`\" pulumi-lang-dotnet=\"`ReplicationLagSeconds`\" pulumi-lang-go=\"`replicationLagSeconds`\" pulumi-lang-python=\"`replication_lag_seconds`\" pulumi-lang-yaml=\"`replicationLagSeconds`\" pulumi-lang-java=\"`replicationLagSeconds`\" pulumi-lang-hcl=\"`replication_lag_seconds`\"\u003e`replicationLagSeconds`\u003c/span\u003e says how many seconds the replica is behind the primary. \u003cspan pulumi-lang-nodejs=\"`replicationLagSeconds`\" pulumi-lang-dotnet=\"`ReplicationLagSeconds`\" pulumi-lang-go=\"`replicationLagSeconds`\" pulumi-lang-python=\"`replication_lag_seconds`\" pulumi-lang-yaml=\"`replicationLagSeconds`\" pulumi-lang-java=\"`replicationLagSeconds`\" pulumi-lang-hcl=\"`replication_lag_seconds`\"\u003e`replicationLagSeconds`\u003c/span\u003e is null on the primary.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's MySQL instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to every node. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether clients can also connect to the instance from the internet. Connections use TLS. Defaults to false.\n" }, "readOnly": { "type": "boolean", "description": "Whether the instance accepts only reads because its disk is almost full.\n" }, "replicaCount": { "type": "integer", "description": "How many read replicas the instance has, from '0' to '2'. Defaults to '0'.\n" }, "sqlMode": { "type": "string", "description": "The SQL modes, separated by commas, such as `STRICT_TRANS_TABLES,NO_ZERO_DATE`. null for MySQL's default modes.\n" }, "sqlRequirePrimaryKey": { "type": "boolean", "description": "Whether new tables must have a primary key. Defaults to false.\n" }, "status": { "type": "string", "description": "The instance's status. After you create or restore an instance, get it until its status is 'running'. 'provisioning': We're starting the nodes and installing MySQL. 'running': The instance is ready. 'degraded': A node is down, replication is broken or the disk is almost full. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the instance's type. 'upgrading': We're upgrading the instance to a newer MySQL version. 'restoring': We're restoring the instance from a snapshot. 'failed': We couldn't create the instance. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. Create a new one instead. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "More about the status, such as what failed or which action didn't finish. null when there's nothing to report.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `MY1`, which sets its size. Get the types via [List MySQL types](https://betterstack.com/docs/cloud/api/mysql-types/list-mysql-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last updated.\n" }, "usableDiskGb": { "type": "integer", "description": "The disk space for your data, in GiB.\n" } }, "required": [ "availableEngineVersions", "createdAt", "defaultTimeZone", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "latestSnapshotAt", "maxAllowedPacket", "maxConnections", "members", "metadata", "name", "networkIds", "publicAccess", "readOnly", "replicaCount", "sqlRequirePrimaryKey", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableDiskGb" ], "inputProperties": { "defaultTimeZone": { "type": "string", "description": "The default time zone. Accepts `SYSTEM`, `UTC`, an offset from `-13:59` to `+14:00`, or an IANA time zone name such as `Europe/Prague`. Defaults to `UTC`.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this mysql is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "engineVersion": { "type": "string", "description": "The MySQL version, as major and minor, such as `9.7`. Get the versions via [List MySQL versions](https://betterstack.com/docs/cloud/api/mysql-versions/list-mysql-versions/). Defaults to the latest version.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to every node. An instance can have at most one firewall.\n" }, "maxAllowedPacket": { "type": "integer", "description": "The largest packet MySQL accepts, in bytes, from '16777216' to '1073741824'. Defaults to '67108864'.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's MySQL instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to every node. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether clients can also connect to the instance from the internet. Connections use TLS. Defaults to false.\n" }, "replicaCount": { "type": "integer", "description": "How many read replicas the instance has, from '0' to '2'. Defaults to '0'.\n" }, "sqlMode": { "type": "string", "description": "The SQL modes, separated by commas, such as `STRICT_TRANS_TABLES,NO_ZERO_DATE`. null for MySQL's default modes.\n" }, "sqlRequirePrimaryKey": { "type": "boolean", "description": "Whether new tables must have a primary key. Defaults to false.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/mySQLTerm:MySQLTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `MY1`, which sets its size. Get the types via [List MySQL types](https://betterstack.com/docs/cloud/api/mysql-types/list-mysql-types/).\n" } }, "requiredInputs": [ "name", "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering MySQL resources.\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the instance to. An upgrade can't be undone.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "defaultTimeZone": { "type": "string", "description": "The default time zone. Accepts `SYSTEM`, `UTC`, an offset from `-13:59` to `+14:00`, or an IANA time zone name such as `Europe/Prague`. Defaults to `UTC`.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this mysql is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/MySQLEndpoint:MySQLEndpoint", "description": "Where to connect to the instance's primary.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact MySQL version the instance runs, or null until we know it.\n" }, "engineVersion": { "type": "string", "description": "The MySQL version, as major and minor, such as `9.7`. Get the versions via [List MySQL versions](https://betterstack.com/docs/cloud/api/mysql-versions/list-mysql-versions/). Defaults to the latest version.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to every node. An instance can have at most one firewall.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was taken, or null when there's none.\n" }, "maxAllowedPacket": { "type": "integer", "description": "The largest packet MySQL accepts, in bytes, from '16777216' to '1073741824'. Defaults to '67108864'.\n" }, "maxConnections": { "type": "integer", "description": "How many clients can connect to the instance at once.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/MySQLMember:MySQLMember" }, "description": "The instance's nodes, the primary and its replicas. A replica's \u003cspan pulumi-lang-nodejs=\"`replicationLagSeconds`\" pulumi-lang-dotnet=\"`ReplicationLagSeconds`\" pulumi-lang-go=\"`replicationLagSeconds`\" pulumi-lang-python=\"`replication_lag_seconds`\" pulumi-lang-yaml=\"`replicationLagSeconds`\" pulumi-lang-java=\"`replicationLagSeconds`\" pulumi-lang-hcl=\"`replication_lag_seconds`\"\u003e`replicationLagSeconds`\u003c/span\u003e says how many seconds the replica is behind the primary. \u003cspan pulumi-lang-nodejs=\"`replicationLagSeconds`\" pulumi-lang-dotnet=\"`ReplicationLagSeconds`\" pulumi-lang-go=\"`replicationLagSeconds`\" pulumi-lang-python=\"`replication_lag_seconds`\" pulumi-lang-yaml=\"`replicationLagSeconds`\" pulumi-lang-java=\"`replicationLagSeconds`\" pulumi-lang-hcl=\"`replication_lag_seconds`\"\u003e`replicationLagSeconds`\u003c/span\u003e is null on the primary.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's MySQL instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to every node. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether clients can also connect to the instance from the internet. Connections use TLS. Defaults to false.\n" }, "readOnly": { "type": "boolean", "description": "Whether the instance accepts only reads because its disk is almost full.\n" }, "replicaCount": { "type": "integer", "description": "How many read replicas the instance has, from '0' to '2'. Defaults to '0'.\n" }, "sqlMode": { "type": "string", "description": "The SQL modes, separated by commas, such as `STRICT_TRANS_TABLES,NO_ZERO_DATE`. null for MySQL's default modes.\n" }, "sqlRequirePrimaryKey": { "type": "boolean", "description": "Whether new tables must have a primary key. Defaults to false.\n" }, "status": { "type": "string", "description": "The instance's status. After you create or restore an instance, get it until its status is 'running'. 'provisioning': We're starting the nodes and installing MySQL. 'running': The instance is ready. 'degraded': A node is down, replication is broken or the disk is almost full. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the instance's type. 'upgrading': We're upgrading the instance to a newer MySQL version. 'restoring': We're restoring the instance from a snapshot. 'failed': We couldn't create the instance. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. Create a new one instead. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "More about the status, such as what failed or which action didn't finish. null when there's nothing to report.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/mySQLTerm:MySQLTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `MY1`, which sets its size. Get the types via [List MySQL types](https://betterstack.com/docs/cloud/api/mysql-types/list-mysql-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last updated.\n" }, "usableDiskGb": { "type": "integer", "description": "The disk space for your data, in GiB.\n" } }, "type": "object" } }, "betterstack:index/mySQLScheduledSnapshot:MySQLScheduledSnapshot": { "description": "A schedule that creates snapshots of a MySQL instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.MySQL(\"example\", {\n name: \"example\",\n type: \"MY1\",\n teamId: \"t123\",\n});\nconst exampleMySQLScheduledSnapshot = new betterstack.MySQLScheduledSnapshot(\"example\", {\n mysqlId: example.id,\n frequency: betterstack.MySQLScheduledSnapshotFrequency.Hourly,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.MySQL(\"example\",\n name=\"example\",\n type=\"MY1\",\n team_id=\"t123\")\nexample_my_sql_scheduled_snapshot = betterstack.MySQLScheduledSnapshot(\"example\",\n mysql_id=example.id,\n frequency=betterstack.MySQLScheduledSnapshotFrequency.HOURLY)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.MySQL(\"example\", new()\n {\n Name = \"example\",\n Type = \"MY1\",\n TeamId = \"t123\",\n });\n\n var exampleMySQLScheduledSnapshot = new BetterStack.MySQLScheduledSnapshot(\"example\", new()\n {\n MysqlId = example.Id,\n Frequency = BetterStack.MySQLScheduledSnapshotFrequency.Hourly,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewMySQL(ctx, \"example\", \u0026betterstack.MySQLArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"MY1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewMySQLScheduledSnapshot(ctx, \"example\", \u0026betterstack.MySQLScheduledSnapshotArgs{\n\t\t\tMysqlId: example.ID(),\n\t\t\tFrequency: pulumi.String(betterstack.MySQLScheduledSnapshotFrequencyHourly),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_my_s_q_l\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"MY1\"\n team_id = \"t123\"\n}\nresource \"betterstack_my_s_q_l_scheduled_snapshot\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n mysql_id = betterstack_my_s_q_l.example.id\n frequency = \"hourly\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.MySQL;\nimport com.betterstack.pulumi.MySQLArgs;\nimport com.betterstack.pulumi.MySQLScheduledSnapshot;\nimport com.betterstack.pulumi.MySQLScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new MySQL(\"example\", MySQLArgs.builder()\n .name(\"example\")\n .type(\"MY1\")\n .teamId(\"t123\")\n .build());\n\n var exampleMySQLScheduledSnapshot = new MySQLScheduledSnapshot(\"exampleMySQLScheduledSnapshot\", MySQLScheduledSnapshotArgs.builder()\n .mysqlId(example.id())\n .frequency(\"hourly\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:MySQL\n properties:\n name: example\n type: MY1\n teamId: t123\n exampleMySQLScheduledSnapshot:\n type: betterstack:MySQLScheduledSnapshot\n name: example\n properties:\n mysqlId: ${example.id}\n frequency: hourly\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing MySQL scheduled snapshot by its ID as `mysql_id/id`.\n\n```sh\n$ pulumi import betterstack:index/mySQLScheduledSnapshot:MySQLScheduledSnapshot example \u003cmysql_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null before the first one.\n" }, "mysqlId": { "type": "string", "description": "The ID of the MySQL instance the schedule belongs to. Changing it replaces the resource.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance's primary. Changes when the instance fails over.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "required": [ "createdAt", "frequency", "lastRunAt", "mysqlId", "serverId", "updatedAt" ], "inputProperties": { "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/mySQLScheduledSnapshotFrequency:MySQLScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "mysqlId": { "type": "string", "description": "The ID of the MySQL instance the schedule belongs to. Changing it replaces the resource.\n" } }, "requiredInputs": [ "frequency", "mysqlId" ], "stateInputs": { "description": "Input properties used for looking up and filtering MySQLScheduledSnapshot resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/mySQLScheduledSnapshotFrequency:MySQLScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null before the first one.\n" }, "mysqlId": { "type": "string", "description": "The ID of the MySQL instance the schedule belongs to. Changing it replaces the resource.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance's primary. Changes when the instance fails over.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "type": "object" } }, "betterstack:index/network:Network": { "description": "A private network you can attach servers to. Servers on the network get private addresses from its IP range.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Network(\"example\", {\n name: \"example\",\n ipPrefix: \"10.0.0.0\",\n ipPrefixLength: 16,\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Network(\"example\",\n name=\"example\",\n ip_prefix=\"10.0.0.0\",\n ip_prefix_length=16,\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Network(\"example\", new()\n {\n Name = \"example\",\n IpPrefix = \"10.0.0.0\",\n IpPrefixLength = 16,\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewNetwork(ctx, \"example\", \u0026betterstack.NetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tIpPrefix: pulumi.String(\"10.0.0.0\"),\n\t\t\tIpPrefixLength: pulumi.Int(16),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_network\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n ip_prefix = \"10.0.0.0\"\n ip_prefix_length = 16\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Network;\nimport com.betterstack.pulumi.NetworkArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Network(\"example\", NetworkArgs.builder()\n .name(\"example\")\n .ipPrefix(\"10.0.0.0\")\n .ipPrefixLength(16)\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Network\n properties:\n name: example\n ipPrefix: 10.0.0.0\n ipPrefixLength: 16\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Every network interface on a server, public or private, has an MTU of 1500. Each interface gets the server type's full bandwidth, not a share of it.\n\n## Import\n\nImport an existing network by its ID.\n\n```sh\n$ pulumi import betterstack:index/network:Network example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the network was created.\n" }, "ipPrefix": { "type": "string", "description": "The IPv4 or IPv6 address the network's range starts at, such as `10.0.0.0`.\n" }, "ipPrefixLength": { "type": "integer", "description": "The prefix length of the network's range, such as '24' for an IPv4 range of 256 addresses. Accepts '0' to '128'. Use at most '32' for an IPv4 range.\n" }, "name": { "type": "string", "description": "The network's name.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the network. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the network was last updated.\n" } }, "required": [ "createdAt", "ipPrefix", "ipPrefixLength", "name", "teamId", "updatedAt" ], "inputProperties": { "ipPrefix": { "type": "string", "description": "The IPv4 or IPv6 address the network's range starts at, such as `10.0.0.0`.\n" }, "ipPrefixLength": { "type": "integer", "description": "The prefix length of the network's range, such as '24' for an IPv4 range of 256 addresses. Accepts '0' to '128'. Use at most '32' for an IPv4 range.\n" }, "name": { "type": "string", "description": "The network's name.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the network. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" } }, "requiredInputs": [ "ipPrefix", "ipPrefixLength", "name", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering Network resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the network was created.\n" }, "ipPrefix": { "type": "string", "description": "The IPv4 or IPv6 address the network's range starts at, such as `10.0.0.0`.\n" }, "ipPrefixLength": { "type": "integer", "description": "The prefix length of the network's range, such as '24' for an IPv4 range of 256 addresses. Accepts '0' to '128'. Use at most '32' for an IPv4 range.\n" }, "name": { "type": "string", "description": "The network's name.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the network. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the network was last updated.\n" } }, "type": "object" } }, "betterstack:index/objectCache:ObjectCache": { "description": "An S3-compatible cache in front of your buckets at another storage provider. The object cache serves reads from fast local disks and passes writes on to the original buckets.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ObjectCache(\"example\", {\n teamId: \"t123\",\n name: \"my-cache\",\n type: \"OP100\",\n buckets: [{\n originEndpoint: \"https://s3.us-west-2.amazonaws.com\",\n originBucket: \"my-bucket\",\n originAccessKeyId: \"your-access-key-id\",\n originSecretAccessKey: \"your-secret-access-key\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ObjectCache(\"example\",\n team_id=\"t123\",\n name=\"my-cache\",\n type=\"OP100\",\n buckets=[{\n \"origin_endpoint\": \"https://s3.us-west-2.amazonaws.com\",\n \"origin_bucket\": \"my-bucket\",\n \"origin_access_key_id\": \"your-access-key-id\",\n \"origin_secret_access_key\": \"your-secret-access-key\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ObjectCache(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"my-cache\",\n Type = \"OP100\",\n Buckets = new[]\n {\n new BetterStack.Inputs.ObjectCacheBucketSummaryArgs\n {\n OriginEndpoint = \"https://s3.us-west-2.amazonaws.com\",\n OriginBucket = \"my-bucket\",\n OriginAccessKeyId = \"your-access-key-id\",\n OriginSecretAccessKey = \"your-secret-access-key\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewObjectCache(ctx, \"example\", \u0026betterstack.ObjectCacheArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"my-cache\"),\n\t\t\tType: pulumi.String(\"OP100\"),\n\t\t\tBuckets: betterstack.ObjectCacheBucketSummaryArray{\n\t\t\t\t\u0026betterstack.ObjectCacheBucketSummaryArgs{\n\t\t\t\t\tOriginEndpoint: pulumi.String(\"https://s3.us-west-2.amazonaws.com\"),\n\t\t\t\t\tOriginBucket: pulumi.String(\"my-bucket\"),\n\t\t\t\t\tOriginAccessKeyId: pulumi.String(\"your-access-key-id\"),\n\t\t\t\t\tOriginSecretAccessKey: pulumi.String(\"your-secret-access-key\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_object_cache\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"my-cache\"\n type = \"OP100\"\n buckets = [{\n origin_endpoint = \"https://s3.us-west-2.amazonaws.com\"\n origin_bucket = \"my-bucket\"\n origin_access_key_id = \"your-access-key-id\"\n origin_secret_access_key = \"your-secret-access-key\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ObjectCache;\nimport com.betterstack.pulumi.ObjectCacheArgs;\nimport com.betterstack.pulumi.inputs.ObjectCacheBucketSummaryArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ObjectCache(\"example\", ObjectCacheArgs.builder()\n .teamId(\"t123\")\n .name(\"my-cache\")\n .type(\"OP100\")\n .buckets(ObjectCacheBucketSummaryArgs.builder()\n .originEndpoint(\"https://s3.us-west-2.amazonaws.com\")\n .originBucket(\"my-bucket\")\n .originAccessKeyId(\"your-access-key-id\")\n .originSecretAccessKey(\"your-secret-access-key\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ObjectCache\n properties:\n teamId: t123\n name: my-cache\n type: OP100\n buckets:\n - originEndpoint: https://s3.us-west-2.amazonaws.com\n originBucket: my-bucket\n originAccessKeyId: your-access-key-id\n originSecretAccessKey: your-secret-access-key\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing object cache by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/objectCache:ObjectCache example 12345\n```\n\n", "properties": { "buckets": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ObjectCacheBucketSummary:ObjectCacheBucketSummary" }, "description": "The buckets to serve, from 1 to 20. Each bucket maps a bucket name to a bucket at your storage provider, with its keys. We never return the keys.\n" }, "cacheTtlSeconds": { "type": "integer", "description": "How long we keep an object in the cache, in seconds, from 60 to 2592000. Defaults to '86400'.\n" }, "cacheUsedGb": { "type": "number", "description": "The cache space in use, in GB.\n" }, "configAppliedAt": { "type": "string", "description": "When the object cache last applied its settings. An update is in effect once \u003cspan pulumi-lang-nodejs=\"`configAppliedAt`\" pulumi-lang-dotnet=\"`ConfigAppliedAt`\" pulumi-lang-go=\"`configAppliedAt`\" pulumi-lang-python=\"`config_applied_at`\" pulumi-lang-yaml=\"`configAppliedAt`\" pulumi-lang-java=\"`configAppliedAt`\" pulumi-lang-hcl=\"`config_applied_at`\"\u003e`configAppliedAt`\u003c/span\u003e is later than the update. null until the settings are first applied.\n" }, "createdAt": { "type": "string", "description": "When the object cache was created.\n" }, "endpoints": { "$ref": "#/types/betterstack:index/ObjectCacheEndpoints:ObjectCacheEndpoints", "description": "Where S3 clients connect. Clients must use path-style addressing and sign requests with SigV4.\n" }, "evictionPolicy": { "type": "string", "description": "Which cached objects we remove first when the cache is full. Defaults to 'least_frequently_used'. 'least_frequently_used': Removes the objects read least often, so a frequently read object survives a flood of one-off reads. 'least_recently_used': Removes the objects read longest ago, which suits workloads that scan through data.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of a firewall to attach to the object cache, at most one. Responses don't include it. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "fsync": { "type": "boolean", "description": "Whether a write waits until your storage provider has stored the object. With false, a write is confirmed once the object cache has saved it to its own disk, and the object is uploaded to your storage provider later. Defaults to true.\n" }, "listingCacheTtlSeconds": { "type": "integer", "description": "How long we keep a bucket listing in the cache, in seconds, from 0 to 86400. '0' turns listing caching off. Defaults to '0'.\n" }, "maxCapacityGb": { "type": "integer", "description": "The cache space to use, in GB, from 10 to \u003cspan pulumi-lang-nodejs=\"`usableCacheGb`\" pulumi-lang-dotnet=\"`UsableCacheGb`\" pulumi-lang-go=\"`usableCacheGb`\" pulumi-lang-python=\"`usable_cache_gb`\" pulumi-lang-yaml=\"`usableCacheGb`\" pulumi-lang-java=\"`usableCacheGb`\" pulumi-lang-hcl=\"`usable_cache_gb`\"\u003e`usableCacheGb`\u003c/span\u003e.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag.\n" }, "name": { "type": "string", "description": "The object cache's name, at most 255 characters. Must be unique among your organization's object caches that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the networks attached to the object cache.\n" }, "placementGroupId": { "type": "string", "description": "The ID of your placement group the object cache was created in, or null when the object cache is in none. Can't be changed after the object cache is created.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the object cache also has a public HTTPS endpoint. A change applies shortly after the response. Defaults to false.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the object cache has a public IPv4 address. Can't be changed after the object cache is created. Defaults to false.\n" }, "status": { "type": "string", "description": "The object cache's state. 'provisioning': We're starting the object cache. 'running': The object cache is ready. 'degraded': Part of the object cache isn't working. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. An original bucket that is down leaves the object cache 'running'. 'rescaling': We're changing the object cache's type. The rescale is done when the object cache is 'running' with the new \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e. When the object cache turns 'degraded', the rescale didn't finish. 'failed': We couldn't create the object cache. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. Create a new one instead. 'destroyed': The object cache is deleted.\n" }, "statusMessage": { "type": "string", "description": "Why the object cache failed or is 'degraded', or null when there's nothing to report.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the object cache. Can't be changed after the object cache is created.\n" }, "term": { "type": "string", "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The object cache's type, such as `OP100`.\n" }, "updatedAt": { "type": "string", "description": "When the object cache was last updated.\n" }, "usableCacheGb": { "type": "integer", "description": "The cache space of the object cache's type, in GB.\n" } }, "required": [ "buckets", "cacheTtlSeconds", "cacheUsedGb", "configAppliedAt", "createdAt", "endpoints", "evictionPolicy", "firewallIds", "fsync", "listingCacheTtlSeconds", "maxCapacityGb", "metadata", "name", "networkIds", "publicAccess", "publicIpv4", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableCacheGb" ], "inputProperties": { "buckets": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ObjectCacheBucketSummary:ObjectCacheBucketSummary" }, "description": "The buckets to serve, from 1 to 20. Each bucket maps a bucket name to a bucket at your storage provider, with its keys. We never return the keys.\n" }, "cacheTtlSeconds": { "type": "integer", "description": "How long we keep an object in the cache, in seconds, from 60 to 2592000. Defaults to '86400'.\n" }, "evictionPolicy": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/objectCacheEvictionPolicy:ObjectCacheEvictionPolicy" } ], "description": "Which cached objects we remove first when the cache is full. Defaults to 'least_frequently_used'. 'least_frequently_used': Removes the objects read least often, so a frequently read object survives a flood of one-off reads. 'least_recently_used': Removes the objects read longest ago, which suits workloads that scan through data.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of a firewall to attach to the object cache, at most one. Responses don't include it. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "fsync": { "type": "boolean", "description": "Whether a write waits until your storage provider has stored the object. With false, a write is confirmed once the object cache has saved it to its own disk, and the object is uploaded to your storage provider later. Defaults to true.\n" }, "listingCacheTtlSeconds": { "type": "integer", "description": "How long we keep a bucket listing in the cache, in seconds, from 0 to 86400. '0' turns listing caching off. Defaults to '0'.\n" }, "maxCapacityGb": { "type": "integer", "description": "The cache space to use, in GB, from 10 to \u003cspan pulumi-lang-nodejs=\"`usableCacheGb`\" pulumi-lang-dotnet=\"`UsableCacheGb`\" pulumi-lang-go=\"`usableCacheGb`\" pulumi-lang-python=\"`usable_cache_gb`\" pulumi-lang-yaml=\"`usableCacheGb`\" pulumi-lang-java=\"`usableCacheGb`\" pulumi-lang-hcl=\"`usable_cache_gb`\"\u003e`usableCacheGb`\u003c/span\u003e.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag.\n" }, "name": { "type": "string", "description": "The object cache's name, at most 255 characters. Must be unique among your organization's object caches that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the networks attached to the object cache.\n" }, "placementGroupId": { "type": "string", "description": "The ID of your placement group the object cache was created in, or null when the object cache is in none. Can't be changed after the object cache is created.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the object cache also has a public HTTPS endpoint. A change applies shortly after the response. Defaults to false.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the object cache has a public IPv4 address. Can't be changed after the object cache is created. Defaults to false.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the object cache. Can't be changed after the object cache is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/objectCacheTerm:ObjectCacheTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The object cache's type, such as `OP100`.\n" } }, "requiredInputs": [ "buckets", "name", "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering ObjectCache resources.\n", "properties": { "buckets": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ObjectCacheBucketSummary:ObjectCacheBucketSummary" }, "description": "The buckets to serve, from 1 to 20. Each bucket maps a bucket name to a bucket at your storage provider, with its keys. We never return the keys.\n" }, "cacheTtlSeconds": { "type": "integer", "description": "How long we keep an object in the cache, in seconds, from 60 to 2592000. Defaults to '86400'.\n" }, "cacheUsedGb": { "type": "number", "description": "The cache space in use, in GB.\n" }, "configAppliedAt": { "type": "string", "description": "When the object cache last applied its settings. An update is in effect once \u003cspan pulumi-lang-nodejs=\"`configAppliedAt`\" pulumi-lang-dotnet=\"`ConfigAppliedAt`\" pulumi-lang-go=\"`configAppliedAt`\" pulumi-lang-python=\"`config_applied_at`\" pulumi-lang-yaml=\"`configAppliedAt`\" pulumi-lang-java=\"`configAppliedAt`\" pulumi-lang-hcl=\"`config_applied_at`\"\u003e`configAppliedAt`\u003c/span\u003e is later than the update. null until the settings are first applied.\n" }, "createdAt": { "type": "string", "description": "When the object cache was created.\n" }, "endpoints": { "$ref": "#/types/betterstack:index/ObjectCacheEndpoints:ObjectCacheEndpoints", "description": "Where S3 clients connect. Clients must use path-style addressing and sign requests with SigV4.\n" }, "evictionPolicy": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/objectCacheEvictionPolicy:ObjectCacheEvictionPolicy" } ], "description": "Which cached objects we remove first when the cache is full. Defaults to 'least_frequently_used'. 'least_frequently_used': Removes the objects read least often, so a frequently read object survives a flood of one-off reads. 'least_recently_used': Removes the objects read longest ago, which suits workloads that scan through data.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of a firewall to attach to the object cache, at most one. Responses don't include it. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "fsync": { "type": "boolean", "description": "Whether a write waits until your storage provider has stored the object. With false, a write is confirmed once the object cache has saved it to its own disk, and the object is uploaded to your storage provider later. Defaults to true.\n" }, "listingCacheTtlSeconds": { "type": "integer", "description": "How long we keep a bucket listing in the cache, in seconds, from 0 to 86400. '0' turns listing caching off. Defaults to '0'.\n" }, "maxCapacityGb": { "type": "integer", "description": "The cache space to use, in GB, from 10 to \u003cspan pulumi-lang-nodejs=\"`usableCacheGb`\" pulumi-lang-dotnet=\"`UsableCacheGb`\" pulumi-lang-go=\"`usableCacheGb`\" pulumi-lang-python=\"`usable_cache_gb`\" pulumi-lang-yaml=\"`usableCacheGb`\" pulumi-lang-java=\"`usableCacheGb`\" pulumi-lang-hcl=\"`usable_cache_gb`\"\u003e`usableCacheGb`\u003c/span\u003e.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag.\n" }, "name": { "type": "string", "description": "The object cache's name, at most 255 characters. Must be unique among your organization's object caches that aren't 'failed' or 'destroyed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the networks attached to the object cache.\n" }, "placementGroupId": { "type": "string", "description": "The ID of your placement group the object cache was created in, or null when the object cache is in none. Can't be changed after the object cache is created.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the object cache also has a public HTTPS endpoint. A change applies shortly after the response. Defaults to false.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the object cache has a public IPv4 address. Can't be changed after the object cache is created. Defaults to false.\n" }, "status": { "type": "string", "description": "The object cache's state. 'provisioning': We're starting the object cache. 'running': The object cache is ready. 'degraded': Part of the object cache isn't working. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. An original bucket that is down leaves the object cache 'running'. 'rescaling': We're changing the object cache's type. The rescale is done when the object cache is 'running' with the new \u003cspan pulumi-lang-nodejs=\"`type`\" pulumi-lang-dotnet=\"`Type`\" pulumi-lang-go=\"`type`\" pulumi-lang-python=\"`type`\" pulumi-lang-yaml=\"`type`\" pulumi-lang-java=\"`type`\" pulumi-lang-hcl=\"`type`\"\u003e`type`\u003c/span\u003e. When the object cache turns 'degraded', the rescale didn't finish. 'failed': We couldn't create the object cache. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. Create a new one instead. 'destroyed': The object cache is deleted.\n" }, "statusMessage": { "type": "string", "description": "Why the object cache failed or is 'degraded', or null when there's nothing to report.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the object cache. Can't be changed after the object cache is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/objectCacheTerm:ObjectCacheTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Billing ends the current term and starts the new one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The object cache's type, such as `OP100`.\n" }, "updatedAt": { "type": "string", "description": "When the object cache was last updated.\n" }, "usableCacheGb": { "type": "integer", "description": "The cache space of the object cache's type, in GB.\n" } }, "type": "object" } }, "betterstack:index/objectCacheBucket:ObjectCacheBucket": { "description": "A bucket an object cache serves. Each one maps to a bucket at your S3-compatible storage provider.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ObjectCache(\"example\", {\n teamId: \"t123\",\n name: \"my-cache\",\n type: \"OP100\",\n buckets: [{\n originEndpoint: \"https://s3.us-west-2.amazonaws.com\",\n originBucket: \"my-bucket\",\n originAccessKeyId: \"your-access-key-id\",\n originSecretAccessKey: \"your-secret-access-key\",\n }],\n});\nconst exampleObjectCacheBucket = new betterstack.ObjectCacheBucket(\"example\", {\n objectProxyId: example.id,\n originEndpoint: \"https://s3.us-west-2.amazonaws.com\",\n originBucket: \"my-bucket\",\n originAccessKeyId: \"12345\",\n originSecretAccessKey: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ObjectCache(\"example\",\n team_id=\"t123\",\n name=\"my-cache\",\n type=\"OP100\",\n buckets=[{\n \"origin_endpoint\": \"https://s3.us-west-2.amazonaws.com\",\n \"origin_bucket\": \"my-bucket\",\n \"origin_access_key_id\": \"your-access-key-id\",\n \"origin_secret_access_key\": \"your-secret-access-key\",\n }])\nexample_object_cache_bucket = betterstack.ObjectCacheBucket(\"example\",\n object_proxy_id=example.id,\n origin_endpoint=\"https://s3.us-west-2.amazonaws.com\",\n origin_bucket=\"my-bucket\",\n origin_access_key_id=\"12345\",\n origin_secret_access_key=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ObjectCache(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"my-cache\",\n Type = \"OP100\",\n Buckets = new[]\n {\n new BetterStack.Inputs.ObjectCacheBucketSummaryArgs\n {\n OriginEndpoint = \"https://s3.us-west-2.amazonaws.com\",\n OriginBucket = \"my-bucket\",\n OriginAccessKeyId = \"your-access-key-id\",\n OriginSecretAccessKey = \"your-secret-access-key\",\n },\n },\n });\n\n var exampleObjectCacheBucket = new BetterStack.ObjectCacheBucket(\"example\", new()\n {\n ObjectProxyId = example.Id,\n OriginEndpoint = \"https://s3.us-west-2.amazonaws.com\",\n OriginBucket = \"my-bucket\",\n OriginAccessKeyId = \"12345\",\n OriginSecretAccessKey = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewObjectCache(ctx, \"example\", \u0026betterstack.ObjectCacheArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"my-cache\"),\n\t\t\tType: pulumi.String(\"OP100\"),\n\t\t\tBuckets: betterstack.ObjectCacheBucketSummaryArray{\n\t\t\t\t\u0026betterstack.ObjectCacheBucketSummaryArgs{\n\t\t\t\t\tOriginEndpoint: pulumi.String(\"https://s3.us-west-2.amazonaws.com\"),\n\t\t\t\t\tOriginBucket: pulumi.String(\"my-bucket\"),\n\t\t\t\t\tOriginAccessKeyId: pulumi.String(\"your-access-key-id\"),\n\t\t\t\t\tOriginSecretAccessKey: pulumi.String(\"your-secret-access-key\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewObjectCacheBucket(ctx, \"example\", \u0026betterstack.ObjectCacheBucketArgs{\n\t\t\tObjectProxyId: example.ID(),\n\t\t\tOriginEndpoint: pulumi.String(\"https://s3.us-west-2.amazonaws.com\"),\n\t\t\tOriginBucket: pulumi.String(\"my-bucket\"),\n\t\t\tOriginAccessKeyId: pulumi.String(\"12345\"),\n\t\t\tOriginSecretAccessKey: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_object_cache\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"my-cache\"\n type = \"OP100\"\n buckets = [{\n origin_endpoint = \"https://s3.us-west-2.amazonaws.com\"\n origin_bucket = \"my-bucket\"\n origin_access_key_id = \"your-access-key-id\"\n origin_secret_access_key = \"your-secret-access-key\"\n }]\n}\nresource \"betterstack_object_cache_bucket\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n object_proxy_id = betterstack_object_cache.example.id\n origin_endpoint = \"https://s3.us-west-2.amazonaws.com\"\n origin_bucket = \"my-bucket\"\n origin_access_key_id = \"12345\"\n origin_secret_access_key = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ObjectCache;\nimport com.betterstack.pulumi.ObjectCacheArgs;\nimport com.betterstack.pulumi.inputs.ObjectCacheBucketSummaryArgs;\nimport com.betterstack.pulumi.ObjectCacheBucket;\nimport com.betterstack.pulumi.ObjectCacheBucketArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ObjectCache(\"example\", ObjectCacheArgs.builder()\n .teamId(\"t123\")\n .name(\"my-cache\")\n .type(\"OP100\")\n .buckets(ObjectCacheBucketSummaryArgs.builder()\n .originEndpoint(\"https://s3.us-west-2.amazonaws.com\")\n .originBucket(\"my-bucket\")\n .originAccessKeyId(\"your-access-key-id\")\n .originSecretAccessKey(\"your-secret-access-key\")\n .build())\n .build());\n\n var exampleObjectCacheBucket = new ObjectCacheBucket(\"exampleObjectCacheBucket\", ObjectCacheBucketArgs.builder()\n .objectProxyId(example.id())\n .originEndpoint(\"https://s3.us-west-2.amazonaws.com\")\n .originBucket(\"my-bucket\")\n .originAccessKeyId(\"12345\")\n .originSecretAccessKey(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ObjectCache\n properties:\n teamId: t123\n name: my-cache\n type: OP100\n buckets:\n - originEndpoint: https://s3.us-west-2.amazonaws.com\n originBucket: my-bucket\n originAccessKeyId: your-access-key-id\n originSecretAccessKey: your-secret-access-key\n exampleObjectCacheBucket:\n type: betterstack:ObjectCacheBucket\n name: example\n properties:\n objectProxyId: ${example.id}\n originEndpoint: https://s3.us-west-2.amazonaws.com\n originBucket: my-bucket\n originAccessKeyId: '12345'\n originSecretAccessKey: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing object cache bucket by its ID as `object_proxy_id/id`.\n\n```sh\n$ pulumi import betterstack:index/objectCacheBucket:ObjectCacheBucket example \u003cobject_proxy_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the bucket was added.\n" }, "name": { "type": "string", "description": "The bucket name clients use with the object cache, 3–63 lowercase letters, digits, dots and hyphens, starting and ending with a letter or digit. Must be unique in the object cache. Defaults to 'origin_bucket'. Can't be changed after the bucket is added.\n" }, "objectProxyId": { "type": "string", "description": "The ID of the parent this object proxy belongs to. Changing it replaces the resource.\n" }, "originAccessKeyId": { "type": "string", "description": "The access key ID for your storage provider. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "originBucket": { "type": "string", "description": "The name of the bucket at your storage provider, at most 255 characters. Can't be changed after the bucket is added.\n" }, "originCreationDate": { "type": "string", "description": "When the bucket at your storage provider was created, as your storage provider reports it.\n" }, "originEndpoint": { "type": "string", "description": "The HTTPS URL of your storage provider's S3 endpoint, such as `https://s3.us-east-1.amazonaws.com`. Must use a hostname, not an IP address. Can't have credentials, a path, a query or a fragment. Can't be changed after the bucket is added.\n" }, "originForcePathStyle": { "type": "boolean", "description": "Whether we send the bucket name in the URL path to your storage provider, instead of in the hostname. Defaults to true.\n" }, "originPrefix": { "type": "string", "description": "A folder in the bucket at your storage provider to serve as the whole bucket, such as `tenant-a/`. Clients see only the objects under it. Leave it out to serve the whole bucket. Can't be changed after the bucket is added.\n" }, "originRegion": { "type": "string", "description": "The region of your storage provider, such as `us-east-1` or 'auto'. Defaults to `us-east-1`.\n" }, "originSecretAccessKey": { "type": "string", "description": "The secret key for your storage provider. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "scopedCredentials": { "type": "boolean", "description": "Whether the bucket has its own access keys. When it's false, create them with [Rotate an object cache bucket's credentials](https://betterstack.com/docs/cloud/api/object-cache-buckets/rotate-object-cache-bucket-credentials/).\n" } }, "required": [ "createdAt", "name", "objectProxyId", "originAccessKeyId", "originBucket", "originCreationDate", "originEndpoint", "originForcePathStyle", "originPrefix", "originRegion", "originSecretAccessKey", "scopedCredentials" ], "inputProperties": { "name": { "type": "string", "description": "The bucket name clients use with the object cache, 3–63 lowercase letters, digits, dots and hyphens, starting and ending with a letter or digit. Must be unique in the object cache. Defaults to 'origin_bucket'. Can't be changed after the bucket is added.\n" }, "objectProxyId": { "type": "string", "description": "The ID of the parent this object proxy belongs to. Changing it replaces the resource.\n" }, "originAccessKeyId": { "type": "string", "description": "The access key ID for your storage provider. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "originBucket": { "type": "string", "description": "The name of the bucket at your storage provider, at most 255 characters. Can't be changed after the bucket is added.\n" }, "originEndpoint": { "type": "string", "description": "The HTTPS URL of your storage provider's S3 endpoint, such as `https://s3.us-east-1.amazonaws.com`. Must use a hostname, not an IP address. Can't have credentials, a path, a query or a fragment. Can't be changed after the bucket is added.\n" }, "originForcePathStyle": { "type": "boolean", "description": "Whether we send the bucket name in the URL path to your storage provider, instead of in the hostname. Defaults to true.\n" }, "originPrefix": { "type": "string", "description": "A folder in the bucket at your storage provider to serve as the whole bucket, such as `tenant-a/`. Clients see only the objects under it. Leave it out to serve the whole bucket. Can't be changed after the bucket is added.\n" }, "originRegion": { "type": "string", "description": "The region of your storage provider, such as `us-east-1` or 'auto'. Defaults to `us-east-1`.\n" }, "originSecretAccessKey": { "type": "string", "description": "The secret key for your storage provider. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true } }, "requiredInputs": [ "objectProxyId", "originAccessKeyId", "originBucket", "originEndpoint", "originSecretAccessKey" ], "stateInputs": { "description": "Input properties used for looking up and filtering ObjectCacheBucket resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the bucket was added.\n" }, "name": { "type": "string", "description": "The bucket name clients use with the object cache, 3–63 lowercase letters, digits, dots and hyphens, starting and ending with a letter or digit. Must be unique in the object cache. Defaults to 'origin_bucket'. Can't be changed after the bucket is added.\n" }, "objectProxyId": { "type": "string", "description": "The ID of the parent this object proxy belongs to. Changing it replaces the resource.\n" }, "originAccessKeyId": { "type": "string", "description": "The access key ID for your storage provider. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "originBucket": { "type": "string", "description": "The name of the bucket at your storage provider, at most 255 characters. Can't be changed after the bucket is added.\n" }, "originCreationDate": { "type": "string", "description": "When the bucket at your storage provider was created, as your storage provider reports it.\n" }, "originEndpoint": { "type": "string", "description": "The HTTPS URL of your storage provider's S3 endpoint, such as `https://s3.us-east-1.amazonaws.com`. Must use a hostname, not an IP address. Can't have credentials, a path, a query or a fragment. Can't be changed after the bucket is added.\n" }, "originForcePathStyle": { "type": "boolean", "description": "Whether we send the bucket name in the URL path to your storage provider, instead of in the hostname. Defaults to true.\n" }, "originPrefix": { "type": "string", "description": "A folder in the bucket at your storage provider to serve as the whole bucket, such as `tenant-a/`. Clients see only the objects under it. Leave it out to serve the whole bucket. Can't be changed after the bucket is added.\n" }, "originRegion": { "type": "string", "description": "The region of your storage provider, such as `us-east-1` or 'auto'. Defaults to `us-east-1`.\n" }, "originSecretAccessKey": { "type": "string", "description": "The secret key for your storage provider. Not returned after it's saved. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "scopedCredentials": { "type": "boolean", "description": "Whether the bucket has its own access keys. When it's false, create them with [Rotate an object cache bucket's credentials](https://betterstack.com/docs/cloud/api/object-cache-buckets/rotate-object-cache-bucket-credentials/).\n" } }, "type": "object" } }, "betterstack:index/onCallRotation:OnCallRotation": { "description": "An on-call rotation puts the users of an on-call schedule on call in turns, with shifts of a set length.\n\n## Example Usage\n\n### Hand over daily\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst handOverDaily = new betterstack.OnCallRotation(\"hand_over_daily\", {\n scheduleId: \"default\",\n users: [\n \"bob@example.com\",\n \"alice@example.com\",\n ],\n rotationLength: 1,\n rotationInterval: betterstack.OnCallRotationRotationInterval.Day,\n startRotationsAt: \"2026-02-02T00:00:00Z\",\n endRotationsAt: \"2028-02-02T00:00:00Z\",\n timezone: \"Europe/Prague\",\n workingHours: [\n {\n day: \"monday\",\n startTime: \"09:00\",\n endTime: \"17:00\",\n },\n {\n day: \"tuesday\",\n startTime: \"09:00\",\n endTime: \"17:00\",\n },\n {\n day: \"wednesday\",\n startTime: \"09:00\",\n endTime: \"17:00\",\n },\n {\n day: \"thursday\",\n startTime: \"09:00\",\n endTime: \"17:00\",\n },\n {\n day: \"friday\",\n startTime: \"09:00\",\n endTime: \"17:00\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhand_over_daily = betterstack.OnCallRotation(\"hand_over_daily\",\n schedule_id=\"default\",\n users=[\n \"bob@example.com\",\n \"alice@example.com\",\n ],\n rotation_length=1,\n rotation_interval=betterstack.OnCallRotationRotationInterval.DAY,\n start_rotations_at=\"2026-02-02T00:00:00Z\",\n end_rotations_at=\"2028-02-02T00:00:00Z\",\n timezone=\"Europe/Prague\",\n working_hours=[\n {\n \"day\": \"monday\",\n \"start_time\": \"09:00\",\n \"end_time\": \"17:00\",\n },\n {\n \"day\": \"tuesday\",\n \"start_time\": \"09:00\",\n \"end_time\": \"17:00\",\n },\n {\n \"day\": \"wednesday\",\n \"start_time\": \"09:00\",\n \"end_time\": \"17:00\",\n },\n {\n \"day\": \"thursday\",\n \"start_time\": \"09:00\",\n \"end_time\": \"17:00\",\n },\n {\n \"day\": \"friday\",\n \"start_time\": \"09:00\",\n \"end_time\": \"17:00\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var handOverDaily = new BetterStack.OnCallRotation(\"hand_over_daily\", new()\n {\n ScheduleId = \"default\",\n Users = new[]\n {\n \"bob@example.com\",\n \"alice@example.com\",\n },\n RotationLength = 1,\n RotationInterval = BetterStack.OnCallRotationRotationInterval.Day,\n StartRotationsAt = \"2026-02-02T00:00:00Z\",\n EndRotationsAt = \"2028-02-02T00:00:00Z\",\n Timezone = \"Europe/Prague\",\n WorkingHours = new[]\n {\n new BetterStack.Inputs.OnCallRotationWorkingHourArgs\n {\n Day = \"monday\",\n StartTime = \"09:00\",\n EndTime = \"17:00\",\n },\n new BetterStack.Inputs.OnCallRotationWorkingHourArgs\n {\n Day = \"tuesday\",\n StartTime = \"09:00\",\n EndTime = \"17:00\",\n },\n new BetterStack.Inputs.OnCallRotationWorkingHourArgs\n {\n Day = \"wednesday\",\n StartTime = \"09:00\",\n EndTime = \"17:00\",\n },\n new BetterStack.Inputs.OnCallRotationWorkingHourArgs\n {\n Day = \"thursday\",\n StartTime = \"09:00\",\n EndTime = \"17:00\",\n },\n new BetterStack.Inputs.OnCallRotationWorkingHourArgs\n {\n Day = \"friday\",\n StartTime = \"09:00\",\n EndTime = \"17:00\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewOnCallRotation(ctx, \"hand_over_daily\", \u0026betterstack.OnCallRotationArgs{\n\t\t\tScheduleId: pulumi.String(\"default\"),\n\t\t\tUsers: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"bob@example.com\"),\n\t\t\t\tpulumi.String(\"alice@example.com\"),\n\t\t\t},\n\t\t\tRotationLength: pulumi.Int(1),\n\t\t\tRotationInterval: pulumi.String(betterstack.OnCallRotationRotationIntervalDay),\n\t\t\tStartRotationsAt: pulumi.String(\"2026-02-02T00:00:00Z\"),\n\t\t\tEndRotationsAt: pulumi.String(\"2028-02-02T00:00:00Z\"),\n\t\t\tTimezone: pulumi.String(\"Europe/Prague\"),\n\t\t\tWorkingHours: betterstack.OnCallRotationWorkingHourArray{\n\t\t\t\t\u0026betterstack.OnCallRotationWorkingHourArgs{\n\t\t\t\t\tDay: pulumi.String(\"monday\"),\n\t\t\t\t\tStartTime: pulumi.String(\"09:00\"),\n\t\t\t\t\tEndTime: pulumi.String(\"17:00\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.OnCallRotationWorkingHourArgs{\n\t\t\t\t\tDay: pulumi.String(\"tuesday\"),\n\t\t\t\t\tStartTime: pulumi.String(\"09:00\"),\n\t\t\t\t\tEndTime: pulumi.String(\"17:00\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.OnCallRotationWorkingHourArgs{\n\t\t\t\t\tDay: pulumi.String(\"wednesday\"),\n\t\t\t\t\tStartTime: pulumi.String(\"09:00\"),\n\t\t\t\t\tEndTime: pulumi.String(\"17:00\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.OnCallRotationWorkingHourArgs{\n\t\t\t\t\tDay: pulumi.String(\"thursday\"),\n\t\t\t\t\tStartTime: pulumi.String(\"09:00\"),\n\t\t\t\t\tEndTime: pulumi.String(\"17:00\"),\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.OnCallRotationWorkingHourArgs{\n\t\t\t\t\tDay: pulumi.String(\"friday\"),\n\t\t\t\t\tStartTime: pulumi.String(\"09:00\"),\n\t\t\t\t\tEndTime: pulumi.String(\"17:00\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_on_call_rotation\" \"hand_over_daily\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"default\"\n users = [\"bob@example.com\", \"alice@example.com\"]\n rotation_length = 1\n rotation_interval = \"day\"\n start_rotations_at = \"2026-02-02T00:00:00Z\"\n end_rotations_at = \"2028-02-02T00:00:00Z\"\n timezone = \"Europe/Prague\"\n working_hours = [{\n day = \"monday\"\n start_time = \"09:00\"\n end_time = \"17:00\"\n }, {\n day = \"tuesday\"\n start_time = \"09:00\"\n end_time = \"17:00\"\n }, {\n day = \"wednesday\"\n start_time = \"09:00\"\n end_time = \"17:00\"\n }, {\n day = \"thursday\"\n start_time = \"09:00\"\n end_time = \"17:00\"\n }, {\n day = \"friday\"\n start_time = \"09:00\"\n end_time = \"17:00\"\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.OnCallRotation;\nimport com.betterstack.pulumi.OnCallRotationArgs;\nimport com.betterstack.pulumi.inputs.OnCallRotationWorkingHourArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var handOverDaily = new OnCallRotation(\"handOverDaily\", OnCallRotationArgs.builder()\n .scheduleId(\"default\")\n .users( \n \"bob@example.com\",\n \"alice@example.com\")\n .rotationLength(1)\n .rotationInterval(\"day\")\n .startRotationsAt(\"2026-02-02T00:00:00Z\")\n .endRotationsAt(\"2028-02-02T00:00:00Z\")\n .timezone(\"Europe/Prague\")\n .workingHours( \n OnCallRotationWorkingHourArgs.builder()\n .day(\"monday\")\n .startTime(\"09:00\")\n .endTime(\"17:00\")\n .build(),\n OnCallRotationWorkingHourArgs.builder()\n .day(\"tuesday\")\n .startTime(\"09:00\")\n .endTime(\"17:00\")\n .build(),\n OnCallRotationWorkingHourArgs.builder()\n .day(\"wednesday\")\n .startTime(\"09:00\")\n .endTime(\"17:00\")\n .build(),\n OnCallRotationWorkingHourArgs.builder()\n .day(\"thursday\")\n .startTime(\"09:00\")\n .endTime(\"17:00\")\n .build(),\n OnCallRotationWorkingHourArgs.builder()\n .day(\"friday\")\n .startTime(\"09:00\")\n .endTime(\"17:00\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n handOverDaily:\n type: betterstack:OnCallRotation\n name: hand_over_daily\n properties:\n scheduleId: default\n users:\n - bob@example.com\n - alice@example.com\n rotationLength: 1\n rotationInterval: day\n startRotationsAt: 2026-02-02T00:00:00Z\n endRotationsAt: 2028-02-02T00:00:00Z\n timezone: Europe/Prague\n workingHours:\n - day: monday\n startTime: 09:00\n endTime: 17:00\n - day: tuesday\n startTime: 09:00\n endTime: 17:00\n - day: wednesday\n startTime: 09:00\n endTime: 17:00\n - day: thursday\n startTime: 09:00\n endTime: 17:00\n - day: friday\n startTime: 09:00\n endTime: 17:00\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Hand over weekly\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst handOverWeekly = new betterstack.OnCallRotation(\"hand_over_weekly\", {\n scheduleId: \"default\",\n users: [\n \"alice@example.com\",\n \"bob@example.com\",\n \"carol@example.com\",\n ],\n rotationLength: 1,\n rotationInterval: betterstack.OnCallRotationRotationInterval.Week,\n startRotationsAt: \"2026-12-07T14:00:00Z\",\n timezone: \"America/New_York\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nhand_over_weekly = betterstack.OnCallRotation(\"hand_over_weekly\",\n schedule_id=\"default\",\n users=[\n \"alice@example.com\",\n \"bob@example.com\",\n \"carol@example.com\",\n ],\n rotation_length=1,\n rotation_interval=betterstack.OnCallRotationRotationInterval.WEEK,\n start_rotations_at=\"2026-12-07T14:00:00Z\",\n timezone=\"America/New_York\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var handOverWeekly = new BetterStack.OnCallRotation(\"hand_over_weekly\", new()\n {\n ScheduleId = \"default\",\n Users = new[]\n {\n \"alice@example.com\",\n \"bob@example.com\",\n \"carol@example.com\",\n },\n RotationLength = 1,\n RotationInterval = BetterStack.OnCallRotationRotationInterval.Week,\n StartRotationsAt = \"2026-12-07T14:00:00Z\",\n Timezone = \"America/New_York\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewOnCallRotation(ctx, \"hand_over_weekly\", \u0026betterstack.OnCallRotationArgs{\n\t\t\tScheduleId: pulumi.String(\"default\"),\n\t\t\tUsers: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"alice@example.com\"),\n\t\t\t\tpulumi.String(\"bob@example.com\"),\n\t\t\t\tpulumi.String(\"carol@example.com\"),\n\t\t\t},\n\t\t\tRotationLength: pulumi.Int(1),\n\t\t\tRotationInterval: pulumi.String(betterstack.OnCallRotationRotationIntervalWeek),\n\t\t\tStartRotationsAt: pulumi.String(\"2026-12-07T14:00:00Z\"),\n\t\t\tTimezone: pulumi.String(\"America/New_York\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_on_call_rotation\" \"hand_over_weekly\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"default\"\n users = [\"alice@example.com\", \"bob@example.com\", \"carol@example.com\"]\n rotation_length = 1\n rotation_interval = \"week\"\n start_rotations_at = \"2026-12-07T14:00:00Z\"\n timezone = \"America/New_York\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.OnCallRotation;\nimport com.betterstack.pulumi.OnCallRotationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var handOverWeekly = new OnCallRotation(\"handOverWeekly\", OnCallRotationArgs.builder()\n .scheduleId(\"default\")\n .users( \n \"alice@example.com\",\n \"bob@example.com\",\n \"carol@example.com\")\n .rotationLength(1)\n .rotationInterval(\"week\")\n .startRotationsAt(\"2026-12-07T14:00:00Z\")\n .timezone(\"America/New_York\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n handOverWeekly:\n type: betterstack:OnCallRotation\n name: hand_over_weekly\n properties:\n scheduleId: default\n users:\n - alice@example.com\n - bob@example.com\n - carol@example.com\n rotationLength: 1\n rotationInterval: week\n startRotationsAt: 2026-12-07T14:00:00Z\n timezone: America/New_York\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Switch to 12-hour shifts\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst switchTo12HourShifts = new betterstack.OnCallRotation(\"switch_to_12_hour_shifts\", {\n scheduleId: \"default\",\n users: [\n \"alice@example.com\",\n \"bob@example.com\",\n ],\n rotationLength: 12,\n rotationInterval: betterstack.OnCallRotationRotationInterval.Hour,\n startRotationsAt: \"2026-12-07T08:00:00Z\",\n applyFrom: \"2026-12-14T08:00:00Z\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nswitch_to12_hour_shifts = betterstack.OnCallRotation(\"switch_to_12_hour_shifts\",\n schedule_id=\"default\",\n users=[\n \"alice@example.com\",\n \"bob@example.com\",\n ],\n rotation_length=12,\n rotation_interval=betterstack.OnCallRotationRotationInterval.HOUR,\n start_rotations_at=\"2026-12-07T08:00:00Z\",\n apply_from=\"2026-12-14T08:00:00Z\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var switchTo12HourShifts = new BetterStack.OnCallRotation(\"switch_to_12_hour_shifts\", new()\n {\n ScheduleId = \"default\",\n Users = new[]\n {\n \"alice@example.com\",\n \"bob@example.com\",\n },\n RotationLength = 12,\n RotationInterval = BetterStack.OnCallRotationRotationInterval.Hour,\n StartRotationsAt = \"2026-12-07T08:00:00Z\",\n ApplyFrom = \"2026-12-14T08:00:00Z\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewOnCallRotation(ctx, \"switch_to_12_hour_shifts\", \u0026betterstack.OnCallRotationArgs{\n\t\t\tScheduleId: pulumi.String(\"default\"),\n\t\t\tUsers: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"alice@example.com\"),\n\t\t\t\tpulumi.String(\"bob@example.com\"),\n\t\t\t},\n\t\t\tRotationLength: pulumi.Int(12),\n\t\t\tRotationInterval: pulumi.String(betterstack.OnCallRotationRotationIntervalHour),\n\t\t\tStartRotationsAt: pulumi.String(\"2026-12-07T08:00:00Z\"),\n\t\t\tApplyFrom: pulumi.String(\"2026-12-14T08:00:00Z\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_on_call_rotation\" \"switch_to_12_hour_shifts\" {\n lifecycle {\n create_before_destroy = true\n }\n id = \"default\"\n users = [\"alice@example.com\", \"bob@example.com\"]\n rotation_length = 12\n rotation_interval = \"hour\"\n start_rotations_at = \"2026-12-07T08:00:00Z\"\n apply_from = \"2026-12-14T08:00:00Z\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.OnCallRotation;\nimport com.betterstack.pulumi.OnCallRotationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var switchTo12HourShifts = new OnCallRotation(\"switchTo12HourShifts\", OnCallRotationArgs.builder()\n .scheduleId(\"default\")\n .users( \n \"alice@example.com\",\n \"bob@example.com\")\n .rotationLength(12)\n .rotationInterval(\"hour\")\n .startRotationsAt(\"2026-12-07T08:00:00Z\")\n .applyFrom(\"2026-12-14T08:00:00Z\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n switchTo12HourShifts:\n type: betterstack:OnCallRotation\n name: switch_to_12_hour_shifts\n properties:\n scheduleId: default\n users:\n - alice@example.com\n - bob@example.com\n rotationLength: 12\n rotationInterval: hour\n startRotationsAt: 2026-12-07T08:00:00Z\n applyFrom: 2026-12-14T08:00:00Z\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e When you use 'default' as the schedule ID and can access more than one team, send \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e.\n\n## Import\n\nImport an existing on-call rotation by its ID. Get the ID via [List on-call schedules](https://betterstack.com/docs/uptime/api/list-all-existing-on-call-calendars/).\n\n```sh\n$ pulumi import betterstack:index/onCallRotation:OnCallRotation example 12345\n```\n\n", "properties": { "applyFrom": { "type": "string", "description": "The date the change applies from. Shifts before it stay as they are. Leave it out to apply the change now. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "applyFromTimezone": { "type": "string", "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e. Ignored when \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e has a UTC offset. Defaults to `UTC`. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "effectiveTimezone": { "type": "string", "description": "The time zone \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e are read in. Same as \u003cspan pulumi-lang-nodejs=\"`timezone`\" pulumi-lang-dotnet=\"`Timezone`\" pulumi-lang-go=\"`timezone`\" pulumi-lang-python=\"`timezone`\" pulumi-lang-yaml=\"`timezone`\" pulumi-lang-java=\"`timezone`\" pulumi-lang-hcl=\"`timezone`\"\u003e`timezone`\u003c/span\u003e when it's set, otherwise the schedule's default time zone, or `UTC` when neither is set.\n" }, "endRotationsAt": { "type": "string", "description": "When the rotation schedule ends. Must be after \u003cspan pulumi-lang-nodejs=\"`startRotationsAt`\" pulumi-lang-dotnet=\"`StartRotationsAt`\" pulumi-lang-go=\"`startRotationsAt`\" pulumi-lang-python=\"`start_rotations_at`\" pulumi-lang-yaml=\"`startRotationsAt`\" pulumi-lang-java=\"`startRotationsAt`\" pulumi-lang-hcl=\"`start_rotations_at`\"\u003e`startRotationsAt`\u003c/span\u003e. Shifts after it are removed. Leave it out to keep the rotation running.\n" }, "rotationInterval": { "type": "string", "description": "Unit for \u003cspan pulumi-lang-nodejs=\"`rotationLength`\" pulumi-lang-dotnet=\"`RotationLength`\" pulumi-lang-go=\"`rotationLength`\" pulumi-lang-python=\"`rotation_length`\" pulumi-lang-yaml=\"`rotationLength`\" pulumi-lang-java=\"`rotationLength`\" pulumi-lang-hcl=\"`rotation_length`\"\u003e`rotationLength`\u003c/span\u003e. Valid values: 'hour', 'day', 'week'.\n" }, "rotationLength": { "type": "integer", "description": "How long each shift lasts, in \u003cspan pulumi-lang-nodejs=\"`rotationInterval`\" pulumi-lang-dotnet=\"`RotationInterval`\" pulumi-lang-go=\"`rotationInterval`\" pulumi-lang-python=\"`rotation_interval`\" pulumi-lang-yaml=\"`rotationInterval`\" pulumi-lang-java=\"`rotationInterval`\" pulumi-lang-hcl=\"`rotation_interval`\"\u003e`rotationInterval`\u003c/span\u003e units. A whole number of at least '1'.\n" }, "scheduleId": { "type": "string", "description": "Existing object identity. Changing it replaces this resource.\n" }, "startRotationsAt": { "type": "string", "description": "When the rotation schedule starts.\n" }, "teamId": { "type": "string", "description": "Team of the rotation's on-call schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "timezone": { "type": "string", "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e and for handovers across daylight saving changes. A new rotation with \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e defaults to UTC. Leave it out to keep the previous time zone.\n" }, "users": { "type": "array", "items": { "type": "string" }, "description": "E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.\n" }, "workingHours": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallRotationWorkingHour:OnCallRotationWorkingHour" }, "description": "The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as `HH:MM`, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e, or with an empty list, the rotation pages around the clock.\n" } }, "required": [ "applyFrom", "applyFromTimezone", "effectiveTimezone", "endRotationsAt", "scheduleId", "rotationInterval", "rotationLength", "startRotationsAt", "teamId", "timezone", "users", "workingHours" ], "inputProperties": { "applyFrom": { "type": "string", "description": "The date the change applies from. Shifts before it stay as they are. Leave it out to apply the change now. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "applyFromTimezone": { "type": "string", "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e. Ignored when \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e has a UTC offset. Defaults to `UTC`. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "endRotationsAt": { "type": "string", "description": "When the rotation schedule ends. Must be after \u003cspan pulumi-lang-nodejs=\"`startRotationsAt`\" pulumi-lang-dotnet=\"`StartRotationsAt`\" pulumi-lang-go=\"`startRotationsAt`\" pulumi-lang-python=\"`start_rotations_at`\" pulumi-lang-yaml=\"`startRotationsAt`\" pulumi-lang-java=\"`startRotationsAt`\" pulumi-lang-hcl=\"`start_rotations_at`\"\u003e`startRotationsAt`\u003c/span\u003e. Shifts after it are removed. Leave it out to keep the rotation running.\n" }, "rotationInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/onCallRotationRotationInterval:OnCallRotationRotationInterval" } ], "description": "Unit for \u003cspan pulumi-lang-nodejs=\"`rotationLength`\" pulumi-lang-dotnet=\"`RotationLength`\" pulumi-lang-go=\"`rotationLength`\" pulumi-lang-python=\"`rotation_length`\" pulumi-lang-yaml=\"`rotationLength`\" pulumi-lang-java=\"`rotationLength`\" pulumi-lang-hcl=\"`rotation_length`\"\u003e`rotationLength`\u003c/span\u003e. Valid values: 'hour', 'day', 'week'.\n" }, "rotationLength": { "type": "integer", "description": "How long each shift lasts, in \u003cspan pulumi-lang-nodejs=\"`rotationInterval`\" pulumi-lang-dotnet=\"`RotationInterval`\" pulumi-lang-go=\"`rotationInterval`\" pulumi-lang-python=\"`rotation_interval`\" pulumi-lang-yaml=\"`rotationInterval`\" pulumi-lang-java=\"`rotationInterval`\" pulumi-lang-hcl=\"`rotation_interval`\"\u003e`rotationInterval`\u003c/span\u003e units. A whole number of at least '1'.\n" }, "scheduleId": { "type": "string", "description": "Existing object identity. Changing it replaces this resource.\n" }, "startRotationsAt": { "type": "string", "description": "When the rotation schedule starts.\n" }, "teamId": { "type": "string", "description": "Team of the rotation's on-call schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "timezone": { "type": "string", "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e and for handovers across daylight saving changes. A new rotation with \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e defaults to UTC. Leave it out to keep the previous time zone.\n" }, "users": { "type": "array", "items": { "type": "string" }, "description": "E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.\n" }, "workingHours": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallRotationWorkingHour:OnCallRotationWorkingHour" }, "description": "The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as `HH:MM`, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e, or with an empty list, the rotation pages around the clock.\n" } }, "requiredInputs": [ "scheduleId", "rotationInterval", "rotationLength", "startRotationsAt", "users" ], "stateInputs": { "description": "Input properties used for looking up and filtering OnCallRotation resources.\n", "properties": { "applyFrom": { "type": "string", "description": "The date the change applies from. Shifts before it stay as they are. Leave it out to apply the change now. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "applyFromTimezone": { "type": "string", "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e. Ignored when \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e has a UTC offset. Defaults to `UTC`. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "effectiveTimezone": { "type": "string", "description": "The time zone \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e are read in. Same as \u003cspan pulumi-lang-nodejs=\"`timezone`\" pulumi-lang-dotnet=\"`Timezone`\" pulumi-lang-go=\"`timezone`\" pulumi-lang-python=\"`timezone`\" pulumi-lang-yaml=\"`timezone`\" pulumi-lang-java=\"`timezone`\" pulumi-lang-hcl=\"`timezone`\"\u003e`timezone`\u003c/span\u003e when it's set, otherwise the schedule's default time zone, or `UTC` when neither is set.\n" }, "endRotationsAt": { "type": "string", "description": "When the rotation schedule ends. Must be after \u003cspan pulumi-lang-nodejs=\"`startRotationsAt`\" pulumi-lang-dotnet=\"`StartRotationsAt`\" pulumi-lang-go=\"`startRotationsAt`\" pulumi-lang-python=\"`start_rotations_at`\" pulumi-lang-yaml=\"`startRotationsAt`\" pulumi-lang-java=\"`startRotationsAt`\" pulumi-lang-hcl=\"`start_rotations_at`\"\u003e`startRotationsAt`\u003c/span\u003e. Shifts after it are removed. Leave it out to keep the rotation running.\n" }, "rotationInterval": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/onCallRotationRotationInterval:OnCallRotationRotationInterval" } ], "description": "Unit for \u003cspan pulumi-lang-nodejs=\"`rotationLength`\" pulumi-lang-dotnet=\"`RotationLength`\" pulumi-lang-go=\"`rotationLength`\" pulumi-lang-python=\"`rotation_length`\" pulumi-lang-yaml=\"`rotationLength`\" pulumi-lang-java=\"`rotationLength`\" pulumi-lang-hcl=\"`rotation_length`\"\u003e`rotationLength`\u003c/span\u003e. Valid values: 'hour', 'day', 'week'.\n" }, "rotationLength": { "type": "integer", "description": "How long each shift lasts, in \u003cspan pulumi-lang-nodejs=\"`rotationInterval`\" pulumi-lang-dotnet=\"`RotationInterval`\" pulumi-lang-go=\"`rotationInterval`\" pulumi-lang-python=\"`rotation_interval`\" pulumi-lang-yaml=\"`rotationInterval`\" pulumi-lang-java=\"`rotationInterval`\" pulumi-lang-hcl=\"`rotation_interval`\"\u003e`rotationInterval`\u003c/span\u003e units. A whole number of at least '1'.\n" }, "scheduleId": { "type": "string", "description": "Existing object identity. Changing it replaces this resource.\n" }, "startRotationsAt": { "type": "string", "description": "When the rotation schedule starts.\n" }, "teamId": { "type": "string", "description": "Team of the rotation's on-call schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "timezone": { "type": "string", "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e and for handovers across daylight saving changes. A new rotation with \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e defaults to UTC. Leave it out to keep the previous time zone.\n" }, "users": { "type": "array", "items": { "type": "string" }, "description": "E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.\n" }, "workingHours": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallRotationWorkingHour:OnCallRotationWorkingHour" }, "description": "The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as `HH:MM`, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e, or with an empty list, the rotation pages around the clock.\n" } }, "type": "object" } }, "betterstack:index/onCallSchedule:OnCallSchedule": { "description": "An on-call schedule says who on your team is on call and when. A schedule has a rotation that puts people on call in turns, and overrides that put someone else on call for a while.\n\n## Example Usage\n\n### New Slack user group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst newSlackUserGroup = new betterstack.OnCallSchedule(\"new_slack_user_group\", {\n name: \"Backend on-call\",\n slackGroupHandle: \"backend-oncall\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nnew_slack_user_group = betterstack.OnCallSchedule(\"new_slack_user_group\",\n name=\"Backend on-call\",\n slack_group_handle=\"backend-oncall\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var newSlackUserGroup = new BetterStack.OnCallSchedule(\"new_slack_user_group\", new()\n {\n Name = \"Backend on-call\",\n SlackGroupHandle = \"backend-oncall\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewOnCallSchedule(ctx, \"new_slack_user_group\", \u0026betterstack.OnCallScheduleArgs{\n\t\t\tName: pulumi.String(\"Backend on-call\"),\n\t\t\tSlackGroupHandle: pulumi.String(\"backend-oncall\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_on_call_schedule\" \"new_slack_user_group\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend on-call\"\n slack_group_handle = \"backend-oncall\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.OnCallSchedule;\nimport com.betterstack.pulumi.OnCallScheduleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var newSlackUserGroup = new OnCallSchedule(\"newSlackUserGroup\", OnCallScheduleArgs.builder()\n .name(\"Backend on-call\")\n .slackGroupHandle(\"backend-oncall\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n newSlackUserGroup:\n type: betterstack:OnCallSchedule\n name: new_slack_user_group\n properties:\n name: Backend on-call\n slackGroupHandle: backend-oncall\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Existing Slack user group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst existingSlackUserGroup = new betterstack.OnCallSchedule(\"existing_slack_user_group\", {\n name: \"Platform on-call\",\n slackGroupHandle: \"platform-team\",\n useExistingSlackGroup: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexisting_slack_user_group = betterstack.OnCallSchedule(\"existing_slack_user_group\",\n name=\"Platform on-call\",\n slack_group_handle=\"platform-team\",\n use_existing_slack_group=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var existingSlackUserGroup = new BetterStack.OnCallSchedule(\"existing_slack_user_group\", new()\n {\n Name = \"Platform on-call\",\n SlackGroupHandle = \"platform-team\",\n UseExistingSlackGroup = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewOnCallSchedule(ctx, \"existing_slack_user_group\", \u0026betterstack.OnCallScheduleArgs{\n\t\t\tName: pulumi.String(\"Platform on-call\"),\n\t\t\tSlackGroupHandle: pulumi.String(\"platform-team\"),\n\t\t\tUseExistingSlackGroup: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_on_call_schedule\" \"existing_slack_user_group\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Platform on-call\"\n slack_group_handle = \"platform-team\"\n use_existing_slack_group = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.OnCallSchedule;\nimport com.betterstack.pulumi.OnCallScheduleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var existingSlackUserGroup = new OnCallSchedule(\"existingSlackUserGroup\", OnCallScheduleArgs.builder()\n .name(\"Platform on-call\")\n .slackGroupHandle(\"platform-team\")\n .useExistingSlackGroup(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n existingSlackUserGroup:\n type: betterstack:OnCallSchedule\n name: existing_slack_user_group\n properties:\n name: Platform on-call\n slackGroupHandle: platform-team\n useExistingSlackGroup: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing on-call schedule by its ID. Get the ID via [List on-call schedules](https://betterstack.com/docs/uptime/api/list-all-existing-on-call-calendars/). The matching get function also finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/onCallSchedule:OnCallSchedule example 12345\n```\n\n", "properties": { "defaultSchedule": { "type": "boolean", "description": "Whether this is your team's default on-call schedule.\n" }, "name": { "type": "string", "description": "Schedule name. null only on a primary schedule without a name of its own. Required on create.\n" }, "onCallUsers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleOnCallUser:OnCallScheduleOnCallUser" }, "description": "Users on call now, or at 'from' when you send it. Each user's entry under 'relationships' also has a 'meta' object with \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`onHoliday`\" pulumi-lang-dotnet=\"`OnHoliday`\" pulumi-lang-go=\"`onHoliday`\" pulumi-lang-python=\"`on_holiday`\" pulumi-lang-yaml=\"`onHoliday`\" pulumi-lang-java=\"`onHoliday`\" pulumi-lang-hcl=\"`on_holiday`\"\u003e`onHoliday`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`holidayEndsAt`\" pulumi-lang-dotnet=\"`HolidayEndsAt`\" pulumi-lang-go=\"`holidayEndsAt`\" pulumi-lang-python=\"`holiday_ends_at`\" pulumi-lang-yaml=\"`holidayEndsAt`\" pulumi-lang-java=\"`holidayEndsAt`\" pulumi-lang-hcl=\"`holiday_ends_at`\"\u003e`holidayEndsAt`\u003c/span\u003e.\n" }, "shifts": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleShift:OnCallScheduleShift" }, "description": "Who is on call from 'from' to 'to', oldest first. Each entry is one part of a shift and the people on call during it. Where an override covers part of a shift, the override's entry replaces that part. Without 'from' and 'to', \u003cspan pulumi-lang-nodejs=\"`shifts`\" pulumi-lang-dotnet=\"`Shifts`\" pulumi-lang-go=\"`shifts`\" pulumi-lang-python=\"`shifts`\" pulumi-lang-yaml=\"`shifts`\" pulumi-lang-java=\"`shifts`\" pulumi-lang-hcl=\"`shifts`\"\u003e`shifts`\u003c/span\u003e holds only the shift running now. Returned when you get or list schedules.\n" }, "slackGroupHandle": { "type": "string", "description": "The handle of a Slack user group that always holds whoever is on call, without the @, or null when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and \u003cspan pulumi-lang-nodejs=\"`slackGroups`\" pulumi-lang-dotnet=\"`SlackGroups`\" pulumi-lang-go=\"`slackGroups`\" pulumi-lang-python=\"`slack_groups`\" pulumi-lang-yaml=\"`slackGroups`\" pulumi-lang-java=\"`slackGroups`\" pulumi-lang-hcl=\"`slack_groups`\"\u003e`slackGroups`\u003c/span\u003e then shows why. Accepts lowercase letters, digits, `.`, `_` and `-`, or letters outside ASCII. An on-call schedule in another team can't already use it. Remove the argument or set it to an empty string to stop tagging who is on call.\n" }, "slackGroups": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleSlackGroup:OnCallScheduleSlackGroup" }, "description": "The state of the handle's user group in each connected Slack workspace.\n" }, "teamId": { "type": "string", "description": "Team that owns the schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the schedule.\n" }, "useExistingSlackGroup": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`slackGroupHandle`\" pulumi-lang-dotnet=\"`SlackGroupHandle`\" pulumi-lang-go=\"`slackGroupHandle`\" pulumi-lang-python=\"`slack_group_handle`\" pulumi-lang-yaml=\"`slackGroupHandle`\" pulumi-lang-java=\"`slackGroupHandle`\" pulumi-lang-hcl=\"`slack_group_handle`\"\u003e`slackGroupHandle`\u003c/span\u003e names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is true, and a handle no group uses is refused when it's true. Sent without \u003cspan pulumi-lang-nodejs=\"`slackGroupHandle`\" pulumi-lang-dotnet=\"`SlackGroupHandle`\" pulumi-lang-go=\"`slackGroupHandle`\" pulumi-lang-python=\"`slack_group_handle`\" pulumi-lang-yaml=\"`slackGroupHandle`\" pulumi-lang-java=\"`slackGroupHandle`\" pulumi-lang-hcl=\"`slack_group_handle`\"\u003e`slackGroupHandle`\u003c/span\u003e, the setting applies to the current handle. Defaults to false.\n" } }, "required": [ "defaultSchedule", "name", "onCallUsers", "shifts", "slackGroups", "teamId", "teamName", "useExistingSlackGroup" ], "inputProperties": { "name": { "type": "string", "description": "Schedule name. null only on a primary schedule without a name of its own. Required on create.\n" }, "slackGroupHandle": { "type": "string", "description": "The handle of a Slack user group that always holds whoever is on call, without the @, or null when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and \u003cspan pulumi-lang-nodejs=\"`slackGroups`\" pulumi-lang-dotnet=\"`SlackGroups`\" pulumi-lang-go=\"`slackGroups`\" pulumi-lang-python=\"`slack_groups`\" pulumi-lang-yaml=\"`slackGroups`\" pulumi-lang-java=\"`slackGroups`\" pulumi-lang-hcl=\"`slack_groups`\"\u003e`slackGroups`\u003c/span\u003e then shows why. Accepts lowercase letters, digits, `.`, `_` and `-`, or letters outside ASCII. An on-call schedule in another team can't already use it. Remove the argument or set it to an empty string to stop tagging who is on call.\n" }, "teamId": { "type": "string", "description": "Team that owns the schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "useExistingSlackGroup": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`slackGroupHandle`\" pulumi-lang-dotnet=\"`SlackGroupHandle`\" pulumi-lang-go=\"`slackGroupHandle`\" pulumi-lang-python=\"`slack_group_handle`\" pulumi-lang-yaml=\"`slackGroupHandle`\" pulumi-lang-java=\"`slackGroupHandle`\" pulumi-lang-hcl=\"`slack_group_handle`\"\u003e`slackGroupHandle`\u003c/span\u003e names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is true, and a handle no group uses is refused when it's true. Sent without \u003cspan pulumi-lang-nodejs=\"`slackGroupHandle`\" pulumi-lang-dotnet=\"`SlackGroupHandle`\" pulumi-lang-go=\"`slackGroupHandle`\" pulumi-lang-python=\"`slack_group_handle`\" pulumi-lang-yaml=\"`slackGroupHandle`\" pulumi-lang-java=\"`slackGroupHandle`\" pulumi-lang-hcl=\"`slack_group_handle`\"\u003e`slackGroupHandle`\u003c/span\u003e, the setting applies to the current handle. Defaults to false.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering OnCallSchedule resources.\n", "properties": { "defaultSchedule": { "type": "boolean", "description": "Whether this is your team's default on-call schedule.\n" }, "name": { "type": "string", "description": "Schedule name. null only on a primary schedule without a name of its own. Required on create.\n" }, "onCallUsers": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleOnCallUser:OnCallScheduleOnCallUser" }, "description": "Users on call now, or at 'from' when you send it. Each user's entry under 'relationships' also has a 'meta' object with \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`onHoliday`\" pulumi-lang-dotnet=\"`OnHoliday`\" pulumi-lang-go=\"`onHoliday`\" pulumi-lang-python=\"`on_holiday`\" pulumi-lang-yaml=\"`onHoliday`\" pulumi-lang-java=\"`onHoliday`\" pulumi-lang-hcl=\"`on_holiday`\"\u003e`onHoliday`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`holidayEndsAt`\" pulumi-lang-dotnet=\"`HolidayEndsAt`\" pulumi-lang-go=\"`holidayEndsAt`\" pulumi-lang-python=\"`holiday_ends_at`\" pulumi-lang-yaml=\"`holidayEndsAt`\" pulumi-lang-java=\"`holidayEndsAt`\" pulumi-lang-hcl=\"`holiday_ends_at`\"\u003e`holidayEndsAt`\u003c/span\u003e.\n" }, "shifts": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleShift:OnCallScheduleShift" }, "description": "Who is on call from 'from' to 'to', oldest first. Each entry is one part of a shift and the people on call during it. Where an override covers part of a shift, the override's entry replaces that part. Without 'from' and 'to', \u003cspan pulumi-lang-nodejs=\"`shifts`\" pulumi-lang-dotnet=\"`Shifts`\" pulumi-lang-go=\"`shifts`\" pulumi-lang-python=\"`shifts`\" pulumi-lang-yaml=\"`shifts`\" pulumi-lang-java=\"`shifts`\" pulumi-lang-hcl=\"`shifts`\"\u003e`shifts`\u003c/span\u003e holds only the shift running now. Returned when you get or list schedules.\n" }, "slackGroupHandle": { "type": "string", "description": "The handle of a Slack user group that always holds whoever is on call, without the @, or null when there's none. A handle for a new group can have up to 80 characters. Slack can still refuse a handle after it's saved, and \u003cspan pulumi-lang-nodejs=\"`slackGroups`\" pulumi-lang-dotnet=\"`SlackGroups`\" pulumi-lang-go=\"`slackGroups`\" pulumi-lang-python=\"`slack_groups`\" pulumi-lang-yaml=\"`slackGroups`\" pulumi-lang-java=\"`slackGroups`\" pulumi-lang-hcl=\"`slack_groups`\"\u003e`slackGroups`\u003c/span\u003e then shows why. Accepts lowercase letters, digits, `.`, `_` and `-`, or letters outside ASCII. An on-call schedule in another team can't already use it. Remove the argument or set it to an empty string to stop tagging who is on call.\n" }, "slackGroups": { "type": "array", "items": { "$ref": "#/types/betterstack:index/OnCallScheduleSlackGroup:OnCallScheduleSlackGroup" }, "description": "The state of the handle's user group in each connected Slack workspace.\n" }, "teamId": { "type": "string", "description": "Team that owns the schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the schedule.\n" }, "useExistingSlackGroup": { "type": "boolean", "description": "Whether \u003cspan pulumi-lang-nodejs=\"`slackGroupHandle`\" pulumi-lang-dotnet=\"`SlackGroupHandle`\" pulumi-lang-go=\"`slackGroupHandle`\" pulumi-lang-python=\"`slack_group_handle`\" pulumi-lang-yaml=\"`slackGroupHandle`\" pulumi-lang-java=\"`slackGroupHandle`\" pulumi-lang-hcl=\"`slack_group_handle`\"\u003e`slackGroupHandle`\u003c/span\u003e names a user group that already exists in your connected Slack workspace, instead of a new group we create. An existing group keeps its other members. A handle that one of your Slack user groups already uses is refused unless this is true, and a handle no group uses is refused when it's true. Sent without \u003cspan pulumi-lang-nodejs=\"`slackGroupHandle`\" pulumi-lang-dotnet=\"`SlackGroupHandle`\" pulumi-lang-go=\"`slackGroupHandle`\" pulumi-lang-python=\"`slack_group_handle`\" pulumi-lang-yaml=\"`slackGroupHandle`\" pulumi-lang-java=\"`slackGroupHandle`\" pulumi-lang-hcl=\"`slack_group_handle`\"\u003e`slackGroupHandle`\u003c/span\u003e, the setting applies to the current handle. Defaults to false.\n" } }, "type": "object" } }, "betterstack:index/otlp:Otlp": { "description": "An export that sends the metrics of a team's servers in this zone to your OTLP receiver every minute.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Otlp(\"example\", {\n name: \"example\",\n endpoint: \"https://otlp.example.com\",\n resourceTypes: [\"server\"],\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Otlp(\"example\",\n name=\"example\",\n endpoint=\"https://otlp.example.com\",\n resource_types=[\"server\"],\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Otlp(\"example\", new()\n {\n Name = \"example\",\n Endpoint = \"https://otlp.example.com\",\n ResourceTypes = new[]\n {\n \"server\",\n },\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewOtlp(ctx, \"example\", \u0026betterstack.OtlpArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tEndpoint: pulumi.String(\"https://otlp.example.com\"),\n\t\t\tResourceTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"server\"),\n\t\t\t},\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_otlp\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n endpoint = \"https://otlp.example.com\"\n resource_types = [\"server\"]\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Otlp;\nimport com.betterstack.pulumi.OtlpArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Otlp(\"example\", OtlpArgs.builder()\n .name(\"example\")\n .endpoint(\"https://otlp.example.com\")\n .resourceTypes(\"server\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Otlp\n properties:\n name: example\n endpoint: https://otlp.example.com\n resourceTypes:\n - server\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e An export belongs to one availability zone, like a webhook. A team with resources in three zones needs an export in each zone.\n\n## Import\n\nImport an existing OTLP export by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/otlp:Otlp example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the export was created.\n" }, "endpoint": { "type": "string", "description": "The base URL of your OTLP receiver over HTTP, such as `https://otlp.example.com`. We add `/v1/metrics` unless the URL already ends with it. Must use 'https' and have up to 2048 characters. Can't include credentials, a query string or a fragment. An IP address in a private, loopback, link-local or multicast range is refused.\n" }, "headerNames": { "type": "array", "items": { "type": "string" }, "description": "The names of the export's headers, in alphabetical order.\n" }, "headers": { "$ref": "pulumi.json#/Any", "description": "The headers your receiver needs, such as `Authorization`, as an object that maps each header to a string value. You can send up to 16 headers, 8 KiB in total. We set `Content-Type`, `Content-Encoding` and `User-Agent` ourselves, and connection and proxy headers such as `Host`, `Connection` or `X-Forwarded-For` aren't allowed. An update replaces all headers. Responses show only the names, in \u003cspan pulumi-lang-nodejs=\"`headerNames`\" pulumi-lang-dotnet=\"`HeaderNames`\" pulumi-lang-go=\"`headerNames`\" pulumi-lang-python=\"`header_names`\" pulumi-lang-yaml=\"`headerNames`\" pulumi-lang-java=\"`headerNames`\" pulumi-lang-hcl=\"`header_names`\"\u003e`headerNames`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "lastDeliveredAt": { "type": "string", "description": "When the receiver last accepted a request.\n" }, "lastError": { "type": "string", "description": "Why the last delivery failed, such as HTTP 401, or how many data points the receiver rejected. \u003cspan pulumi-lang-nodejs=\"`lastError`\" pulumi-lang-dotnet=\"`LastError`\" pulumi-lang-go=\"`lastError`\" pulumi-lang-python=\"`last_error`\" pulumi-lang-yaml=\"`lastError`\" pulumi-lang-java=\"`lastError`\" pulumi-lang-hcl=\"`last_error`\"\u003e`lastError`\u003c/span\u003e is null after a delivery without a problem.\n" }, "lastErrorAt": { "type": "string", "description": "When the error in \u003cspan pulumi-lang-nodejs=\"`lastError`\" pulumi-lang-dotnet=\"`LastError`\" pulumi-lang-go=\"`lastError`\" pulumi-lang-python=\"`last_error`\" pulumi-lang-yaml=\"`lastError`\" pulumi-lang-java=\"`lastError`\" pulumi-lang-hcl=\"`last_error`\"\u003e`lastError`\u003c/span\u003e happened.\n" }, "name": { "type": "string", "description": "The export's name, up to 255 characters. Must be unique in the organization.\n" }, "pausedReason": { "type": "string", "description": "Why we paused the export, or null while the export is active or when you paused it. 'delivery_failed': No request reached the receiver for 24 hours. 'destination_refused': The endpoint's hostname resolved to a private or otherwise refused address.\n" }, "resourceTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of resources the export sends metrics of. Use 'server'. Can't be empty.\n" }, "status": { "type": "string", "description": "Whether the export is sending. A paused export set to 'active' again sends metrics from that moment on. Defaults to 'active'. 'active': The export sends metrics every minute. 'paused': The export sends nothing.\n" }, "teamId": { "type": "string", "description": "The ID of the team whose metrics the export sends. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "temporality": { "type": "string", "description": "How we send the byte counters. Defaults to 'cumulative'. Defaults to 'cumulative'. 'cumulative': Each data point holds the total since the series started. 'delta': Each data point holds the bytes of one interval. Prometheus-based backends refuse 'delta'.\n" }, "updatedAt": { "type": "string", "description": "When the export was last updated.\n" } }, "required": [ "createdAt", "endpoint", "headerNames", "headers", "lastDeliveredAt", "lastError", "lastErrorAt", "name", "pausedReason", "resourceTypes", "status", "teamId", "temporality", "updatedAt" ], "inputProperties": { "endpoint": { "type": "string", "description": "The base URL of your OTLP receiver over HTTP, such as `https://otlp.example.com`. We add `/v1/metrics` unless the URL already ends with it. Must use 'https' and have up to 2048 characters. Can't include credentials, a query string or a fragment. An IP address in a private, loopback, link-local or multicast range is refused.\n" }, "headers": { "$ref": "pulumi.json#/Any", "description": "The headers your receiver needs, such as `Authorization`, as an object that maps each header to a string value. You can send up to 16 headers, 8 KiB in total. We set `Content-Type`, `Content-Encoding` and `User-Agent` ourselves, and connection and proxy headers such as `Host`, `Connection` or `X-Forwarded-For` aren't allowed. An update replaces all headers. Responses show only the names, in \u003cspan pulumi-lang-nodejs=\"`headerNames`\" pulumi-lang-dotnet=\"`HeaderNames`\" pulumi-lang-go=\"`headerNames`\" pulumi-lang-python=\"`header_names`\" pulumi-lang-yaml=\"`headerNames`\" pulumi-lang-java=\"`headerNames`\" pulumi-lang-hcl=\"`header_names`\"\u003e`headerNames`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "name": { "type": "string", "description": "The export's name, up to 255 characters. Must be unique in the organization.\n" }, "resourceTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of resources the export sends metrics of. Use 'server'. Can't be empty.\n" }, "status": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/otlpStatus:OtlpStatus" } ], "description": "Whether the export is sending. A paused export set to 'active' again sends metrics from that moment on. Defaults to 'active'. 'active': The export sends metrics every minute. 'paused': The export sends nothing.\n" }, "teamId": { "type": "string", "description": "The ID of the team whose metrics the export sends. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "temporality": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/otlpTemporality:OtlpTemporality" } ], "description": "How we send the byte counters. Defaults to 'cumulative'. Defaults to 'cumulative'. 'cumulative': Each data point holds the total since the series started. 'delta': Each data point holds the bytes of one interval. Prometheus-based backends refuse 'delta'.\n" } }, "requiredInputs": [ "endpoint", "name", "resourceTypes", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering Otlp resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the export was created.\n" }, "endpoint": { "type": "string", "description": "The base URL of your OTLP receiver over HTTP, such as `https://otlp.example.com`. We add `/v1/metrics` unless the URL already ends with it. Must use 'https' and have up to 2048 characters. Can't include credentials, a query string or a fragment. An IP address in a private, loopback, link-local or multicast range is refused.\n" }, "headerNames": { "type": "array", "items": { "type": "string" }, "description": "The names of the export's headers, in alphabetical order.\n" }, "headers": { "$ref": "pulumi.json#/Any", "description": "The headers your receiver needs, such as `Authorization`, as an object that maps each header to a string value. You can send up to 16 headers, 8 KiB in total. We set `Content-Type`, `Content-Encoding` and `User-Agent` ourselves, and connection and proxy headers such as `Host`, `Connection` or `X-Forwarded-For` aren't allowed. An update replaces all headers. Responses show only the names, in \u003cspan pulumi-lang-nodejs=\"`headerNames`\" pulumi-lang-dotnet=\"`HeaderNames`\" pulumi-lang-go=\"`headerNames`\" pulumi-lang-python=\"`header_names`\" pulumi-lang-yaml=\"`headerNames`\" pulumi-lang-java=\"`headerNames`\" pulumi-lang-hcl=\"`header_names`\"\u003e`headerNames`\u003c/span\u003e. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "lastDeliveredAt": { "type": "string", "description": "When the receiver last accepted a request.\n" }, "lastError": { "type": "string", "description": "Why the last delivery failed, such as HTTP 401, or how many data points the receiver rejected. \u003cspan pulumi-lang-nodejs=\"`lastError`\" pulumi-lang-dotnet=\"`LastError`\" pulumi-lang-go=\"`lastError`\" pulumi-lang-python=\"`last_error`\" pulumi-lang-yaml=\"`lastError`\" pulumi-lang-java=\"`lastError`\" pulumi-lang-hcl=\"`last_error`\"\u003e`lastError`\u003c/span\u003e is null after a delivery without a problem.\n" }, "lastErrorAt": { "type": "string", "description": "When the error in \u003cspan pulumi-lang-nodejs=\"`lastError`\" pulumi-lang-dotnet=\"`LastError`\" pulumi-lang-go=\"`lastError`\" pulumi-lang-python=\"`last_error`\" pulumi-lang-yaml=\"`lastError`\" pulumi-lang-java=\"`lastError`\" pulumi-lang-hcl=\"`last_error`\"\u003e`lastError`\u003c/span\u003e happened.\n" }, "name": { "type": "string", "description": "The export's name, up to 255 characters. Must be unique in the organization.\n" }, "pausedReason": { "type": "string", "description": "Why we paused the export, or null while the export is active or when you paused it. 'delivery_failed': No request reached the receiver for 24 hours. 'destination_refused': The endpoint's hostname resolved to a private or otherwise refused address.\n" }, "resourceTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of resources the export sends metrics of. Use 'server'. Can't be empty.\n" }, "status": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/otlpStatus:OtlpStatus" } ], "description": "Whether the export is sending. A paused export set to 'active' again sends metrics from that moment on. Defaults to 'active'. 'active': The export sends metrics every minute. 'paused': The export sends nothing.\n" }, "teamId": { "type": "string", "description": "The ID of the team whose metrics the export sends. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "temporality": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/otlpTemporality:OtlpTemporality" } ], "description": "How we send the byte counters. Defaults to 'cumulative'. Defaults to 'cumulative'. 'cumulative': Each data point holds the total since the series started. 'delta': Each data point holds the bytes of one interval. Prometheus-based backends refuse 'delta'.\n" }, "updatedAt": { "type": "string", "description": "When the export was last updated.\n" } }, "type": "object" } }, "betterstack:index/placementGroup:PlacementGroup": { "description": "A group of servers that we either spread across different hosts or pack onto as few hosts as we can, as long as there's room.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.PlacementGroup(\"example\", {\n name: \"example\",\n placementType: betterstack.PlacementGroupPlacementType.Spread,\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.PlacementGroup(\"example\",\n name=\"example\",\n placement_type=betterstack.PlacementGroupPlacementType.SPREAD,\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.PlacementGroup(\"example\", new()\n {\n Name = \"example\",\n PlacementType = BetterStack.PlacementGroupPlacementType.Spread,\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewPlacementGroup(ctx, \"example\", \u0026betterstack.PlacementGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tPlacementType: pulumi.String(betterstack.PlacementGroupPlacementTypeSpread),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_placement_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n placement_type = \"spread\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.PlacementGroup;\nimport com.betterstack.pulumi.PlacementGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new PlacementGroup(\"example\", PlacementGroupArgs.builder()\n .name(\"example\")\n .placementType(\"spread\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:PlacementGroup\n properties:\n name: example\n placementType: spread\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing placement group by its ID.\n\n```sh\n$ pulumi import betterstack:index/placementGroup:PlacementGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The group's name.\n" }, "placementType": { "type": "string", "description": "How we place the group's servers. When there isn't room, the server is still created, on another host. Can't be changed after the group is created. 'spread': We put each server on a different host when we can. 'compact': We put the servers on as few hosts as we can.\n" }, "serverIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the servers in the group. A server joins the group when you create it with 'placement_group_id'.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the group. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "metadata", "name", "placementType", "serverIds", "teamId", "updatedAt" ], "inputProperties": { "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The group's name.\n" }, "placementType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/placementGroupPlacementType:PlacementGroupPlacementType" } ], "description": "How we place the group's servers. When there isn't room, the server is still created, on another host. Can't be changed after the group is created. 'spread': We put each server on a different host when we can. 'compact': We put the servers on as few hosts as we can.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the group. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" } }, "requiredInputs": [ "name", "placementType", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering PlacementGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The group's name.\n" }, "placementType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/placementGroupPlacementType:PlacementGroupPlacementType" } ], "description": "How we place the group's servers. When there isn't room, the server is still created, on another host. Can't be changed after the group is created. 'spread': We put each server on a different host when we can. 'compact': We put the servers on as few hosts as we can.\n" }, "serverIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the servers in the group. A server joins the group when you create it with 'placement_group_id'.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the group. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/postgres:Postgres": { "description": "A managed PostgreSQL instance with up to two read replicas. Clients connect straight to PostgreSQL, or through PgBouncer, which pools connections.\n\n\u003e Destroying a PostgreSQL instance deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Postgres(\"example\", {\n name: \"example\",\n type: \"PG1\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Postgres(\"example\",\n name=\"example\",\n type=\"PG1\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Postgres(\"example\", new()\n {\n Name = \"example\",\n Type = \"PG1\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewPostgres(ctx, \"example\", \u0026betterstack.PostgresArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"PG1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_postgres\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"PG1\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Postgres;\nimport com.betterstack.pulumi.PostgresArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Postgres(\"example\", PostgresArgs.builder()\n .name(\"example\")\n .type(\"PG1\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Postgres\n properties:\n name: example\n type: PG1\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing PostgreSQL instance by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/postgres:Postgres example 12345\n```\n\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The major versions you can upgrade the instance to. An upgrade can't be undone.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "database": { "type": "string", "description": "The name of the instance's first database. Defaults to 'defaultdb'. Defaults to 'defaultdb'. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "databases": { "type": "array", "items": { "type": "string" }, "description": "The names of the instance's databases. Add databases via [Create a PostgreSQL database](https://betterstack.com/docs/cloud/api/postgres-databases/create-postgres-database/).\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this postgres is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/PostgresEndpoint:PostgresEndpoint", "description": "Where to connect to the instance. Connect straight to PostgreSQL on \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e, or through PgBouncer on \u003cspan pulumi-lang-nodejs=\"`pooledPort`\" pulumi-lang-dotnet=\"`PooledPort`\" pulumi-lang-go=\"`pooledPort`\" pulumi-lang-python=\"`pooled_port`\" pulumi-lang-yaml=\"`pooledPort`\" pulumi-lang-java=\"`pooledPort`\" pulumi-lang-hcl=\"`pooled_port`\"\u003e`pooledPort`\u003c/span\u003e.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact PostgreSQL version the instance runs, such as `19.0`, or null until we know it.\n" }, "engineVersion": { "type": "string", "description": "The PostgreSQL major version, such as '19'. Get the versions via [List PostgreSQL versions](https://betterstack.com/docs/cloud/api/postgres-versions/list-postgres-versions/). Defaults to the newest version we offer.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to every node. An instance can have at most one firewall.\n" }, "idleInTransactionSessionTimeout": { "type": "integer", "description": "How long a session can stay idle inside a transaction before PostgreSQL ends it, in milliseconds, from '0' to '86400000'. Set it to '0' for no limit. Defaults to '0'.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was taken.\n" }, "logMinDurationStatement": { "type": "integer", "description": "How long a statement must run before PostgreSQL logs it, in milliseconds, from `-1` to '600000'. Set it to `-1` to log none. Defaults to `-1`.\n" }, "maxConnections": { "type": "integer", "description": "How many clients can connect straight to PostgreSQL at once, without going through PgBouncer.\n" }, "maxPooledConnections": { "type": "integer", "description": "How many clients can connect through PgBouncer at once.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/PostgresMember:PostgresMember" }, "description": "The instance's nodes, the primary and its replicas.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's PostgreSQL instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to every node. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether clients can also connect to the instance from the internet. Connections use TLS. Defaults to false.\n" }, "readOnly": { "type": "boolean", "description": "Whether the instance accepts only reads because its disk is nearly full.\n" }, "replicaCount": { "type": "integer", "description": "How many read replicas the instance has, from '0' to '2'. Defaults to '0'.\n" }, "statementTimeout": { "type": "integer", "description": "How long a statement can run before PostgreSQL cancels it, in milliseconds, from '0' to '3600000'. Set it to '0' for no limit. Defaults to '0'.\n" }, "status": { "type": "string", "description": "The instance's status. After you create or restore an instance, get it until its status is 'running'. A failed or destroyed instance stays that way. 'provisioning': We're setting up the instance. 'running': The instance is ready. 'degraded': A node is down, replication is broken or the disk is nearly full. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the instance's type. 'upgrading': We're upgrading PostgreSQL to a new major version. 'restoring': We're restoring the instance from a snapshot. 'failed': Setting up the instance failed. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "More about the status, such as why the instance failed or is degraded, that a replica is being rebuilt, or that an action didn't finish.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `PG1`, which sets its size. Get the types via [List PostgreSQL types](https://betterstack.com/docs/cloud/api/postgres-types/list-postgres-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last updated.\n" }, "usableStorageGb": { "type": "integer", "description": "The disk space for your data, in GiB.\n" }, "users": { "type": "array", "items": { "$ref": "#/types/betterstack:index/PostgresUserSummary:PostgresUserSummary" }, "description": "The instance's users. Add users via [Create a PostgreSQL user](https://betterstack.com/docs/cloud/api/postgres-users/create-postgres-user/), and get a user's password via [Get a PostgreSQL user's credentials](https://betterstack.com/docs/cloud/api/postgres-users/credentials-postgres-user/).\n" }, "workMemMb": { "type": "integer", "description": "The memory each sort or hash operation can use, in MiB, from '1' to '256'. Defaults to '4'.\n" } }, "required": [ "availableEngineVersions", "createdAt", "database", "databases", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "idleInTransactionSessionTimeout", "latestSnapshotAt", "logMinDurationStatement", "maxConnections", "maxPooledConnections", "members", "metadata", "name", "networkIds", "publicAccess", "readOnly", "replicaCount", "statementTimeout", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableStorageGb", "users", "workMemMb" ], "inputProperties": { "database": { "type": "string", "description": "The name of the instance's first database. Defaults to 'defaultdb'. Defaults to 'defaultdb'. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this postgres is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "engineVersion": { "type": "string", "description": "The PostgreSQL major version, such as '19'. Get the versions via [List PostgreSQL versions](https://betterstack.com/docs/cloud/api/postgres-versions/list-postgres-versions/). Defaults to the newest version we offer.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to every node. An instance can have at most one firewall.\n" }, "idleInTransactionSessionTimeout": { "type": "integer", "description": "How long a session can stay idle inside a transaction before PostgreSQL ends it, in milliseconds, from '0' to '86400000'. Set it to '0' for no limit. Defaults to '0'.\n" }, "logMinDurationStatement": { "type": "integer", "description": "How long a statement must run before PostgreSQL logs it, in milliseconds, from `-1` to '600000'. Set it to `-1` to log none. Defaults to `-1`.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's PostgreSQL instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to every node. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether clients can also connect to the instance from the internet. Connections use TLS. Defaults to false.\n" }, "replicaCount": { "type": "integer", "description": "How many read replicas the instance has, from '0' to '2'. Defaults to '0'.\n" }, "statementTimeout": { "type": "integer", "description": "How long a statement can run before PostgreSQL cancels it, in milliseconds, from '0' to '3600000'. Set it to '0' for no limit. Defaults to '0'.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/postgresTerm:PostgresTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `PG1`, which sets its size. Get the types via [List PostgreSQL types](https://betterstack.com/docs/cloud/api/postgres-types/list-postgres-types/).\n" }, "workMemMb": { "type": "integer", "description": "The memory each sort or hash operation can use, in MiB, from '1' to '256'. Defaults to '4'.\n" } }, "requiredInputs": [ "name", "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering Postgres resources.\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The major versions you can upgrade the instance to. An upgrade can't be undone.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "database": { "type": "string", "description": "The name of the instance's first database. Defaults to 'defaultdb'. Defaults to 'defaultdb'. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "databases": { "type": "array", "items": { "type": "string" }, "description": "The names of the instance's databases. Add databases via [Create a PostgreSQL database](https://betterstack.com/docs/cloud/api/postgres-databases/create-postgres-database/).\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this postgres is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/PostgresEndpoint:PostgresEndpoint", "description": "Where to connect to the instance. Connect straight to PostgreSQL on \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e, or through PgBouncer on \u003cspan pulumi-lang-nodejs=\"`pooledPort`\" pulumi-lang-dotnet=\"`PooledPort`\" pulumi-lang-go=\"`pooledPort`\" pulumi-lang-python=\"`pooled_port`\" pulumi-lang-yaml=\"`pooledPort`\" pulumi-lang-java=\"`pooledPort`\" pulumi-lang-hcl=\"`pooled_port`\"\u003e`pooledPort`\u003c/span\u003e.\n" }, "enginePatchVersion": { "type": "string", "description": "The exact PostgreSQL version the instance runs, such as `19.0`, or null until we know it.\n" }, "engineVersion": { "type": "string", "description": "The PostgreSQL major version, such as '19'. Get the versions via [List PostgreSQL versions](https://betterstack.com/docs/cloud/api/postgres-versions/list-postgres-versions/). Defaults to the newest version we offer.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to every node. An instance can have at most one firewall.\n" }, "idleInTransactionSessionTimeout": { "type": "integer", "description": "How long a session can stay idle inside a transaction before PostgreSQL ends it, in milliseconds, from '0' to '86400000'. Set it to '0' for no limit. Defaults to '0'.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was taken.\n" }, "logMinDurationStatement": { "type": "integer", "description": "How long a statement must run before PostgreSQL logs it, in milliseconds, from `-1` to '600000'. Set it to `-1` to log none. Defaults to `-1`.\n" }, "maxConnections": { "type": "integer", "description": "How many clients can connect straight to PostgreSQL at once, without going through PgBouncer.\n" }, "maxPooledConnections": { "type": "integer", "description": "How many clients can connect through PgBouncer at once.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/PostgresMember:PostgresMember" }, "description": "The instance's nodes, the primary and its replicas.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's PostgreSQL instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to every node. Each network must be in the instance's team.\n" }, "publicAccess": { "type": "boolean", "description": "Whether clients can also connect to the instance from the internet. Connections use TLS. Defaults to false.\n" }, "readOnly": { "type": "boolean", "description": "Whether the instance accepts only reads because its disk is nearly full.\n" }, "replicaCount": { "type": "integer", "description": "How many read replicas the instance has, from '0' to '2'. Defaults to '0'.\n" }, "statementTimeout": { "type": "integer", "description": "How long a statement can run before PostgreSQL cancels it, in milliseconds, from '0' to '3600000'. Set it to '0' for no limit. Defaults to '0'.\n" }, "status": { "type": "string", "description": "The instance's status. After you create or restore an instance, get it until its status is 'running'. A failed or destroyed instance stays that way. 'provisioning': We're setting up the instance. 'running': The instance is ready. 'degraded': A node is down, replication is broken or the disk is nearly full. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the instance's type. 'upgrading': We're upgrading PostgreSQL to a new major version. 'restoring': We're restoring the instance from a snapshot. 'failed': Setting up the instance failed. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says why. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "More about the status, such as why the instance failed or is degraded, that a replica is being rebuilt, or that an action didn't finish.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/postgresTerm:PostgresTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `PG1`, which sets its size. Get the types via [List PostgreSQL types](https://betterstack.com/docs/cloud/api/postgres-types/list-postgres-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last updated.\n" }, "usableStorageGb": { "type": "integer", "description": "The disk space for your data, in GiB.\n" }, "users": { "type": "array", "items": { "$ref": "#/types/betterstack:index/PostgresUserSummary:PostgresUserSummary" }, "description": "The instance's users. Add users via [Create a PostgreSQL user](https://betterstack.com/docs/cloud/api/postgres-users/create-postgres-user/), and get a user's password via [Get a PostgreSQL user's credentials](https://betterstack.com/docs/cloud/api/postgres-users/credentials-postgres-user/).\n" }, "workMemMb": { "type": "integer", "description": "The memory each sort or hash operation can use, in MiB, from '1' to '256'. Defaults to '4'.\n" } }, "type": "object" } }, "betterstack:index/postgresDatabase:PostgresDatabase": { "description": "A database inside a managed PostgreSQL instance.\n\n\u003e Destroying a PostgreSQL database deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n\u003e Better Stack can't update a PostgreSQL database in place, so changing any argument replaces it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Postgres(\"example\", {\n name: \"example\",\n type: \"PG1\",\n teamId: \"t123\",\n});\nconst examplePostgresDatabase = new betterstack.PostgresDatabase(\"example\", {\n postgresId: example.id,\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Postgres(\"example\",\n name=\"example\",\n type=\"PG1\",\n team_id=\"t123\")\nexample_postgres_database = betterstack.PostgresDatabase(\"example\",\n postgres_id=example.id,\n name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Postgres(\"example\", new()\n {\n Name = \"example\",\n Type = \"PG1\",\n TeamId = \"t123\",\n });\n\n var examplePostgresDatabase = new BetterStack.PostgresDatabase(\"example\", new()\n {\n PostgresId = example.Id,\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewPostgres(ctx, \"example\", \u0026betterstack.PostgresArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"PG1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewPostgresDatabase(ctx, \"example\", \u0026betterstack.PostgresDatabaseArgs{\n\t\t\tPostgresId: example.ID(),\n\t\t\tName: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_postgres\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"PG1\"\n team_id = \"t123\"\n}\nresource \"betterstack_postgres_database\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n postgres_id = betterstack_postgres.example.id\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Postgres;\nimport com.betterstack.pulumi.PostgresArgs;\nimport com.betterstack.pulumi.PostgresDatabase;\nimport com.betterstack.pulumi.PostgresDatabaseArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Postgres(\"example\", PostgresArgs.builder()\n .name(\"example\")\n .type(\"PG1\")\n .teamId(\"t123\")\n .build());\n\n var examplePostgresDatabase = new PostgresDatabase(\"examplePostgresDatabase\", PostgresDatabaseArgs.builder()\n .postgresId(example.id())\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Postgres\n properties:\n name: example\n type: PG1\n teamId: t123\n examplePostgresDatabase:\n type: betterstack:PostgresDatabase\n name: example\n properties:\n postgresId: ${example.id}\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing PostgreSQL database by its ID as `postgres_id/id`.\n\n```sh\n$ pulumi import betterstack:index/postgresDatabase:PostgresDatabase example \u003cpostgres_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the database was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this postgres database is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "name": { "type": "string", "description": "The database's name. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore. Can't be 'postgres', 'template0' or 'template1'.\n" }, "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" } }, "required": [ "createdAt", "deletionProtection", "name", "postgresId" ], "inputProperties": { "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this postgres database is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "name": { "type": "string", "description": "The database's name. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore. Can't be 'postgres', 'template0' or 'template1'.\n" }, "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" } }, "requiredInputs": [ "name", "postgresId" ], "stateInputs": { "description": "Input properties used for looking up and filtering PostgresDatabase resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the database was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this postgres database is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "name": { "type": "string", "description": "The database's name. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore. Can't be 'postgres', 'template0' or 'template1'.\n" }, "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" } }, "type": "object" } }, "betterstack:index/postgresScheduledSnapshot:PostgresScheduledSnapshot": { "description": "A schedule that creates snapshots of a PostgreSQL instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Postgres(\"example\", {\n name: \"example\",\n type: \"PG1\",\n teamId: \"t123\",\n});\nconst examplePostgresScheduledSnapshot = new betterstack.PostgresScheduledSnapshot(\"example\", {\n postgresId: example.id,\n frequency: betterstack.PostgresScheduledSnapshotFrequency.Hourly,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Postgres(\"example\",\n name=\"example\",\n type=\"PG1\",\n team_id=\"t123\")\nexample_postgres_scheduled_snapshot = betterstack.PostgresScheduledSnapshot(\"example\",\n postgres_id=example.id,\n frequency=betterstack.PostgresScheduledSnapshotFrequency.HOURLY)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Postgres(\"example\", new()\n {\n Name = \"example\",\n Type = \"PG1\",\n TeamId = \"t123\",\n });\n\n var examplePostgresScheduledSnapshot = new BetterStack.PostgresScheduledSnapshot(\"example\", new()\n {\n PostgresId = example.Id,\n Frequency = BetterStack.PostgresScheduledSnapshotFrequency.Hourly,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewPostgres(ctx, \"example\", \u0026betterstack.PostgresArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"PG1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewPostgresScheduledSnapshot(ctx, \"example\", \u0026betterstack.PostgresScheduledSnapshotArgs{\n\t\t\tPostgresId: example.ID(),\n\t\t\tFrequency: pulumi.String(betterstack.PostgresScheduledSnapshotFrequencyHourly),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_postgres\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"PG1\"\n team_id = \"t123\"\n}\nresource \"betterstack_postgres_scheduled_snapshot\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n postgres_id = betterstack_postgres.example.id\n frequency = \"hourly\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Postgres;\nimport com.betterstack.pulumi.PostgresArgs;\nimport com.betterstack.pulumi.PostgresScheduledSnapshot;\nimport com.betterstack.pulumi.PostgresScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Postgres(\"example\", PostgresArgs.builder()\n .name(\"example\")\n .type(\"PG1\")\n .teamId(\"t123\")\n .build());\n\n var examplePostgresScheduledSnapshot = new PostgresScheduledSnapshot(\"examplePostgresScheduledSnapshot\", PostgresScheduledSnapshotArgs.builder()\n .postgresId(example.id())\n .frequency(\"hourly\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Postgres\n properties:\n name: example\n type: PG1\n teamId: t123\n examplePostgresScheduledSnapshot:\n type: betterstack:PostgresScheduledSnapshot\n name: example\n properties:\n postgresId: ${example.id}\n frequency: hourly\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing PostgreSQL scheduled snapshot by its ID as `postgres_id/id`.\n\n```sh\n$ pulumi import betterstack:index/postgresScheduledSnapshot:PostgresScheduledSnapshot example \u003cpostgres_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last ran, or null until the schedule first runs.\n" }, "postgresId": { "type": "string", "description": "The ID of the PostgreSQL instance. Changing it replaces the resource.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance's primary. Changes when the instance fails over.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "required": [ "createdAt", "frequency", "lastRunAt", "postgresId", "serverId", "updatedAt" ], "inputProperties": { "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/postgresScheduledSnapshotFrequency:PostgresScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "postgresId": { "type": "string", "description": "The ID of the PostgreSQL instance. Changing it replaces the resource.\n" } }, "requiredInputs": [ "frequency", "postgresId" ], "stateInputs": { "description": "Input properties used for looking up and filtering PostgresScheduledSnapshot resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/postgresScheduledSnapshotFrequency:PostgresScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last ran, or null until the schedule first runs.\n" }, "postgresId": { "type": "string", "description": "The ID of the PostgreSQL instance. Changing it replaces the resource.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance's primary. Changes when the instance fails over.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "type": "object" } }, "betterstack:index/postgresUser:PostgresUser": { "description": "A user of a PostgreSQL instance, with its access level on each database.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Postgres(\"example\", {\n name: \"example\",\n type: \"PG1\",\n teamId: \"t123\",\n});\nconst examplePostgresUser = new betterstack.PostgresUser(\"example\", {\n postgresId: example.id,\n username: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Postgres(\"example\",\n name=\"example\",\n type=\"PG1\",\n team_id=\"t123\")\nexample_postgres_user = betterstack.PostgresUser(\"example\",\n postgres_id=example.id,\n username=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Postgres(\"example\", new()\n {\n Name = \"example\",\n Type = \"PG1\",\n TeamId = \"t123\",\n });\n\n var examplePostgresUser = new BetterStack.PostgresUser(\"example\", new()\n {\n PostgresId = example.Id,\n Username = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewPostgres(ctx, \"example\", \u0026betterstack.PostgresArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"PG1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewPostgresUser(ctx, \"example\", \u0026betterstack.PostgresUserArgs{\n\t\t\tPostgresId: example.ID(),\n\t\t\tUsername: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_postgres\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"PG1\"\n team_id = \"t123\"\n}\nresource \"betterstack_postgres_user\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n postgres_id = betterstack_postgres.example.id\n username = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Postgres;\nimport com.betterstack.pulumi.PostgresArgs;\nimport com.betterstack.pulumi.PostgresUser;\nimport com.betterstack.pulumi.PostgresUserArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Postgres(\"example\", PostgresArgs.builder()\n .name(\"example\")\n .type(\"PG1\")\n .teamId(\"t123\")\n .build());\n\n var examplePostgresUser = new PostgresUser(\"examplePostgresUser\", PostgresUserArgs.builder()\n .postgresId(example.id())\n .username(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Postgres\n properties:\n name: example\n type: PG1\n teamId: t123\n examplePostgresUser:\n type: betterstack:PostgresUser\n name: example\n properties:\n postgresId: ${example.id}\n username: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing PostgreSQL user by its ID as `postgres_id/id`.\n\n```sh\n$ pulumi import betterstack:index/postgresUser:PostgresUser example \u003cpostgres_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the user was created.\n" }, "defaultUser": { "type": "boolean", "description": "Whether this is the instance's default 'admin' user. The default user's access can't be changed. The default user can't be deleted.\n" }, "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" }, "privileges": { "$ref": "pulumi.json#/Any", "description": "The user's access to each database, as an object that maps a database name to an access level, such as `{\"appdb\": 'read_write'}`. A database that isn't in the object gets no access. 'read' can read the tables in the 'public' schema. 'read_write' can also add, change and delete rows and run functions, but can't create tables. 'all' can also create tables and schemas and maintain them, such as with `VACUUM`. 'none' gives no access. Each key must be a database of this instance. Leave it out for no access to any database. On update, the object you send replaces the user's access to every database.\n" }, "username": { "type": "string", "description": "The user's name in PostgreSQL. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore. Can't be 'postgres' or 'pgbouncer', or start with `pg_`. Can't be changed after the user is created.\n" } }, "required": [ "createdAt", "defaultUser", "postgresId", "privileges", "username" ], "inputProperties": { "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" }, "privileges": { "$ref": "pulumi.json#/Any", "description": "The user's access to each database, as an object that maps a database name to an access level, such as `{\"appdb\": 'read_write'}`. A database that isn't in the object gets no access. 'read' can read the tables in the 'public' schema. 'read_write' can also add, change and delete rows and run functions, but can't create tables. 'all' can also create tables and schemas and maintain them, such as with `VACUUM`. 'none' gives no access. Each key must be a database of this instance. Leave it out for no access to any database. On update, the object you send replaces the user's access to every database.\n" }, "username": { "type": "string", "description": "The user's name in PostgreSQL. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore. Can't be 'postgres' or 'pgbouncer', or start with `pg_`. Can't be changed after the user is created.\n" } }, "requiredInputs": [ "postgresId", "username" ], "stateInputs": { "description": "Input properties used for looking up and filtering PostgresUser resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the user was created.\n" }, "defaultUser": { "type": "boolean", "description": "Whether this is the instance's default 'admin' user. The default user's access can't be changed. The default user can't be deleted.\n" }, "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" }, "privileges": { "$ref": "pulumi.json#/Any", "description": "The user's access to each database, as an object that maps a database name to an access level, such as `{\"appdb\": 'read_write'}`. A database that isn't in the object gets no access. 'read' can read the tables in the 'public' schema. 'read_write' can also add, change and delete rows and run functions, but can't create tables. 'all' can also create tables and schemas and maintain them, such as with `VACUUM`. 'none' gives no access. Each key must be a database of this instance. Leave it out for no access to any database. On update, the object you send replaces the user's access to every database.\n" }, "username": { "type": "string", "description": "The user's name in PostgreSQL. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore. Can't be 'postgres' or 'pgbouncer', or start with `pg_`. Can't be changed after the user is created.\n" } }, "type": "object" } }, "betterstack:index/release:Release": { "description": "A release of an error-tracking application, detected automatically or registered through the API so it appears the moment it deploys.\n\nCreating this resource records its arguments in Better Stack. Changing them records a new one,\nand earlier ones stay in Better Stack's history.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n\u003e Better Stack can't update a release in place, so changing any argument replaces it.\n\n## Example Usage\n\n### Register a release of an application\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst web = new betterstack.Application(\"web\", {\n name: \"web-app\",\n platform: betterstack.ApplicationPlatform.RubyErrors,\n});\nconst v123 = new betterstack.Release(\"v1_2_3\", {\n version: \"v1.2.3\",\n applicationId: web.id,\n environment: [\"production\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nweb = betterstack.Application(\"web\",\n name=\"web-app\",\n platform=betterstack.ApplicationPlatform.RUBY_ERRORS)\nv123 = betterstack.Release(\"v1_2_3\",\n version=\"v1.2.3\",\n application_id=web.id,\n environment=[\"production\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var web = new BetterStack.Application(\"web\", new()\n {\n Name = \"web-app\",\n Platform = BetterStack.ApplicationPlatform.RubyErrors,\n });\n\n var v123 = new BetterStack.Release(\"v1_2_3\", new()\n {\n Version = \"v1.2.3\",\n ApplicationId = web.Id,\n Environment = new[]\n {\n \"production\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tweb, err := betterstack.NewApplication(ctx, \"web\", \u0026betterstack.ApplicationArgs{\n\t\t\tName: pulumi.String(\"web-app\"),\n\t\t\tPlatform: pulumi.String(betterstack.ApplicationPlatformRubyErrors),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewRelease(ctx, \"v1_2_3\", \u0026betterstack.ReleaseArgs{\n\t\t\tVersion: pulumi.String(\"v1.2.3\"),\n\t\t\tApplicationId: web.ID(),\n\t\t\tEnvironment: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"production\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_application\" \"web\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"web-app\"\n platform = \"ruby_errors\"\n}\nresource \"betterstack_release\" \"v1_2_3\" {\n lifecycle {\n create_before_destroy = true\n }\n version = \"v1.2.3\"\n application_id = betterstack_application.web.id\n environment = [\"production\"]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Application;\nimport com.betterstack.pulumi.ApplicationArgs;\nimport com.betterstack.pulumi.Release;\nimport com.betterstack.pulumi.ReleaseArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var web = new Application(\"web\", ApplicationArgs.builder()\n .name(\"web-app\")\n .platform(\"ruby_errors\")\n .build());\n\n var v123 = new Release(\"v123\", ReleaseArgs.builder()\n .version(\"v1.2.3\")\n .applicationId(web.id())\n .environment(\"production\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n web:\n type: betterstack:Application\n properties:\n name: web-app\n platform: ruby_errors\n v123:\n type: betterstack:Release\n name: v1_2_3\n properties:\n version: v1.2.3\n applicationId: ${web.id}\n environment:\n - production\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Register a commit deployed to staging\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst web = new betterstack.Application(\"web\", {\n name: \"web-app\",\n platform: betterstack.ApplicationPlatform.RubyErrors,\n});\nconst staging = new betterstack.Release(\"staging\", {\n version: \"9f3c2a1\",\n applicationId: web.id,\n environment: [\"staging\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nweb = betterstack.Application(\"web\",\n name=\"web-app\",\n platform=betterstack.ApplicationPlatform.RUBY_ERRORS)\nstaging = betterstack.Release(\"staging\",\n version=\"9f3c2a1\",\n application_id=web.id,\n environment=[\"staging\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var web = new BetterStack.Application(\"web\", new()\n {\n Name = \"web-app\",\n Platform = BetterStack.ApplicationPlatform.RubyErrors,\n });\n\n var staging = new BetterStack.Release(\"staging\", new()\n {\n Version = \"9f3c2a1\",\n ApplicationId = web.Id,\n Environment = new[]\n {\n \"staging\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tweb, err := betterstack.NewApplication(ctx, \"web\", \u0026betterstack.ApplicationArgs{\n\t\t\tName: pulumi.String(\"web-app\"),\n\t\t\tPlatform: pulumi.String(betterstack.ApplicationPlatformRubyErrors),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewRelease(ctx, \"staging\", \u0026betterstack.ReleaseArgs{\n\t\t\tVersion: pulumi.String(\"9f3c2a1\"),\n\t\t\tApplicationId: web.ID(),\n\t\t\tEnvironment: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"staging\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_application\" \"web\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"web-app\"\n platform = \"ruby_errors\"\n}\nresource \"betterstack_release\" \"staging\" {\n lifecycle {\n create_before_destroy = true\n }\n version = \"9f3c2a1\"\n application_id = betterstack_application.web.id\n environment = [\"staging\"]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Application;\nimport com.betterstack.pulumi.ApplicationArgs;\nimport com.betterstack.pulumi.Release;\nimport com.betterstack.pulumi.ReleaseArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var web = new Application(\"web\", ApplicationArgs.builder()\n .name(\"web-app\")\n .platform(\"ruby_errors\")\n .build());\n\n var staging = new Release(\"staging\", ReleaseArgs.builder()\n .version(\"9f3c2a1\")\n .applicationId(web.id())\n .environment(\"staging\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n web:\n type: betterstack:Application\n properties:\n name: web-app\n platform: ruby_errors\n staging:\n type: betterstack:Release\n properties:\n version: 9f3c2a1\n applicationId: ${web.id}\n environment:\n - staging\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing release by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`applicationId`\" pulumi-lang-dotnet=\"`ApplicationId`\" pulumi-lang-go=\"`applicationId`\" pulumi-lang-python=\"`application_id`\" pulumi-lang-yaml=\"`applicationId`\" pulumi-lang-java=\"`applicationId`\" pulumi-lang-hcl=\"`application_id`\"\u003e`applicationId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`version`\" pulumi-lang-dotnet=\"`Version`\" pulumi-lang-go=\"`version`\" pulumi-lang-python=\"`version`\" pulumi-lang-yaml=\"`version`\" pulumi-lang-java=\"`version`\" pulumi-lang-hcl=\"`version`\"\u003e`version`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/release:Release example 12345\n```\n\n", "properties": { "applicationId": { "type": "string", "description": "IDs of the applications to register this release on. For a connected application, the release is registered on the application it's connected to. Leave it out to register the release on every application already reporting this version. When no application reports this version, nothing is registered and the response is still 201.\n" }, "createdAt": { "type": "string", "description": "When the release was created.\n" }, "environment": { "type": "array", "items": { "type": "string" }, "description": "Environments this release was deployed to. A single string is accepted too. Added to any environments the release already has. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments this release was deployed to. Registering only a version, without 'applications', adds the environment to that version's release on every application that has one.\n" }, "firstSeenAt": { "type": "string", "description": "When the release was registered or first seen in an event, whichever came first. Later registrations and events don't change it.\n" }, "lastSeenAt": { "type": "string", "description": "When an event last carried the release. A registered release shows its registration time until its first event. null for a release with no event since this field was added.\n" }, "origin": { "type": "string", "description": "How the release first became known. 'detected': The release was found in the first event that carries its version. 'reported': The release was registered through this API, MCP or the Sentry CLI.\n" }, "teamId": { "type": "string", "description": "The team the release is for, as 't123' or as the team ID the Sentry CLI sends as `SENTRY_ORG`. When you send only a version, the release is registered only on this team's applications. An unknown team is refused. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "updatedAt": { "type": "string", "description": "When the release was last updated.\n" }, "version": { "type": "string", "description": "Release version or commit ref.\n" } }, "required": [ "applicationId", "createdAt", "environment", "environments", "firstSeenAt", "lastSeenAt", "origin", "teamId", "updatedAt", "version" ], "inputProperties": { "applicationId": { "type": "string", "description": "IDs of the applications to register this release on. For a connected application, the release is registered on the application it's connected to. Leave it out to register the release on every application already reporting this version. When no application reports this version, nothing is registered and the response is still 201.\n" }, "environment": { "type": "array", "items": { "type": "string" }, "description": "Environments this release was deployed to. A single string is accepted too. Added to any environments the release already has. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "teamId": { "type": "string", "description": "The team the release is for, as 't123' or as the team ID the Sentry CLI sends as `SENTRY_ORG`. When you send only a version, the release is registered only on this team's applications. An unknown team is refused. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "version": { "type": "string", "description": "Release version or commit ref.\n" } }, "requiredInputs": [ "applicationId", "version" ], "stateInputs": { "description": "Input properties used for looking up and filtering Release resources.\n", "properties": { "applicationId": { "type": "string", "description": "IDs of the applications to register this release on. For a connected application, the release is registered on the application it's connected to. Leave it out to register the release on every application already reporting this version. When no application reports this version, nothing is registered and the response is still 201.\n" }, "createdAt": { "type": "string", "description": "When the release was created.\n" }, "environment": { "type": "array", "items": { "type": "string" }, "description": "Environments this release was deployed to. A single string is accepted too. Added to any environments the release already has. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "environments": { "type": "array", "items": { "type": "string" }, "description": "Environments this release was deployed to. Registering only a version, without 'applications', adds the environment to that version's release on every application that has one.\n" }, "firstSeenAt": { "type": "string", "description": "When the release was registered or first seen in an event, whichever came first. Later registrations and events don't change it.\n" }, "lastSeenAt": { "type": "string", "description": "When an event last carried the release. A registered release shows its registration time until its first event. null for a release with no event since this field was added.\n" }, "origin": { "type": "string", "description": "How the release first became known. 'detected': The release was found in the first event that carries its version. 'reported': The release was registered through this API, MCP or the Sentry CLI.\n" }, "teamId": { "type": "string", "description": "The team the release is for, as 't123' or as the team ID the Sentry CLI sends as `SENTRY_ORG`. When you send only a version, the release is registered only on this team's applications. An unknown team is refused. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "updatedAt": { "type": "string", "description": "When the release was last updated.\n" }, "version": { "type": "string", "description": "Release version or commit ref.\n" } }, "type": "object" } }, "betterstack:index/reservedIp:ReservedIp": { "description": "A public IP address that belongs to your team instead of a server. You can move a reserved IP between servers, and you keep it when you delete a server.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ReservedIp(\"example\", {\n type: betterstack.ReservedIpType.Ipv4,\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ReservedIp(\"example\",\n type=betterstack.ReservedIpType.IPV4,\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ReservedIp(\"example\", new()\n {\n Type = BetterStack.ReservedIpType.Ipv4,\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewReservedIp(ctx, \"example\", \u0026betterstack.ReservedIpArgs{\n\t\t\tType: pulumi.String(betterstack.ReservedIpTypeIpv4),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_reserved_ip\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n type = \"ipv4\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ReservedIp;\nimport com.betterstack.pulumi.ReservedIpArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ReservedIp(\"example\", ReservedIpArgs.builder()\n .type(\"ipv4\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ReservedIp\n properties:\n type: ipv4\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing reserved IP by its ID.\n\n```sh\n$ pulumi import betterstack:index/reservedIp:ReservedIp example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the reserved IP was created.\n" }, "gateway": { "type": "string", "description": "The gateway for the address, for when you configure the server's network yourself.\n" }, "ip": { "type": "string", "description": "The IP address.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The reserved IP's name, unique in the organization.\n" }, "ptrRecord": { "type": "string", "description": "The reverse DNS name for the address. A \u003cspan pulumi-lang-nodejs=\"`ptrRecord`\" pulumi-lang-dotnet=\"`PtrRecord`\" pulumi-lang-go=\"`ptrRecord`\" pulumi-lang-python=\"`ptr_record`\" pulumi-lang-yaml=\"`ptrRecord`\" pulumi-lang-java=\"`ptrRecord`\" pulumi-lang-hcl=\"`ptr_record`\"\u003e`ptrRecord`\u003c/span\u003e you send when you assign the address replaces this one while the address stays assigned.\n" }, "server": { "$ref": "#/types/betterstack:index/ReservedIpServer:ReservedIpServer", "description": "The server the address is assigned to, or null when the address isn't assigned.\n" }, "serverId": { "type": "string", "description": "The ID of the server the address is assigned to, or null when the address isn't assigned. To change it, use [Assign a reserved IP](https://betterstack.com/docs/cloud/api/reserved-ips/assign-reserved-ip/) and [Unassign a reserved IP](https://betterstack.com/docs/cloud/api/reserved-ips/unassign-reserved-ip/).\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the reserved IP. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "term": { "type": "string", "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "Whether it's an IPv4 or an IPv6 address. Can't be changed after the reserved IP is created. Valid values: 'ipv4', 'ipv6'.\n" }, "updatedAt": { "type": "string", "description": "When the reserved IP was last updated.\n" } }, "required": [ "createdAt", "gateway", "ip", "metadata", "server", "serverId", "teamId", "term", "type", "updatedAt" ], "inputProperties": { "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The reserved IP's name, unique in the organization.\n" }, "ptrRecord": { "type": "string", "description": "The reverse DNS name for the address. A \u003cspan pulumi-lang-nodejs=\"`ptrRecord`\" pulumi-lang-dotnet=\"`PtrRecord`\" pulumi-lang-go=\"`ptrRecord`\" pulumi-lang-python=\"`ptr_record`\" pulumi-lang-yaml=\"`ptrRecord`\" pulumi-lang-java=\"`ptrRecord`\" pulumi-lang-hcl=\"`ptr_record`\"\u003e`ptrRecord`\u003c/span\u003e you send when you assign the address replaces this one while the address stays assigned.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the reserved IP. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/reservedIpTerm:ReservedIpTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/reservedIpType:ReservedIpType" } ], "description": "Whether it's an IPv4 or an IPv6 address. Can't be changed after the reserved IP is created. Valid values: 'ipv4', 'ipv6'.\n" } }, "requiredInputs": [ "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering ReservedIp resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the reserved IP was created.\n" }, "gateway": { "type": "string", "description": "The gateway for the address, for when you configure the server's network yourself.\n" }, "ip": { "type": "string", "description": "The IP address.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The reserved IP's name, unique in the organization.\n" }, "ptrRecord": { "type": "string", "description": "The reverse DNS name for the address. A \u003cspan pulumi-lang-nodejs=\"`ptrRecord`\" pulumi-lang-dotnet=\"`PtrRecord`\" pulumi-lang-go=\"`ptrRecord`\" pulumi-lang-python=\"`ptr_record`\" pulumi-lang-yaml=\"`ptrRecord`\" pulumi-lang-java=\"`ptrRecord`\" pulumi-lang-hcl=\"`ptr_record`\"\u003e`ptrRecord`\u003c/span\u003e you send when you assign the address replaces this one while the address stays assigned.\n" }, "server": { "$ref": "#/types/betterstack:index/ReservedIpServer:ReservedIpServer", "description": "The server the address is assigned to, or null when the address isn't assigned.\n" }, "serverId": { "type": "string", "description": "The ID of the server the address is assigned to, or null when the address isn't assigned. To change it, use [Assign a reserved IP](https://betterstack.com/docs/cloud/api/reserved-ips/assign-reserved-ip/) and [Unassign a reserved IP](https://betterstack.com/docs/cloud/api/reserved-ips/unassign-reserved-ip/).\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the reserved IP. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/reservedIpTerm:ReservedIpTerm" } ], "description": "The billing term. A change applies at once, from 'monthly' to 'annual' or back. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/reservedIpType:ReservedIpType" } ], "description": "Whether it's an IPv4 or an IPv6 address. Can't be changed after the reserved IP is created. Valid values: 'ipv4', 'ipv6'.\n" }, "updatedAt": { "type": "string", "description": "When the reserved IP was last updated.\n" } }, "type": "object" } }, "betterstack:index/scheduledSnapshot:ScheduledSnapshot": { "description": "A schedule that creates snapshots of a server.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SshKey(\"example\", {\n slug: \"my-laptop\",\n publicKey: \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n teamId: \"t123\",\n});\nconst exampleNetwork = new betterstack.Network(\"example\", {\n name: \"example\",\n ipPrefix: \"10.0.0.0\",\n ipPrefixLength: 16,\n teamId: \"t123\",\n});\nconst exampleServer = new betterstack.Server(\"example\", {\n teamId: \"t123\",\n name: \"web-1\",\n serverType: \"AM1\",\n image: \"ubuntu-26-04\",\n sshKeys: [example.slug],\n networkIds: [exampleNetwork.id],\n});\nconst exampleScheduledSnapshot = new betterstack.ScheduledSnapshot(\"example\", {\n serverId: exampleServer.id,\n frequency: betterstack.ScheduledSnapshotFrequency.Hourly,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SshKey(\"example\",\n slug=\"my-laptop\",\n public_key=\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n team_id=\"t123\")\nexample_network = betterstack.Network(\"example\",\n name=\"example\",\n ip_prefix=\"10.0.0.0\",\n ip_prefix_length=16,\n team_id=\"t123\")\nexample_server = betterstack.Server(\"example\",\n team_id=\"t123\",\n name=\"web-1\",\n server_type=\"AM1\",\n image=\"ubuntu-26-04\",\n ssh_keys=[example.slug],\n network_ids=[example_network.id])\nexample_scheduled_snapshot = betterstack.ScheduledSnapshot(\"example\",\n server_id=example_server.id,\n frequency=betterstack.ScheduledSnapshotFrequency.HOURLY)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SshKey(\"example\", new()\n {\n Slug = \"my-laptop\",\n PublicKey = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n TeamId = \"t123\",\n });\n\n var exampleNetwork = new BetterStack.Network(\"example\", new()\n {\n Name = \"example\",\n IpPrefix = \"10.0.0.0\",\n IpPrefixLength = 16,\n TeamId = \"t123\",\n });\n\n var exampleServer = new BetterStack.Server(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"web-1\",\n ServerType = \"AM1\",\n Image = \"ubuntu-26-04\",\n SshKeys = new[]\n {\n example.Slug,\n },\n NetworkIds = new[]\n {\n exampleNetwork.Id,\n },\n });\n\n var exampleScheduledSnapshot = new BetterStack.ScheduledSnapshot(\"example\", new()\n {\n ServerId = exampleServer.Id,\n Frequency = BetterStack.ScheduledSnapshotFrequency.Hourly,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewSshKey(ctx, \"example\", \u0026betterstack.SshKeyArgs{\n\t\t\tSlug: pulumi.String(\"my-laptop\"),\n\t\t\tPublicKey: pulumi.String(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetwork, err := betterstack.NewNetwork(ctx, \"example\", \u0026betterstack.NetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tIpPrefix: pulumi.String(\"10.0.0.0\"),\n\t\t\tIpPrefixLength: pulumi.Int(16),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServer, err := betterstack.NewServer(ctx, \"example\", \u0026betterstack.ServerArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"web-1\"),\n\t\t\tServerType: pulumi.String(\"AM1\"),\n\t\t\tImage: pulumi.String(\"ubuntu-26-04\"),\n\t\t\tSshKeys: pulumi.StringArray{\n\t\t\t\texample.Slug,\n\t\t\t},\n\t\t\tNetworkIds: pulumi.StringArray{\n\t\t\t\texampleNetwork.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewScheduledSnapshot(ctx, \"example\", \u0026betterstack.ScheduledSnapshotArgs{\n\t\t\tServerId: exampleServer.ID(),\n\t\t\tFrequency: pulumi.String(betterstack.ScheduledSnapshotFrequencyHourly),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_ssh_key\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n slug = \"my-laptop\"\n public_key = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"\n team_id = \"t123\"\n}\nresource \"betterstack_network\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n ip_prefix = \"10.0.0.0\"\n ip_prefix_length = 16\n team_id = \"t123\"\n}\nresource \"betterstack_server\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"web-1\"\n server_type = \"AM1\"\n image = \"ubuntu-26-04\"\n ssh_keys = [betterstack_ssh_key.example.slug]\n network_ids = [betterstack_network.example.id]\n}\nresource \"betterstack_scheduled_snapshot\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n server_id = betterstack_server.example.id\n frequency = \"hourly\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SshKey;\nimport com.betterstack.pulumi.SshKeyArgs;\nimport com.betterstack.pulumi.Network;\nimport com.betterstack.pulumi.NetworkArgs;\nimport com.betterstack.pulumi.Server;\nimport com.betterstack.pulumi.ServerArgs;\nimport com.betterstack.pulumi.ScheduledSnapshot;\nimport com.betterstack.pulumi.ScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SshKey(\"example\", SshKeyArgs.builder()\n .slug(\"my-laptop\")\n .publicKey(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\")\n .teamId(\"t123\")\n .build());\n\n var exampleNetwork = new Network(\"exampleNetwork\", NetworkArgs.builder()\n .name(\"example\")\n .ipPrefix(\"10.0.0.0\")\n .ipPrefixLength(16)\n .teamId(\"t123\")\n .build());\n\n var exampleServer = new Server(\"exampleServer\", ServerArgs.builder()\n .teamId(\"t123\")\n .name(\"web-1\")\n .serverType(\"AM1\")\n .image(\"ubuntu-26-04\")\n .sshKeys(example.slug())\n .networkIds(exampleNetwork.id())\n .build());\n\n var exampleScheduledSnapshot = new ScheduledSnapshot(\"exampleScheduledSnapshot\", ScheduledSnapshotArgs.builder()\n .serverId(exampleServer.id())\n .frequency(\"hourly\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SshKey\n properties:\n slug: my-laptop\n publicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\n teamId: t123\n exampleNetwork:\n type: betterstack:Network\n name: example\n properties:\n name: example\n ipPrefix: 10.0.0.0\n ipPrefixLength: 16\n teamId: t123\n exampleServer:\n type: betterstack:Server\n name: example\n properties:\n teamId: t123\n name: web-1\n serverType: AM1\n image: ubuntu-26-04\n sshKeys:\n - ${example.slug}\n networkIds:\n - ${exampleNetwork.id}\n exampleScheduledSnapshot:\n type: betterstack:ScheduledSnapshot\n name: example\n properties:\n serverId: ${exampleServer.id}\n frequency: hourly\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing scheduled snapshot by its ID. Get the ID via [List snapshot schedules](https://betterstack.com/docs/cloud/api/scheduled-snapshots/list-scheduled-snapshots/). The matching get function also finds it by \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/scheduledSnapshot:ScheduledSnapshot example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "description": "How often we create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n" }, "serverId": { "type": "string", "description": "The ID of the server the schedule creates snapshots of. Get it via [List servers](https://betterstack.com/docs/cloud/api/servers/list-servers/). Can't be changed after the schedule is created.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "required": [ "createdAt", "frequency", "lastRunAt", "serverId", "updatedAt" ], "inputProperties": { "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/scheduledSnapshotFrequency:ScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "serverId": { "type": "string", "description": "The ID of the server the schedule creates snapshots of. Get it via [List servers](https://betterstack.com/docs/cloud/api/servers/list-servers/). Can't be changed after the schedule is created.\n" } }, "requiredInputs": [ "frequency", "serverId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ScheduledSnapshot resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/scheduledSnapshotFrequency:ScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n" }, "serverId": { "type": "string", "description": "The ID of the server the schedule creates snapshots of. Get it via [List servers](https://betterstack.com/docs/cloud/api/servers/list-servers/). Can't be changed after the schedule is created.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" } }, "type": "object" } }, "betterstack:index/scheduledVolumeSnapshot:ScheduledVolumeSnapshot": { "description": "A schedule that creates snapshots of a volume.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SshKey(\"example\", {\n slug: \"my-laptop\",\n publicKey: \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n teamId: \"t123\",\n});\nconst exampleNetwork = new betterstack.Network(\"example\", {\n name: \"example\",\n ipPrefix: \"10.0.0.0\",\n ipPrefixLength: 16,\n teamId: \"t123\",\n});\nconst exampleServer = new betterstack.Server(\"example\", {\n teamId: \"t123\",\n name: \"web-1\",\n serverType: \"AM1\",\n image: \"ubuntu-26-04\",\n sshKeys: [example.slug],\n networkIds: [exampleNetwork.id],\n});\nconst exampleVolume = new betterstack.Volume(\"example\", {\n name: \"example\",\n sizeGb: 10,\n serverId: exampleServer.id,\n});\nconst exampleScheduledVolumeSnapshot = new betterstack.ScheduledVolumeSnapshot(\"example\", {\n volumeId: exampleVolume.id,\n frequency: betterstack.ScheduledVolumeSnapshotFrequency.Hourly,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SshKey(\"example\",\n slug=\"my-laptop\",\n public_key=\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n team_id=\"t123\")\nexample_network = betterstack.Network(\"example\",\n name=\"example\",\n ip_prefix=\"10.0.0.0\",\n ip_prefix_length=16,\n team_id=\"t123\")\nexample_server = betterstack.Server(\"example\",\n team_id=\"t123\",\n name=\"web-1\",\n server_type=\"AM1\",\n image=\"ubuntu-26-04\",\n ssh_keys=[example.slug],\n network_ids=[example_network.id])\nexample_volume = betterstack.Volume(\"example\",\n name=\"example\",\n size_gb=10,\n server_id=example_server.id)\nexample_scheduled_volume_snapshot = betterstack.ScheduledVolumeSnapshot(\"example\",\n volume_id=example_volume.id,\n frequency=betterstack.ScheduledVolumeSnapshotFrequency.HOURLY)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SshKey(\"example\", new()\n {\n Slug = \"my-laptop\",\n PublicKey = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n TeamId = \"t123\",\n });\n\n var exampleNetwork = new BetterStack.Network(\"example\", new()\n {\n Name = \"example\",\n IpPrefix = \"10.0.0.0\",\n IpPrefixLength = 16,\n TeamId = \"t123\",\n });\n\n var exampleServer = new BetterStack.Server(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"web-1\",\n ServerType = \"AM1\",\n Image = \"ubuntu-26-04\",\n SshKeys = new[]\n {\n example.Slug,\n },\n NetworkIds = new[]\n {\n exampleNetwork.Id,\n },\n });\n\n var exampleVolume = new BetterStack.Volume(\"example\", new()\n {\n Name = \"example\",\n SizeGb = 10,\n ServerId = exampleServer.Id,\n });\n\n var exampleScheduledVolumeSnapshot = new BetterStack.ScheduledVolumeSnapshot(\"example\", new()\n {\n VolumeId = exampleVolume.Id,\n Frequency = BetterStack.ScheduledVolumeSnapshotFrequency.Hourly,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewSshKey(ctx, \"example\", \u0026betterstack.SshKeyArgs{\n\t\t\tSlug: pulumi.String(\"my-laptop\"),\n\t\t\tPublicKey: pulumi.String(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetwork, err := betterstack.NewNetwork(ctx, \"example\", \u0026betterstack.NetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tIpPrefix: pulumi.String(\"10.0.0.0\"),\n\t\t\tIpPrefixLength: pulumi.Int(16),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServer, err := betterstack.NewServer(ctx, \"example\", \u0026betterstack.ServerArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"web-1\"),\n\t\t\tServerType: pulumi.String(\"AM1\"),\n\t\t\tImage: pulumi.String(\"ubuntu-26-04\"),\n\t\t\tSshKeys: pulumi.StringArray{\n\t\t\t\texample.Slug,\n\t\t\t},\n\t\t\tNetworkIds: pulumi.StringArray{\n\t\t\t\texampleNetwork.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleVolume, err := betterstack.NewVolume(ctx, \"example\", \u0026betterstack.VolumeArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tSizeGb: pulumi.Int(10),\n\t\t\tServerId: exampleServer.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewScheduledVolumeSnapshot(ctx, \"example\", \u0026betterstack.ScheduledVolumeSnapshotArgs{\n\t\t\tVolumeId: exampleVolume.ID(),\n\t\t\tFrequency: pulumi.String(betterstack.ScheduledVolumeSnapshotFrequencyHourly),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_ssh_key\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n slug = \"my-laptop\"\n public_key = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"\n team_id = \"t123\"\n}\nresource \"betterstack_network\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n ip_prefix = \"10.0.0.0\"\n ip_prefix_length = 16\n team_id = \"t123\"\n}\nresource \"betterstack_server\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"web-1\"\n server_type = \"AM1\"\n image = \"ubuntu-26-04\"\n ssh_keys = [betterstack_ssh_key.example.slug]\n network_ids = [betterstack_network.example.id]\n}\nresource \"betterstack_volume\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n size_gb = 10\n server_id = betterstack_server.example.id\n}\nresource \"betterstack_scheduled_volume_snapshot\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n volume_id = betterstack_volume.example.id\n frequency = \"hourly\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SshKey;\nimport com.betterstack.pulumi.SshKeyArgs;\nimport com.betterstack.pulumi.Network;\nimport com.betterstack.pulumi.NetworkArgs;\nimport com.betterstack.pulumi.Server;\nimport com.betterstack.pulumi.ServerArgs;\nimport com.betterstack.pulumi.Volume;\nimport com.betterstack.pulumi.VolumeArgs;\nimport com.betterstack.pulumi.ScheduledVolumeSnapshot;\nimport com.betterstack.pulumi.ScheduledVolumeSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SshKey(\"example\", SshKeyArgs.builder()\n .slug(\"my-laptop\")\n .publicKey(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\")\n .teamId(\"t123\")\n .build());\n\n var exampleNetwork = new Network(\"exampleNetwork\", NetworkArgs.builder()\n .name(\"example\")\n .ipPrefix(\"10.0.0.0\")\n .ipPrefixLength(16)\n .teamId(\"t123\")\n .build());\n\n var exampleServer = new Server(\"exampleServer\", ServerArgs.builder()\n .teamId(\"t123\")\n .name(\"web-1\")\n .serverType(\"AM1\")\n .image(\"ubuntu-26-04\")\n .sshKeys(example.slug())\n .networkIds(exampleNetwork.id())\n .build());\n\n var exampleVolume = new Volume(\"exampleVolume\", VolumeArgs.builder()\n .name(\"example\")\n .sizeGb(10)\n .serverId(exampleServer.id())\n .build());\n\n var exampleScheduledVolumeSnapshot = new ScheduledVolumeSnapshot(\"exampleScheduledVolumeSnapshot\", ScheduledVolumeSnapshotArgs.builder()\n .volumeId(exampleVolume.id())\n .frequency(\"hourly\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SshKey\n properties:\n slug: my-laptop\n publicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\n teamId: t123\n exampleNetwork:\n type: betterstack:Network\n name: example\n properties:\n name: example\n ipPrefix: 10.0.0.0\n ipPrefixLength: 16\n teamId: t123\n exampleServer:\n type: betterstack:Server\n name: example\n properties:\n teamId: t123\n name: web-1\n serverType: AM1\n image: ubuntu-26-04\n sshKeys:\n - ${example.slug}\n networkIds:\n - ${exampleNetwork.id}\n exampleVolume:\n type: betterstack:Volume\n name: example\n properties:\n name: example\n sizeGb: 10\n serverId: ${exampleServer.id}\n exampleScheduledVolumeSnapshot:\n type: betterstack:ScheduledVolumeSnapshot\n name: example\n properties:\n volumeId: ${exampleVolume.id}\n frequency: hourly\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing scheduled volume snapshot by its ID. Get the ID via [List volume snapshot schedules](https://betterstack.com/docs/cloud/api/scheduled-volume-snapshots/list-scheduled-volume-snapshots/).\n\n```sh\n$ pulumi import betterstack:index/scheduledVolumeSnapshot:ScheduledVolumeSnapshot example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "description": "How often we create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" }, "volumeId": { "type": "string", "description": "The ID of the volume the schedule creates snapshots of. Get it via [List volumes](https://betterstack.com/docs/cloud/api/volumes/list-volumes/). Can't be changed after the schedule is created.\n" } }, "required": [ "createdAt", "frequency", "lastRunAt", "updatedAt", "volumeId" ], "inputProperties": { "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/scheduledVolumeSnapshotFrequency:ScheduledVolumeSnapshotFrequency" } ], "description": "How often we create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "volumeId": { "type": "string", "description": "The ID of the volume the schedule creates snapshots of. Get it via [List volumes](https://betterstack.com/docs/cloud/api/volumes/list-volumes/). Can't be changed after the schedule is created.\n" } }, "requiredInputs": [ "frequency", "volumeId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ScheduledVolumeSnapshot resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/scheduledVolumeSnapshotFrequency:ScheduledVolumeSnapshotFrequency" } ], "description": "How often we create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" }, "volumeId": { "type": "string", "description": "The ID of the volume the schedule creates snapshots of. Get it via [List volumes](https://betterstack.com/docs/cloud/api/volumes/list-volumes/). Can't be changed after the schedule is created.\n" } }, "type": "object" } }, "betterstack:index/server:Server": { "description": "A virtual machine, with its size, image, networks, firewall, addresses and status.\n\n\u003e Destroying a server deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SshKey(\"example\", {\n slug: \"my-laptop\",\n publicKey: \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n teamId: \"t123\",\n});\nconst exampleNetwork = new betterstack.Network(\"example\", {\n name: \"example\",\n ipPrefix: \"10.0.0.0\",\n ipPrefixLength: 16,\n teamId: \"t123\",\n});\nconst exampleServer = new betterstack.Server(\"example\", {\n teamId: \"t123\",\n name: \"web-1\",\n serverType: \"AM1\",\n image: \"ubuntu-26-04\",\n sshKeys: [example.slug],\n networkIds: [exampleNetwork.id],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SshKey(\"example\",\n slug=\"my-laptop\",\n public_key=\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n team_id=\"t123\")\nexample_network = betterstack.Network(\"example\",\n name=\"example\",\n ip_prefix=\"10.0.0.0\",\n ip_prefix_length=16,\n team_id=\"t123\")\nexample_server = betterstack.Server(\"example\",\n team_id=\"t123\",\n name=\"web-1\",\n server_type=\"AM1\",\n image=\"ubuntu-26-04\",\n ssh_keys=[example.slug],\n network_ids=[example_network.id])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SshKey(\"example\", new()\n {\n Slug = \"my-laptop\",\n PublicKey = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n TeamId = \"t123\",\n });\n\n var exampleNetwork = new BetterStack.Network(\"example\", new()\n {\n Name = \"example\",\n IpPrefix = \"10.0.0.0\",\n IpPrefixLength = 16,\n TeamId = \"t123\",\n });\n\n var exampleServer = new BetterStack.Server(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"web-1\",\n ServerType = \"AM1\",\n Image = \"ubuntu-26-04\",\n SshKeys = new[]\n {\n example.Slug,\n },\n NetworkIds = new[]\n {\n exampleNetwork.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewSshKey(ctx, \"example\", \u0026betterstack.SshKeyArgs{\n\t\t\tSlug: pulumi.String(\"my-laptop\"),\n\t\t\tPublicKey: pulumi.String(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetwork, err := betterstack.NewNetwork(ctx, \"example\", \u0026betterstack.NetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tIpPrefix: pulumi.String(\"10.0.0.0\"),\n\t\t\tIpPrefixLength: pulumi.Int(16),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewServer(ctx, \"example\", \u0026betterstack.ServerArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"web-1\"),\n\t\t\tServerType: pulumi.String(\"AM1\"),\n\t\t\tImage: pulumi.String(\"ubuntu-26-04\"),\n\t\t\tSshKeys: pulumi.StringArray{\n\t\t\t\texample.Slug,\n\t\t\t},\n\t\t\tNetworkIds: pulumi.StringArray{\n\t\t\t\texampleNetwork.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_ssh_key\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n slug = \"my-laptop\"\n public_key = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"\n team_id = \"t123\"\n}\nresource \"betterstack_network\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n ip_prefix = \"10.0.0.0\"\n ip_prefix_length = 16\n team_id = \"t123\"\n}\nresource \"betterstack_server\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"web-1\"\n server_type = \"AM1\"\n image = \"ubuntu-26-04\"\n ssh_keys = [betterstack_ssh_key.example.slug]\n network_ids = [betterstack_network.example.id]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SshKey;\nimport com.betterstack.pulumi.SshKeyArgs;\nimport com.betterstack.pulumi.Network;\nimport com.betterstack.pulumi.NetworkArgs;\nimport com.betterstack.pulumi.Server;\nimport com.betterstack.pulumi.ServerArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SshKey(\"example\", SshKeyArgs.builder()\n .slug(\"my-laptop\")\n .publicKey(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\")\n .teamId(\"t123\")\n .build());\n\n var exampleNetwork = new Network(\"exampleNetwork\", NetworkArgs.builder()\n .name(\"example\")\n .ipPrefix(\"10.0.0.0\")\n .ipPrefixLength(16)\n .teamId(\"t123\")\n .build());\n\n var exampleServer = new Server(\"exampleServer\", ServerArgs.builder()\n .teamId(\"t123\")\n .name(\"web-1\")\n .serverType(\"AM1\")\n .image(\"ubuntu-26-04\")\n .sshKeys(example.slug())\n .networkIds(exampleNetwork.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SshKey\n properties:\n slug: my-laptop\n publicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\n teamId: t123\n exampleNetwork:\n type: betterstack:Network\n name: example\n properties:\n name: example\n ipPrefix: 10.0.0.0\n ipPrefixLength: 16\n teamId: t123\n exampleServer:\n type: betterstack:Server\n name: example\n properties:\n teamId: t123\n name: web-1\n serverType: AM1\n image: ubuntu-26-04\n sshKeys:\n - ${example.slug}\n networkIds:\n - ${exampleNetwork.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e A Kubernetes worker is listed with your servers, but its cluster manages it. You can change only its tags. Change the number of workers via [Update a Kubernetes node pool](https://betterstack.com/docs/cloud/api/kubernetes-node-pools/update-kubernetes-node-pool/).\n\n\u003e A server with the status 'pooled' is a spare server waiting in a server pool. The only change you can make to it is to claim it via [Claim a server from a pool](https://betterstack.com/docs/cloud/api/server-pools/claim-server-pool/).\n\n## Import\n\nImport an existing server by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`poolId`\" pulumi-lang-dotnet=\"`PoolId`\" pulumi-lang-go=\"`poolId`\" pulumi-lang-python=\"`pool_id`\" pulumi-lang-yaml=\"`poolId`\" pulumi-lang-java=\"`poolId`\" pulumi-lang-hcl=\"`pool_id`\"\u003e`poolId`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/server:Server example 12345\n```\n\n", "properties": { "aiEngineerAccess": { "type": "boolean", "description": "Whether the Better Stack AI Engineer can sign in to the server over SSH. Can't be changed after the server is created. Defaults to true.\n" }, "claimedAt": { "type": "string", "description": "When the server was claimed from its server pool. null for a server that's still in its pool, and for a server you created directly.\n" }, "cloudflareRecords": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ServerCloudflareRecord:ServerCloudflareRecord" }, "description": "The Cloudflare DNS records that point to the server. The list holds the A and AAAA records you asked for on create, and the CNAME, A and AAAA records of the server's subdomain in `onbetterstack.com`.\n" }, "connectionTracking": { "$ref": "#/types/betterstack:index/ServerConnectionTracking:ServerConnectionTracking", "description": "How many connections the server has, and the most it can have. When the server goes over its \u003cspan pulumi-lang-nodejs=\"`budget`\" pulumi-lang-dotnet=\"`Budget`\" pulumi-lang-go=\"`budget`\" pulumi-lang-python=\"`budget`\" pulumi-lang-yaml=\"`budget`\" pulumi-lang-java=\"`budget`\" pulumi-lang-hcl=\"`budget`\"\u003e`budget`\u003c/span\u003e, new connections are dropped.\n" }, "createdAt": { "type": "string", "description": "When the server was created. For a server moved to your team from another team's server pool, when it was moved.\n" }, "ddosProtection": { "type": "boolean", "description": "Whether DDoS protection is on. Can't be changed after the server is created. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this server is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "diskSizeGb": { "type": "integer", "description": "The size of the root disk, in GiB. Can differ from the type's 'storage_gb' after a rescale that kept the disk size. A later rescale needs a type with at least this much storage, because disks never shrink.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The firewall attached to the server, as a list with at most one ID. Must belong to the server's team.\n" }, "image": { "type": "string", "description": "The 'slug' of the server's image, such as `ubuntu-26-04`. null when the image was removed after the server was created. Get the images via [List images](https://betterstack.com/docs/cloud/api/images/list-images/).\n" }, "ipAddresses": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ServerIpAddress:ServerIpAddress" }, "description": "The server's public addresses. Get the network interface of each via [List server public IPs](https://betterstack.com/docs/cloud/api/server-public-ips/list-server-public-ips/).\n" }, "lock": { "$ref": "#/types/betterstack:index/ServerLock:ServerLock", "description": "Why and when we locked the server. null when the server isn't locked. A locked server keeps running, but its network is cut and you can't change it.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The server's name. Must be unique among your organization's servers that aren't 'destroyed' or 'terminated'.\n" }, "nestedVirtualization": { "type": "boolean", "description": "Whether the server can run its own virtual machines. Always false for a server you create.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the server.\n" }, "observability": { "type": "boolean", "description": "Whether we installed the Better Stack collector when the server was created. Can't be changed after the server is created. Defaults to false.\n" }, "placementGroupId": { "type": "string", "description": "The ID of the placement group the server is in. Can't be changed after the server is created.\n" }, "poolId": { "type": "string", "description": "The ID of the server pool the server came from. null for a server you created directly.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ServerPrivateIpItem:ServerPrivateIpItem" }, "description": "The server's addresses in private networks.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the server gets a public IPv4 address. A server without one has only IPv6 and can't boot with a reserved IPv4 address. Can't be changed after the server is created. Defaults to true. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "rescueState": { "type": "string", "description": "Whether the rescue system is ready. null when the server isn't in rescue mode. After you start rescue mode, get the server again until \u003cspan pulumi-lang-nodejs=\"`rescueState`\" pulumi-lang-dotnet=\"`RescueState`\" pulumi-lang-go=\"`rescueState`\" pulumi-lang-python=\"`rescue_state`\" pulumi-lang-yaml=\"`rescueState`\" pulumi-lang-java=\"`rescueState`\" pulumi-lang-hcl=\"`rescue_state`\"\u003e`rescueState`\u003c/span\u003e is 'active' or null. 'activating': The server is booting the rescue system. You can sign in when it's up. 'active': The rescue system is up, and you can sign in.\n" }, "reservedIpIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the reserved IPs the server boots with, instead of new addresses. Each one must belong to the server's team and not be assigned to a server. A reserved address the server boots with stays on it until the server is destroyed. Responses show the addresses in \u003cspan pulumi-lang-nodejs=\"`ipAddresses`\" pulumi-lang-dotnet=\"`IpAddresses`\" pulumi-lang-go=\"`ipAddresses`\" pulumi-lang-python=\"`ip_addresses`\" pulumi-lang-yaml=\"`ipAddresses`\" pulumi-lang-java=\"`ipAddresses`\" pulumi-lang-hcl=\"`ip_addresses`\"\u003e`ipAddresses`\u003c/span\u003e instead. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "serverType": { "type": "string", "description": "The name of the server type, such as `AM4`. The type sets the server's size. Get the types via [List server types](https://betterstack.com/docs/cloud/api/server-types/list-server-types/).\n" }, "sshKeys": { "type": "array", "items": { "type": "string" }, "description": "The 'slug' of each of the server's SSH keys. We add them to the server at its first boot.\n" }, "status": { "type": "string", "description": "The server's current status. After you start, stop or change the server, get it again until the change has finished. 'starting': The server is booting. 'running': The server is running. 'stopping': The server is shutting down. 'stopped': The server is stopped. 'pooled': The server is waiting in a server pool. The server is running and billed, and nobody has claimed it yet. 'snapshotting': We're creating a snapshot of the server. 'migrating': We're moving the server to another host. 'rescuing': The server is in rescue mode. 'restoring': We're restoring the server from a snapshot. 'rescaling': We're changing the server's type. 'destroyed': The server is destroyed. 'terminating': We're ending a spot server. 'terminated': We've ended a spot server.\n" }, "subdomain": { "type": "boolean", "description": "Whether the server has a free subdomain in `onbetterstack.com`, made from its name. The subdomain's records are in \u003cspan pulumi-lang-nodejs=\"`cloudflareRecords`\" pulumi-lang-dotnet=\"`CloudflareRecords`\" pulumi-lang-go=\"`cloudflareRecords`\" pulumi-lang-python=\"`cloudflare_records`\" pulumi-lang-yaml=\"`cloudflareRecords`\" pulumi-lang-java=\"`cloudflareRecords`\" pulumi-lang-hcl=\"`cloudflare_records`\"\u003e`cloudflareRecords`\u003c/span\u003e. An update adds or removes the subdomain. Defaults to true.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the server. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "term": { "type": "string", "description": "The billing term. The server's public IPs and add-ons are billed on the same term. A change applies at once, from 'monthly' to 'annual' or back. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "updatedAt": { "type": "string", "description": "When the server was last updated.\n" }, "userData": { "type": "string", "description": "A cloud-init `#cloud-config` document or a script that runs at the first boot, at most 32 KiB. A script starts with `#!`. We don't store it, and no response returns it. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "vulnerabilityMonitoring": { "type": "boolean", "description": "Whether we scan the server daily for open ports and vulnerable software versions. Get the latest findings via [Get a server's security scan](https://betterstack.com/docs/cloud/api/servers/security-scan-server/). Defaults to false.\n" } }, "required": [ "aiEngineerAccess", "claimedAt", "cloudflareRecords", "connectionTracking", "createdAt", "ddosProtection", "deletionProtection", "diskSizeGb", "firewallIds", "image", "ipAddresses", "lock", "metadata", "name", "nestedVirtualization", "networkIds", "observability", "poolId", "privateIps", "publicIpv4", "rescueState", "reservedIpIds", "serverType", "sshKeys", "status", "subdomain", "teamId", "term", "updatedAt", "userData", "vulnerabilityMonitoring" ], "inputProperties": { "aiEngineerAccess": { "type": "boolean", "description": "Whether the Better Stack AI Engineer can sign in to the server over SSH. Can't be changed after the server is created. Defaults to true.\n" }, "ddosProtection": { "type": "boolean", "description": "Whether DDoS protection is on. Can't be changed after the server is created. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this server is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The firewall attached to the server, as a list with at most one ID. Must belong to the server's team.\n" }, "image": { "type": "string", "description": "The 'slug' of the server's image, such as `ubuntu-26-04`. null when the image was removed after the server was created. Get the images via [List images](https://betterstack.com/docs/cloud/api/images/list-images/).\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The server's name. Must be unique among your organization's servers that aren't 'destroyed' or 'terminated'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the server.\n" }, "observability": { "type": "boolean", "description": "Whether we installed the Better Stack collector when the server was created. Can't be changed after the server is created. Defaults to false.\n" }, "placementGroupId": { "type": "string", "description": "The ID of the placement group the server is in. Can't be changed after the server is created.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the server gets a public IPv4 address. A server without one has only IPv6 and can't boot with a reserved IPv4 address. Can't be changed after the server is created. Defaults to true. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "reservedIpIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the reserved IPs the server boots with, instead of new addresses. Each one must belong to the server's team and not be assigned to a server. A reserved address the server boots with stays on it until the server is destroyed. Responses show the addresses in \u003cspan pulumi-lang-nodejs=\"`ipAddresses`\" pulumi-lang-dotnet=\"`IpAddresses`\" pulumi-lang-go=\"`ipAddresses`\" pulumi-lang-python=\"`ip_addresses`\" pulumi-lang-yaml=\"`ipAddresses`\" pulumi-lang-java=\"`ipAddresses`\" pulumi-lang-hcl=\"`ip_addresses`\"\u003e`ipAddresses`\u003c/span\u003e instead. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "serverType": { "type": "string", "description": "The name of the server type, such as `AM4`. The type sets the server's size. Get the types via [List server types](https://betterstack.com/docs/cloud/api/server-types/list-server-types/).\n" }, "sshKeys": { "type": "array", "items": { "type": "string" }, "description": "The 'slug' of each of the server's SSH keys. We add them to the server at its first boot.\n" }, "subdomain": { "type": "boolean", "description": "Whether the server has a free subdomain in `onbetterstack.com`, made from its name. The subdomain's records are in \u003cspan pulumi-lang-nodejs=\"`cloudflareRecords`\" pulumi-lang-dotnet=\"`CloudflareRecords`\" pulumi-lang-go=\"`cloudflareRecords`\" pulumi-lang-python=\"`cloudflare_records`\" pulumi-lang-yaml=\"`cloudflareRecords`\" pulumi-lang-java=\"`cloudflareRecords`\" pulumi-lang-hcl=\"`cloudflare_records`\"\u003e`cloudflareRecords`\u003c/span\u003e. An update adds or removes the subdomain. Defaults to true.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the server. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/serverTerm:ServerTerm" } ], "description": "The billing term. The server's public IPs and add-ons are billed on the same term. A change applies at once, from 'monthly' to 'annual' or back. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "userData": { "type": "string", "description": "A cloud-init `#cloud-config` document or a script that runs at the first boot, at most 32 KiB. A script starts with `#!`. We don't store it, and no response returns it. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "vulnerabilityMonitoring": { "type": "boolean", "description": "Whether we scan the server daily for open ports and vulnerable software versions. Get the latest findings via [Get a server's security scan](https://betterstack.com/docs/cloud/api/servers/security-scan-server/). Defaults to false.\n" } }, "requiredInputs": [ "image", "name", "serverType", "sshKeys", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering Server resources.\n", "properties": { "aiEngineerAccess": { "type": "boolean", "description": "Whether the Better Stack AI Engineer can sign in to the server over SSH. Can't be changed after the server is created. Defaults to true.\n" }, "claimedAt": { "type": "string", "description": "When the server was claimed from its server pool. null for a server that's still in its pool, and for a server you created directly.\n" }, "cloudflareRecords": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ServerCloudflareRecord:ServerCloudflareRecord" }, "description": "The Cloudflare DNS records that point to the server. The list holds the A and AAAA records you asked for on create, and the CNAME, A and AAAA records of the server's subdomain in `onbetterstack.com`.\n" }, "connectionTracking": { "$ref": "#/types/betterstack:index/ServerConnectionTracking:ServerConnectionTracking", "description": "How many connections the server has, and the most it can have. When the server goes over its \u003cspan pulumi-lang-nodejs=\"`budget`\" pulumi-lang-dotnet=\"`Budget`\" pulumi-lang-go=\"`budget`\" pulumi-lang-python=\"`budget`\" pulumi-lang-yaml=\"`budget`\" pulumi-lang-java=\"`budget`\" pulumi-lang-hcl=\"`budget`\"\u003e`budget`\u003c/span\u003e, new connections are dropped.\n" }, "createdAt": { "type": "string", "description": "When the server was created. For a server moved to your team from another team's server pool, when it was moved.\n" }, "ddosProtection": { "type": "boolean", "description": "Whether DDoS protection is on. Can't be changed after the server is created. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this server is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "diskSizeGb": { "type": "integer", "description": "The size of the root disk, in GiB. Can differ from the type's 'storage_gb' after a rescale that kept the disk size. A later rescale needs a type with at least this much storage, because disks never shrink.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The firewall attached to the server, as a list with at most one ID. Must belong to the server's team.\n" }, "image": { "type": "string", "description": "The 'slug' of the server's image, such as `ubuntu-26-04`. null when the image was removed after the server was created. Get the images via [List images](https://betterstack.com/docs/cloud/api/images/list-images/).\n" }, "ipAddresses": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ServerIpAddress:ServerIpAddress" }, "description": "The server's public addresses. Get the network interface of each via [List server public IPs](https://betterstack.com/docs/cloud/api/server-public-ips/list-server-public-ips/).\n" }, "lock": { "$ref": "#/types/betterstack:index/ServerLock:ServerLock", "description": "Why and when we locked the server. null when the server isn't locked. A locked server keeps running, but its network is cut and you can't change it.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The server's name. Must be unique among your organization's servers that aren't 'destroyed' or 'terminated'.\n" }, "nestedVirtualization": { "type": "boolean", "description": "Whether the server can run its own virtual machines. Always false for a server you create.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the server.\n" }, "observability": { "type": "boolean", "description": "Whether we installed the Better Stack collector when the server was created. Can't be changed after the server is created. Defaults to false.\n" }, "placementGroupId": { "type": "string", "description": "The ID of the placement group the server is in. Can't be changed after the server is created.\n" }, "poolId": { "type": "string", "description": "The ID of the server pool the server came from. null for a server you created directly.\n" }, "privateIps": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ServerPrivateIpItem:ServerPrivateIpItem" }, "description": "The server's addresses in private networks.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the server gets a public IPv4 address. A server without one has only IPv6 and can't boot with a reserved IPv4 address. Can't be changed after the server is created. Defaults to true. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "rescueState": { "type": "string", "description": "Whether the rescue system is ready. null when the server isn't in rescue mode. After you start rescue mode, get the server again until \u003cspan pulumi-lang-nodejs=\"`rescueState`\" pulumi-lang-dotnet=\"`RescueState`\" pulumi-lang-go=\"`rescueState`\" pulumi-lang-python=\"`rescue_state`\" pulumi-lang-yaml=\"`rescueState`\" pulumi-lang-java=\"`rescueState`\" pulumi-lang-hcl=\"`rescue_state`\"\u003e`rescueState`\u003c/span\u003e is 'active' or null. 'activating': The server is booting the rescue system. You can sign in when it's up. 'active': The rescue system is up, and you can sign in.\n" }, "reservedIpIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the reserved IPs the server boots with, instead of new addresses. Each one must belong to the server's team and not be assigned to a server. A reserved address the server boots with stays on it until the server is destroyed. Responses show the addresses in \u003cspan pulumi-lang-nodejs=\"`ipAddresses`\" pulumi-lang-dotnet=\"`IpAddresses`\" pulumi-lang-go=\"`ipAddresses`\" pulumi-lang-python=\"`ip_addresses`\" pulumi-lang-yaml=\"`ipAddresses`\" pulumi-lang-java=\"`ipAddresses`\" pulumi-lang-hcl=\"`ip_addresses`\"\u003e`ipAddresses`\u003c/span\u003e instead. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "serverType": { "type": "string", "description": "The name of the server type, such as `AM4`. The type sets the server's size. Get the types via [List server types](https://betterstack.com/docs/cloud/api/server-types/list-server-types/).\n" }, "sshKeys": { "type": "array", "items": { "type": "string" }, "description": "The 'slug' of each of the server's SSH keys. We add them to the server at its first boot.\n" }, "status": { "type": "string", "description": "The server's current status. After you start, stop or change the server, get it again until the change has finished. 'starting': The server is booting. 'running': The server is running. 'stopping': The server is shutting down. 'stopped': The server is stopped. 'pooled': The server is waiting in a server pool. The server is running and billed, and nobody has claimed it yet. 'snapshotting': We're creating a snapshot of the server. 'migrating': We're moving the server to another host. 'rescuing': The server is in rescue mode. 'restoring': We're restoring the server from a snapshot. 'rescaling': We're changing the server's type. 'destroyed': The server is destroyed. 'terminating': We're ending a spot server. 'terminated': We've ended a spot server.\n" }, "subdomain": { "type": "boolean", "description": "Whether the server has a free subdomain in `onbetterstack.com`, made from its name. The subdomain's records are in \u003cspan pulumi-lang-nodejs=\"`cloudflareRecords`\" pulumi-lang-dotnet=\"`CloudflareRecords`\" pulumi-lang-go=\"`cloudflareRecords`\" pulumi-lang-python=\"`cloudflare_records`\" pulumi-lang-yaml=\"`cloudflareRecords`\" pulumi-lang-java=\"`cloudflareRecords`\" pulumi-lang-hcl=\"`cloudflare_records`\"\u003e`cloudflareRecords`\u003c/span\u003e. An update adds or removes the subdomain. Defaults to true.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the server. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/serverTerm:ServerTerm" } ], "description": "The billing term. The server's public IPs and add-ons are billed on the same term. A change applies at once, from 'monthly' to 'annual' or back. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "updatedAt": { "type": "string", "description": "When the server was last updated.\n" }, "userData": { "type": "string", "description": "A cloud-init `#cloud-config` document or a script that runs at the first boot, at most 32 KiB. A script starts with `#!`. We don't store it, and no response returns it. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "vulnerabilityMonitoring": { "type": "boolean", "description": "Whether we scan the server daily for open ports and vulnerable software versions. Get the latest findings via [Get a server's security scan](https://betterstack.com/docs/cloud/api/servers/security-scan-server/). Defaults to false.\n" } }, "type": "object" } }, "betterstack:index/serverPool:ServerPool": { "description": "A server pool keeps spare servers of one type running, so you can claim a running server from the pool in under a second.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.ServerPool(\"example\", {\n teamId: \"t123\",\n name: \"web\",\n serverType: \"AM1\",\n image: \"ubuntu-26-04\",\n minSize: 0,\n maxSize: 1,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.ServerPool(\"example\",\n team_id=\"t123\",\n name=\"web\",\n server_type=\"AM1\",\n image=\"ubuntu-26-04\",\n min_size=0,\n max_size=1)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.ServerPool(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"web\",\n ServerType = \"AM1\",\n Image = \"ubuntu-26-04\",\n MinSize = 0,\n MaxSize = 1,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewServerPool(ctx, \"example\", \u0026betterstack.ServerPoolArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"web\"),\n\t\t\tServerType: pulumi.String(\"AM1\"),\n\t\t\tImage: pulumi.String(\"ubuntu-26-04\"),\n\t\t\tMinSize: pulumi.Int(0),\n\t\t\tMaxSize: pulumi.Int(1),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_server_pool\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"web\"\n server_type = \"AM1\"\n image = \"ubuntu-26-04\"\n min_size = 0\n max_size = 1\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.ServerPool;\nimport com.betterstack.pulumi.ServerPoolArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ServerPool(\"example\", ServerPoolArgs.builder()\n .teamId(\"t123\")\n .name(\"web\")\n .serverType(\"AM1\")\n .image(\"ubuntu-26-04\")\n .minSize(0)\n .maxSize(1)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:ServerPool\n properties:\n teamId: t123\n name: web\n serverType: AM1\n image: ubuntu-26-04\n minSize: 0\n maxSize: 1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nAt least one of \u003cspan pulumi-lang-nodejs=\"`image`\" pulumi-lang-dotnet=\"`Image`\" pulumi-lang-go=\"`image`\" pulumi-lang-python=\"`image`\" pulumi-lang-yaml=\"`image`\" pulumi-lang-java=\"`image`\" pulumi-lang-hcl=\"`image`\"\u003e`image`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`snapshotId`\" pulumi-lang-dotnet=\"`SnapshotId`\" pulumi-lang-go=\"`snapshotId`\" pulumi-lang-python=\"`snapshot_id`\" pulumi-lang-yaml=\"`snapshotId`\" pulumi-lang-java=\"`snapshotId`\" pulumi-lang-hcl=\"`snapshot_id`\"\u003e`snapshotId`\u003c/span\u003e must be configured. The provider validates this condition before creating or updating the resource.\n\n\u003e A spare server shows in [List servers](https://betterstack.com/docs/cloud/api/servers/list-servers/) with the 'status' 'pooled' and the pool's ID in 'pool_id'. Filter by 'pool_id' to list a pool's servers. The only change you can make to a spare server is claiming it.\n\n\u003e A pool keeps \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e spare servers, from \u003cspan pulumi-lang-nodejs=\"`minSize`\" pulumi-lang-dotnet=\"`MinSize`\" pulumi-lang-go=\"`minSize`\" pulumi-lang-python=\"`min_size`\" pulumi-lang-yaml=\"`minSize`\" pulumi-lang-java=\"`minSize`\" pulumi-lang-hcl=\"`min_size`\"\u003e`minSize`\u003c/span\u003e to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e. The target grows when you claim a server from an empty pool, and shrinks while nobody claims one.\n\n\u003e A claimed server's events start with a 'claimed' event.\n\n## Import\n\nImport an existing server pool by its ID.\n\n```sh\n$ pulumi import betterstack:index/serverPool:ServerPool example 12345\n```\n\n", "properties": { "available": { "type": "integer", "description": "How many spare servers are ready to claim right away.\n" }, "claimsTotal": { "type": "integer", "description": "How many servers have been claimed from the pool.\n" }, "createdAt": { "type": "string", "description": "When the pool was created.\n" }, "defaults": { "$ref": "#/types/betterstack:index/ServerPoolDefaults:ServerPoolDefaults", "description": "What every spare server gets when it boots, such as \u003cspan pulumi-lang-nodejs=\"`sshKeys`\" pulumi-lang-dotnet=\"`SshKeys`\" pulumi-lang-go=\"`sshKeys`\" pulumi-lang-python=\"`ssh_keys`\" pulumi-lang-yaml=\"`sshKeys`\" pulumi-lang-java=\"`sshKeys`\" pulumi-lang-hcl=\"`ssh_keys`\"\u003e`sshKeys`\u003c/span\u003e, firewalls, private networks and tags. When you claim a server and add nothing to these, the server is ready as soon as the request returns.\n" }, "enabled": { "type": "boolean", "description": "Whether the pool keeps spare servers. A disabled pool removes all its spare servers and keeps its settings. Claiming from a disabled pool is refused. Defaults to true.\n" }, "growthMultiplier": { "type": "number", "description": "How much the pool grows when you claim a server from an empty pool. \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, from 1 to 10. '1' turns growing off. Defaults to `2.0`.\n" }, "idleMinutes": { "type": "integer", "description": "How many minutes without a claim before the pool shrinks, from 1 to 1440. Defaults to '5'.\n" }, "image": { "type": "string", "description": "The 'slug' of the image the spare servers boot from. null for a pool that boots from a snapshot. Can't be changed after the pool is created. At least one of \u003cspan pulumi-lang-nodejs=\"`image`\" pulumi-lang-dotnet=\"`Image`\" pulumi-lang-go=\"`image`\" pulumi-lang-python=\"`image`\" pulumi-lang-yaml=\"`image`\" pulumi-lang-java=\"`image`\" pulumi-lang-hcl=\"`image`\"\u003e`image`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`snapshotId`\" pulumi-lang-dotnet=\"`SnapshotId`\" pulumi-lang-go=\"`snapshotId`\" pulumi-lang-python=\"`snapshot_id`\" pulumi-lang-yaml=\"`snapshotId`\" pulumi-lang-java=\"`snapshotId`\" pulumi-lang-hcl=\"`snapshot_id`\"\u003e`snapshotId`\u003c/span\u003e must be configured.\n" }, "maxSize": { "type": "integer", "description": "The most spare servers the pool keeps. The \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e of all your organization's pools together can't be more than its 'server_pool_size' quota. Defaults to '0'.\n" }, "minSize": { "type": "integer", "description": "The fewest spare servers the pool keeps, from 0 up to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e. Defaults to '0'.\n" }, "name": { "type": "string", "description": "The pool's name. Must be unique in the team, with up to 63 lowercase letters, digits and hyphens, and start and end with a letter or digit. Spare servers are named after the pool, with a hyphen and 6 hex characters added. A server gets its own name when you claim it.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the spare servers get a public IPv4 address. A server without one has only IPv6. Can't be changed after the pool is created. Defaults to true.\n" }, "serverType": { "type": "string", "description": "The server type of the spare servers. For a pool that boots from a snapshot, the snapshot's server type. Can't be changed after the pool is created.\n" }, "shrinkMultiplier": { "type": "number", "description": "How much the pool shrinks while it's full and nobody has claimed a server for \u003cspan pulumi-lang-nodejs=\"`idleMinutes`\" pulumi-lang-dotnet=\"`IdleMinutes`\" pulumi-lang-go=\"`idleMinutes`\" pulumi-lang-python=\"`idle_minutes`\" pulumi-lang-yaml=\"`idleMinutes`\" pulumi-lang-java=\"`idleMinutes`\" pulumi-lang-hcl=\"`idle_minutes`\"\u003e`idleMinutes`\u003c/span\u003e. Each minute, \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, which is more than 0 and at most 1. '1' turns shrinking off. Defaults to `0.8`.\n" }, "snapshotId": { "type": "string", "description": "The ID of the snapshot the spare servers boot from. null for a pool that boots from an image. Can't be changed after the pool is created. At least one of \u003cspan pulumi-lang-nodejs=\"`image`\" pulumi-lang-dotnet=\"`Image`\" pulumi-lang-go=\"`image`\" pulumi-lang-python=\"`image`\" pulumi-lang-yaml=\"`image`\" pulumi-lang-java=\"`image`\" pulumi-lang-hcl=\"`image`\"\u003e`image`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`snapshotId`\" pulumi-lang-dotnet=\"`SnapshotId`\" pulumi-lang-go=\"`snapshotId`\" pulumi-lang-python=\"`snapshot_id`\" pulumi-lang-yaml=\"`snapshotId`\" pulumi-lang-java=\"`snapshotId`\" pulumi-lang-hcl=\"`snapshot_id`\"\u003e`snapshotId`\u003c/span\u003e must be configured.\n" }, "targetSize": { "type": "integer", "description": "The number of spare servers the pool currently aims for, from \u003cspan pulumi-lang-nodejs=\"`minSize`\" pulumi-lang-dotnet=\"`MinSize`\" pulumi-lang-go=\"`minSize`\" pulumi-lang-python=\"`min_size`\" pulumi-lang-yaml=\"`minSize`\" pulumi-lang-java=\"`minSize`\" pulumi-lang-hcl=\"`min_size`\"\u003e`minSize`\u003c/span\u003e to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e. The target grows and shrinks as servers are claimed, and is 0 while the pool is disabled.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the pool and its servers.\n" }, "updatedAt": { "type": "string", "description": "When the pool was last updated.\n" }, "warming": { "type": "integer", "description": "How many spare servers are still booting.\n" } }, "required": [ "available", "claimsTotal", "createdAt", "defaults", "enabled", "growthMultiplier", "idleMinutes", "maxSize", "minSize", "name", "publicIpv4", "serverType", "shrinkMultiplier", "targetSize", "teamId", "updatedAt", "warming" ], "inputProperties": { "defaults": { "$ref": "#/types/betterstack:index/ServerPoolDefaults:ServerPoolDefaults", "description": "What every spare server gets when it boots, such as \u003cspan pulumi-lang-nodejs=\"`sshKeys`\" pulumi-lang-dotnet=\"`SshKeys`\" pulumi-lang-go=\"`sshKeys`\" pulumi-lang-python=\"`ssh_keys`\" pulumi-lang-yaml=\"`sshKeys`\" pulumi-lang-java=\"`sshKeys`\" pulumi-lang-hcl=\"`ssh_keys`\"\u003e`sshKeys`\u003c/span\u003e, firewalls, private networks and tags. When you claim a server and add nothing to these, the server is ready as soon as the request returns.\n" }, "enabled": { "type": "boolean", "description": "Whether the pool keeps spare servers. A disabled pool removes all its spare servers and keeps its settings. Claiming from a disabled pool is refused. Defaults to true.\n" }, "growthMultiplier": { "type": "number", "description": "How much the pool grows when you claim a server from an empty pool. \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, from 1 to 10. '1' turns growing off. Defaults to `2.0`.\n" }, "idleMinutes": { "type": "integer", "description": "How many minutes without a claim before the pool shrinks, from 1 to 1440. Defaults to '5'.\n" }, "image": { "type": "string", "description": "The 'slug' of the image the spare servers boot from. null for a pool that boots from a snapshot. Can't be changed after the pool is created. At least one of \u003cspan pulumi-lang-nodejs=\"`image`\" pulumi-lang-dotnet=\"`Image`\" pulumi-lang-go=\"`image`\" pulumi-lang-python=\"`image`\" pulumi-lang-yaml=\"`image`\" pulumi-lang-java=\"`image`\" pulumi-lang-hcl=\"`image`\"\u003e`image`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`snapshotId`\" pulumi-lang-dotnet=\"`SnapshotId`\" pulumi-lang-go=\"`snapshotId`\" pulumi-lang-python=\"`snapshot_id`\" pulumi-lang-yaml=\"`snapshotId`\" pulumi-lang-java=\"`snapshotId`\" pulumi-lang-hcl=\"`snapshot_id`\"\u003e`snapshotId`\u003c/span\u003e must be configured.\n" }, "maxSize": { "type": "integer", "description": "The most spare servers the pool keeps. The \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e of all your organization's pools together can't be more than its 'server_pool_size' quota. Defaults to '0'.\n" }, "minSize": { "type": "integer", "description": "The fewest spare servers the pool keeps, from 0 up to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e. Defaults to '0'.\n" }, "name": { "type": "string", "description": "The pool's name. Must be unique in the team, with up to 63 lowercase letters, digits and hyphens, and start and end with a letter or digit. Spare servers are named after the pool, with a hyphen and 6 hex characters added. A server gets its own name when you claim it.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the spare servers get a public IPv4 address. A server without one has only IPv6. Can't be changed after the pool is created. Defaults to true.\n" }, "serverType": { "type": "string", "description": "The server type of the spare servers. For a pool that boots from a snapshot, the snapshot's server type. Can't be changed after the pool is created.\n" }, "shrinkMultiplier": { "type": "number", "description": "How much the pool shrinks while it's full and nobody has claimed a server for \u003cspan pulumi-lang-nodejs=\"`idleMinutes`\" pulumi-lang-dotnet=\"`IdleMinutes`\" pulumi-lang-go=\"`idleMinutes`\" pulumi-lang-python=\"`idle_minutes`\" pulumi-lang-yaml=\"`idleMinutes`\" pulumi-lang-java=\"`idleMinutes`\" pulumi-lang-hcl=\"`idle_minutes`\"\u003e`idleMinutes`\u003c/span\u003e. Each minute, \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, which is more than 0 and at most 1. '1' turns shrinking off. Defaults to `0.8`.\n" }, "snapshotId": { "type": "string", "description": "The ID of the snapshot the spare servers boot from. null for a pool that boots from an image. Can't be changed after the pool is created. At least one of \u003cspan pulumi-lang-nodejs=\"`image`\" pulumi-lang-dotnet=\"`Image`\" pulumi-lang-go=\"`image`\" pulumi-lang-python=\"`image`\" pulumi-lang-yaml=\"`image`\" pulumi-lang-java=\"`image`\" pulumi-lang-hcl=\"`image`\"\u003e`image`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`snapshotId`\" pulumi-lang-dotnet=\"`SnapshotId`\" pulumi-lang-go=\"`snapshotId`\" pulumi-lang-python=\"`snapshot_id`\" pulumi-lang-yaml=\"`snapshotId`\" pulumi-lang-java=\"`snapshotId`\" pulumi-lang-hcl=\"`snapshot_id`\"\u003e`snapshotId`\u003c/span\u003e must be configured.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the pool and its servers.\n" } }, "requiredInputs": [ "name", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ServerPool resources.\n", "properties": { "available": { "type": "integer", "description": "How many spare servers are ready to claim right away.\n" }, "claimsTotal": { "type": "integer", "description": "How many servers have been claimed from the pool.\n" }, "createdAt": { "type": "string", "description": "When the pool was created.\n" }, "defaults": { "$ref": "#/types/betterstack:index/ServerPoolDefaults:ServerPoolDefaults", "description": "What every spare server gets when it boots, such as \u003cspan pulumi-lang-nodejs=\"`sshKeys`\" pulumi-lang-dotnet=\"`SshKeys`\" pulumi-lang-go=\"`sshKeys`\" pulumi-lang-python=\"`ssh_keys`\" pulumi-lang-yaml=\"`sshKeys`\" pulumi-lang-java=\"`sshKeys`\" pulumi-lang-hcl=\"`ssh_keys`\"\u003e`sshKeys`\u003c/span\u003e, firewalls, private networks and tags. When you claim a server and add nothing to these, the server is ready as soon as the request returns.\n" }, "enabled": { "type": "boolean", "description": "Whether the pool keeps spare servers. A disabled pool removes all its spare servers and keeps its settings. Claiming from a disabled pool is refused. Defaults to true.\n" }, "growthMultiplier": { "type": "number", "description": "How much the pool grows when you claim a server from an empty pool. \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, from 1 to 10. '1' turns growing off. Defaults to `2.0`.\n" }, "idleMinutes": { "type": "integer", "description": "How many minutes without a claim before the pool shrinks, from 1 to 1440. Defaults to '5'.\n" }, "image": { "type": "string", "description": "The 'slug' of the image the spare servers boot from. null for a pool that boots from a snapshot. Can't be changed after the pool is created. At least one of \u003cspan pulumi-lang-nodejs=\"`image`\" pulumi-lang-dotnet=\"`Image`\" pulumi-lang-go=\"`image`\" pulumi-lang-python=\"`image`\" pulumi-lang-yaml=\"`image`\" pulumi-lang-java=\"`image`\" pulumi-lang-hcl=\"`image`\"\u003e`image`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`snapshotId`\" pulumi-lang-dotnet=\"`SnapshotId`\" pulumi-lang-go=\"`snapshotId`\" pulumi-lang-python=\"`snapshot_id`\" pulumi-lang-yaml=\"`snapshotId`\" pulumi-lang-java=\"`snapshotId`\" pulumi-lang-hcl=\"`snapshot_id`\"\u003e`snapshotId`\u003c/span\u003e must be configured.\n" }, "maxSize": { "type": "integer", "description": "The most spare servers the pool keeps. The \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e of all your organization's pools together can't be more than its 'server_pool_size' quota. Defaults to '0'.\n" }, "minSize": { "type": "integer", "description": "The fewest spare servers the pool keeps, from 0 up to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e. Defaults to '0'.\n" }, "name": { "type": "string", "description": "The pool's name. Must be unique in the team, with up to 63 lowercase letters, digits and hyphens, and start and end with a letter or digit. Spare servers are named after the pool, with a hyphen and 6 hex characters added. A server gets its own name when you claim it.\n" }, "publicIpv4": { "type": "boolean", "description": "Whether the spare servers get a public IPv4 address. A server without one has only IPv6. Can't be changed after the pool is created. Defaults to true.\n" }, "serverType": { "type": "string", "description": "The server type of the spare servers. For a pool that boots from a snapshot, the snapshot's server type. Can't be changed after the pool is created.\n" }, "shrinkMultiplier": { "type": "number", "description": "How much the pool shrinks while it's full and nobody has claimed a server for \u003cspan pulumi-lang-nodejs=\"`idleMinutes`\" pulumi-lang-dotnet=\"`IdleMinutes`\" pulumi-lang-go=\"`idleMinutes`\" pulumi-lang-python=\"`idle_minutes`\" pulumi-lang-yaml=\"`idleMinutes`\" pulumi-lang-java=\"`idleMinutes`\" pulumi-lang-hcl=\"`idle_minutes`\"\u003e`idleMinutes`\u003c/span\u003e. Each minute, \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, which is more than 0 and at most 1. '1' turns shrinking off. Defaults to `0.8`.\n" }, "snapshotId": { "type": "string", "description": "The ID of the snapshot the spare servers boot from. null for a pool that boots from an image. Can't be changed after the pool is created. At least one of \u003cspan pulumi-lang-nodejs=\"`image`\" pulumi-lang-dotnet=\"`Image`\" pulumi-lang-go=\"`image`\" pulumi-lang-python=\"`image`\" pulumi-lang-yaml=\"`image`\" pulumi-lang-java=\"`image`\" pulumi-lang-hcl=\"`image`\"\u003e`image`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`snapshotId`\" pulumi-lang-dotnet=\"`SnapshotId`\" pulumi-lang-go=\"`snapshotId`\" pulumi-lang-python=\"`snapshot_id`\" pulumi-lang-yaml=\"`snapshotId`\" pulumi-lang-java=\"`snapshotId`\" pulumi-lang-hcl=\"`snapshot_id`\"\u003e`snapshotId`\u003c/span\u003e must be configured.\n" }, "targetSize": { "type": "integer", "description": "The number of spare servers the pool currently aims for, from \u003cspan pulumi-lang-nodejs=\"`minSize`\" pulumi-lang-dotnet=\"`MinSize`\" pulumi-lang-go=\"`minSize`\" pulumi-lang-python=\"`min_size`\" pulumi-lang-yaml=\"`minSize`\" pulumi-lang-java=\"`minSize`\" pulumi-lang-hcl=\"`min_size`\"\u003e`minSize`\u003c/span\u003e to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e. The target grows and shrinks as servers are claimed, and is 0 while the pool is disabled.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the pool and its servers.\n" }, "updatedAt": { "type": "string", "description": "When the pool was last updated.\n" }, "warming": { "type": "integer", "description": "How many spare servers are still booting.\n" } }, "type": "object" } }, "betterstack:index/serverPrivateIp:ServerPrivateIp": { "description": "A private IP of a server in one of its private networks.\n\n\u003e Better Stack can't update a server private IP in place, so changing any argument replaces it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SshKey(\"example\", {\n slug: \"my-laptop\",\n publicKey: \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n teamId: \"t123\",\n});\nconst exampleNetwork = new betterstack.Network(\"example\", {\n name: \"example\",\n ipPrefix: \"10.0.0.0\",\n ipPrefixLength: 16,\n teamId: \"t123\",\n});\nconst exampleServer = new betterstack.Server(\"example\", {\n teamId: \"t123\",\n name: \"web-1\",\n serverType: \"AM1\",\n image: \"ubuntu-26-04\",\n sshKeys: [example.slug],\n networkIds: [exampleNetwork.id],\n});\nconst exampleServerPrivateIp = new betterstack.ServerPrivateIp(\"example\", {\n serverId: exampleServer.id,\n networkId: exampleNetwork.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SshKey(\"example\",\n slug=\"my-laptop\",\n public_key=\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n team_id=\"t123\")\nexample_network = betterstack.Network(\"example\",\n name=\"example\",\n ip_prefix=\"10.0.0.0\",\n ip_prefix_length=16,\n team_id=\"t123\")\nexample_server = betterstack.Server(\"example\",\n team_id=\"t123\",\n name=\"web-1\",\n server_type=\"AM1\",\n image=\"ubuntu-26-04\",\n ssh_keys=[example.slug],\n network_ids=[example_network.id])\nexample_server_private_ip = betterstack.ServerPrivateIp(\"example\",\n server_id=example_server.id,\n network_id=example_network.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SshKey(\"example\", new()\n {\n Slug = \"my-laptop\",\n PublicKey = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n TeamId = \"t123\",\n });\n\n var exampleNetwork = new BetterStack.Network(\"example\", new()\n {\n Name = \"example\",\n IpPrefix = \"10.0.0.0\",\n IpPrefixLength = 16,\n TeamId = \"t123\",\n });\n\n var exampleServer = new BetterStack.Server(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"web-1\",\n ServerType = \"AM1\",\n Image = \"ubuntu-26-04\",\n SshKeys = new[]\n {\n example.Slug,\n },\n NetworkIds = new[]\n {\n exampleNetwork.Id,\n },\n });\n\n var exampleServerPrivateIp = new BetterStack.ServerPrivateIp(\"example\", new()\n {\n ServerId = exampleServer.Id,\n NetworkId = exampleNetwork.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewSshKey(ctx, \"example\", \u0026betterstack.SshKeyArgs{\n\t\t\tSlug: pulumi.String(\"my-laptop\"),\n\t\t\tPublicKey: pulumi.String(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetwork, err := betterstack.NewNetwork(ctx, \"example\", \u0026betterstack.NetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tIpPrefix: pulumi.String(\"10.0.0.0\"),\n\t\t\tIpPrefixLength: pulumi.Int(16),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServer, err := betterstack.NewServer(ctx, \"example\", \u0026betterstack.ServerArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"web-1\"),\n\t\t\tServerType: pulumi.String(\"AM1\"),\n\t\t\tImage: pulumi.String(\"ubuntu-26-04\"),\n\t\t\tSshKeys: pulumi.StringArray{\n\t\t\t\texample.Slug,\n\t\t\t},\n\t\t\tNetworkIds: pulumi.StringArray{\n\t\t\t\texampleNetwork.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewServerPrivateIp(ctx, \"example\", \u0026betterstack.ServerPrivateIpArgs{\n\t\t\tServerId: exampleServer.ID(),\n\t\t\tNetworkId: exampleNetwork.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_ssh_key\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n slug = \"my-laptop\"\n public_key = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"\n team_id = \"t123\"\n}\nresource \"betterstack_network\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n ip_prefix = \"10.0.0.0\"\n ip_prefix_length = 16\n team_id = \"t123\"\n}\nresource \"betterstack_server\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"web-1\"\n server_type = \"AM1\"\n image = \"ubuntu-26-04\"\n ssh_keys = [betterstack_ssh_key.example.slug]\n network_ids = [betterstack_network.example.id]\n}\nresource \"betterstack_server_private_ip\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n server_id = betterstack_server.example.id\n network_id = betterstack_network.example.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SshKey;\nimport com.betterstack.pulumi.SshKeyArgs;\nimport com.betterstack.pulumi.Network;\nimport com.betterstack.pulumi.NetworkArgs;\nimport com.betterstack.pulumi.Server;\nimport com.betterstack.pulumi.ServerArgs;\nimport com.betterstack.pulumi.ServerPrivateIp;\nimport com.betterstack.pulumi.ServerPrivateIpArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SshKey(\"example\", SshKeyArgs.builder()\n .slug(\"my-laptop\")\n .publicKey(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\")\n .teamId(\"t123\")\n .build());\n\n var exampleNetwork = new Network(\"exampleNetwork\", NetworkArgs.builder()\n .name(\"example\")\n .ipPrefix(\"10.0.0.0\")\n .ipPrefixLength(16)\n .teamId(\"t123\")\n .build());\n\n var exampleServer = new Server(\"exampleServer\", ServerArgs.builder()\n .teamId(\"t123\")\n .name(\"web-1\")\n .serverType(\"AM1\")\n .image(\"ubuntu-26-04\")\n .sshKeys(example.slug())\n .networkIds(exampleNetwork.id())\n .build());\n\n var exampleServerPrivateIp = new ServerPrivateIp(\"exampleServerPrivateIp\", ServerPrivateIpArgs.builder()\n .serverId(exampleServer.id())\n .networkId(exampleNetwork.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SshKey\n properties:\n slug: my-laptop\n publicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\n teamId: t123\n exampleNetwork:\n type: betterstack:Network\n name: example\n properties:\n name: example\n ipPrefix: 10.0.0.0\n ipPrefixLength: 16\n teamId: t123\n exampleServer:\n type: betterstack:Server\n name: example\n properties:\n teamId: t123\n name: web-1\n serverType: AM1\n image: ubuntu-26-04\n sshKeys:\n - ${example.slug}\n networkIds:\n - ${exampleNetwork.id}\n exampleServerPrivateIp:\n type: betterstack:ServerPrivateIp\n name: example\n properties:\n serverId: ${exampleServer.id}\n networkId: ${exampleNetwork.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing server private IP by its ID as `server_id/id`. Get the ID via [List server private IPs](https://betterstack.com/docs/cloud/api/server-private-ips/list-server-private-ips/).\n\n```sh\n$ pulumi import betterstack:index/serverPrivateIp:ServerPrivateIp example \u003cserver_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the address was assigned.\n" }, "ipAddress": { "type": "string", "description": "The private IP address. Must be in the network's IP range. Leave it out to get the next free address.\n" }, "networkId": { "type": "string", "description": "The ID of the private network the address is in. The server must already be attached to the network.\n" }, "serverId": { "type": "string", "description": "The ID of the server that has the address. Changing it replaces the resource.\n" }, "updatedAt": { "type": "string", "description": "When the private IP was last updated.\n" } }, "required": [ "createdAt", "ipAddress", "networkId", "serverId", "updatedAt" ], "inputProperties": { "ipAddress": { "type": "string", "description": "The private IP address. Must be in the network's IP range. Leave it out to get the next free address.\n" }, "networkId": { "type": "string", "description": "The ID of the private network the address is in. The server must already be attached to the network.\n" }, "serverId": { "type": "string", "description": "The ID of the server that has the address. Changing it replaces the resource.\n" } }, "requiredInputs": [ "networkId", "serverId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ServerPrivateIp resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the address was assigned.\n" }, "ipAddress": { "type": "string", "description": "The private IP address. Must be in the network's IP range. Leave it out to get the next free address.\n" }, "networkId": { "type": "string", "description": "The ID of the private network the address is in. The server must already be attached to the network.\n" }, "serverId": { "type": "string", "description": "The ID of the server that has the address. Changing it replaces the resource.\n" }, "updatedAt": { "type": "string", "description": "When the private IP was last updated.\n" } }, "type": "object" } }, "betterstack:index/severity:Severity": { "description": "A named alerting level, such as low or high, that sets how people are alerted when an escalation policy step uses it.\n\n## Example Usage\n\n### Call and text people for critical incidents\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst critical = new betterstack.Severity(\"critical\", {\n name: \"Critical\",\n call: true,\n sms: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ncritical = betterstack.Severity(\"critical\",\n name=\"Critical\",\n call=True,\n sms=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var critical = new BetterStack.Severity(\"critical\", new()\n {\n Name = \"Critical\",\n Call = true,\n Sms = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewSeverity(ctx, \"critical\", \u0026betterstack.SeverityArgs{\n\t\t\tName: pulumi.String(\"Critical\"),\n\t\t\tCall: pulumi.Bool(true),\n\t\t\tSms: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_severity\" \"critical\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Critical\"\n call = true\n sms = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Severity;\nimport com.betterstack.pulumi.SeverityArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var critical = new Severity(\"critical\", SeverityArgs.builder()\n .name(\"Critical\")\n .call(true)\n .sms(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n critical:\n type: betterstack:Severity\n properties:\n name: Critical\n call: true\n sms: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Group severities\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst customerFacing = new betterstack.SeverityGroup(\"customer_facing\", {name: \"Customer-facing\"});\nconst outage = new betterstack.Severity(\"outage\", {\n name: \"Customer-facing outage\",\n call: true,\n severityGroupId: customerFacing.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ncustomer_facing = betterstack.SeverityGroup(\"customer_facing\", name=\"Customer-facing\")\noutage = betterstack.Severity(\"outage\",\n name=\"Customer-facing outage\",\n call=True,\n severity_group_id=customer_facing.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var customerFacing = new BetterStack.SeverityGroup(\"customer_facing\", new()\n {\n Name = \"Customer-facing\",\n });\n\n var outage = new BetterStack.Severity(\"outage\", new()\n {\n Name = \"Customer-facing outage\",\n Call = true,\n SeverityGroupId = customerFacing.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcustomerFacing, err := betterstack.NewSeverityGroup(ctx, \"customer_facing\", \u0026betterstack.SeverityGroupArgs{\n\t\t\tName: pulumi.String(\"Customer-facing\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewSeverity(ctx, \"outage\", \u0026betterstack.SeverityArgs{\n\t\t\tName: pulumi.String(\"Customer-facing outage\"),\n\t\t\tCall: pulumi.Bool(true),\n\t\t\tSeverityGroupId: customerFacing.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_severity_group\" \"customer_facing\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Customer-facing\"\n}\nresource \"betterstack_severity\" \"outage\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Customer-facing outage\"\n call = true\n severity_group_id = betterstack_severity_group.customer_facing.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SeverityGroup;\nimport com.betterstack.pulumi.SeverityGroupArgs;\nimport com.betterstack.pulumi.Severity;\nimport com.betterstack.pulumi.SeverityArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var customerFacing = new SeverityGroup(\"customerFacing\", SeverityGroupArgs.builder()\n .name(\"Customer-facing\")\n .build());\n\n var outage = new Severity(\"outage\", SeverityArgs.builder()\n .name(\"Customer-facing outage\")\n .call(true)\n .severityGroupId(customerFacing.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n customerFacing:\n type: betterstack:SeverityGroup\n name: customer_facing\n properties:\n name: Customer-facing\n outage:\n type: betterstack:Severity\n properties:\n name: Customer-facing outage\n call: true\n severityGroupId: ${customerFacing.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing severity by its ID. Get the ID via [List severities](https://betterstack.com/docs/uptime/api/list-all-severities/). The matching get function also finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/severity:Severity example 12345\n```\n\n", "properties": { "call": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by phone call. Each person can override this in their own notification settings. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether escalation policy steps with this severity send a critical alert, a push notification that ignores the mute switch and Do Not Disturb mode. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by e-mail. Each person can override this in their own notification settings. Defaults to true.\n" }, "name": { "type": "string", "description": "The severity's name, unique within the team, ignoring case.\n" }, "push": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by push notification. Each person can override this in their own notification settings. Defaults to true.\n" }, "severityGroupId": { "type": "string", "description": "The ID of the severity group this severity belongs to, or null when it's in none. Get the ID via [List severity groups](https://betterstack.com/docs/uptime/api/list-all-existing-severity-groups/). Remove the argument to clear it from its group.\n" }, "sms": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by SMS. Each person can override this in their own notification settings. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this severity, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this severity.\n" } }, "required": [ "call", "criticalAlert", "email", "name", "push", "sms", "teamId", "teamName" ], "inputProperties": { "call": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by phone call. Each person can override this in their own notification settings. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether escalation policy steps with this severity send a critical alert, a push notification that ignores the mute switch and Do Not Disturb mode. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by e-mail. Each person can override this in their own notification settings. Defaults to true.\n" }, "name": { "type": "string", "description": "The severity's name, unique within the team, ignoring case.\n" }, "push": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by push notification. Each person can override this in their own notification settings. Defaults to true.\n" }, "severityGroupId": { "type": "string", "description": "The ID of the severity group this severity belongs to, or null when it's in none. Get the ID via [List severity groups](https://betterstack.com/docs/uptime/api/list-all-existing-severity-groups/). Remove the argument to clear it from its group.\n" }, "sms": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by SMS. Each person can override this in their own notification settings. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this severity, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering Severity resources.\n", "properties": { "call": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by phone call. Each person can override this in their own notification settings. Defaults to false.\n" }, "criticalAlert": { "type": "boolean", "description": "Whether escalation policy steps with this severity send a critical alert, a push notification that ignores the mute switch and Do Not Disturb mode. Defaults to false.\n" }, "email": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by e-mail. Each person can override this in their own notification settings. Defaults to true.\n" }, "name": { "type": "string", "description": "The severity's name, unique within the team, ignoring case.\n" }, "push": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by push notification. Each person can override this in their own notification settings. Defaults to true.\n" }, "severityGroupId": { "type": "string", "description": "The ID of the severity group this severity belongs to, or null when it's in none. Get the ID via [List severity groups](https://betterstack.com/docs/uptime/api/list-all-existing-severity-groups/). Remove the argument to clear it from its group.\n" }, "sms": { "type": "boolean", "description": "Whether escalation policy steps with this severity alert people by SMS. Each person can override this in their own notification settings. Defaults to false.\n" }, "teamId": { "type": "string", "description": "Team that owns this severity, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this severity.\n" } }, "type": "object" } }, "betterstack:index/severityGroup:SeverityGroup": { "description": "A severity group keeps related severities together.\n\n## Example Usage\n\n### Create a severity group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SeverityGroup(\"example\", {name: \"Customer-facing\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SeverityGroup(\"example\", name=\"Customer-facing\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SeverityGroup(\"example\", new()\n {\n Name = \"Customer-facing\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewSeverityGroup(ctx, \"example\", \u0026betterstack.SeverityGroupArgs{\n\t\t\tName: pulumi.String(\"Customer-facing\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_severity_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Customer-facing\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SeverityGroup;\nimport com.betterstack.pulumi.SeverityGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SeverityGroup(\"example\", SeverityGroupArgs.builder()\n .name(\"Customer-facing\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SeverityGroup\n properties:\n name: Customer-facing\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Listed first\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst listedFirst = new betterstack.SeverityGroup(\"listed_first\", {\n name: \"Production outages\",\n sortIndex: 0,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nlisted_first = betterstack.SeverityGroup(\"listed_first\",\n name=\"Production outages\",\n sort_index=0)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var listedFirst = new BetterStack.SeverityGroup(\"listed_first\", new()\n {\n Name = \"Production outages\",\n SortIndex = 0,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewSeverityGroup(ctx, \"listed_first\", \u0026betterstack.SeverityGroupArgs{\n\t\t\tName: pulumi.String(\"Production outages\"),\n\t\t\tSortIndex: pulumi.Int(0),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_severity_group\" \"listed_first\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production outages\"\n sort_index = 0\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SeverityGroup;\nimport com.betterstack.pulumi.SeverityGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var listedFirst = new SeverityGroup(\"listedFirst\", SeverityGroupArgs.builder()\n .name(\"Production outages\")\n .sortIndex(0)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n listedFirst:\n type: betterstack:SeverityGroup\n name: listed_first\n properties:\n name: Production outages\n sortIndex: 0\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing severity group by its ID. Get the ID via [List severity groups](https://betterstack.com/docs/uptime/api/list-all-existing-severity-groups/).\n\n```sh\n$ pulumi import betterstack:index/severityGroup:SeverityGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order of the group among your severity groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order of the group among your severity groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering SeverityGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order of the group among your severity groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns this group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/source:Source": { "description": "A telemetry source, a stream of logs, metrics, or traces ingested into Better Stack.\n\n\u003e Destroying a source deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Collect logs from Ubuntu servers and keep them for 30 days\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst servers = new betterstack.Source(\"servers\", {\n name: \"Production servers\",\n platform: betterstack.SourcePlatform.Ubuntu,\n logsRetention: 30,\n metricsRetention: 90,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nservers = betterstack.Source(\"servers\",\n name=\"Production servers\",\n platform=betterstack.SourcePlatform.UBUNTU,\n logs_retention=30,\n metrics_retention=90)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var servers = new BetterStack.Source(\"servers\", new()\n {\n Name = \"Production servers\",\n Platform = BetterStack.SourcePlatform.Ubuntu,\n LogsRetention = 30,\n MetricsRetention = 90,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewSource(ctx, \"servers\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"Production servers\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformUbuntu),\n\t\t\tLogsRetention: pulumi.Int(30),\n\t\t\tMetricsRetention: pulumi.Int(90),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source\" \"servers\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production servers\"\n platform = \"ubuntu\"\n logs_retention = 30\n metrics_retention = 90\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var servers = new Source(\"servers\", SourceArgs.builder()\n .name(\"Production servers\")\n .platform(\"ubuntu\")\n .logsRetention(30)\n .metricsRetention(90)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n servers:\n type: betterstack:Source\n properties:\n name: Production servers\n platform: ubuntu\n logsRetention: 30\n metricsRetention: 90\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Receive OpenTelemetry data in a source group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst backend = new betterstack.SourceGroup(\"backend\", {name: \"Backend\"});\nconst otel = new betterstack.Source(\"otel\", {\n name: \"Checkout service\",\n platform: betterstack.SourcePlatform.OpenTelemetry,\n sourceGroupId: backend.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nbackend = betterstack.SourceGroup(\"backend\", name=\"Backend\")\notel = betterstack.Source(\"otel\",\n name=\"Checkout service\",\n platform=betterstack.SourcePlatform.OPEN_TELEMETRY,\n source_group_id=backend.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var backend = new BetterStack.SourceGroup(\"backend\", new()\n {\n Name = \"Backend\",\n });\n\n var otel = new BetterStack.Source(\"otel\", new()\n {\n Name = \"Checkout service\",\n Platform = BetterStack.SourcePlatform.OpenTelemetry,\n SourceGroupId = backend.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tbackend, err := betterstack.NewSourceGroup(ctx, \"backend\", \u0026betterstack.SourceGroupArgs{\n\t\t\tName: pulumi.String(\"Backend\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewSource(ctx, \"otel\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"Checkout service\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformOpenTelemetry),\n\t\t\tSourceGroupId: backend.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source_group\" \"backend\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend\"\n}\nresource \"betterstack_source\" \"otel\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Checkout service\"\n platform = \"open_telemetry\"\n source_group_id = betterstack_source_group.backend.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SourceGroup;\nimport com.betterstack.pulumi.SourceGroupArgs;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var backend = new SourceGroup(\"backend\", SourceGroupArgs.builder()\n .name(\"Backend\")\n .build());\n\n var otel = new Source(\"otel\", SourceArgs.builder()\n .name(\"Checkout service\")\n .platform(\"open_telemetry\")\n .sourceGroupId(backend.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n backend:\n type: betterstack:SourceGroup\n properties:\n name: Backend\n otel:\n type: betterstack:Source\n properties:\n name: Checkout service\n platform: open_telemetry\n sourceGroupId: ${backend.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n'apache2', 'aws', 'aws_cloudwatch', 'aws_ecs', 'aws_elb', 'aws_fargate', 'azure', 'azure_logs', 'claude_platform', 'cloudflare_logpush', 'cloudflare_prometheus_exporter', 'cloudflare_worker', 'datadog_agent', 'digitalocean', 'docker', 'dokku', 'dotnet', 'elasticsearch', 'erlang', 'fastly', 'filebeat', 'flights', 'fluentbit', 'fluentd', 'fly_io', 'gcp', 'go', 'google_cloud_pubsub', 'haproxy', 'heroku', 'http', 'java', 'javascript', 'kubernetes', 'logstash', 'minio', 'mongodb', 'mysql', 'nginx', 'open_telemetry', 'oracle_cloud', 'php', 'postgresql', 'prometheus', 'prometheus_scrape', 'python', 'rabbitmq', 'redis', 'render', 'rsyslog', 'ruby', `syslog-ng`, 'traefik', 'ubuntu', 'vector', 'vercel_integration', 'winlogbeat'\n\n'apache2', 'aws', 'aws_cloudwatch', 'aws_ecs', 'aws_elb', 'aws_fargate', 'azure', 'azure_logs', 'claude_platform', 'cloudflare_logpush', 'cloudflare_prometheus_exporter', 'cloudflare_worker', 'datadog_agent', 'digitalocean', 'docker', 'dokku', 'dotnet', 'elasticsearch', 'erlang', 'fastly', 'filebeat', 'flights', 'fluentbit', 'fluentd', 'fly_io', 'gcp', 'go', 'google_cloud_pubsub', 'haproxy', 'heroku', 'http', 'java', 'javascript', 'kubernetes', 'logstash', 'minio', 'mongodb', 'mysql', 'nginx', 'open_telemetry', 'oracle_cloud', 'php', 'postgresql', 'prometheus', 'prometheus_scrape', 'python', 'rabbitmq', 'redis', 'render', 'rsyslog', 'ruby', `syslog-ng`, 'traefik', 'ubuntu', 'vector', 'vercel_integration', 'winlogbeat'\n\n## Import\n\nImport an existing source by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`tableName`\" pulumi-lang-dotnet=\"`TableName`\" pulumi-lang-go=\"`tableName`\" pulumi-lang-python=\"`table_name`\" pulumi-lang-yaml=\"`tableName`\" pulumi-lang-java=\"`tableName`\" pulumi-lang-hcl=\"`table_name`\"\u003e`tableName`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/source:Source example 12345\n```\n\n", "properties": { "blockedMetrics": { "type": "array", "items": { "type": "string" }, "description": "Metric names marked as spam, which are dropped when they're ingested. Read more about [marking metrics as spam](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/mark-metrics-as-spam/). Defaults to `[]`.\n" }, "cluster": { "type": "string", "description": "The cluster the source's data is stored on, by its name. To connect Grafana to this data, send it as the \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e of [Create a connection](https://betterstack.com/docs/logs/api/connections/create/).\n" }, "connectedSourceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the sources connected to this one, so you can correlate their logs and traces. Connections go both ways. The source is connected to each listed source and to every source those are already connected to. An update removes no existing connection, and `[]` disconnects the source.\n" }, "createdAt": { "type": "string", "description": "When the source was created.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/SourceCustomBucket:SourceCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the source uses Better Stack storage. Read more about [hosting data in your own bucket](https://betterstack.com/docs/logs/host-data-in-your-own-bucket/). The bucket can't be changed after the source is created. To rotate the key pair, update only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e. We check the new pair against the bucket first and refuse the whole request when it fails. A bucket that several sources share is rotated for all of them. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/logs/api/data-regions/). Can't be changed after the source is created. Defaults to the organization's default data region.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this source is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "gcpMetricsFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceGcpMetricsFilter:SourceGcpMetricsFilter" }, "description": "Which Google Cloud metrics the source collects. Each rule has one key, \u003cspan pulumi-lang-nodejs=\"`include`\" pulumi-lang-dotnet=\"`Include`\" pulumi-lang-go=\"`include`\" pulumi-lang-python=\"`include`\" pulumi-lang-yaml=\"`include`\" pulumi-lang-java=\"`include`\" pulumi-lang-hcl=\"`include`\"\u003e`include`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`exclude`\" pulumi-lang-dotnet=\"`Exclude`\" pulumi-lang-go=\"`exclude`\" pulumi-lang-python=\"`exclude`\" pulumi-lang-yaml=\"`exclude`\" pulumi-lang-java=\"`exclude`\" pulumi-lang-hcl=\"`exclude`\"\u003e`exclude`\u003c/span\u003e, holding a regular expression that must match the whole metric type, or `*` for every metric. All rules use the same key. An empty list collects no metrics, which is the default. Each GCP metric's 'collected' says whether these rules collect it. Only for the 'gcp' platform.\n" }, "ingestingHost": { "type": "string", "description": "Host to send data to. null for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms, whose data Better Stack scrapes.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this source. Defaults to false.\n" }, "liveTailPattern": { "type": "string", "description": "The pattern Live tail shows each log line with. Columns are wrapped in braces, such as `PID: {message_json.pid} {level} {message}`. null when the source doesn't receive logs. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the source doesn't receive logs.\n" }, "liveTailPatternSpans": { "type": "string", "description": "The pattern Live tail shows each span with. Columns are wrapped in braces, such as `{span.name} {duration}`. null when the source doesn't receive spans. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the source doesn't receive spans.\n" }, "logsRetention": { "type": "integer", "description": "Days logs are kept, one of the retention periods your plan offers.\n" }, "metricsRetention": { "type": "integer", "description": "Days metrics are kept, one of the retention periods your plan offers.\n" }, "name": { "type": "string", "description": "Source name.\n" }, "parentSourceId": { "type": "string", "description": "The source whose table this source shares, when it's connected to one. \u003cspan pulumi-lang-nodejs=\"`queryCollections`\" pulumi-lang-dotnet=\"`QueryCollections`\" pulumi-lang-go=\"`queryCollections`\" pulumi-lang-python=\"`query_collections`\" pulumi-lang-yaml=\"`queryCollections`\" pulumi-lang-java=\"`queryCollections`\" pulumi-lang-hcl=\"`query_collections`\"\u003e`queryCollections`\u003c/span\u003e then names that source's collections. null otherwise.\n" }, "platform": { "type": "string", "description": "The platform the source ingests from. For a collector, use [Create a collector](https://betterstack.com/docs/logs/api/create-a-collector/), which creates its own source. Can't be changed after the source is created.\n" }, "queryCollections": { "$ref": "#/types/betterstack:index/SourceQueryCollections:SourceQueryCollections", "description": "ClickHouse names to query the source's data by. A connected source's data is in its parent's collections, and \u003cspan pulumi-lang-nodejs=\"`appFilter`\" pulumi-lang-dotnet=\"`AppFilter`\" pulumi-lang-go=\"`appFilter`\" pulumi-lang-python=\"`app_filter`\" pulumi-lang-yaml=\"`appFilter`\" pulumi-lang-java=\"`appFilter`\" pulumi-lang-hcl=\"`app_filter`\"\u003e`appFilter`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`metricsAppFilter`\" pulumi-lang-dotnet=\"`MetricsAppFilter`\" pulumi-lang-go=\"`metricsAppFilter`\" pulumi-lang-python=\"`metrics_app_filter`\" pulumi-lang-yaml=\"`metricsAppFilter`\" pulumi-lang-java=\"`metricsAppFilter`\" pulumi-lang-hcl=\"`metrics_app_filter`\"\u003e`metricsAppFilter`\u003c/span\u003e keep only its own rows.\n" }, "scrapeFrequencySecs": { "type": "integer", "description": "Seconds between scrapes. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Valid values: '15', '30', '60', '120', '300'. Defaults to '15'.\n" }, "scrapeRequestBasicAuthPassword": { "type": "string", "description": "Password for basic authentication on scrape requests. Not returned after it's saved. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "scrapeRequestBasicAuthUser": { "type": "string", "description": "Username for basic authentication on scrape requests. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms.\n" }, "scrapeRequestHeaders": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceScrapeRequestHeader:SourceScrapeRequestHeader" }, "description": "Custom headers sent with each scrape request, each with a \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e and a \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms.\n" }, "scrapeUrls": { "type": "array", "items": { "type": "string" }, "description": "URLs to scrape metrics from. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Defaults to `[]`.\n" }, "serviceFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceServiceField:SourceServiceField" }, "description": "Log fields that break data down by service. Each entry needs a \u003cspan pulumi-lang-nodejs=\"`nameKey`\" pulumi-lang-dotnet=\"`NameKey`\" pulumi-lang-go=\"`nameKey`\" pulumi-lang-python=\"`name_key`\" pulumi-lang-yaml=\"`nameKey`\" pulumi-lang-java=\"`nameKey`\" pulumi-lang-hcl=\"`name_key`\"\u003e`nameKey`\u003c/span\u003e, and \u003cspan pulumi-lang-nodejs=\"`typeKey`\" pulumi-lang-dotnet=\"`TypeKey`\" pulumi-lang-go=\"`typeKey`\" pulumi-lang-python=\"`type_key`\" pulumi-lang-yaml=\"`typeKey`\" pulumi-lang-java=\"`typeKey`\" pulumi-lang-hcl=\"`type_key`\"\u003e`typeKey`\u003c/span\u003e can be null to skip it. An update replaces the existing list, and `[]` removes them all.\n" }, "skipSslVerify": { "type": "boolean", "description": "Whether to skip TLS certificate verification when scraping. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Defaults to false.\n" }, "sourceGroupId": { "type": "string", "description": "Source group this source belongs to, or null when it's in no group. Get the IDs via [List source groups](https://betterstack.com/docs/logs/api/list-all-existing-source-groups/).\n" }, "sourceTypes": { "type": "array", "items": { "type": "string" }, "description": "Kinds of data the source holds, such as 'logs', 'spans', 'metrics', 'exceptions' or 'web_events', sorted by name.\n" }, "tableName": { "type": "string", "description": "The name you query the source's data by, such as 'prometheus'.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the source.\n" }, "token": { "type": "string", "description": "Ingestion token. Returned in every response. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "updatedAt": { "type": "string", "description": "When the source was last updated.\n" }, "vrlTransformationLogs": { "type": "string", "description": "VRL program Better Stack runs on each log line as it's ingested. null restores the platform's default program, and `\"\"` is an empty program. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).\n" }, "vrlTransformationSpans": { "type": "string", "description": "VRL program Better Stack runs on each span as it's ingested. null restores the platform's default program, and `\"\"` is an empty program. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).\n" } }, "required": [ "blockedMetrics", "cluster", "connectedSourceIds", "createdAt", "dataRegion", "deletionProtection", "gcpMetricsFilters", "ingestingHost", "ingestingPaused", "liveTailPattern", "liveTailPatternSpans", "logsRetention", "metricsRetention", "name", "parentSourceId", "platform", "queryCollections", "scrapeFrequencySecs", "scrapeRequestHeaders", "scrapeUrls", "serviceFields", "skipSslVerify", "sourceTypes", "tableName", "teamId", "teamName", "token", "updatedAt", "vrlTransformationLogs", "vrlTransformationSpans" ], "inputProperties": { "blockedMetrics": { "type": "array", "items": { "type": "string" }, "description": "Metric names marked as spam, which are dropped when they're ingested. Read more about [marking metrics as spam](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/mark-metrics-as-spam/). Defaults to `[]`.\n" }, "connectedSourceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the sources connected to this one, so you can correlate their logs and traces. Connections go both ways. The source is connected to each listed source and to every source those are already connected to. An update removes no existing connection, and `[]` disconnects the source.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/SourceCustomBucket:SourceCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the source uses Better Stack storage. Read more about [hosting data in your own bucket](https://betterstack.com/docs/logs/host-data-in-your-own-bucket/). The bucket can't be changed after the source is created. To rotate the key pair, update only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e. We check the new pair against the bucket first and refuse the whole request when it fails. A bucket that several sources share is rotated for all of them. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/logs/api/data-regions/). Can't be changed after the source is created. Defaults to the organization's default data region.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this source is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "gcpMetricsFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceGcpMetricsFilter:SourceGcpMetricsFilter" }, "description": "Which Google Cloud metrics the source collects. Each rule has one key, \u003cspan pulumi-lang-nodejs=\"`include`\" pulumi-lang-dotnet=\"`Include`\" pulumi-lang-go=\"`include`\" pulumi-lang-python=\"`include`\" pulumi-lang-yaml=\"`include`\" pulumi-lang-java=\"`include`\" pulumi-lang-hcl=\"`include`\"\u003e`include`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`exclude`\" pulumi-lang-dotnet=\"`Exclude`\" pulumi-lang-go=\"`exclude`\" pulumi-lang-python=\"`exclude`\" pulumi-lang-yaml=\"`exclude`\" pulumi-lang-java=\"`exclude`\" pulumi-lang-hcl=\"`exclude`\"\u003e`exclude`\u003c/span\u003e, holding a regular expression that must match the whole metric type, or `*` for every metric. All rules use the same key. An empty list collects no metrics, which is the default. Each GCP metric's 'collected' says whether these rules collect it. Only for the 'gcp' platform.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this source. Defaults to false.\n" }, "liveTailPattern": { "type": "string", "description": "The pattern Live tail shows each log line with. Columns are wrapped in braces, such as `PID: {message_json.pid} {level} {message}`. null when the source doesn't receive logs. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the source doesn't receive logs.\n" }, "liveTailPatternSpans": { "type": "string", "description": "The pattern Live tail shows each span with. Columns are wrapped in braces, such as `{span.name} {duration}`. null when the source doesn't receive spans. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the source doesn't receive spans.\n" }, "logsRetention": { "type": "integer", "description": "Days logs are kept, one of the retention periods your plan offers.\n" }, "metricsRetention": { "type": "integer", "description": "Days metrics are kept, one of the retention periods your plan offers.\n" }, "name": { "type": "string", "description": "Source name.\n" }, "platform": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/sourcePlatform:SourcePlatform" } ], "description": "The platform the source ingests from. For a collector, use [Create a collector](https://betterstack.com/docs/logs/api/create-a-collector/), which creates its own source. Can't be changed after the source is created.\n" }, "scrapeFrequencySecs": { "type": "integer", "description": "Seconds between scrapes. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Valid values: '15', '30', '60', '120', '300'. Defaults to '15'.\n" }, "scrapeRequestBasicAuthPassword": { "type": "string", "description": "Password for basic authentication on scrape requests. Not returned after it's saved. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "scrapeRequestBasicAuthUser": { "type": "string", "description": "Username for basic authentication on scrape requests. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms.\n" }, "scrapeRequestHeaders": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceScrapeRequestHeader:SourceScrapeRequestHeader" }, "description": "Custom headers sent with each scrape request, each with a \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e and a \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms.\n" }, "scrapeUrls": { "type": "array", "items": { "type": "string" }, "description": "URLs to scrape metrics from. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Defaults to `[]`.\n" }, "serviceFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceServiceField:SourceServiceField" }, "description": "Log fields that break data down by service. Each entry needs a \u003cspan pulumi-lang-nodejs=\"`nameKey`\" pulumi-lang-dotnet=\"`NameKey`\" pulumi-lang-go=\"`nameKey`\" pulumi-lang-python=\"`name_key`\" pulumi-lang-yaml=\"`nameKey`\" pulumi-lang-java=\"`nameKey`\" pulumi-lang-hcl=\"`name_key`\"\u003e`nameKey`\u003c/span\u003e, and \u003cspan pulumi-lang-nodejs=\"`typeKey`\" pulumi-lang-dotnet=\"`TypeKey`\" pulumi-lang-go=\"`typeKey`\" pulumi-lang-python=\"`type_key`\" pulumi-lang-yaml=\"`typeKey`\" pulumi-lang-java=\"`typeKey`\" pulumi-lang-hcl=\"`type_key`\"\u003e`typeKey`\u003c/span\u003e can be null to skip it. An update replaces the existing list, and `[]` removes them all.\n" }, "skipSslVerify": { "type": "boolean", "description": "Whether to skip TLS certificate verification when scraping. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Defaults to false.\n" }, "sourceGroupId": { "type": "string", "description": "Source group this source belongs to, or null when it's in no group. Get the IDs via [List source groups](https://betterstack.com/docs/logs/api/list-all-existing-source-groups/).\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "vrlTransformationLogs": { "type": "string", "description": "VRL program Better Stack runs on each log line as it's ingested. null restores the platform's default program, and `\"\"` is an empty program. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).\n" }, "vrlTransformationSpans": { "type": "string", "description": "VRL program Better Stack runs on each span as it's ingested. null restores the platform's default program, and `\"\"` is an empty program. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).\n" } }, "requiredInputs": [ "name", "platform" ], "stateInputs": { "description": "Input properties used for looking up and filtering Source resources.\n", "properties": { "blockedMetrics": { "type": "array", "items": { "type": "string" }, "description": "Metric names marked as spam, which are dropped when they're ingested. Read more about [marking metrics as spam](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/mark-metrics-as-spam/). Defaults to `[]`.\n" }, "cluster": { "type": "string", "description": "The cluster the source's data is stored on, by its name. To connect Grafana to this data, send it as the \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e of [Create a connection](https://betterstack.com/docs/logs/api/connections/create/).\n" }, "connectedSourceIds": { "type": "array", "items": { "type": "string" }, "description": "IDs of the sources connected to this one, so you can correlate their logs and traces. Connections go both ways. The source is connected to each listed source and to every source those are already connected to. An update removes no existing connection, and `[]` disconnects the source.\n" }, "createdAt": { "type": "string", "description": "When the source was created.\n" }, "customBucket": { "$ref": "#/types/betterstack:index/SourceCustomBucket:SourceCustomBucket", "description": "Your own S3-compatible bucket to archive data in, or null when the source uses Better Stack storage. Read more about [hosting data in your own bucket](https://betterstack.com/docs/logs/host-data-in-your-own-bucket/). The bucket can't be changed after the source is created. To rotate the key pair, update only \u003cspan pulumi-lang-nodejs=\"`accessKeyId`\" pulumi-lang-dotnet=\"`AccessKeyId`\" pulumi-lang-go=\"`accessKeyId`\" pulumi-lang-python=\"`access_key_id`\" pulumi-lang-yaml=\"`accessKeyId`\" pulumi-lang-java=\"`accessKeyId`\" pulumi-lang-hcl=\"`access_key_id`\"\u003e`accessKeyId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`secretAccessKey`\" pulumi-lang-dotnet=\"`SecretAccessKey`\" pulumi-lang-go=\"`secretAccessKey`\" pulumi-lang-python=\"`secret_access_key`\" pulumi-lang-yaml=\"`secretAccessKey`\" pulumi-lang-java=\"`secretAccessKey`\" pulumi-lang-hcl=\"`secret_access_key`\"\u003e`secretAccessKey`\u003c/span\u003e. We check the new pair against the bucket first and refuse the whole request when it fails. A bucket that several sources share is rotated for all of them. Changing \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`keepDataAfterRetention`\" pulumi-lang-dotnet=\"`KeepDataAfterRetention`\" pulumi-lang-go=\"`keepDataAfterRetention`\" pulumi-lang-python=\"`keep_data_after_retention`\" pulumi-lang-yaml=\"`keepDataAfterRetention`\" pulumi-lang-java=\"`keepDataAfterRetention`\" pulumi-lang-hcl=\"`keep_data_after_retention`\"\u003e`keepDataAfterRetention`\u003c/span\u003e, or adding or removing it, replaces the resource.\n" }, "dataRegion": { "type": "string", "description": "The data region, 'europe', 'us', 'singapore' or a dedicated cluster's name from [List data regions](https://betterstack.com/docs/logs/api/data-regions/). Can't be changed after the source is created. Defaults to the organization's default data region.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this source is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "gcpMetricsFilters": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceGcpMetricsFilter:SourceGcpMetricsFilter" }, "description": "Which Google Cloud metrics the source collects. Each rule has one key, \u003cspan pulumi-lang-nodejs=\"`include`\" pulumi-lang-dotnet=\"`Include`\" pulumi-lang-go=\"`include`\" pulumi-lang-python=\"`include`\" pulumi-lang-yaml=\"`include`\" pulumi-lang-java=\"`include`\" pulumi-lang-hcl=\"`include`\"\u003e`include`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`exclude`\" pulumi-lang-dotnet=\"`Exclude`\" pulumi-lang-go=\"`exclude`\" pulumi-lang-python=\"`exclude`\" pulumi-lang-yaml=\"`exclude`\" pulumi-lang-java=\"`exclude`\" pulumi-lang-hcl=\"`exclude`\"\u003e`exclude`\u003c/span\u003e, holding a regular expression that must match the whole metric type, or `*` for every metric. All rules use the same key. An empty list collects no metrics, which is the default. Each GCP metric's 'collected' says whether these rules collect it. Only for the 'gcp' platform.\n" }, "ingestingHost": { "type": "string", "description": "Host to send data to. null for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms, whose data Better Stack scrapes.\n" }, "ingestingPaused": { "type": "boolean", "description": "Whether ingestion is paused for this source. Defaults to false.\n" }, "liveTailPattern": { "type": "string", "description": "The pattern Live tail shows each log line with. Columns are wrapped in braces, such as `PID: {message_json.pid} {level} {message}`. null when the source doesn't receive logs. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the source doesn't receive logs.\n" }, "liveTailPatternSpans": { "type": "string", "description": "The pattern Live tail shows each span with. Columns are wrapped in braces, such as `{span.name} {duration}`. null when the source doesn't receive spans. See [Formatting logs](https://betterstack.com/docs/logs/using-logtail/formatting-logs/). Refused when the source doesn't receive spans.\n" }, "logsRetention": { "type": "integer", "description": "Days logs are kept, one of the retention periods your plan offers.\n" }, "metricsRetention": { "type": "integer", "description": "Days metrics are kept, one of the retention periods your plan offers.\n" }, "name": { "type": "string", "description": "Source name.\n" }, "parentSourceId": { "type": "string", "description": "The source whose table this source shares, when it's connected to one. \u003cspan pulumi-lang-nodejs=\"`queryCollections`\" pulumi-lang-dotnet=\"`QueryCollections`\" pulumi-lang-go=\"`queryCollections`\" pulumi-lang-python=\"`query_collections`\" pulumi-lang-yaml=\"`queryCollections`\" pulumi-lang-java=\"`queryCollections`\" pulumi-lang-hcl=\"`query_collections`\"\u003e`queryCollections`\u003c/span\u003e then names that source's collections. null otherwise.\n" }, "platform": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/sourcePlatform:SourcePlatform" } ], "description": "The platform the source ingests from. For a collector, use [Create a collector](https://betterstack.com/docs/logs/api/create-a-collector/), which creates its own source. Can't be changed after the source is created.\n" }, "queryCollections": { "$ref": "#/types/betterstack:index/SourceQueryCollections:SourceQueryCollections", "description": "ClickHouse names to query the source's data by. A connected source's data is in its parent's collections, and \u003cspan pulumi-lang-nodejs=\"`appFilter`\" pulumi-lang-dotnet=\"`AppFilter`\" pulumi-lang-go=\"`appFilter`\" pulumi-lang-python=\"`app_filter`\" pulumi-lang-yaml=\"`appFilter`\" pulumi-lang-java=\"`appFilter`\" pulumi-lang-hcl=\"`app_filter`\"\u003e`appFilter`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`metricsAppFilter`\" pulumi-lang-dotnet=\"`MetricsAppFilter`\" pulumi-lang-go=\"`metricsAppFilter`\" pulumi-lang-python=\"`metrics_app_filter`\" pulumi-lang-yaml=\"`metricsAppFilter`\" pulumi-lang-java=\"`metricsAppFilter`\" pulumi-lang-hcl=\"`metrics_app_filter`\"\u003e`metricsAppFilter`\u003c/span\u003e keep only its own rows.\n" }, "scrapeFrequencySecs": { "type": "integer", "description": "Seconds between scrapes. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Valid values: '15', '30', '60', '120', '300'. Defaults to '15'.\n" }, "scrapeRequestBasicAuthPassword": { "type": "string", "description": "Password for basic authentication on scrape requests. Not returned after it's saved. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "scrapeRequestBasicAuthUser": { "type": "string", "description": "Username for basic authentication on scrape requests. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms.\n" }, "scrapeRequestHeaders": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceScrapeRequestHeader:SourceScrapeRequestHeader" }, "description": "Custom headers sent with each scrape request, each with a \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e and a \u003cspan pulumi-lang-nodejs=\"`value`\" pulumi-lang-dotnet=\"`Value`\" pulumi-lang-go=\"`value`\" pulumi-lang-python=\"`value`\" pulumi-lang-yaml=\"`value`\" pulumi-lang-java=\"`value`\" pulumi-lang-hcl=\"`value`\"\u003e`value`\u003c/span\u003e. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms.\n" }, "scrapeUrls": { "type": "array", "items": { "type": "string" }, "description": "URLs to scrape metrics from. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Defaults to `[]`.\n" }, "serviceFields": { "type": "array", "items": { "$ref": "#/types/betterstack:index/SourceServiceField:SourceServiceField" }, "description": "Log fields that break data down by service. Each entry needs a \u003cspan pulumi-lang-nodejs=\"`nameKey`\" pulumi-lang-dotnet=\"`NameKey`\" pulumi-lang-go=\"`nameKey`\" pulumi-lang-python=\"`name_key`\" pulumi-lang-yaml=\"`nameKey`\" pulumi-lang-java=\"`nameKey`\" pulumi-lang-hcl=\"`name_key`\"\u003e`nameKey`\u003c/span\u003e, and \u003cspan pulumi-lang-nodejs=\"`typeKey`\" pulumi-lang-dotnet=\"`TypeKey`\" pulumi-lang-go=\"`typeKey`\" pulumi-lang-python=\"`type_key`\" pulumi-lang-yaml=\"`typeKey`\" pulumi-lang-java=\"`typeKey`\" pulumi-lang-hcl=\"`type_key`\"\u003e`typeKey`\u003c/span\u003e can be null to skip it. An update replaces the existing list, and `[]` removes them all.\n" }, "skipSslVerify": { "type": "boolean", "description": "Whether to skip TLS certificate verification when scraping. Only for the 'prometheus_scrape' and 'cloudflare_prometheus_exporter' platforms. Defaults to false.\n" }, "sourceGroupId": { "type": "string", "description": "Source group this source belongs to, or null when it's in no group. Get the IDs via [List source groups](https://betterstack.com/docs/logs/api/list-all-existing-source-groups/).\n" }, "sourceTypes": { "type": "array", "items": { "type": "string" }, "description": "Kinds of data the source holds, such as 'logs', 'spans', 'metrics', 'exceptions' or 'web_events', sorted by name.\n" }, "tableName": { "type": "string", "description": "The name you query the source's data by, such as 'prometheus'.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the source.\n" }, "token": { "type": "string", "description": "Ingestion token. Returned in every response. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "updatedAt": { "type": "string", "description": "When the source was last updated.\n" }, "vrlTransformationLogs": { "type": "string", "description": "VRL program Better Stack runs on each log line as it's ingested. null restores the platform's default program, and `\"\"` is an empty program. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).\n" }, "vrlTransformationSpans": { "type": "string", "description": "VRL program Better Stack runs on each span as it's ingested. null restores the platform's default program, and `\"\"` is an empty program. Read more about [VRL transformations](https://betterstack.com/docs/logs/using-logtail/transforming-ingested-data/logs-vrl/).\n" } }, "type": "object" } }, "betterstack:index/sourceAwsAccount:SourceAwsAccount": { "description": "The AWS account connected to an 'aws' source, through the IAM role from Better Stack's CloudFormation stack.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n### Connect an AWS account through Better Stack's CloudFormation stack\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as aws from \"@pulumi/aws\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst aws2 = new betterstack.Source(\"aws\", {\n name: \"AWS production\",\n platform: betterstack.SourcePlatform.Aws,\n});\nconst betterStack = new aws.cloudformation.Stack(\"better_stack\", {\n name: \"better-stack-integration\",\n templateUrl: \"https://better-stack-cloudformation.s3.amazonaws.com/better-stack-full.yaml\",\n capabilities: [\"CAPABILITY_NAMED_IAM\"],\n parameters: {\n ClusterId: aws2.cluster,\n SourceToken: aws2.token,\n SourceId: aws2.id,\n },\n}, {\n ignoreChanges: [\"parameters[\\\"SourceToken\\\"]\"],\n});\nconst awsSourceAwsAccount = new betterstack.SourceAwsAccount(\"aws\", {\n sourceId: aws2.id,\n awsRoleArn: betterStack.outputs.IntegrationRoleArn,\n awsExternalId: betterStack.outputs.ExternalId,\n awsAutoSubLogGroups: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_aws as aws\nimport pulumi_betterstack as betterstack\n\naws_1 = betterstack.Source(\"aws\",\n name=\"AWS production\",\n platform=betterstack.SourcePlatform.AWS)\nbetter_stack = aws.cloudformation.Stack(\"better_stack\",\n name=\"better-stack-integration\",\n template_url=\"https://better-stack-cloudformation.s3.amazonaws.com/better-stack-full.yaml\",\n capabilities=[\"CAPABILITY_NAMED_IAM\"],\n parameters={\n \"ClusterId\": aws_1.cluster,\n \"SourceToken\": aws_1.token,\n \"SourceId\": aws_1.id,\n },\n opts = pulumi.ResourceOptions(ignore_changes=[\"parameters[\\\"SourceToken\\\"]\"]))\naws_source_aws_account = betterstack.SourceAwsAccount(\"aws\",\n source_id=aws_1.id,\n aws_role_arn=better_stack.outputs[\"IntegrationRoleArn\"],\n aws_external_id=better_stack.outputs[\"ExternalId\"],\n aws_auto_sub_log_groups=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Aws = Pulumi.Aws;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var aws = new BetterStack.Source(\"aws\", new()\n {\n Name = \"AWS production\",\n Platform = BetterStack.SourcePlatform.Aws,\n });\n\n var betterStack = new Aws.CloudFormation.Stack(\"better_stack\", new()\n {\n Name = \"better-stack-integration\",\n TemplateUrl = \"https://better-stack-cloudformation.s3.amazonaws.com/better-stack-full.yaml\",\n Capabilities = new[]\n {\n \"CAPABILITY_NAMED_IAM\",\n },\n Parameters = \n {\n { \"ClusterId\", aws.Cluster },\n { \"SourceToken\", aws.Token },\n { \"SourceId\", aws.Id },\n },\n }, new CustomResourceOptions\n {\n IgnoreChanges =\n {\n \"parameters[\\\"SourceToken\\\"]\",\n },\n });\n\n var awsSourceAwsAccount = new BetterStack.SourceAwsAccount(\"aws\", new()\n {\n SourceId = aws.Id,\n AwsRoleArn = betterStack.Outputs.Apply(outputs =\u003e outputs.IntegrationRoleArn),\n AwsExternalId = betterStack.Outputs.Apply(outputs =\u003e outputs.ExternalId),\n AwsAutoSubLogGroups = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudformation\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\taws, err := betterstack.NewSource(ctx, \"aws\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"AWS production\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformAws),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tbetterStack, err := cloudformation.NewStack(ctx, \"better_stack\", \u0026cloudformation.StackArgs{\n\t\t\tName: pulumi.String(\"better-stack-integration\"),\n\t\t\tTemplateUrl: pulumi.String(\"https://better-stack-cloudformation.s3.amazonaws.com/better-stack-full.yaml\"),\n\t\t\tCapabilities: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"CAPABILITY_NAMED_IAM\"),\n\t\t\t},\n\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\"ClusterId\": aws.Cluster,\n\t\t\t\t\"SourceToken\": aws.Token,\n\t\t\t\t\"SourceId\": aws.ID(),\n\t\t\t},\n\t\t}, pulumi.IgnoreChanges([]string{\n\t\t\t\"parameters[\\\"SourceToken\\\"]\",\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewSourceAwsAccount(ctx, \"aws\", \u0026betterstack.SourceAwsAccountArgs{\n\t\t\tSourceId: aws.ID(),\n\t\t\tAwsRoleArn: betterStack.Outputs.ApplyT(func(outputs map[string]string) (string, error) {\n\t\t\t\treturn outputs[\"IntegrationRoleArn\"], nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tAwsExternalId: betterStack.Outputs.ApplyT(func(outputs map[string]string) (string, error) {\n\t\t\t\treturn outputs[\"ExternalId\"], nil\n\t\t\t}).(pulumi.StringOutput),\n\t\t\tAwsAutoSubLogGroups: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n aws = {\n source = \"pulumi/aws\"\n }\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source\" \"aws\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"AWS production\"\n platform = \"aws\"\n}\nresource \"aws_cloudformation_stack\" \"better_stack\" {\n lifecycle {\n ignore_changes = [parameters[\"SourceToken\"]]\n create_before_destroy = true\n }\n name = \"better-stack-integration\"\n template_url = \"https://better-stack-cloudformation.s3.amazonaws.com/better-stack-full.yaml\"\n capabilities = [\"CAPABILITY_NAMED_IAM\"]\n parameters = {\n \"ClusterId\" = betterstack_source.aws.cluster\n \"SourceToken\" = betterstack_source.aws.token\n \"SourceId\" = betterstack_source.aws.id\n }\n}\nresource \"betterstack_source_aws_account\" \"aws\" {\n lifecycle {\n create_before_destroy = true\n }\n source_id = betterstack_source.aws.id\n aws_role_arn = aws_cloudformation_stack.better_stack.outputs[\"IntegrationRoleArn\"]\n aws_external_id = aws_cloudformation_stack.better_stack.outputs[\"ExternalId\"]\n aws_auto_sub_log_groups = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport com.pulumi.aws.cloudformation.Stack;\nimport com.pulumi.aws.cloudformation.StackArgs;\nimport com.betterstack.pulumi.SourceAwsAccount;\nimport com.betterstack.pulumi.SourceAwsAccountArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var aws = new Source(\"aws\", SourceArgs.builder()\n .name(\"AWS production\")\n .platform(\"aws\")\n .build());\n\n var betterStack = new Stack(\"betterStack\", StackArgs.builder()\n .name(\"better-stack-integration\")\n .templateUrl(\"https://better-stack-cloudformation.s3.amazonaws.com/better-stack-full.yaml\")\n .capabilities(\"CAPABILITY_NAMED_IAM\")\n .parameters(Map.ofEntries(\n Map.entry(\"ClusterId\", aws.cluster()),\n Map.entry(\"SourceToken\", aws.token()),\n Map.entry(\"SourceId\", aws.id())\n ))\n .build(), CustomResourceOptions.builder()\n .ignoreChanges(\"parameters[\\\"SourceToken\\\"]\")\n .build());\n\n var awsSourceAwsAccount = new SourceAwsAccount(\"awsSourceAwsAccount\", SourceAwsAccountArgs.builder()\n .sourceId(aws.id())\n .awsRoleArn(betterStack.outputs().applyValue(_outputs -\u003e _outputs.get(\"IntegrationRoleArn\")))\n .awsExternalId(betterStack.outputs().applyValue(_outputs -\u003e _outputs.get(\"ExternalId\")))\n .awsAutoSubLogGroups(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n aws:\n type: betterstack:Source\n properties:\n name: AWS production\n platform: aws\n betterStack:\n type: aws:cloudformation:Stack\n name: better_stack\n properties:\n name: better-stack-integration\n templateUrl: https://better-stack-cloudformation.s3.amazonaws.com/better-stack-full.yaml\n capabilities:\n - CAPABILITY_NAMED_IAM\n parameters:\n ClusterId: ${aws.cluster}\n SourceToken: ${aws.token}\n SourceId: ${aws.id}\n options:\n ignoreChanges:\n - parameters.SourceToken\n awsSourceAwsAccount:\n type: betterstack:SourceAwsAccount\n name: aws\n properties:\n sourceId: ${aws.id}\n awsRoleArn: ${betterStack.outputs.IntegrationRoleArn}\n awsExternalId: ${betterStack.outputs.ExternalId}\n awsAutoSubLogGroups: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Reuse an AWS account another source connected\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst awsStaging = new betterstack.Source(\"aws_staging\", {\n name: \"AWS staging\",\n platform: betterstack.SourcePlatform.Aws,\n});\nconst awsStagingSourceAwsAccount = new betterstack.SourceAwsAccount(\"aws_staging\", {\n sourceId: awsStaging.id,\n awsAccountId: \"1234\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\naws_staging = betterstack.Source(\"aws_staging\",\n name=\"AWS staging\",\n platform=betterstack.SourcePlatform.AWS)\naws_staging_source_aws_account = betterstack.SourceAwsAccount(\"aws_staging\",\n source_id=aws_staging.id,\n aws_account_id=\"1234\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var awsStaging = new BetterStack.Source(\"aws_staging\", new()\n {\n Name = \"AWS staging\",\n Platform = BetterStack.SourcePlatform.Aws,\n });\n\n var awsStagingSourceAwsAccount = new BetterStack.SourceAwsAccount(\"aws_staging\", new()\n {\n SourceId = awsStaging.Id,\n AwsAccountId = \"1234\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tawsStaging, err := betterstack.NewSource(ctx, \"aws_staging\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"AWS staging\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformAws),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewSourceAwsAccount(ctx, \"aws_staging\", \u0026betterstack.SourceAwsAccountArgs{\n\t\t\tSourceId: awsStaging.ID(),\n\t\t\tAwsAccountId: pulumi.String(\"1234\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source\" \"aws_staging\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"AWS staging\"\n platform = \"aws\"\n}\nresource \"betterstack_source_aws_account\" \"aws_staging\" {\n lifecycle {\n create_before_destroy = true\n }\n source_id = betterstack_source.aws_staging.id\n aws_account_id = \"1234\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport com.betterstack.pulumi.SourceAwsAccount;\nimport com.betterstack.pulumi.SourceAwsAccountArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var awsStaging = new Source(\"awsStaging\", SourceArgs.builder()\n .name(\"AWS staging\")\n .platform(\"aws\")\n .build());\n\n var awsStagingSourceAwsAccount = new SourceAwsAccount(\"awsStagingSourceAwsAccount\", SourceAwsAccountArgs.builder()\n .sourceId(awsStaging.id())\n .awsAccountId(\"1234\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n awsStaging:\n type: betterstack:Source\n name: aws_staging\n properties:\n name: AWS staging\n platform: aws\n awsStagingSourceAwsAccount:\n type: betterstack:SourceAwsAccount\n name: aws_staging\n properties:\n sourceId: ${awsStaging.id}\n awsAccountId: '1234'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nConfigure exactly one of these: \u003cspan pulumi-lang-nodejs=\"`awsRoleArn`\" pulumi-lang-dotnet=\"`AwsRoleArn`\" pulumi-lang-go=\"`awsRoleArn`\" pulumi-lang-python=\"`aws_role_arn`\" pulumi-lang-yaml=\"`awsRoleArn`\" pulumi-lang-java=\"`awsRoleArn`\" pulumi-lang-hcl=\"`aws_role_arn`\"\u003e`awsRoleArn`\u003c/span\u003e with \u003cspan pulumi-lang-nodejs=\"`awsExternalId`\" pulumi-lang-dotnet=\"`AwsExternalId`\" pulumi-lang-go=\"`awsExternalId`\" pulumi-lang-python=\"`aws_external_id`\" pulumi-lang-yaml=\"`awsExternalId`\" pulumi-lang-java=\"`awsExternalId`\" pulumi-lang-hcl=\"`aws_external_id`\"\u003e`awsExternalId`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`awsAccountId`\" pulumi-lang-dotnet=\"`AwsAccountId`\" pulumi-lang-go=\"`awsAccountId`\" pulumi-lang-python=\"`aws_account_id`\" pulumi-lang-yaml=\"`awsAccountId`\" pulumi-lang-java=\"`awsAccountId`\" pulumi-lang-hcl=\"`aws_account_id`\"\u003e`awsAccountId`\u003c/span\u003e. The provider checks this when it plans the resource, before it creates or replaces anything.\n\n## Import\n\nImport an existing source AWS account by its ID. Get the ID via [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/).\n\n```sh\n$ pulumi import betterstack:index/sourceAwsAccount:SourceAwsAccount example 12345\n```\n\n", "properties": { "awsAccountId": { "type": "string", "description": "Better Stack's own ID for an AWS account that another 'aws' source in your organization connected, to reuse that connection. Better Stack's ID differs from the 12-digit AWS account ID. At least one of \u003cspan pulumi-lang-nodejs=\"`awsRoleArn`\" pulumi-lang-dotnet=\"`AwsRoleArn`\" pulumi-lang-go=\"`awsRoleArn`\" pulumi-lang-python=\"`aws_role_arn`\" pulumi-lang-yaml=\"`awsRoleArn`\" pulumi-lang-java=\"`awsRoleArn`\" pulumi-lang-hcl=\"`aws_role_arn`\"\u003e`awsRoleArn`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`awsAccountId`\" pulumi-lang-dotnet=\"`AwsAccountId`\" pulumi-lang-go=\"`awsAccountId`\" pulumi-lang-python=\"`aws_account_id`\" pulumi-lang-yaml=\"`awsAccountId`\" pulumi-lang-java=\"`awsAccountId`\" pulumi-lang-hcl=\"`aws_account_id`\"\u003e`awsAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "awsAutoSubLogGroups": { "type": "boolean", "description": "Whether to subscribe new CloudWatch log groups automatically when they're discovered.\n" }, "awsExternalId": { "type": "string", "description": "External ID from Better Stack's CloudFormation stack. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "awsRoleArn": { "type": "string", "description": "ARN of the IAM role from Better Stack's CloudFormation stack. At least one of \u003cspan pulumi-lang-nodejs=\"`awsRoleArn`\" pulumi-lang-dotnet=\"`AwsRoleArn`\" pulumi-lang-go=\"`awsRoleArn`\" pulumi-lang-python=\"`aws_role_arn`\" pulumi-lang-yaml=\"`awsRoleArn`\" pulumi-lang-java=\"`awsRoleArn`\" pulumi-lang-hcl=\"`aws_role_arn`\"\u003e`awsRoleArn`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`awsAccountId`\" pulumi-lang-dotnet=\"`AwsAccountId`\" pulumi-lang-go=\"`awsAccountId`\" pulumi-lang-python=\"`aws_account_id`\" pulumi-lang-yaml=\"`awsAccountId`\" pulumi-lang-java=\"`awsAccountId`\" pulumi-lang-hcl=\"`aws_account_id`\"\u003e`awsAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "sourceId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "required": [ "awsAccountId", "awsAutoSubLogGroups", "awsExternalId", "awsRoleArn", "sourceId", "teamId" ], "inputProperties": { "awsAccountId": { "type": "string", "description": "Better Stack's own ID for an AWS account that another 'aws' source in your organization connected, to reuse that connection. Better Stack's ID differs from the 12-digit AWS account ID. At least one of \u003cspan pulumi-lang-nodejs=\"`awsRoleArn`\" pulumi-lang-dotnet=\"`AwsRoleArn`\" pulumi-lang-go=\"`awsRoleArn`\" pulumi-lang-python=\"`aws_role_arn`\" pulumi-lang-yaml=\"`awsRoleArn`\" pulumi-lang-java=\"`awsRoleArn`\" pulumi-lang-hcl=\"`aws_role_arn`\"\u003e`awsRoleArn`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`awsAccountId`\" pulumi-lang-dotnet=\"`AwsAccountId`\" pulumi-lang-go=\"`awsAccountId`\" pulumi-lang-python=\"`aws_account_id`\" pulumi-lang-yaml=\"`awsAccountId`\" pulumi-lang-java=\"`awsAccountId`\" pulumi-lang-hcl=\"`aws_account_id`\"\u003e`awsAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "awsAutoSubLogGroups": { "type": "boolean", "description": "Whether to subscribe new CloudWatch log groups automatically when they're discovered.\n" }, "awsExternalId": { "type": "string", "description": "External ID from Better Stack's CloudFormation stack. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "awsRoleArn": { "type": "string", "description": "ARN of the IAM role from Better Stack's CloudFormation stack. At least one of \u003cspan pulumi-lang-nodejs=\"`awsRoleArn`\" pulumi-lang-dotnet=\"`AwsRoleArn`\" pulumi-lang-go=\"`awsRoleArn`\" pulumi-lang-python=\"`aws_role_arn`\" pulumi-lang-yaml=\"`awsRoleArn`\" pulumi-lang-java=\"`awsRoleArn`\" pulumi-lang-hcl=\"`aws_role_arn`\"\u003e`awsRoleArn`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`awsAccountId`\" pulumi-lang-dotnet=\"`AwsAccountId`\" pulumi-lang-go=\"`awsAccountId`\" pulumi-lang-python=\"`aws_account_id`\" pulumi-lang-yaml=\"`awsAccountId`\" pulumi-lang-java=\"`awsAccountId`\" pulumi-lang-hcl=\"`aws_account_id`\"\u003e`awsAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "sourceId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "sourceId" ], "stateInputs": { "description": "Input properties used for looking up and filtering SourceAwsAccount resources.\n", "properties": { "awsAccountId": { "type": "string", "description": "Better Stack's own ID for an AWS account that another 'aws' source in your organization connected, to reuse that connection. Better Stack's ID differs from the 12-digit AWS account ID. At least one of \u003cspan pulumi-lang-nodejs=\"`awsRoleArn`\" pulumi-lang-dotnet=\"`AwsRoleArn`\" pulumi-lang-go=\"`awsRoleArn`\" pulumi-lang-python=\"`aws_role_arn`\" pulumi-lang-yaml=\"`awsRoleArn`\" pulumi-lang-java=\"`awsRoleArn`\" pulumi-lang-hcl=\"`aws_role_arn`\"\u003e`awsRoleArn`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`awsAccountId`\" pulumi-lang-dotnet=\"`AwsAccountId`\" pulumi-lang-go=\"`awsAccountId`\" pulumi-lang-python=\"`aws_account_id`\" pulumi-lang-yaml=\"`awsAccountId`\" pulumi-lang-java=\"`awsAccountId`\" pulumi-lang-hcl=\"`aws_account_id`\"\u003e`awsAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "awsAutoSubLogGroups": { "type": "boolean", "description": "Whether to subscribe new CloudWatch log groups automatically when they're discovered.\n" }, "awsExternalId": { "type": "string", "description": "External ID from Better Stack's CloudFormation stack. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "awsRoleArn": { "type": "string", "description": "ARN of the IAM role from Better Stack's CloudFormation stack. At least one of \u003cspan pulumi-lang-nodejs=\"`awsRoleArn`\" pulumi-lang-dotnet=\"`AwsRoleArn`\" pulumi-lang-go=\"`awsRoleArn`\" pulumi-lang-python=\"`aws_role_arn`\" pulumi-lang-yaml=\"`awsRoleArn`\" pulumi-lang-java=\"`awsRoleArn`\" pulumi-lang-hcl=\"`aws_role_arn`\"\u003e`awsRoleArn`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`awsAccountId`\" pulumi-lang-dotnet=\"`AwsAccountId`\" pulumi-lang-go=\"`awsAccountId`\" pulumi-lang-python=\"`aws_account_id`\" pulumi-lang-yaml=\"`awsAccountId`\" pulumi-lang-java=\"`awsAccountId`\" pulumi-lang-hcl=\"`aws_account_id`\"\u003e`awsAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "sourceId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "type": "object" } }, "betterstack:index/sourceGcpProject:SourceGcpProject": { "description": "The GCP project connected to a 'gcp' source, through Workload Identity Federation from the Better Stack GCP module.\n\nThis resource takes over an object that already exists in Better Stack, named by its \u003cspan pulumi-lang-nodejs=\"`sourceId`\" pulumi-lang-dotnet=\"`SourceId`\" pulumi-lang-go=\"`sourceId`\" pulumi-lang-python=\"`source_id`\" pulumi-lang-yaml=\"`sourceId`\" pulumi-lang-java=\"`sourceId`\" pulumi-lang-hcl=\"`source_id`\"\u003e`sourceId`\u003c/span\u003e, and\napplies the arguments you set to it. The resource never creates one.\n\nDestroying this resource only removes it from the Pulumi state. Nothing changes in Better Stack.\n\n## Example Usage\n\n### Reuse a GCP project another source connected\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst gcpStaging = new betterstack.Source(\"gcp_staging\", {\n name: \"GCP staging\",\n platform: betterstack.SourcePlatform.Gcp,\n});\nconst gcpStagingSourceGcpProject = new betterstack.SourceGcpProject(\"gcp_staging\", {\n sourceId: gcpStaging.id,\n gcpAccountId: \"1234\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ngcp_staging = betterstack.Source(\"gcp_staging\",\n name=\"GCP staging\",\n platform=betterstack.SourcePlatform.GCP)\ngcp_staging_source_gcp_project = betterstack.SourceGcpProject(\"gcp_staging\",\n source_id=gcp_staging.id,\n gcp_account_id=\"1234\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var gcpStaging = new BetterStack.Source(\"gcp_staging\", new()\n {\n Name = \"GCP staging\",\n Platform = BetterStack.SourcePlatform.Gcp,\n });\n\n var gcpStagingSourceGcpProject = new BetterStack.SourceGcpProject(\"gcp_staging\", new()\n {\n SourceId = gcpStaging.Id,\n GcpAccountId = \"1234\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tgcpStaging, err := betterstack.NewSource(ctx, \"gcp_staging\", \u0026betterstack.SourceArgs{\n\t\t\tName: pulumi.String(\"GCP staging\"),\n\t\t\tPlatform: pulumi.String(betterstack.SourcePlatformGcp),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewSourceGcpProject(ctx, \"gcp_staging\", \u0026betterstack.SourceGcpProjectArgs{\n\t\t\tSourceId: gcpStaging.ID(),\n\t\t\tGcpAccountId: pulumi.String(\"1234\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source\" \"gcp_staging\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"GCP staging\"\n platform = \"gcp\"\n}\nresource \"betterstack_source_gcp_project\" \"gcp_staging\" {\n lifecycle {\n create_before_destroy = true\n }\n source_id = betterstack_source.gcp_staging.id\n gcp_account_id = \"1234\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Source;\nimport com.betterstack.pulumi.SourceArgs;\nimport com.betterstack.pulumi.SourceGcpProject;\nimport com.betterstack.pulumi.SourceGcpProjectArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var gcpStaging = new Source(\"gcpStaging\", SourceArgs.builder()\n .name(\"GCP staging\")\n .platform(\"gcp\")\n .build());\n\n var gcpStagingSourceGcpProject = new SourceGcpProject(\"gcpStagingSourceGcpProject\", SourceGcpProjectArgs.builder()\n .sourceId(gcpStaging.id())\n .gcpAccountId(\"1234\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n gcpStaging:\n type: betterstack:Source\n name: gcp_staging\n properties:\n name: GCP staging\n platform: gcp\n gcpStagingSourceGcpProject:\n type: betterstack:SourceGcpProject\n name: gcp_staging\n properties:\n sourceId: ${gcpStaging.id}\n gcpAccountId: '1234'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nConfigure exactly one of these: \u003cspan pulumi-lang-nodejs=\"`gcpProjectId`\" pulumi-lang-dotnet=\"`GcpProjectId`\" pulumi-lang-go=\"`gcpProjectId`\" pulumi-lang-python=\"`gcp_project_id`\" pulumi-lang-yaml=\"`gcpProjectId`\" pulumi-lang-java=\"`gcpProjectId`\" pulumi-lang-hcl=\"`gcp_project_id`\"\u003e`gcpProjectId`\u003c/span\u003e with \u003cspan pulumi-lang-nodejs=\"`gcpProjectNumber`\" pulumi-lang-dotnet=\"`GcpProjectNumber`\" pulumi-lang-go=\"`gcpProjectNumber`\" pulumi-lang-python=\"`gcp_project_number`\" pulumi-lang-yaml=\"`gcpProjectNumber`\" pulumi-lang-java=\"`gcpProjectNumber`\" pulumi-lang-hcl=\"`gcp_project_number`\"\u003e`gcpProjectNumber`\u003c/span\u003e, or \u003cspan pulumi-lang-nodejs=\"`gcpAccountId`\" pulumi-lang-dotnet=\"`GcpAccountId`\" pulumi-lang-go=\"`gcpAccountId`\" pulumi-lang-python=\"`gcp_account_id`\" pulumi-lang-yaml=\"`gcpAccountId`\" pulumi-lang-java=\"`gcpAccountId`\" pulumi-lang-hcl=\"`gcp_account_id`\"\u003e`gcpAccountId`\u003c/span\u003e. The provider checks this when it plans the resource, before it creates or replaces anything.\n\n## Import\n\nImport an existing source GCP project by its ID. Get the ID via [List sources](https://betterstack.com/docs/logs/api/list-all-existing-sources/).\n\n```sh\n$ pulumi import betterstack:index/sourceGcpProject:SourceGcpProject example 12345\n```\n\n", "properties": { "gcpAccountId": { "type": "string", "description": "Better Stack's own ID for a Google Cloud project that another 'gcp' source in your organization connected, to reuse that connection. Better Stack's ID differs from the project's ID and number. At least one of \u003cspan pulumi-lang-nodejs=\"`gcpProjectId`\" pulumi-lang-dotnet=\"`GcpProjectId`\" pulumi-lang-go=\"`gcpProjectId`\" pulumi-lang-python=\"`gcp_project_id`\" pulumi-lang-yaml=\"`gcpProjectId`\" pulumi-lang-java=\"`gcpProjectId`\" pulumi-lang-hcl=\"`gcp_project_id`\"\u003e`gcpProjectId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`gcpAccountId`\" pulumi-lang-dotnet=\"`GcpAccountId`\" pulumi-lang-go=\"`gcpAccountId`\" pulumi-lang-python=\"`gcp_account_id`\" pulumi-lang-yaml=\"`gcpAccountId`\" pulumi-lang-java=\"`gcpAccountId`\" pulumi-lang-hcl=\"`gcp_account_id`\"\u003e`gcpAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "gcpLogFilter": { "type": "string", "description": "Google Cloud Logging query that selects which logs the source receives. null forwards every log, which is the default. Google Cloud checks the query when it's saved and refuses an invalid one. Sent once the project is connected. Needs the log sink Better Stack's GCP module creates for the source.\n" }, "gcpProjectId": { "type": "string", "description": "ID of the GCP project to connect. At least one of \u003cspan pulumi-lang-nodejs=\"`gcpProjectId`\" pulumi-lang-dotnet=\"`GcpProjectId`\" pulumi-lang-go=\"`gcpProjectId`\" pulumi-lang-python=\"`gcp_project_id`\" pulumi-lang-yaml=\"`gcpProjectId`\" pulumi-lang-java=\"`gcpProjectId`\" pulumi-lang-hcl=\"`gcp_project_id`\"\u003e`gcpProjectId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`gcpAccountId`\" pulumi-lang-dotnet=\"`GcpAccountId`\" pulumi-lang-go=\"`gcpAccountId`\" pulumi-lang-python=\"`gcp_account_id`\" pulumi-lang-yaml=\"`gcpAccountId`\" pulumi-lang-java=\"`gcpAccountId`\" pulumi-lang-hcl=\"`gcp_account_id`\"\u003e`gcpAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "gcpProjectNumber": { "type": "string", "description": "Number of the GCP project to connect. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sourceId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "required": [ "gcpAccountId", "gcpProjectId", "gcpProjectNumber", "sourceId", "teamId" ], "inputProperties": { "gcpAccountId": { "type": "string", "description": "Better Stack's own ID for a Google Cloud project that another 'gcp' source in your organization connected, to reuse that connection. Better Stack's ID differs from the project's ID and number. At least one of \u003cspan pulumi-lang-nodejs=\"`gcpProjectId`\" pulumi-lang-dotnet=\"`GcpProjectId`\" pulumi-lang-go=\"`gcpProjectId`\" pulumi-lang-python=\"`gcp_project_id`\" pulumi-lang-yaml=\"`gcpProjectId`\" pulumi-lang-java=\"`gcpProjectId`\" pulumi-lang-hcl=\"`gcp_project_id`\"\u003e`gcpProjectId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`gcpAccountId`\" pulumi-lang-dotnet=\"`GcpAccountId`\" pulumi-lang-go=\"`gcpAccountId`\" pulumi-lang-python=\"`gcp_account_id`\" pulumi-lang-yaml=\"`gcpAccountId`\" pulumi-lang-java=\"`gcpAccountId`\" pulumi-lang-hcl=\"`gcp_account_id`\"\u003e`gcpAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "gcpLogFilter": { "type": "string", "description": "Google Cloud Logging query that selects which logs the source receives. null forwards every log, which is the default. Google Cloud checks the query when it's saved and refuses an invalid one. Sent once the project is connected. Needs the log sink Better Stack's GCP module creates for the source.\n" }, "gcpProjectId": { "type": "string", "description": "ID of the GCP project to connect. At least one of \u003cspan pulumi-lang-nodejs=\"`gcpProjectId`\" pulumi-lang-dotnet=\"`GcpProjectId`\" pulumi-lang-go=\"`gcpProjectId`\" pulumi-lang-python=\"`gcp_project_id`\" pulumi-lang-yaml=\"`gcpProjectId`\" pulumi-lang-java=\"`gcpProjectId`\" pulumi-lang-hcl=\"`gcp_project_id`\"\u003e`gcpProjectId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`gcpAccountId`\" pulumi-lang-dotnet=\"`GcpAccountId`\" pulumi-lang-go=\"`gcpAccountId`\" pulumi-lang-python=\"`gcp_account_id`\" pulumi-lang-yaml=\"`gcpAccountId`\" pulumi-lang-java=\"`gcpAccountId`\" pulumi-lang-hcl=\"`gcp_account_id`\"\u003e`gcpAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "gcpProjectNumber": { "type": "string", "description": "Number of the GCP project to connect. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sourceId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "requiredInputs": [ "sourceId" ], "stateInputs": { "description": "Input properties used for looking up and filtering SourceGcpProject resources.\n", "properties": { "gcpAccountId": { "type": "string", "description": "Better Stack's own ID for a Google Cloud project that another 'gcp' source in your organization connected, to reuse that connection. Better Stack's ID differs from the project's ID and number. At least one of \u003cspan pulumi-lang-nodejs=\"`gcpProjectId`\" pulumi-lang-dotnet=\"`GcpProjectId`\" pulumi-lang-go=\"`gcpProjectId`\" pulumi-lang-python=\"`gcp_project_id`\" pulumi-lang-yaml=\"`gcpProjectId`\" pulumi-lang-java=\"`gcpProjectId`\" pulumi-lang-hcl=\"`gcp_project_id`\"\u003e`gcpProjectId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`gcpAccountId`\" pulumi-lang-dotnet=\"`GcpAccountId`\" pulumi-lang-go=\"`gcpAccountId`\" pulumi-lang-python=\"`gcp_account_id`\" pulumi-lang-yaml=\"`gcpAccountId`\" pulumi-lang-java=\"`gcpAccountId`\" pulumi-lang-hcl=\"`gcp_account_id`\"\u003e`gcpAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "gcpLogFilter": { "type": "string", "description": "Google Cloud Logging query that selects which logs the source receives. null forwards every log, which is the default. Google Cloud checks the query when it's saved and refuses an invalid one. Sent once the project is connected. Needs the log sink Better Stack's GCP module creates for the source.\n" }, "gcpProjectId": { "type": "string", "description": "ID of the GCP project to connect. At least one of \u003cspan pulumi-lang-nodejs=\"`gcpProjectId`\" pulumi-lang-dotnet=\"`GcpProjectId`\" pulumi-lang-go=\"`gcpProjectId`\" pulumi-lang-python=\"`gcp_project_id`\" pulumi-lang-yaml=\"`gcpProjectId`\" pulumi-lang-java=\"`gcpProjectId`\" pulumi-lang-hcl=\"`gcp_project_id`\"\u003e`gcpProjectId`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`gcpAccountId`\" pulumi-lang-dotnet=\"`GcpAccountId`\" pulumi-lang-go=\"`gcpAccountId`\" pulumi-lang-python=\"`gcp_account_id`\" pulumi-lang-yaml=\"`gcpAccountId`\" pulumi-lang-java=\"`gcpAccountId`\" pulumi-lang-hcl=\"`gcp_account_id`\"\u003e`gcpAccountId`\u003c/span\u003e must be configured. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "gcpProjectNumber": { "type": "string", "description": "Number of the GCP project to connect. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sourceId": { "type": "string", "description": "ID of the object in Better Stack this resource takes over. Changing it takes over that object instead. The previous one keeps its settings in Better Stack.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it when the object is in another team. Changing it replaces the resource, which takes over the object in that team instead.\n" } }, "type": "object" } }, "betterstack:index/sourceGroup:SourceGroup": { "description": "A group that organizes related telemetry sources together.\n\n## Example Usage\n\n### Create a source group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SourceGroup(\"example\", {name: \"Backend sources\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SourceGroup(\"example\", name=\"Backend sources\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SourceGroup(\"example\", new()\n {\n Name = \"Backend sources\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewSourceGroup(ctx, \"example\", \u0026betterstack.SourceGroupArgs{\n\t\t\tName: pulumi.String(\"Backend sources\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Backend sources\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SourceGroup;\nimport com.betterstack.pulumi.SourceGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SourceGroup(\"example\", SourceGroupArgs.builder()\n .name(\"Backend sources\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SourceGroup\n properties:\n name: Backend sources\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Set the display order\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst setTheDisplayOrder = new betterstack.SourceGroup(\"set_the_display_order\", {\n name: \"Frontend sources\",\n sortIndex: 2,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nset_the_display_order = betterstack.SourceGroup(\"set_the_display_order\",\n name=\"Frontend sources\",\n sort_index=2)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var setTheDisplayOrder = new BetterStack.SourceGroup(\"set_the_display_order\", new()\n {\n Name = \"Frontend sources\",\n SortIndex = 2,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewSourceGroup(ctx, \"set_the_display_order\", \u0026betterstack.SourceGroupArgs{\n\t\t\tName: pulumi.String(\"Frontend sources\"),\n\t\t\tSortIndex: pulumi.Int(2),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_source_group\" \"set_the_display_order\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Frontend sources\"\n sort_index = 2\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SourceGroup;\nimport com.betterstack.pulumi.SourceGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var setTheDisplayOrder = new SourceGroup(\"setTheDisplayOrder\", SourceGroupArgs.builder()\n .name(\"Frontend sources\")\n .sortIndex(2)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n setTheDisplayOrder:\n type: betterstack:SourceGroup\n name: set_the_display_order\n properties:\n name: Frontend sources\n sortIndex: 2\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing source group by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/sourceGroup:SourceGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order among your source groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "required": [ "createdAt", "name", "teamId", "teamName", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order among your source groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering SourceGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "sortIndex": { "type": "integer", "description": "Display order among your source groups. Lower values come first.\n" }, "teamId": { "type": "string", "description": "Team that owns the group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" }, "teamName": { "type": "string", "description": "Name of the team that owns the group.\n" }, "updatedAt": { "type": "string", "description": "When the group was last updated.\n" } }, "type": "object" } }, "betterstack:index/sshKey:SshKey": { "description": "An SSH key for the root user of your servers. We add it to a server when the server is created, or later when you attach it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SshKey(\"example\", {\n slug: \"my-laptop\",\n publicKey: \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SshKey(\"example\",\n slug=\"my-laptop\",\n public_key=\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SshKey(\"example\", new()\n {\n Slug = \"my-laptop\",\n PublicKey = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewSshKey(ctx, \"example\", \u0026betterstack.SshKeyArgs{\n\t\t\tSlug: pulumi.String(\"my-laptop\"),\n\t\t\tPublicKey: pulumi.String(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_ssh_key\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n slug = \"my-laptop\"\n public_key = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SshKey;\nimport com.betterstack.pulumi.SshKeyArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SshKey(\"example\", SshKeyArgs.builder()\n .slug(\"my-laptop\")\n .publicKey(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SshKey\n properties:\n slug: my-laptop\n publicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e Every zone has the same SSH keys. A key you create in one zone is copied to every zone, and a key you delete is removed from every zone. Attach and detach change only the servers of the zone you call.\n\n\u003e A \u003cspan pulumi-lang-nodejs=\"`slug`\" pulumi-lang-dotnet=\"`Slug`\" pulumi-lang-go=\"`slug`\" pulumi-lang-python=\"`slug`\" pulumi-lang-yaml=\"`slug`\" pulumi-lang-java=\"`slug`\" pulumi-lang-hcl=\"`slug`\"\u003e`slug`\u003c/span\u003e is unique in its team. When more than one of your teams has a key with the same \u003cspan pulumi-lang-nodejs=\"`slug`\" pulumi-lang-dotnet=\"`Slug`\" pulumi-lang-go=\"`slug`\" pulumi-lang-python=\"`slug`\" pulumi-lang-yaml=\"`slug`\" pulumi-lang-java=\"`slug`\" pulumi-lang-hcl=\"`slug`\"\u003e`slug`\u003c/span\u003e, send \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e to get, update, delete, attach or detach it.\n\n## Import\n\nImport an existing SSH key by its ID.\n\n```sh\n$ pulumi import betterstack:index/sshKey:SshKey example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the key was created.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "publicKey": { "type": "string", "description": "One OpenSSH public key, such as the contents of a `.pub` file. Never send a private key. Can't be changed after the key is created.\n" }, "serverIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the servers to add the new key to, at most 100, in any zone. Only running servers get the key. The key is created even when a server can't get it. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "slug": { "type": "string", "description": "The key's name. Must be unique in its team, up to 255 characters long, and start and end with a letter or digit. Dots, hyphens and underscores are allowed in between. A deleted key's \u003cspan pulumi-lang-nodejs=\"`slug`\" pulumi-lang-dotnet=\"`Slug`\" pulumi-lang-go=\"`slug`\" pulumi-lang-python=\"`slug`\" pulumi-lang-yaml=\"`slug`\" pulumi-lang-java=\"`slug`\" pulumi-lang-hcl=\"`slug`\"\u003e`slug`\u003c/span\u003e stays taken until the key is removed from every zone.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the key. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the key was last updated.\n" } }, "required": [ "createdAt", "metadata", "publicKey", "serverIds", "slug", "teamId", "updatedAt" ], "inputProperties": { "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "publicKey": { "type": "string", "description": "One OpenSSH public key, such as the contents of a `.pub` file. Never send a private key. Can't be changed after the key is created.\n" }, "serverIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the servers to add the new key to, at most 100, in any zone. Only running servers get the key. The key is created even when a server can't get it. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "slug": { "type": "string", "description": "The key's name. Must be unique in its team, up to 255 characters long, and start and end with a letter or digit. Dots, hyphens and underscores are allowed in between. A deleted key's \u003cspan pulumi-lang-nodejs=\"`slug`\" pulumi-lang-dotnet=\"`Slug`\" pulumi-lang-go=\"`slug`\" pulumi-lang-python=\"`slug`\" pulumi-lang-yaml=\"`slug`\" pulumi-lang-java=\"`slug`\" pulumi-lang-hcl=\"`slug`\"\u003e`slug`\u003c/span\u003e stays taken until the key is removed from every zone.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the key. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" } }, "requiredInputs": [ "publicKey", "slug", "teamId" ], "stateInputs": { "description": "Input properties used for looking up and filtering SshKey resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the key was created.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "publicKey": { "type": "string", "description": "One OpenSSH public key, such as the contents of a `.pub` file. Never send a private key. Can't be changed after the key is created.\n" }, "serverIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the servers to add the new key to, at most 100, in any zone. Only running servers get the key. The key is created even when a server can't get it. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "slug": { "type": "string", "description": "The key's name. Must be unique in its team, up to 255 characters long, and start and end with a letter or digit. Dots, hyphens and underscores are allowed in between. A deleted key's \u003cspan pulumi-lang-nodejs=\"`slug`\" pulumi-lang-dotnet=\"`Slug`\" pulumi-lang-go=\"`slug`\" pulumi-lang-python=\"`slug`\" pulumi-lang-yaml=\"`slug`\" pulumi-lang-java=\"`slug`\" pulumi-lang-hcl=\"`slug`\"\u003e`slug`\u003c/span\u003e stays taken until the key is removed from every zone.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the key. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the key was last updated.\n" } }, "type": "object" } }, "betterstack:index/statusPage:StatusPage": { "description": "A public or private status page that communicates service health to your users.\n\n\u003e Destroying a status page deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Serve a status page from your own domain\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst _public = new betterstack.StatusPage(\"public\", {\n companyName: \"Example, Inc.\",\n companyUrl: \"https://example.org\",\n subdomain: \"example-inc-status\",\n customDomain: \"status.example.org\",\n timezone: \"UTC\",\n design: betterstack.StatusPageDesign.V2,\n theme: betterstack.StatusPageTheme.System,\n subscribable: true,\n automaticReports: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\npublic = betterstack.StatusPage(\"public\",\n company_name=\"Example, Inc.\",\n company_url=\"https://example.org\",\n subdomain=\"example-inc-status\",\n custom_domain=\"status.example.org\",\n timezone=\"UTC\",\n design=betterstack.StatusPageDesign.V2,\n theme=betterstack.StatusPageTheme.SYSTEM,\n subscribable=True,\n automatic_reports=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @public = new BetterStack.StatusPage(\"public\", new()\n {\n CompanyName = \"Example, Inc.\",\n CompanyUrl = \"https://example.org\",\n Subdomain = \"example-inc-status\",\n CustomDomain = \"status.example.org\",\n Timezone = \"UTC\",\n Design = BetterStack.StatusPageDesign.V2,\n Theme = BetterStack.StatusPageTheme.System,\n Subscribable = true,\n AutomaticReports = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewStatusPage(ctx, \"public\", \u0026betterstack.StatusPageArgs{\n\t\t\tCompanyName: pulumi.String(\"Example, Inc.\"),\n\t\t\tCompanyUrl: pulumi.String(\"https://example.org\"),\n\t\t\tSubdomain: pulumi.String(\"example-inc-status\"),\n\t\t\tCustomDomain: pulumi.String(\"status.example.org\"),\n\t\t\tTimezone: pulumi.String(\"UTC\"),\n\t\t\tDesign: pulumi.String(betterstack.StatusPageDesignV2),\n\t\t\tTheme: pulumi.String(betterstack.StatusPageThemeSystem),\n\t\t\tSubscribable: pulumi.Bool(true),\n\t\t\tAutomaticReports: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_status_page\" \"public\" {\n lifecycle {\n create_before_destroy = true\n }\n company_name = \"Example, Inc.\"\n company_url = \"https://example.org\"\n subdomain = \"example-inc-status\"\n custom_domain = \"status.example.org\"\n timezone = \"UTC\"\n design = \"v2\"\n theme = \"system\"\n subscribable = true\n automatic_reports = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.StatusPage;\nimport com.betterstack.pulumi.StatusPageArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var public_ = new StatusPage(\"public\", StatusPageArgs.builder()\n .companyName(\"Example, Inc.\")\n .companyUrl(\"https://example.org\")\n .subdomain(\"example-inc-status\")\n .customDomain(\"status.example.org\")\n .timezone(\"UTC\")\n .design(\"v2\")\n .theme(\"system\")\n .subscribable(true)\n .automaticReports(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n public:\n type: betterstack:StatusPage\n properties:\n companyName: Example, Inc.\n companyUrl: https://example.org\n subdomain: example-inc-status\n customDomain: status.example.org\n timezone: UTC\n design: v2\n theme: system\n subscribable: true\n automaticReports: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Show monitors in sections\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst website = new betterstack.Monitor(\"website\", {\n url: \"https://uptime.betterstack.com\",\n pronounceableName: \"Website\",\n});\nconst api = new betterstack.Monitor(\"api\", {\n url: \"https://uptime.betterstack.com/api/v2/monitors\",\n monitorType: betterstack.MonitorType.ExpectedStatusCode,\n expectedStatusCodes: [401],\n pronounceableName: \"API\",\n});\nconst services = new betterstack.StatusPage(\"services\", {\n companyName: \"Example, Inc.\",\n subdomain: \"example-inc-services\",\n timezone: \"UTC\",\n sections: [\n {\n name: \"Website\",\n resources: [{\n resourceType: \"Monitor\",\n resourceId: website.id,\n publicName: \"Website\",\n widgetType: \"history\",\n }],\n },\n {\n name: \"API\",\n resources: [{\n resourceType: \"Monitor\",\n resourceId: api.id,\n publicName: \"Public API\",\n widgetType: \"response_times\",\n }],\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nwebsite = betterstack.Monitor(\"website\",\n url=\"https://uptime.betterstack.com\",\n pronounceable_name=\"Website\")\napi = betterstack.Monitor(\"api\",\n url=\"https://uptime.betterstack.com/api/v2/monitors\",\n monitor_type=betterstack.MonitorType.EXPECTED_STATUS_CODE,\n expected_status_codes=[401],\n pronounceable_name=\"API\")\nservices = betterstack.StatusPage(\"services\",\n company_name=\"Example, Inc.\",\n subdomain=\"example-inc-services\",\n timezone=\"UTC\",\n sections=[\n {\n \"name\": \"Website\",\n \"resources\": [{\n \"resource_type\": \"Monitor\",\n \"resource_id\": website.id,\n \"public_name\": \"Website\",\n \"widget_type\": \"history\",\n }],\n },\n {\n \"name\": \"API\",\n \"resources\": [{\n \"resource_type\": \"Monitor\",\n \"resource_id\": api.id,\n \"public_name\": \"Public API\",\n \"widget_type\": \"response_times\",\n }],\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var website = new BetterStack.Monitor(\"website\", new()\n {\n Url = \"https://uptime.betterstack.com\",\n PronounceableName = \"Website\",\n });\n\n var api = new BetterStack.Monitor(\"api\", new()\n {\n Url = \"https://uptime.betterstack.com/api/v2/monitors\",\n MonitorType = BetterStack.MonitorType.ExpectedStatusCode,\n ExpectedStatusCodes = new[]\n {\n 401,\n },\n PronounceableName = \"API\",\n });\n\n var services = new BetterStack.StatusPage(\"services\", new()\n {\n CompanyName = \"Example, Inc.\",\n Subdomain = \"example-inc-services\",\n Timezone = \"UTC\",\n Sections = new[]\n {\n new BetterStack.Inputs.StatusPageSectionArgs\n {\n Name = \"Website\",\n Resources = new[]\n {\n new BetterStack.Inputs.StatusPageSectionResourceArgs\n {\n ResourceType = \"Monitor\",\n ResourceId = website.Id,\n PublicName = \"Website\",\n WidgetType = \"history\",\n },\n },\n },\n new BetterStack.Inputs.StatusPageSectionArgs\n {\n Name = \"API\",\n Resources = new[]\n {\n new BetterStack.Inputs.StatusPageSectionResourceArgs\n {\n ResourceType = \"Monitor\",\n ResourceId = api.Id,\n PublicName = \"Public API\",\n WidgetType = \"response_times\",\n },\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\twebsite, err := betterstack.NewMonitor(ctx, \"website\", \u0026betterstack.MonitorArgs{\n\t\t\tUrl: pulumi.String(\"https://uptime.betterstack.com\"),\n\t\t\tPronounceableName: pulumi.String(\"Website\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tapi, err := betterstack.NewMonitor(ctx, \"api\", \u0026betterstack.MonitorArgs{\n\t\t\tUrl: pulumi.String(\"https://uptime.betterstack.com/api/v2/monitors\"),\n\t\t\tMonitorType: pulumi.String(betterstack.MonitorTypeExpectedStatusCode),\n\t\t\tExpectedStatusCodes: pulumi.IntArray{\n\t\t\t\tpulumi.Int(401),\n\t\t\t},\n\t\t\tPronounceableName: pulumi.String(\"API\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewStatusPage(ctx, \"services\", \u0026betterstack.StatusPageArgs{\n\t\t\tCompanyName: pulumi.String(\"Example, Inc.\"),\n\t\t\tSubdomain: pulumi.String(\"example-inc-services\"),\n\t\t\tTimezone: pulumi.String(\"UTC\"),\n\t\t\tSections: betterstack.StatusPageSectionArray{\n\t\t\t\t\u0026betterstack.StatusPageSectionArgs{\n\t\t\t\t\tName: pulumi.String(\"Website\"),\n\t\t\t\t\tResources: betterstack.StatusPageSectionResourceArray{\n\t\t\t\t\t\t\u0026betterstack.StatusPageSectionResourceArgs{\n\t\t\t\t\t\t\tResourceType: pulumi.String(\"Monitor\"),\n\t\t\t\t\t\t\tResourceId: website.ID(),\n\t\t\t\t\t\t\tPublicName: pulumi.String(\"Website\"),\n\t\t\t\t\t\t\tWidgetType: pulumi.String(\"history\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026betterstack.StatusPageSectionArgs{\n\t\t\t\t\tName: pulumi.String(\"API\"),\n\t\t\t\t\tResources: betterstack.StatusPageSectionResourceArray{\n\t\t\t\t\t\t\u0026betterstack.StatusPageSectionResourceArgs{\n\t\t\t\t\t\t\tResourceType: pulumi.String(\"Monitor\"),\n\t\t\t\t\t\t\tResourceId: api.ID(),\n\t\t\t\t\t\t\tPublicName: pulumi.String(\"Public API\"),\n\t\t\t\t\t\t\tWidgetType: pulumi.String(\"response_times\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_monitor\" \"website\" {\n lifecycle {\n create_before_destroy = true\n }\n url = \"https://uptime.betterstack.com\"\n pronounceable_name = \"Website\"\n}\nresource \"betterstack_monitor\" \"api\" {\n lifecycle {\n create_before_destroy = true\n }\n url = \"https://uptime.betterstack.com/api/v2/monitors\"\n monitor_type = \"expected_status_code\"\n expected_status_codes = [401]\n pronounceable_name = \"API\"\n}\nresource \"betterstack_status_page\" \"services\" {\n lifecycle {\n create_before_destroy = true\n }\n company_name = \"Example, Inc.\"\n subdomain = \"example-inc-services\"\n timezone = \"UTC\"\n sections = [{\n name = \"Website\"\n resources = [{\n resource_type = \"Monitor\"\n resource_id = betterstack_monitor.website.id\n public_name = \"Website\"\n widget_type = \"history\"\n }]\n }, {\n name = \"API\"\n resources = [{\n resource_type = \"Monitor\"\n resource_id = betterstack_monitor.api.id\n public_name = \"Public API\"\n widget_type = \"response_times\"\n }]\n }]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Monitor;\nimport com.betterstack.pulumi.MonitorArgs;\nimport com.betterstack.pulumi.StatusPage;\nimport com.betterstack.pulumi.StatusPageArgs;\nimport com.betterstack.pulumi.inputs.StatusPageSectionArgs;\nimport com.betterstack.pulumi.inputs.StatusPageSectionResourceArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var website = new Monitor(\"website\", MonitorArgs.builder()\n .url(\"https://uptime.betterstack.com\")\n .pronounceableName(\"Website\")\n .build());\n\n var api = new Monitor(\"api\", MonitorArgs.builder()\n .url(\"https://uptime.betterstack.com/api/v2/monitors\")\n .monitorType(\"expected_status_code\")\n .expectedStatusCodes(401)\n .pronounceableName(\"API\")\n .build());\n\n var services = new StatusPage(\"services\", StatusPageArgs.builder()\n .companyName(\"Example, Inc.\")\n .subdomain(\"example-inc-services\")\n .timezone(\"UTC\")\n .sections( \n StatusPageSectionArgs.builder()\n .name(\"Website\")\n .resources(StatusPageSectionResourceArgs.builder()\n .resourceType(\"Monitor\")\n .resourceId(website.id())\n .publicName(\"Website\")\n .widgetType(\"history\")\n .build())\n .build(),\n StatusPageSectionArgs.builder()\n .name(\"API\")\n .resources(StatusPageSectionResourceArgs.builder()\n .resourceType(\"Monitor\")\n .resourceId(api.id())\n .publicName(\"Public API\")\n .widgetType(\"response_times\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n website:\n type: betterstack:Monitor\n properties:\n url: https://uptime.betterstack.com\n pronounceableName: Website\n api:\n type: betterstack:Monitor\n properties:\n url: https://uptime.betterstack.com/api/v2/monitors\n monitorType: expected_status_code\n expectedStatusCodes:\n - 401\n pronounceableName: API\n services:\n type: betterstack:StatusPage\n properties:\n companyName: Example, Inc.\n subdomain: example-inc-services\n timezone: UTC\n sections:\n - name: Website\n resources:\n - resourceType: Monitor\n resourceId: ${website.id}\n publicName: Website\n widgetType: history\n - name: API\n resources:\n - resourceType: Monitor\n resourceId: ${api.id}\n publicName: Public API\n widgetType: response_times\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The \u003cspan pulumi-lang-nodejs=\"`logoUrl`\" pulumi-lang-dotnet=\"`LogoUrl`\" pulumi-lang-go=\"`logoUrl`\" pulumi-lang-python=\"`logo_url`\" pulumi-lang-yaml=\"`logoUrl`\" pulumi-lang-java=\"`logoUrl`\" pulumi-lang-hcl=\"`logo_url`\"\u003e`logoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`logoRemoteUrl`\" pulumi-lang-dotnet=\"`LogoRemoteUrl`\" pulumi-lang-go=\"`logoRemoteUrl`\" pulumi-lang-python=\"`logo_remote_url`\" pulumi-lang-yaml=\"`logoRemoteUrl`\" pulumi-lang-java=\"`logoRemoteUrl`\" pulumi-lang-hcl=\"`logo_remote_url`\"\u003e`logoRemoteUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`darkLogoUrl`\" pulumi-lang-dotnet=\"`DarkLogoUrl`\" pulumi-lang-go=\"`darkLogoUrl`\" pulumi-lang-python=\"`dark_logo_url`\" pulumi-lang-yaml=\"`darkLogoUrl`\" pulumi-lang-java=\"`darkLogoUrl`\" pulumi-lang-hcl=\"`dark_logo_url`\"\u003e`darkLogoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`darkLogoRemoteUrl`\" pulumi-lang-dotnet=\"`DarkLogoRemoteUrl`\" pulumi-lang-go=\"`darkLogoRemoteUrl`\" pulumi-lang-python=\"`dark_logo_remote_url`\" pulumi-lang-yaml=\"`darkLogoRemoteUrl`\" pulumi-lang-java=\"`darkLogoRemoteUrl`\" pulumi-lang-hcl=\"`dark_logo_remote_url`\"\u003e`darkLogoRemoteUrl`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`faviconRemoteUrl`\" pulumi-lang-dotnet=\"`FaviconRemoteUrl`\" pulumi-lang-go=\"`faviconRemoteUrl`\" pulumi-lang-python=\"`favicon_remote_url`\" pulumi-lang-yaml=\"`faviconRemoteUrl`\" pulumi-lang-java=\"`faviconRemoteUrl`\" pulumi-lang-hcl=\"`favicon_remote_url`\"\u003e`faviconRemoteUrl`\u003c/span\u003e attributes must be absolute URLs, or the change is refused. Leaving out an image's fields keeps the image.\n\n## Import\n\nImport an existing status page by its ID.\n\n```sh\n$ pulumi import betterstack:index/statusPage:StatusPage example 12345\n```\n\n", "properties": { "aggregateState": { "type": "string", "description": "The page's overall status. 'operational': No resource on the page is down, degraded or in maintenance. 'degraded': A resource is degraded and none is down. 'downtime': A resource is down. 'maintenance': A resource is in maintenance and none is down or degraded.\n" }, "announcement": { "type": "string", "description": "Announcement banner text.\n" }, "announcementEmbedCss": { "type": "string", "description": "Your own CSS for the announcement on the embeddable widget.\n" }, "announcementEmbedLink": { "type": "string", "description": "Link the announcement points to on the embeddable widget. Defaults to the status page.\n" }, "announcementEmbedVisible": { "type": "boolean", "description": "Whether the embeddable widget shows the announcement. Defaults to true.\n" }, "automaticReports": { "type": "boolean", "description": "Whether status page reports are created automatically for new incidents. Defaults to false.\n" }, "companyName": { "type": "string", "description": "Company name shown on the page.\n" }, "companyUrl": { "type": "string", "description": "Company website URL.\n" }, "contactUrl": { "type": "string", "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`.\n" }, "createdAt": { "type": "string", "description": "When the status page was created.\n" }, "customCss": { "type": "string", "description": "Custom CSS added to the page.\n" }, "customDomain": { "type": "string", "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.\n" }, "customJavascript": { "type": "string", "description": "Custom JavaScript added to the page.\n" }, "darkLogoRemoteUrl": { "type": "string", "description": "The URL the dark mode logo was fetched from. Remove the argument to remove the logo. When you send this and \u003cspan pulumi-lang-nodejs=\"`darkLogoUrl`\" pulumi-lang-dotnet=\"`DarkLogoUrl`\" pulumi-lang-go=\"`darkLogoUrl`\" pulumi-lang-python=\"`dark_logo_url`\" pulumi-lang-yaml=\"`darkLogoUrl`\" pulumi-lang-java=\"`darkLogoUrl`\" pulumi-lang-hcl=\"`dark_logo_url`\"\u003e`darkLogoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`darkLogoUrl`\" pulumi-lang-dotnet=\"`DarkLogoUrl`\" pulumi-lang-go=\"`darkLogoUrl`\" pulumi-lang-python=\"`dark_logo_url`\" pulumi-lang-yaml=\"`darkLogoUrl`\" pulumi-lang-java=\"`darkLogoUrl`\" pulumi-lang-hcl=\"`dark_logo_url`\"\u003e`darkLogoUrl`\u003c/span\u003e is used.\n" }, "darkLogoUrl": { "type": "string", "description": "The logo shown in dark mode. Responses return the URL of the stored logo. Accepts the URL of an image under 20 MB, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this status page is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "design": { "type": "string", "description": "Page design. Defaults to 'v1'. 'v1': The classic design. 'v2': The modern design.\n" }, "faviconRemoteUrl": { "type": "string", "description": "The URL the favicon was fetched from. Accepts the URL of an image under 20 MB, and we fetch the favicon from it. Remove the argument to remove the favicon.\n" }, "faviconUrl": { "type": "string", "description": "The icon browsers show in the page's tab, as the URL of the stored favicon. Only the 'v2' design shows it.\n" }, "googleAnalyticsId": { "type": "string", "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`.\n" }, "hideFromSearchEngines": { "type": "boolean", "description": "Whether to hide the page from search engines with a 'noindex' tag. Defaults to false.\n" }, "history": { "type": "integer", "description": "Number of days of history the page shows, from 7 to 365. Defaults to '90'.\n" }, "ipAllowlist": { "type": "array", "items": { "type": "string" }, "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments. Set it to `[]` to let anyone view it.\n" }, "layout": { "type": "string", "description": "Header layout of the page. Only the 'v2' design uses it. Valid values: 'vertical', 'horizontal'. Defaults to 'vertical'.\n" }, "logoRemoteUrl": { "type": "string", "description": "The URL the light mode logo was fetched from. Remove the argument to remove the logo. When you send this and \u003cspan pulumi-lang-nodejs=\"`logoUrl`\" pulumi-lang-dotnet=\"`LogoUrl`\" pulumi-lang-go=\"`logoUrl`\" pulumi-lang-python=\"`logo_url`\" pulumi-lang-yaml=\"`logoUrl`\" pulumi-lang-java=\"`logoUrl`\" pulumi-lang-hcl=\"`logo_url`\"\u003e`logoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`logoUrl`\" pulumi-lang-dotnet=\"`LogoUrl`\" pulumi-lang-go=\"`logoUrl`\" pulumi-lang-python=\"`logo_url`\" pulumi-lang-yaml=\"`logoUrl`\" pulumi-lang-java=\"`logoUrl`\" pulumi-lang-hcl=\"`logo_url`\"\u003e`logoUrl`\u003c/span\u003e is used.\n" }, "logoUrl": { "type": "string", "description": "The logo shown in light mode. Responses return the URL of the stored logo. Accepts the URL of an image under 20 MB, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "minIncidentLength": { "type": "integer", "description": "Shortest incident the page shows, in seconds. '0' shows every incident. Must be less than a year. Defaults to '0'.\n" }, "navigationLinks": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageNavigationLink:StatusPageNavigationLink" }, "description": "Up to four links in the page's navigation, each with \u003cspan pulumi-lang-nodejs=\"`text`\" pulumi-lang-dotnet=\"`Text`\" pulumi-lang-go=\"`text`\" pulumi-lang-python=\"`text`\" pulumi-lang-yaml=\"`text`\" pulumi-lang-java=\"`text`\" pulumi-lang-hcl=\"`text`\"\u003e`text`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`href`\" pulumi-lang-dotnet=\"`Href`\" pulumi-lang-go=\"`href`\" pulumi-lang-python=\"`href`\" pulumi-lang-yaml=\"`href`\" pulumi-lang-java=\"`href`\" pulumi-lang-hcl=\"`href`\"\u003e`href`\u003c/span\u003e. Only the 'v2' design shows them. An empty list removes them all.\n" }, "organizationId": { "type": "string", "description": "The ID of the organization the page belongs to, such as '123'. Get the ID from \u003cspan pulumi-lang-nodejs=\"`organizationId`\" pulumi-lang-dotnet=\"`OrganizationId`\" pulumi-lang-go=\"`organizationId`\" pulumi-lang-python=\"`organization_id`\" pulumi-lang-yaml=\"`organizationId`\" pulumi-lang-java=\"`organizationId`\" pulumi-lang-hcl=\"`organization_id`\"\u003e`organizationId`\u003c/span\u003e in [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Required on create when you sign in with OAuth and can access more than one organization.\n" }, "password": { "type": "string", "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e, unless \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e is set too. An empty password removes the password and turns protection off. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "passwordEnabled": { "type": "boolean", "description": "Whether visitors need a password to view the page. Off unless you turn it on or set \u003cspan pulumi-lang-nodejs=\"`password`\" pulumi-lang-dotnet=\"`Password`\" pulumi-lang-go=\"`password`\" pulumi-lang-python=\"`password`\" pulumi-lang-yaml=\"`password`\" pulumi-lang-java=\"`password`\" pulumi-lang-hcl=\"`password`\"\u003e`password`\u003c/span\u003e.\n" }, "publicUrl": { "type": "string", "description": "The address visitors open the page at. The \u003cspan pulumi-lang-nodejs=\"`customDomain`\" pulumi-lang-dotnet=\"`CustomDomain`\" pulumi-lang-go=\"`customDomain`\" pulumi-lang-python=\"`custom_domain`\" pulumi-lang-yaml=\"`customDomain`\" pulumi-lang-java=\"`customDomain`\" pulumi-lang-hcl=\"`custom_domain`\"\u003e`customDomain`\u003c/span\u003e when the page has one, otherwise the betterstack.com \u003cspan pulumi-lang-nodejs=\"`subdomain`\" pulumi-lang-dotnet=\"`Subdomain`\" pulumi-lang-go=\"`subdomain`\" pulumi-lang-python=\"`subdomain`\" pulumi-lang-yaml=\"`subdomain`\" pulumi-lang-java=\"`subdomain`\" pulumi-lang-hcl=\"`subdomain`\"\u003e`subdomain`\u003c/span\u003e.\n" }, "published": { "type": "boolean", "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows. Defaults to true.\n" }, "requireSso": { "type": "boolean", "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e. Defaults to false.\n" }, "sections": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageSection:StatusPageSection" }, "description": "The page's sections and their resources, in display order. Only an update accepts it. Sending it replaces the whole structure, and sections and resources are matched by \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e. A section or resource without an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e is created, and one you leave out is removed from the page. Removing a resource doesn't change the monitor or other resource it shows. An attribute you leave out of a resource keeps its value. Leave \u003cspan pulumi-lang-nodejs=\"`sections`\" pulumi-lang-dotnet=\"`Sections`\" pulumi-lang-go=\"`sections`\" pulumi-lang-python=\"`sections`\" pulumi-lang-yaml=\"`sections`\" pulumi-lang-java=\"`sections`\" pulumi-lang-hcl=\"`sections`\"\u003e`sections`\u003c/span\u003e out to keep the structure as it is. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, so a reorder or a move updates it in place. An item that matches none keeps the id of the existing item at its position when no other item took that one, so a rename updates it in place too.\n" }, "statusPageGroupId": { "type": "string", "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](https://betterstack.com/docs/uptime/api/list-all-status-page-groups/).\n" }, "subdomain": { "type": "string", "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores.\n" }, "subscribable": { "type": "boolean", "description": "Whether visitors can subscribe to updates. Defaults to false.\n" }, "theme": { "type": "string", "description": "Color theme. Only the 'v2' design uses it. Valid values: 'light', 'dark', 'system'. Defaults to 'light'.\n" }, "timezone": { "type": "string", "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name.\n" }, "treatNotMonitoredAsOperational": { "type": "boolean", "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored. Defaults to false.\n" }, "updatedAt": { "type": "string", "description": "When the status page was last updated.\n" }, "whitelabeled": { "type": "boolean", "description": "Whether to remove Better Stack branding from the page. Defaults to false.\n" } }, "required": [ "aggregateState", "announcementEmbedVisible", "automaticReports", "companyName", "createdAt", "deletionProtection", "design", "faviconUrl", "hideFromSearchEngines", "history", "ipAllowlist", "layout", "minIncidentLength", "navigationLinks", "organizationId", "passwordEnabled", "publicUrl", "published", "requireSso", "sections", "subdomain", "subscribable", "theme", "timezone", "treatNotMonitoredAsOperational", "updatedAt", "whitelabeled" ], "inputProperties": { "announcement": { "type": "string", "description": "Announcement banner text.\n" }, "announcementEmbedCss": { "type": "string", "description": "Your own CSS for the announcement on the embeddable widget.\n" }, "announcementEmbedLink": { "type": "string", "description": "Link the announcement points to on the embeddable widget. Defaults to the status page.\n" }, "announcementEmbedVisible": { "type": "boolean", "description": "Whether the embeddable widget shows the announcement. Defaults to true.\n" }, "automaticReports": { "type": "boolean", "description": "Whether status page reports are created automatically for new incidents. Defaults to false.\n" }, "companyName": { "type": "string", "description": "Company name shown on the page.\n" }, "companyUrl": { "type": "string", "description": "Company website URL.\n" }, "contactUrl": { "type": "string", "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`.\n" }, "customCss": { "type": "string", "description": "Custom CSS added to the page.\n" }, "customDomain": { "type": "string", "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.\n" }, "customJavascript": { "type": "string", "description": "Custom JavaScript added to the page.\n" }, "darkLogoRemoteUrl": { "type": "string", "description": "The URL the dark mode logo was fetched from. Remove the argument to remove the logo. When you send this and \u003cspan pulumi-lang-nodejs=\"`darkLogoUrl`\" pulumi-lang-dotnet=\"`DarkLogoUrl`\" pulumi-lang-go=\"`darkLogoUrl`\" pulumi-lang-python=\"`dark_logo_url`\" pulumi-lang-yaml=\"`darkLogoUrl`\" pulumi-lang-java=\"`darkLogoUrl`\" pulumi-lang-hcl=\"`dark_logo_url`\"\u003e`darkLogoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`darkLogoUrl`\" pulumi-lang-dotnet=\"`DarkLogoUrl`\" pulumi-lang-go=\"`darkLogoUrl`\" pulumi-lang-python=\"`dark_logo_url`\" pulumi-lang-yaml=\"`darkLogoUrl`\" pulumi-lang-java=\"`darkLogoUrl`\" pulumi-lang-hcl=\"`dark_logo_url`\"\u003e`darkLogoUrl`\u003c/span\u003e is used.\n" }, "darkLogoUrl": { "type": "string", "description": "The logo shown in dark mode. Responses return the URL of the stored logo. Accepts the URL of an image under 20 MB, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this status page is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "design": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/statusPageDesign:StatusPageDesign" } ], "description": "Page design. Defaults to 'v1'. 'v1': The classic design. 'v2': The modern design.\n" }, "faviconRemoteUrl": { "type": "string", "description": "The URL the favicon was fetched from. Accepts the URL of an image under 20 MB, and we fetch the favicon from it. Remove the argument to remove the favicon.\n" }, "googleAnalyticsId": { "type": "string", "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`.\n" }, "hideFromSearchEngines": { "type": "boolean", "description": "Whether to hide the page from search engines with a 'noindex' tag. Defaults to false.\n" }, "history": { "type": "integer", "description": "Number of days of history the page shows, from 7 to 365. Defaults to '90'.\n" }, "ipAllowlist": { "type": "array", "items": { "type": "string" }, "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments. Set it to `[]` to let anyone view it.\n" }, "layout": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/statusPageLayout:StatusPageLayout" } ], "description": "Header layout of the page. Only the 'v2' design uses it. Valid values: 'vertical', 'horizontal'. Defaults to 'vertical'.\n" }, "logoRemoteUrl": { "type": "string", "description": "The URL the light mode logo was fetched from. Remove the argument to remove the logo. When you send this and \u003cspan pulumi-lang-nodejs=\"`logoUrl`\" pulumi-lang-dotnet=\"`LogoUrl`\" pulumi-lang-go=\"`logoUrl`\" pulumi-lang-python=\"`logo_url`\" pulumi-lang-yaml=\"`logoUrl`\" pulumi-lang-java=\"`logoUrl`\" pulumi-lang-hcl=\"`logo_url`\"\u003e`logoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`logoUrl`\" pulumi-lang-dotnet=\"`LogoUrl`\" pulumi-lang-go=\"`logoUrl`\" pulumi-lang-python=\"`logo_url`\" pulumi-lang-yaml=\"`logoUrl`\" pulumi-lang-java=\"`logoUrl`\" pulumi-lang-hcl=\"`logo_url`\"\u003e`logoUrl`\u003c/span\u003e is used.\n" }, "logoUrl": { "type": "string", "description": "The logo shown in light mode. Responses return the URL of the stored logo. Accepts the URL of an image under 20 MB, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "minIncidentLength": { "type": "integer", "description": "Shortest incident the page shows, in seconds. '0' shows every incident. Must be less than a year. Defaults to '0'.\n" }, "navigationLinks": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageNavigationLink:StatusPageNavigationLink" }, "description": "Up to four links in the page's navigation, each with \u003cspan pulumi-lang-nodejs=\"`text`\" pulumi-lang-dotnet=\"`Text`\" pulumi-lang-go=\"`text`\" pulumi-lang-python=\"`text`\" pulumi-lang-yaml=\"`text`\" pulumi-lang-java=\"`text`\" pulumi-lang-hcl=\"`text`\"\u003e`text`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`href`\" pulumi-lang-dotnet=\"`Href`\" pulumi-lang-go=\"`href`\" pulumi-lang-python=\"`href`\" pulumi-lang-yaml=\"`href`\" pulumi-lang-java=\"`href`\" pulumi-lang-hcl=\"`href`\"\u003e`href`\u003c/span\u003e. Only the 'v2' design shows them. An empty list removes them all.\n" }, "organizationId": { "type": "string", "description": "The ID of the organization the page belongs to, such as '123'. Get the ID from \u003cspan pulumi-lang-nodejs=\"`organizationId`\" pulumi-lang-dotnet=\"`OrganizationId`\" pulumi-lang-go=\"`organizationId`\" pulumi-lang-python=\"`organization_id`\" pulumi-lang-yaml=\"`organizationId`\" pulumi-lang-java=\"`organizationId`\" pulumi-lang-hcl=\"`organization_id`\"\u003e`organizationId`\u003c/span\u003e in [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Required on create when you sign in with OAuth and can access more than one organization.\n" }, "password": { "type": "string", "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e, unless \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e is set too. An empty password removes the password and turns protection off. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "passwordEnabled": { "type": "boolean", "description": "Whether visitors need a password to view the page. Off unless you turn it on or set \u003cspan pulumi-lang-nodejs=\"`password`\" pulumi-lang-dotnet=\"`Password`\" pulumi-lang-go=\"`password`\" pulumi-lang-python=\"`password`\" pulumi-lang-yaml=\"`password`\" pulumi-lang-java=\"`password`\" pulumi-lang-hcl=\"`password`\"\u003e`password`\u003c/span\u003e.\n" }, "published": { "type": "boolean", "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows. Defaults to true.\n" }, "requireSso": { "type": "boolean", "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e. Defaults to false.\n" }, "sections": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageSection:StatusPageSection" }, "description": "The page's sections and their resources, in display order. Only an update accepts it. Sending it replaces the whole structure, and sections and resources are matched by \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e. A section or resource without an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e is created, and one you leave out is removed from the page. Removing a resource doesn't change the monitor or other resource it shows. An attribute you leave out of a resource keeps its value. Leave \u003cspan pulumi-lang-nodejs=\"`sections`\" pulumi-lang-dotnet=\"`Sections`\" pulumi-lang-go=\"`sections`\" pulumi-lang-python=\"`sections`\" pulumi-lang-yaml=\"`sections`\" pulumi-lang-java=\"`sections`\" pulumi-lang-hcl=\"`sections`\"\u003e`sections`\u003c/span\u003e out to keep the structure as it is. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, so a reorder or a move updates it in place. An item that matches none keeps the id of the existing item at its position when no other item took that one, so a rename updates it in place too.\n" }, "statusPageGroupId": { "type": "string", "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](https://betterstack.com/docs/uptime/api/list-all-status-page-groups/).\n" }, "subdomain": { "type": "string", "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores.\n" }, "subscribable": { "type": "boolean", "description": "Whether visitors can subscribe to updates. Defaults to false.\n" }, "theme": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/statusPageTheme:StatusPageTheme" } ], "description": "Color theme. Only the 'v2' design uses it. Valid values: 'light', 'dark', 'system'. Defaults to 'light'.\n" }, "timezone": { "type": "string", "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name.\n" }, "treatNotMonitoredAsOperational": { "type": "boolean", "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored. Defaults to false.\n" }, "whitelabeled": { "type": "boolean", "description": "Whether to remove Better Stack branding from the page. Defaults to false.\n" } }, "requiredInputs": [ "companyName", "subdomain", "timezone" ], "stateInputs": { "description": "Input properties used for looking up and filtering StatusPage resources.\n", "properties": { "aggregateState": { "type": "string", "description": "The page's overall status. 'operational': No resource on the page is down, degraded or in maintenance. 'degraded': A resource is degraded and none is down. 'downtime': A resource is down. 'maintenance': A resource is in maintenance and none is down or degraded.\n" }, "announcement": { "type": "string", "description": "Announcement banner text.\n" }, "announcementEmbedCss": { "type": "string", "description": "Your own CSS for the announcement on the embeddable widget.\n" }, "announcementEmbedLink": { "type": "string", "description": "Link the announcement points to on the embeddable widget. Defaults to the status page.\n" }, "announcementEmbedVisible": { "type": "boolean", "description": "Whether the embeddable widget shows the announcement. Defaults to true.\n" }, "automaticReports": { "type": "boolean", "description": "Whether status page reports are created automatically for new incidents. Defaults to false.\n" }, "companyName": { "type": "string", "description": "Company name shown on the page.\n" }, "companyUrl": { "type": "string", "description": "Company website URL.\n" }, "contactUrl": { "type": "string", "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`.\n" }, "createdAt": { "type": "string", "description": "When the status page was created.\n" }, "customCss": { "type": "string", "description": "Custom CSS added to the page.\n" }, "customDomain": { "type": "string", "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.\n" }, "customJavascript": { "type": "string", "description": "Custom JavaScript added to the page.\n" }, "darkLogoRemoteUrl": { "type": "string", "description": "The URL the dark mode logo was fetched from. Remove the argument to remove the logo. When you send this and \u003cspan pulumi-lang-nodejs=\"`darkLogoUrl`\" pulumi-lang-dotnet=\"`DarkLogoUrl`\" pulumi-lang-go=\"`darkLogoUrl`\" pulumi-lang-python=\"`dark_logo_url`\" pulumi-lang-yaml=\"`darkLogoUrl`\" pulumi-lang-java=\"`darkLogoUrl`\" pulumi-lang-hcl=\"`dark_logo_url`\"\u003e`darkLogoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`darkLogoUrl`\" pulumi-lang-dotnet=\"`DarkLogoUrl`\" pulumi-lang-go=\"`darkLogoUrl`\" pulumi-lang-python=\"`dark_logo_url`\" pulumi-lang-yaml=\"`darkLogoUrl`\" pulumi-lang-java=\"`darkLogoUrl`\" pulumi-lang-hcl=\"`dark_logo_url`\"\u003e`darkLogoUrl`\u003c/span\u003e is used.\n" }, "darkLogoUrl": { "type": "string", "description": "The logo shown in dark mode. Responses return the URL of the stored logo. Accepts the URL of an image under 20 MB, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this status page is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "design": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/statusPageDesign:StatusPageDesign" } ], "description": "Page design. Defaults to 'v1'. 'v1': The classic design. 'v2': The modern design.\n" }, "faviconRemoteUrl": { "type": "string", "description": "The URL the favicon was fetched from. Accepts the URL of an image under 20 MB, and we fetch the favicon from it. Remove the argument to remove the favicon.\n" }, "faviconUrl": { "type": "string", "description": "The icon browsers show in the page's tab, as the URL of the stored favicon. Only the 'v2' design shows it.\n" }, "googleAnalyticsId": { "type": "string", "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`.\n" }, "hideFromSearchEngines": { "type": "boolean", "description": "Whether to hide the page from search engines with a 'noindex' tag. Defaults to false.\n" }, "history": { "type": "integer", "description": "Number of days of history the page shows, from 7 to 365. Defaults to '90'.\n" }, "ipAllowlist": { "type": "array", "items": { "type": "string" }, "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments. Set it to `[]` to let anyone view it.\n" }, "layout": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/statusPageLayout:StatusPageLayout" } ], "description": "Header layout of the page. Only the 'v2' design uses it. Valid values: 'vertical', 'horizontal'. Defaults to 'vertical'.\n" }, "logoRemoteUrl": { "type": "string", "description": "The URL the light mode logo was fetched from. Remove the argument to remove the logo. When you send this and \u003cspan pulumi-lang-nodejs=\"`logoUrl`\" pulumi-lang-dotnet=\"`LogoUrl`\" pulumi-lang-go=\"`logoUrl`\" pulumi-lang-python=\"`logo_url`\" pulumi-lang-yaml=\"`logoUrl`\" pulumi-lang-java=\"`logoUrl`\" pulumi-lang-hcl=\"`logo_url`\"\u003e`logoUrl`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`logoUrl`\" pulumi-lang-dotnet=\"`LogoUrl`\" pulumi-lang-go=\"`logoUrl`\" pulumi-lang-python=\"`logo_url`\" pulumi-lang-yaml=\"`logoUrl`\" pulumi-lang-java=\"`logoUrl`\" pulumi-lang-hcl=\"`logo_url`\"\u003e`logoUrl`\u003c/span\u003e is used.\n" }, "logoUrl": { "type": "string", "description": "The logo shown in light mode. Responses return the URL of the stored logo. Accepts the URL of an image under 20 MB, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "minIncidentLength": { "type": "integer", "description": "Shortest incident the page shows, in seconds. '0' shows every incident. Must be less than a year. Defaults to '0'.\n" }, "navigationLinks": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageNavigationLink:StatusPageNavigationLink" }, "description": "Up to four links in the page's navigation, each with \u003cspan pulumi-lang-nodejs=\"`text`\" pulumi-lang-dotnet=\"`Text`\" pulumi-lang-go=\"`text`\" pulumi-lang-python=\"`text`\" pulumi-lang-yaml=\"`text`\" pulumi-lang-java=\"`text`\" pulumi-lang-hcl=\"`text`\"\u003e`text`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`href`\" pulumi-lang-dotnet=\"`Href`\" pulumi-lang-go=\"`href`\" pulumi-lang-python=\"`href`\" pulumi-lang-yaml=\"`href`\" pulumi-lang-java=\"`href`\" pulumi-lang-hcl=\"`href`\"\u003e`href`\u003c/span\u003e. Only the 'v2' design shows them. An empty list removes them all.\n" }, "organizationId": { "type": "string", "description": "The ID of the organization the page belongs to, such as '123'. Get the ID from \u003cspan pulumi-lang-nodejs=\"`organizationId`\" pulumi-lang-dotnet=\"`OrganizationId`\" pulumi-lang-go=\"`organizationId`\" pulumi-lang-python=\"`organization_id`\" pulumi-lang-yaml=\"`organizationId`\" pulumi-lang-java=\"`organizationId`\" pulumi-lang-hcl=\"`organization_id`\"\u003e`organizationId`\u003c/span\u003e in [List teams](https://betterstack.com/docs/uptime/api/teams/list/). Required on create when you sign in with OAuth and can access more than one organization.\n" }, "password": { "type": "string", "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e, unless \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e is set too. An empty password removes the password and turns protection off. Better Stack never returns it, so Pulumi keeps the value you set.\n", "secret": true }, "passwordEnabled": { "type": "boolean", "description": "Whether visitors need a password to view the page. Off unless you turn it on or set \u003cspan pulumi-lang-nodejs=\"`password`\" pulumi-lang-dotnet=\"`Password`\" pulumi-lang-go=\"`password`\" pulumi-lang-python=\"`password`\" pulumi-lang-yaml=\"`password`\" pulumi-lang-java=\"`password`\" pulumi-lang-hcl=\"`password`\"\u003e`password`\u003c/span\u003e.\n" }, "publicUrl": { "type": "string", "description": "The address visitors open the page at. The \u003cspan pulumi-lang-nodejs=\"`customDomain`\" pulumi-lang-dotnet=\"`CustomDomain`\" pulumi-lang-go=\"`customDomain`\" pulumi-lang-python=\"`custom_domain`\" pulumi-lang-yaml=\"`customDomain`\" pulumi-lang-java=\"`customDomain`\" pulumi-lang-hcl=\"`custom_domain`\"\u003e`customDomain`\u003c/span\u003e when the page has one, otherwise the betterstack.com \u003cspan pulumi-lang-nodejs=\"`subdomain`\" pulumi-lang-dotnet=\"`Subdomain`\" pulumi-lang-go=\"`subdomain`\" pulumi-lang-python=\"`subdomain`\" pulumi-lang-yaml=\"`subdomain`\" pulumi-lang-java=\"`subdomain`\" pulumi-lang-hcl=\"`subdomain`\"\u003e`subdomain`\u003c/span\u003e.\n" }, "published": { "type": "boolean", "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows. Defaults to true.\n" }, "requireSso": { "type": "boolean", "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e. Defaults to false.\n" }, "sections": { "type": "array", "items": { "$ref": "#/types/betterstack:index/StatusPageSection:StatusPageSection" }, "description": "The page's sections and their resources, in display order. Only an update accepts it. Sending it replaces the whole structure, and sections and resources are matched by \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e. A section or resource without an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e is created, and one you leave out is removed from the page. Removing a resource doesn't change the monitor or other resource it shows. An attribute you leave out of a resource keeps its value. Leave \u003cspan pulumi-lang-nodejs=\"`sections`\" pulumi-lang-dotnet=\"`Sections`\" pulumi-lang-go=\"`sections`\" pulumi-lang-python=\"`sections`\" pulumi-lang-yaml=\"`sections`\" pulumi-lang-java=\"`sections`\" pulumi-lang-hcl=\"`sections`\"\u003e`sections`\u003c/span\u003e out to keep the structure as it is. In Pulumi, an item without an id keeps the id of the existing item with the same \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e, so a reorder or a move updates it in place. An item that matches none keeps the id of the existing item at its position when no other item took that one, so a rename updates it in place too.\n" }, "statusPageGroupId": { "type": "string", "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](https://betterstack.com/docs/uptime/api/list-all-status-page-groups/).\n" }, "subdomain": { "type": "string", "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores.\n" }, "subscribable": { "type": "boolean", "description": "Whether visitors can subscribe to updates. Defaults to false.\n" }, "theme": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/statusPageTheme:StatusPageTheme" } ], "description": "Color theme. Only the 'v2' design uses it. Valid values: 'light', 'dark', 'system'. Defaults to 'light'.\n" }, "timezone": { "type": "string", "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name.\n" }, "treatNotMonitoredAsOperational": { "type": "boolean", "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored. Defaults to false.\n" }, "updatedAt": { "type": "string", "description": "When the status page was last updated.\n" }, "whitelabeled": { "type": "boolean", "description": "Whether to remove Better Stack branding from the page. Defaults to false.\n" } }, "type": "object" } }, "betterstack:index/statusPageGroup:StatusPageGroup": { "description": "A group of related status pages. Status page groups belong to your organization, not to one team.\n\n## Example Usage\n\n### Create a status page group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.StatusPageGroup(\"example\", {\n name: \"Production Status Pages\",\n sortIndex: 1,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.StatusPageGroup(\"example\",\n name=\"Production Status Pages\",\n sort_index=1)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.StatusPageGroup(\"example\", new()\n {\n Name = \"Production Status Pages\",\n SortIndex = 1,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewStatusPageGroup(ctx, \"example\", \u0026betterstack.StatusPageGroupArgs{\n\t\t\tName: pulumi.String(\"Production Status Pages\"),\n\t\t\tSortIndex: pulumi.Int(1),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_status_page_group\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Production Status Pages\"\n sort_index = 1\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.StatusPageGroup;\nimport com.betterstack.pulumi.StatusPageGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new StatusPageGroup(\"example\", StatusPageGroupArgs.builder()\n .name(\"Production Status Pages\")\n .sortIndex(1)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:StatusPageGroup\n properties:\n name: Production Status Pages\n sortIndex: 1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### In a chosen organization\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst inAChosenOrganization = new betterstack.StatusPageGroup(\"in_a_chosen_organization\", {\n name: \"Customer status pages\",\n organizationId: \"123456\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nin_a_chosen_organization = betterstack.StatusPageGroup(\"in_a_chosen_organization\",\n name=\"Customer status pages\",\n organization_id=\"123456\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var inAChosenOrganization = new BetterStack.StatusPageGroup(\"in_a_chosen_organization\", new()\n {\n Name = \"Customer status pages\",\n OrganizationId = \"123456\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewStatusPageGroup(ctx, \"in_a_chosen_organization\", \u0026betterstack.StatusPageGroupArgs{\n\t\t\tName: pulumi.String(\"Customer status pages\"),\n\t\t\tOrganizationId: pulumi.String(\"123456\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_status_page_group\" \"in_a_chosen_organization\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Customer status pages\"\n organization_id = \"123456\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.StatusPageGroup;\nimport com.betterstack.pulumi.StatusPageGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var inAChosenOrganization = new StatusPageGroup(\"inAChosenOrganization\", StatusPageGroupArgs.builder()\n .name(\"Customer status pages\")\n .organizationId(\"123456\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n inAChosenOrganization:\n type: betterstack:StatusPageGroup\n name: in_a_chosen_organization\n properties:\n name: Customer status pages\n organizationId: '123456'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing status page group by its ID. Get the ID via [List status page groups](https://betterstack.com/docs/uptime/api/list-all-status-page-groups/).\n\n```sh\n$ pulumi import betterstack:index/statusPageGroup:StatusPageGroup example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the status page group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "organizationId": { "type": "string", "description": "Organization the group belongs to, such as '123'. Required when you sign in with OAuth and can access more than one organization. Without it, the group belongs to your token's organization. Not returned in responses. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sortIndex": { "type": "integer", "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as 'position'.\n" }, "updatedAt": { "type": "string", "description": "When the status page group was last updated.\n" } }, "required": [ "createdAt", "name", "organizationId", "updatedAt" ], "inputProperties": { "name": { "type": "string", "description": "Group name.\n" }, "organizationId": { "type": "string", "description": "Organization the group belongs to, such as '123'. Required when you sign in with OAuth and can access more than one organization. Without it, the group belongs to your token's organization. Not returned in responses. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sortIndex": { "type": "integer", "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as 'position'.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering StatusPageGroup resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the status page group was created.\n" }, "name": { "type": "string", "description": "Group name.\n" }, "organizationId": { "type": "string", "description": "Organization the group belongs to, such as '123'. Required when you sign in with OAuth and can access more than one organization. Without it, the group belongs to your token's organization. Not returned in responses. Better Stack never returns it, so Pulumi keeps the value you set.\n" }, "sortIndex": { "type": "integer", "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as 'position'.\n" }, "updatedAt": { "type": "string", "description": "When the status page group was last updated.\n" } }, "type": "object" } }, "betterstack:index/team:Team": { "description": "A team in the organization. Everything you create in any Better Stack product belongs to a team.\n\n\u003e Destroying a team deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Create a team\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Team(\"example\", {\n name: \"Platform team\",\n incidentGroupingPeriod: 600,\n incidentGroupingMetadataScope: [\"environment\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Team(\"example\",\n name=\"Platform team\",\n incident_grouping_period=600,\n incident_grouping_metadata_scope=[\"environment\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Team(\"example\", new()\n {\n Name = \"Platform team\",\n IncidentGroupingPeriod = 600,\n IncidentGroupingMetadataScope = new[]\n {\n \"environment\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewTeam(ctx, \"example\", \u0026betterstack.TeamArgs{\n\t\t\tName: pulumi.String(\"Platform team\"),\n\t\t\tIncidentGroupingPeriod: pulumi.Int(600),\n\t\t\tIncidentGroupingMetadataScope: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"environment\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_team\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Platform team\"\n incident_grouping_period = 600\n incident_grouping_metadata_scope = [\"environment\"]\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Team;\nimport com.betterstack.pulumi.TeamArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Team(\"example\", TeamArgs.builder()\n .name(\"Platform team\")\n .incidentGroupingPeriod(600)\n .incidentGroupingMetadataScope(\"environment\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Team\n properties:\n name: Platform team\n incidentGroupingPeriod: 600\n incidentGroupingMetadataScope:\n - environment\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Remind on-call people an hour ahead by push only\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst remindOnCallPeopleAnHourAheadByPushOnly = new betterstack.Team(\"remind_on_call_people_an_hour_ahead_by_push_only\", {\n name: \"Support team\",\n onCallReminderLeadTime: 3600,\n onCallReminderEmail: false,\n onCallReminderPush: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nremind_on_call_people_an_hour_ahead_by_push_only = betterstack.Team(\"remind_on_call_people_an_hour_ahead_by_push_only\",\n name=\"Support team\",\n on_call_reminder_lead_time=3600,\n on_call_reminder_email=False,\n on_call_reminder_push=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var remindOnCallPeopleAnHourAheadByPushOnly = new BetterStack.Team(\"remind_on_call_people_an_hour_ahead_by_push_only\", new()\n {\n Name = \"Support team\",\n OnCallReminderLeadTime = 3600,\n OnCallReminderEmail = false,\n OnCallReminderPush = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewTeam(ctx, \"remind_on_call_people_an_hour_ahead_by_push_only\", \u0026betterstack.TeamArgs{\n\t\t\tName: pulumi.String(\"Support team\"),\n\t\t\tOnCallReminderLeadTime: pulumi.Int(3600),\n\t\t\tOnCallReminderEmail: pulumi.Bool(false),\n\t\t\tOnCallReminderPush: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_team\" \"remind_on_call_people_an_hour_ahead_by_push_only\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Support team\"\n on_call_reminder_lead_time = 3600\n on_call_reminder_email = false\n on_call_reminder_push = true\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Team;\nimport com.betterstack.pulumi.TeamArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var remindOnCallPeopleAnHourAheadByPushOnly = new Team(\"remindOnCallPeopleAnHourAheadByPushOnly\", TeamArgs.builder()\n .name(\"Support team\")\n .onCallReminderLeadTime(3600)\n .onCallReminderEmail(false)\n .onCallReminderPush(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n remindOnCallPeopleAnHourAheadByPushOnly:\n type: betterstack:Team\n name: remind_on_call_people_an_hour_ahead_by_push_only\n properties:\n name: Support team\n onCallReminderLeadTime: 3600\n onCallReminderEmail: false\n onCallReminderPush: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Alert only for the first incident in a group\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst alertOnlyForTheFirstIncidentInAGroup = new betterstack.Team(\"alert_only_for_the_first_incident_in_a_group\", {\n name: \"Payments team\",\n incidentGroupingPeriod: 1800,\n notifyAboutAllIncidentsInAGroup: false,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nalert_only_for_the_first_incident_in_a_group = betterstack.Team(\"alert_only_for_the_first_incident_in_a_group\",\n name=\"Payments team\",\n incident_grouping_period=1800,\n notify_about_all_incidents_in_a_group=False)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var alertOnlyForTheFirstIncidentInAGroup = new BetterStack.Team(\"alert_only_for_the_first_incident_in_a_group\", new()\n {\n Name = \"Payments team\",\n IncidentGroupingPeriod = 1800,\n NotifyAboutAllIncidentsInAGroup = false,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewTeam(ctx, \"alert_only_for_the_first_incident_in_a_group\", \u0026betterstack.TeamArgs{\n\t\t\tName: pulumi.String(\"Payments team\"),\n\t\t\tIncidentGroupingPeriod: pulumi.Int(1800),\n\t\t\tNotifyAboutAllIncidentsInAGroup: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_team\" \"alert_only_for_the_first_incident_in_a_group\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"Payments team\"\n incident_grouping_period = 1800\n notify_about_all_incidents_in_a_group = false\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Team;\nimport com.betterstack.pulumi.TeamArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var alertOnlyForTheFirstIncidentInAGroup = new Team(\"alertOnlyForTheFirstIncidentInAGroup\", TeamArgs.builder()\n .name(\"Payments team\")\n .incidentGroupingPeriod(1800)\n .notifyAboutAllIncidentsInAGroup(false)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n alertOnlyForTheFirstIncidentInAGroup:\n type: betterstack:Team\n name: alert_only_for_the_first_incident_in_a_group\n properties:\n name: Payments team\n incidentGroupingPeriod: 1800\n notifyAboutAllIncidentsInAGroup: false\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The 'logo_url' and \u003cspan pulumi-lang-nodejs=\"`logoRemoteUrl`\" pulumi-lang-dotnet=\"`LogoRemoteUrl`\" pulumi-lang-go=\"`logoRemoteUrl`\" pulumi-lang-python=\"`logo_remote_url`\" pulumi-lang-yaml=\"`logoRemoteUrl`\" pulumi-lang-java=\"`logoRemoteUrl`\" pulumi-lang-hcl=\"`logo_remote_url`\"\u003e`logoRemoteUrl`\u003c/span\u003e attributes must be absolute URLs, or the change is refused. A URL that redirects isn't followed.\n\n\u003e A team's \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e is a string with a 't' prefix, such as `\"t123\"`, the same form the other Better Stack APIs use for 'team_id'.\n\n\u003e When a change's incident settings are refused, nothing changes. When a new team's incident settings are refused, the team isn't created.\n\n## Import\n\nImport an existing team by its ID. Get the ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n\n```sh\n$ pulumi import betterstack:index/team:Team example t123\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the team was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this team is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "incidentGroupingMetadataScope": { "type": "array", "items": { "type": "string" }, "description": "Metadata keys whose values must match for incidents to be grouped. New teams start with `[\"Origin\"]`. null groups the same way as `[\"Origin\"]`. Defaults to `[\"Origin\"]`.\n" }, "incidentGroupingPeriod": { "type": "integer", "description": "Seconds within which a new incident is grouped with an earlier one that's still open, for example '300' for 5 minutes. '0' never groups incidents. From '0' to '2147483647', and new teams start at '300'. Defaults to '300'.\n" }, "logoRemoteUrl": { "type": "string", "description": "The URL the team's logo was fetched from. Accepts an image URL, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "name": { "type": "string", "description": "The team's name. Must be unique in the organization, ignoring letter case.\n" }, "notifyAboutAllIncidentsInAGroup": { "type": "boolean", "description": "Whether every incident in a group alerts, rather than only the first. New teams start at true. Defaults to true.\n" }, "onCallReminderEmail": { "type": "boolean", "description": "Send on-call reminders by e-mail. New teams start at true.\n" }, "onCallReminderLeadTime": { "type": "integer", "description": "Seconds before an on-call shift starts to remind the person, or '0' for no reminder. The other values are '3600', '21600', '43200', '86400', '172800' and '604800'. New teams start at '86400'.\n" }, "onCallReminderPush": { "type": "boolean", "description": "Send on-call reminders as push notifications. New teams start at true.\n" }, "onCallReminderSms": { "type": "boolean", "description": "Send on-call reminders by SMS. New teams start at false. Defaults to false.\n" }, "openedEmailsTrackingEnabled": { "type": "boolean", "description": "Whether the incident timeline records when a team member opens the e-mail about a new incident. New teams start at true. Defaults to true.\n" }, "organizationId": { "type": "string", "description": "ID of the organization the team belongs to.\n" }, "reportingEnabled": { "type": "boolean", "description": "Whether reporting is on, which unlocks the reports in Incidents. New teams start at false. Defaults to false.\n" }, "updatedAt": { "type": "string", "description": "When the team was last updated.\n" } }, "required": [ "createdAt", "deletionProtection", "incidentGroupingMetadataScope", "incidentGroupingPeriod", "name", "notifyAboutAllIncidentsInAGroup", "onCallReminderEmail", "onCallReminderLeadTime", "onCallReminderPush", "onCallReminderSms", "openedEmailsTrackingEnabled", "organizationId", "reportingEnabled", "updatedAt" ], "inputProperties": { "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this team is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "incidentGroupingMetadataScope": { "type": "array", "items": { "type": "string" }, "description": "Metadata keys whose values must match for incidents to be grouped. New teams start with `[\"Origin\"]`. null groups the same way as `[\"Origin\"]`. Defaults to `[\"Origin\"]`.\n" }, "incidentGroupingPeriod": { "type": "integer", "description": "Seconds within which a new incident is grouped with an earlier one that's still open, for example '300' for 5 minutes. '0' never groups incidents. From '0' to '2147483647', and new teams start at '300'. Defaults to '300'.\n" }, "logoRemoteUrl": { "type": "string", "description": "The URL the team's logo was fetched from. Accepts an image URL, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "name": { "type": "string", "description": "The team's name. Must be unique in the organization, ignoring letter case.\n" }, "notifyAboutAllIncidentsInAGroup": { "type": "boolean", "description": "Whether every incident in a group alerts, rather than only the first. New teams start at true. Defaults to true.\n" }, "onCallReminderEmail": { "type": "boolean", "description": "Send on-call reminders by e-mail. New teams start at true.\n" }, "onCallReminderLeadTime": { "type": "integer", "description": "Seconds before an on-call shift starts to remind the person, or '0' for no reminder. The other values are '3600', '21600', '43200', '86400', '172800' and '604800'. New teams start at '86400'.\n" }, "onCallReminderPush": { "type": "boolean", "description": "Send on-call reminders as push notifications. New teams start at true.\n" }, "onCallReminderSms": { "type": "boolean", "description": "Send on-call reminders by SMS. New teams start at false. Defaults to false.\n" }, "openedEmailsTrackingEnabled": { "type": "boolean", "description": "Whether the incident timeline records when a team member opens the e-mail about a new incident. New teams start at true. Defaults to true.\n" }, "reportingEnabled": { "type": "boolean", "description": "Whether reporting is on, which unlocks the reports in Incidents. New teams start at false. Defaults to false.\n" } }, "requiredInputs": [ "name" ], "stateInputs": { "description": "Input properties used for looking up and filtering Team resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the team was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this team is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "incidentGroupingMetadataScope": { "type": "array", "items": { "type": "string" }, "description": "Metadata keys whose values must match for incidents to be grouped. New teams start with `[\"Origin\"]`. null groups the same way as `[\"Origin\"]`. Defaults to `[\"Origin\"]`.\n" }, "incidentGroupingPeriod": { "type": "integer", "description": "Seconds within which a new incident is grouped with an earlier one that's still open, for example '300' for 5 minutes. '0' never groups incidents. From '0' to '2147483647', and new teams start at '300'. Defaults to '300'.\n" }, "logoRemoteUrl": { "type": "string", "description": "The URL the team's logo was fetched from. Accepts an image URL, and we fetch the logo from it. Remove the argument to remove the logo.\n" }, "name": { "type": "string", "description": "The team's name. Must be unique in the organization, ignoring letter case.\n" }, "notifyAboutAllIncidentsInAGroup": { "type": "boolean", "description": "Whether every incident in a group alerts, rather than only the first. New teams start at true. Defaults to true.\n" }, "onCallReminderEmail": { "type": "boolean", "description": "Send on-call reminders by e-mail. New teams start at true.\n" }, "onCallReminderLeadTime": { "type": "integer", "description": "Seconds before an on-call shift starts to remind the person, or '0' for no reminder. The other values are '3600', '21600', '43200', '86400', '172800' and '604800'. New teams start at '86400'.\n" }, "onCallReminderPush": { "type": "boolean", "description": "Send on-call reminders as push notifications. New teams start at true.\n" }, "onCallReminderSms": { "type": "boolean", "description": "Send on-call reminders by SMS. New teams start at false. Defaults to false.\n" }, "openedEmailsTrackingEnabled": { "type": "boolean", "description": "Whether the incident timeline records when a team member opens the e-mail about a new incident. New teams start at true. Defaults to true.\n" }, "organizationId": { "type": "string", "description": "ID of the organization the team belongs to.\n" }, "reportingEnabled": { "type": "boolean", "description": "Whether reporting is on, which unlocks the reports in Incidents. New teams start at false. Defaults to false.\n" }, "updatedAt": { "type": "string", "description": "When the team was last updated.\n" } }, "type": "object" } }, "betterstack:index/teamMember:TeamMember": { "description": "A member of a team, or a pending invitation to join it, with the member's role or the role the invitation gives.\n\n\u003e Creating a team member e-mails them an invitation to join the team, and they join once they accept it. Someone already in another team of the organization joins at once, with no invitation.\n\n\u003e Destroying a team member deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n### Invite team member\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst inviteTeamMember = new betterstack.TeamMember(\"invite_team_member\", {email: \"new.user@example.com\"});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ninvite_team_member = betterstack.TeamMember(\"invite_team_member\", email=\"new.user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var inviteTeamMember = new BetterStack.TeamMember(\"invite_team_member\", new()\n {\n Email = \"new.user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewTeamMember(ctx, \"invite_team_member\", \u0026betterstack.TeamMemberArgs{\n\t\t\tEmail: pulumi.String(\"new.user@example.com\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_team_member\" \"invite_team_member\" {\n lifecycle {\n create_before_destroy = true\n }\n email = \"new.user@example.com\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.TeamMember;\nimport com.betterstack.pulumi.TeamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var inviteTeamMember = new TeamMember(\"inviteTeamMember\", TeamMemberArgs.builder()\n .email(\"new.user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n inviteTeamMember:\n type: betterstack:TeamMember\n name: invite_team_member\n properties:\n email: new.user@example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Invite as team lead\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst inviteAsTeamLead = new betterstack.TeamMember(\"invite_as_team_lead\", {\n email: \"new.user@example.com\",\n role: betterstack.TeamMemberRole.TeamLead,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ninvite_as_team_lead = betterstack.TeamMember(\"invite_as_team_lead\",\n email=\"new.user@example.com\",\n role=betterstack.TeamMemberRole.TEAM_LEAD)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var inviteAsTeamLead = new BetterStack.TeamMember(\"invite_as_team_lead\", new()\n {\n Email = \"new.user@example.com\",\n Role = BetterStack.TeamMemberRole.TeamLead,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewTeamMember(ctx, \"invite_as_team_lead\", \u0026betterstack.TeamMemberArgs{\n\t\t\tEmail: pulumi.String(\"new.user@example.com\"),\n\t\t\tRole: pulumi.String(betterstack.TeamMemberRoleTeamLead),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_team_member\" \"invite_as_team_lead\" {\n lifecycle {\n create_before_destroy = true\n }\n email = \"new.user@example.com\"\n role = \"team_lead\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.TeamMember;\nimport com.betterstack.pulumi.TeamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var inviteAsTeamLead = new TeamMember(\"inviteAsTeamLead\", TeamMemberArgs.builder()\n .email(\"new.user@example.com\")\n .role(\"team_lead\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n inviteAsTeamLead:\n type: betterstack:TeamMember\n name: invite_as_team_lead\n properties:\n email: new.user@example.com\n role: team_lead\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Invite into a custom role by ID\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst inviteIntoACustomRoleById = new betterstack.TeamMember(\"invite_into_a_custom_role_by_id\", {\n email: \"new.user@example.com\",\n roleId: \"206\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\ninvite_into_a_custom_role_by_id = betterstack.TeamMember(\"invite_into_a_custom_role_by_id\",\n email=\"new.user@example.com\",\n role_id=\"206\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var inviteIntoACustomRoleById = new BetterStack.TeamMember(\"invite_into_a_custom_role_by_id\", new()\n {\n Email = \"new.user@example.com\",\n RoleId = \"206\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewTeamMember(ctx, \"invite_into_a_custom_role_by_id\", \u0026betterstack.TeamMemberArgs{\n\t\t\tEmail: pulumi.String(\"new.user@example.com\"),\n\t\t\tRoleId: pulumi.String(\"206\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_team_member\" \"invite_into_a_custom_role_by_id\" {\n lifecycle {\n create_before_destroy = true\n }\n email = \"new.user@example.com\"\n role_id = \"206\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.TeamMember;\nimport com.betterstack.pulumi.TeamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var inviteIntoACustomRoleById = new TeamMember(\"inviteIntoACustomRoleById\", TeamMemberArgs.builder()\n .email(\"new.user@example.com\")\n .roleId(\"206\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n inviteIntoACustomRoleById:\n type: betterstack:TeamMember\n name: invite_into_a_custom_role_by_id\n properties:\n email: new.user@example.com\n roleId: '206'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing team member by its ID. The ID is the e-mail address, such as `alice@example.com`.\n\n```sh\n$ pulumi import betterstack:index/teamMember:TeamMember example alice@example.com\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the user account was created. Absent on a pending invitation.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this team member is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "email": { "type": "string", "description": "E-mail address. Required to invite, and can't be changed afterward.\n" }, "firstName": { "type": "string", "description": "The member's first name, or null when they haven't set one. Absent on a pending invitation.\n" }, "invitedAt": { "type": "string", "description": "When the invitation was created. Present only on a pending invitation.\n" }, "lastName": { "type": "string", "description": "The member's last name, or null when they haven't set one. Absent on a pending invitation.\n" }, "mobileAppPlatforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms the member's mobile apps receive push notifications on, 'ios' and 'android', or empty when none. Absent on a pending invitation.\n" }, "role": { "type": "string", "description": "The member's built-in role in this team. A user can have a different role in each team. null on an invitation to a custom role. With neither \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e nor \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e, an invitation gets the responder role. 'admin': Can access every feature in every team, including billing, organization settings and API tokens. The API never assigns it. 'billing_admin': Can manage subscriptions, invoices and payment settings for the whole organization, without access to operational features. 'team_lead': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, invite team members and change their roles. 'responder': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, and invite team members. 'member': Can access sources, Live tail, dashboards, error tracking, session replays and AI SRE, without monitors, incidents or on-call. 'custom': The member has a custom role. Assign one with \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e instead.\n" }, "roleId": { "type": "string", "description": "ID of the member's role, or of the role an invitation gives, custom roles included. Get the IDs via [List roles](https://betterstack.com/docs/uptime/api/roles/list/). When \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e is also given, both must name the same role.\n" }, "teamId": { "type": "string", "description": "Team the membership is in, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "required": [ "createdAt", "deletionProtection", "email", "firstName", "invitedAt", "lastName", "mobileAppPlatforms", "role", "roleId", "teamId" ], "inputProperties": { "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this team member is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "email": { "type": "string", "description": "E-mail address. Required to invite, and can't be changed afterward.\n" }, "role": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/teamMemberRole:TeamMemberRole" } ], "description": "The member's built-in role in this team. A user can have a different role in each team. null on an invitation to a custom role. With neither \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e nor \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e, an invitation gets the responder role. 'admin': Can access every feature in every team, including billing, organization settings and API tokens. The API never assigns it. 'billing_admin': Can manage subscriptions, invoices and payment settings for the whole organization, without access to operational features. 'team_lead': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, invite team members and change their roles. 'responder': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, and invite team members. 'member': Can access sources, Live tail, dashboards, error tracking, session replays and AI SRE, without monitors, incidents or on-call. 'custom': The member has a custom role. Assign one with \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e instead.\n" }, "roleId": { "type": "string", "description": "ID of the member's role, or of the role an invitation gives, custom roles included. Get the IDs via [List roles](https://betterstack.com/docs/uptime/api/roles/list/). When \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e is also given, both must name the same role.\n" }, "teamId": { "type": "string", "description": "Team the membership is in, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "requiredInputs": [ "email" ], "stateInputs": { "description": "Input properties used for looking up and filtering TeamMember resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the user account was created. Absent on a pending invitation.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this team member is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "email": { "type": "string", "description": "E-mail address. Required to invite, and can't be changed afterward.\n" }, "firstName": { "type": "string", "description": "The member's first name, or null when they haven't set one. Absent on a pending invitation.\n" }, "invitedAt": { "type": "string", "description": "When the invitation was created. Present only on a pending invitation.\n" }, "lastName": { "type": "string", "description": "The member's last name, or null when they haven't set one. Absent on a pending invitation.\n" }, "mobileAppPlatforms": { "type": "array", "items": { "type": "string" }, "description": "The platforms the member's mobile apps receive push notifications on, 'ios' and 'android', or empty when none. Absent on a pending invitation.\n" }, "role": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/teamMemberRole:TeamMemberRole" } ], "description": "The member's built-in role in this team. A user can have a different role in each team. null on an invitation to a custom role. With neither \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e nor \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e, an invitation gets the responder role. 'admin': Can access every feature in every team, including billing, organization settings and API tokens. The API never assigns it. 'billing_admin': Can manage subscriptions, invoices and payment settings for the whole organization, without access to operational features. 'team_lead': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, invite team members and change their roles. 'responder': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, and invite team members. 'member': Can access sources, Live tail, dashboards, error tracking, session replays and AI SRE, without monitors, incidents or on-call. 'custom': The member has a custom role. Assign one with \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e instead.\n" }, "roleId": { "type": "string", "description": "ID of the member's role, or of the role an invitation gives, custom roles included. Get the IDs via [List roles](https://betterstack.com/docs/uptime/api/roles/list/). When \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e is also given, both must name the same role.\n" }, "teamId": { "type": "string", "description": "Team the membership is in, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to create this object in another team. Changing it replaces the resource, because an object can't move to another team.\n" } }, "type": "object" } }, "betterstack:index/valkey:Valkey": { "description": "A managed Valkey instance, with one primary and up to two replicas.\n\n\u003e Destroying a Valkey instance deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Valkey(\"example\", {\n name: \"example\",\n type: \"VK1\",\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Valkey(\"example\",\n name=\"example\",\n type=\"VK1\",\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Valkey(\"example\", new()\n {\n Name = \"example\",\n Type = \"VK1\",\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewValkey(ctx, \"example\", \u0026betterstack.ValkeyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"VK1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_valkey\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"VK1\"\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Valkey;\nimport com.betterstack.pulumi.ValkeyArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Valkey(\"example\", ValkeyArgs.builder()\n .name(\"example\")\n .type(\"VK1\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Valkey\n properties:\n name: example\n type: VK1\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport an existing Valkey instance by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/valkey:Valkey example 12345\n```\n\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the instance to now.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this valkey is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/ValkeyEndpoint:ValkeyEndpoint", "description": "Where to connect to the current primary.\n" }, "engineVersion": { "type": "string", "description": "The Valkey version, such as `9.1`. Get the versions via [List Valkey versions](https://betterstack.com/docs/cloud/api/valkey-versions/list-valkey-versions/).\n" }, "evictionPolicy": { "type": "string", "description": "What Valkey does when memory is full, as its `maxmemory-policy` setting. 'noeviction': Valkey refuses writes when memory is full. `allkeys-lru`: Valkey evicts the least recently used keys. `allkeys-lfu`: Valkey evicts the least frequently used keys. `allkeys-random`: Valkey evicts random keys. `volatile-lru`: Valkey evicts the least recently used keys that have an expiry. `volatile-lfu`: Valkey evicts the least frequently used keys that have an expiry. `volatile-random`: Valkey evicts random keys that have an expiry. `volatile-ttl`: Valkey evicts the keys with an expiry that expire soonest.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to the instance. An instance can have at most one firewall.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was created, or null when the instance has no snapshot.\n" }, "maxConnections": { "type": "integer", "description": "The most client connections the type accepts.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ValkeyMember:ValkeyMember" }, "description": "The instance's primary and replicas, with their addresses in your private networks.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's Valkey instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the instance.\n" }, "persistence": { "type": "string", "description": "Whether Valkey keeps the data across restarts. Snapshots work either way. 'rdb': Valkey keeps the data across restarts. 'none': Valkey keeps the data in memory only, as a pure cache.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the primary accepts connections with TLS on a public IP, on port 6380. The port opens shortly after the response.\n" }, "replicaCount": { "type": "integer", "description": "How many replicas the instance has besides the primary, from '0' to '2'. We add or remove replicas shortly after the response.\n" }, "status": { "type": "string", "description": "The instance's state. A new instance is ready once it's 'running'. A 'running' instance can still be adding a replica or opening its public TLS endpoint. 'provisioning': We're creating the instance. 'running': The instance is ready. 'degraded': A node doesn't respond. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the type. When the change doesn't complete, \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says so, and so do the instance's events. 'upgrading': We're upgrading the Valkey version. The upgrade is done when the instance is 'running' on the new \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e. When the instance is 'running' on the old version, the upgrade failed. 'restoring': We're restoring a snapshot onto the instance. The restore is done when the instance is 'running'. 'failed': The instance couldn't be created. A failed instance stays in this state. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "What needs attention now, such as a node that doesn't respond or a rescale or upgrade that didn't complete. null when nothing needs attention.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Can't be changed after the instance is created.\n" }, "term": { "type": "string", "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `VK2`. Get the types via [List Valkey types](https://betterstack.com/docs/cloud/api/valkey-types/list-valkey-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last changed.\n" }, "usableMemoryGb": { "type": "integer", "description": "Memory for your data on each node, in GiB.\n" } }, "required": [ "availableEngineVersions", "createdAt", "deletionProtection", "endpoint", "engineVersion", "evictionPolicy", "firewallIds", "latestSnapshotAt", "maxConnections", "members", "metadata", "name", "networkIds", "persistence", "publicAccess", "replicaCount", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableMemoryGb" ], "inputProperties": { "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this valkey is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "engineVersion": { "type": "string", "description": "The Valkey version, such as `9.1`. Get the versions via [List Valkey versions](https://betterstack.com/docs/cloud/api/valkey-versions/list-valkey-versions/).\n" }, "evictionPolicy": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyEvictionPolicy:ValkeyEvictionPolicy" } ], "description": "What Valkey does when memory is full, as its `maxmemory-policy` setting. 'noeviction': Valkey refuses writes when memory is full. `allkeys-lru`: Valkey evicts the least recently used keys. `allkeys-lfu`: Valkey evicts the least frequently used keys. `allkeys-random`: Valkey evicts random keys. `volatile-lru`: Valkey evicts the least recently used keys that have an expiry. `volatile-lfu`: Valkey evicts the least frequently used keys that have an expiry. `volatile-random`: Valkey evicts random keys that have an expiry. `volatile-ttl`: Valkey evicts the keys with an expiry that expire soonest.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to the instance. An instance can have at most one firewall.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's Valkey instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the instance.\n" }, "persistence": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyPersistence:ValkeyPersistence" } ], "description": "Whether Valkey keeps the data across restarts. Snapshots work either way. 'rdb': Valkey keeps the data across restarts. 'none': Valkey keeps the data in memory only, as a pure cache.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the primary accepts connections with TLS on a public IP, on port 6380. The port opens shortly after the response.\n" }, "replicaCount": { "type": "integer", "description": "How many replicas the instance has besides the primary, from '0' to '2'. We add or remove replicas shortly after the response.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyTerm:ValkeyTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `VK2`. Get the types via [List Valkey types](https://betterstack.com/docs/cloud/api/valkey-types/list-valkey-types/).\n" } }, "requiredInputs": [ "name", "teamId", "type" ], "stateInputs": { "description": "Input properties used for looking up and filtering Valkey resources.\n", "properties": { "availableEngineVersions": { "type": "array", "items": { "type": "string" }, "description": "The versions you can upgrade the instance to now.\n" }, "createdAt": { "type": "string", "description": "When the instance was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this valkey is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "endpoint": { "$ref": "#/types/betterstack:index/ValkeyEndpoint:ValkeyEndpoint", "description": "Where to connect to the current primary.\n" }, "engineVersion": { "type": "string", "description": "The Valkey version, such as `9.1`. Get the versions via [List Valkey versions](https://betterstack.com/docs/cloud/api/valkey-versions/list-valkey-versions/).\n" }, "evictionPolicy": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyEvictionPolicy:ValkeyEvictionPolicy" } ], "description": "What Valkey does when memory is full, as its `maxmemory-policy` setting. 'noeviction': Valkey refuses writes when memory is full. `allkeys-lru`: Valkey evicts the least recently used keys. `allkeys-lfu`: Valkey evicts the least frequently used keys. `allkeys-random`: Valkey evicts random keys. `volatile-lru`: Valkey evicts the least recently used keys that have an expiry. `volatile-lfu`: Valkey evicts the least frequently used keys that have an expiry. `volatile-random`: Valkey evicts random keys that have an expiry. `volatile-ttl`: Valkey evicts the keys with an expiry that expire soonest.\n" }, "firewallIds": { "type": "array", "items": { "type": "string" }, "description": "The ID of the firewall attached to the instance. An instance can have at most one firewall.\n" }, "latestSnapshotAt": { "type": "string", "description": "When the newest available snapshot was created, or null when the instance has no snapshot.\n" }, "maxConnections": { "type": "integer", "description": "The most client connections the type accepts.\n" }, "members": { "type": "array", "items": { "$ref": "#/types/betterstack:index/ValkeyMember:ValkeyMember" }, "description": "The instance's primary and replicas, with their addresses in your private networks.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. On update, the tags you send replace every tag, so an empty object removes them all.\n" }, "name": { "type": "string", "description": "The instance's name, at most 255 characters. Must be unique among your organization's Valkey instances that aren't 'destroyed' or 'failed'.\n" }, "networkIds": { "type": "array", "items": { "type": "string" }, "description": "The IDs of the private networks attached to the instance.\n" }, "persistence": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyPersistence:ValkeyPersistence" } ], "description": "Whether Valkey keeps the data across restarts. Snapshots work either way. 'rdb': Valkey keeps the data across restarts. 'none': Valkey keeps the data in memory only, as a pure cache.\n" }, "publicAccess": { "type": "boolean", "description": "Whether the primary accepts connections with TLS on a public IP, on port 6380. The port opens shortly after the response.\n" }, "replicaCount": { "type": "integer", "description": "How many replicas the instance has besides the primary, from '0' to '2'. We add or remove replicas shortly after the response.\n" }, "status": { "type": "string", "description": "The instance's state. A new instance is ready once it's 'running'. A 'running' instance can still be adding a replica or opening its public TLS endpoint. 'provisioning': We're creating the instance. 'running': The instance is ready. 'degraded': A node doesn't respond. \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says which. 'rescaling': We're changing the type. When the change doesn't complete, \u003cspan pulumi-lang-nodejs=\"`statusMessage`\" pulumi-lang-dotnet=\"`StatusMessage`\" pulumi-lang-go=\"`statusMessage`\" pulumi-lang-python=\"`status_message`\" pulumi-lang-yaml=\"`statusMessage`\" pulumi-lang-java=\"`statusMessage`\" pulumi-lang-hcl=\"`status_message`\"\u003e`statusMessage`\u003c/span\u003e says so, and so do the instance's events. 'upgrading': We're upgrading the Valkey version. The upgrade is done when the instance is 'running' on the new \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e. When the instance is 'running' on the old version, the upgrade failed. 'restoring': We're restoring a snapshot onto the instance. The restore is done when the instance is 'running'. 'failed': The instance couldn't be created. A failed instance stays in this state. 'destroyed': The instance is deleted.\n" }, "statusMessage": { "type": "string", "description": "What needs attention now, such as a node that doesn't respond or a rescale or upgrade that didn't complete. null when nothing needs attention.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the instance. Can't be changed after the instance is created.\n" }, "term": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyTerm:ValkeyTerm" } ], "description": "The billing term. On update, a new term starts at once, and billing ends the current one. Defaults to 'monthly'. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n" }, "type": { "type": "string", "description": "The instance's type, such as `VK2`. Get the types via [List Valkey types](https://betterstack.com/docs/cloud/api/valkey-types/list-valkey-types/).\n" }, "updatedAt": { "type": "string", "description": "When the instance was last changed.\n" }, "usableMemoryGb": { "type": "integer", "description": "Memory for your data on each node, in GiB.\n" } }, "type": "object" } }, "betterstack:index/valkeyScheduledSnapshot:ValkeyScheduledSnapshot": { "description": "A schedule that creates a snapshot of a Valkey instance at a regular interval, always from the instance's current primary.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Valkey(\"example\", {\n name: \"example\",\n type: \"VK1\",\n teamId: \"t123\",\n});\nconst exampleValkeyScheduledSnapshot = new betterstack.ValkeyScheduledSnapshot(\"example\", {\n valkeyId: example.id,\n frequency: betterstack.ValkeyScheduledSnapshotFrequency.Hourly,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Valkey(\"example\",\n name=\"example\",\n type=\"VK1\",\n team_id=\"t123\")\nexample_valkey_scheduled_snapshot = betterstack.ValkeyScheduledSnapshot(\"example\",\n valkey_id=example.id,\n frequency=betterstack.ValkeyScheduledSnapshotFrequency.HOURLY)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Valkey(\"example\", new()\n {\n Name = \"example\",\n Type = \"VK1\",\n TeamId = \"t123\",\n });\n\n var exampleValkeyScheduledSnapshot = new BetterStack.ValkeyScheduledSnapshot(\"example\", new()\n {\n ValkeyId = example.Id,\n Frequency = BetterStack.ValkeyScheduledSnapshotFrequency.Hourly,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewValkey(ctx, \"example\", \u0026betterstack.ValkeyArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tType: pulumi.String(\"VK1\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewValkeyScheduledSnapshot(ctx, \"example\", \u0026betterstack.ValkeyScheduledSnapshotArgs{\n\t\t\tValkeyId: example.ID(),\n\t\t\tFrequency: pulumi.String(betterstack.ValkeyScheduledSnapshotFrequencyHourly),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_valkey\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n type = \"VK1\"\n team_id = \"t123\"\n}\nresource \"betterstack_valkey_scheduled_snapshot\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n valkey_id = betterstack_valkey.example.id\n frequency = \"hourly\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Valkey;\nimport com.betterstack.pulumi.ValkeyArgs;\nimport com.betterstack.pulumi.ValkeyScheduledSnapshot;\nimport com.betterstack.pulumi.ValkeyScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Valkey(\"example\", ValkeyArgs.builder()\n .name(\"example\")\n .type(\"VK1\")\n .teamId(\"t123\")\n .build());\n\n var exampleValkeyScheduledSnapshot = new ValkeyScheduledSnapshot(\"exampleValkeyScheduledSnapshot\", ValkeyScheduledSnapshotArgs.builder()\n .valkeyId(example.id())\n .frequency(\"hourly\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Valkey\n properties:\n name: example\n type: VK1\n teamId: t123\n exampleValkeyScheduledSnapshot:\n type: betterstack:ValkeyScheduledSnapshot\n name: example\n properties:\n valkeyId: ${example.id}\n frequency: hourly\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThis object lives under a parent collection, so its parent is part of its address.\n\n## Import\n\nImport an existing Valkey scheduled snapshot by its ID as `valkey_id/id`.\n\n```sh\n$ pulumi import betterstack:index/valkeyScheduledSnapshot:ValkeyScheduledSnapshot example \u003cvalkey_id\u003e/12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last ran, or null before the first run.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance's current primary. Changes after a failover.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" }, "valkeyId": { "type": "string", "description": "The ID of the Valkey instance. Changing it replaces the resource.\n" } }, "required": [ "createdAt", "frequency", "lastRunAt", "serverId", "updatedAt", "valkeyId" ], "inputProperties": { "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyScheduledSnapshotFrequency:ValkeyScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "valkeyId": { "type": "string", "description": "The ID of the Valkey instance. Changing it replaces the resource.\n" } }, "requiredInputs": [ "frequency", "valkeyId" ], "stateInputs": { "description": "Input properties used for looking up and filtering ValkeyScheduledSnapshot resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the schedule was created.\n" }, "frequency": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/valkeyScheduledSnapshotFrequency:ValkeyScheduledSnapshotFrequency" } ], "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n" }, "lastRunAt": { "type": "string", "description": "When the schedule last ran, or null before the first run.\n" }, "serverId": { "type": "string", "description": "The ID of the server that runs the instance's current primary. Changes after a failover.\n" }, "updatedAt": { "type": "string", "description": "When the schedule was last updated.\n" }, "valkeyId": { "type": "string", "description": "The ID of the Valkey instance. Changing it replaces the resource.\n" } }, "type": "object" } }, "betterstack:index/volume:Volume": { "description": "An NVMe disk that adds storage to a server. A volume is attached to one server at a time.\n\n\u003e Destroying a volume deletes its data for good, so \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e is on by default: a preview, an update or a pulumi destroy that destroys or replaces it fails until you set \u003cspan pulumi-lang-nodejs=\"`deletionProtection`\" pulumi-lang-dotnet=\"`DeletionProtection`\" pulumi-lang-go=\"`deletionProtection`\" pulumi-lang-python=\"`deletion_protection`\" pulumi-lang-yaml=\"`deletionProtection`\" pulumi-lang-java=\"`deletionProtection`\" pulumi-lang-hcl=\"`deletion_protection`\"\u003e`deletionProtection`\u003c/span\u003e to false and run pulumi up.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.SshKey(\"example\", {\n slug: \"my-laptop\",\n publicKey: \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n teamId: \"t123\",\n});\nconst exampleNetwork = new betterstack.Network(\"example\", {\n name: \"example\",\n ipPrefix: \"10.0.0.0\",\n ipPrefixLength: 16,\n teamId: \"t123\",\n});\nconst exampleServer = new betterstack.Server(\"example\", {\n teamId: \"t123\",\n name: \"web-1\",\n serverType: \"AM1\",\n image: \"ubuntu-26-04\",\n sshKeys: [example.slug],\n networkIds: [exampleNetwork.id],\n});\nconst exampleVolume = new betterstack.Volume(\"example\", {\n name: \"example\",\n sizeGb: 10,\n serverId: exampleServer.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.SshKey(\"example\",\n slug=\"my-laptop\",\n public_key=\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n team_id=\"t123\")\nexample_network = betterstack.Network(\"example\",\n name=\"example\",\n ip_prefix=\"10.0.0.0\",\n ip_prefix_length=16,\n team_id=\"t123\")\nexample_server = betterstack.Server(\"example\",\n team_id=\"t123\",\n name=\"web-1\",\n server_type=\"AM1\",\n image=\"ubuntu-26-04\",\n ssh_keys=[example.slug],\n network_ids=[example_network.id])\nexample_volume = betterstack.Volume(\"example\",\n name=\"example\",\n size_gb=10,\n server_id=example_server.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.SshKey(\"example\", new()\n {\n Slug = \"my-laptop\",\n PublicKey = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\",\n TeamId = \"t123\",\n });\n\n var exampleNetwork = new BetterStack.Network(\"example\", new()\n {\n Name = \"example\",\n IpPrefix = \"10.0.0.0\",\n IpPrefixLength = 16,\n TeamId = \"t123\",\n });\n\n var exampleServer = new BetterStack.Server(\"example\", new()\n {\n TeamId = \"t123\",\n Name = \"web-1\",\n ServerType = \"AM1\",\n Image = \"ubuntu-26-04\",\n SshKeys = new[]\n {\n example.Slug,\n },\n NetworkIds = new[]\n {\n exampleNetwork.Id,\n },\n });\n\n var exampleVolume = new BetterStack.Volume(\"example\", new()\n {\n Name = \"example\",\n SizeGb = 10,\n ServerId = exampleServer.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := betterstack.NewSshKey(ctx, \"example\", \u0026betterstack.SshKeyArgs{\n\t\t\tSlug: pulumi.String(\"my-laptop\"),\n\t\t\tPublicKey: pulumi.String(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleNetwork, err := betterstack.NewNetwork(ctx, \"example\", \u0026betterstack.NetworkArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tIpPrefix: pulumi.String(\"10.0.0.0\"),\n\t\t\tIpPrefixLength: pulumi.Int(16),\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleServer, err := betterstack.NewServer(ctx, \"example\", \u0026betterstack.ServerArgs{\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t\tName: pulumi.String(\"web-1\"),\n\t\t\tServerType: pulumi.String(\"AM1\"),\n\t\t\tImage: pulumi.String(\"ubuntu-26-04\"),\n\t\t\tSshKeys: pulumi.StringArray{\n\t\t\t\texample.Slug,\n\t\t\t},\n\t\t\tNetworkIds: pulumi.StringArray{\n\t\t\t\texampleNetwork.ID(),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = betterstack.NewVolume(ctx, \"example\", \u0026betterstack.VolumeArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tSizeGb: pulumi.Int(10),\n\t\t\tServerId: exampleServer.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_ssh_key\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n slug = \"my-laptop\"\n public_key = \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\"\n team_id = \"t123\"\n}\nresource \"betterstack_network\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n ip_prefix = \"10.0.0.0\"\n ip_prefix_length = 16\n team_id = \"t123\"\n}\nresource \"betterstack_server\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n team_id = \"t123\"\n name = \"web-1\"\n server_type = \"AM1\"\n image = \"ubuntu-26-04\"\n ssh_keys = [betterstack_ssh_key.example.slug]\n network_ids = [betterstack_network.example.id]\n}\nresource \"betterstack_volume\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n size_gb = 10\n server_id = betterstack_server.example.id\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.SshKey;\nimport com.betterstack.pulumi.SshKeyArgs;\nimport com.betterstack.pulumi.Network;\nimport com.betterstack.pulumi.NetworkArgs;\nimport com.betterstack.pulumi.Server;\nimport com.betterstack.pulumi.ServerArgs;\nimport com.betterstack.pulumi.Volume;\nimport com.betterstack.pulumi.VolumeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new SshKey(\"example\", SshKeyArgs.builder()\n .slug(\"my-laptop\")\n .publicKey(\"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\")\n .teamId(\"t123\")\n .build());\n\n var exampleNetwork = new Network(\"exampleNetwork\", NetworkArgs.builder()\n .name(\"example\")\n .ipPrefix(\"10.0.0.0\")\n .ipPrefixLength(16)\n .teamId(\"t123\")\n .build());\n\n var exampleServer = new Server(\"exampleServer\", ServerArgs.builder()\n .teamId(\"t123\")\n .name(\"web-1\")\n .serverType(\"AM1\")\n .image(\"ubuntu-26-04\")\n .sshKeys(example.slug())\n .networkIds(exampleNetwork.id())\n .build());\n\n var exampleVolume = new Volume(\"exampleVolume\", VolumeArgs.builder()\n .name(\"example\")\n .sizeGb(10)\n .serverId(exampleServer.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:SshKey\n properties:\n slug: my-laptop\n publicKey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEF0uIiLF54lpavoiG7O95cChLJ80vbi0Nh08Kf3+G/a me@example.com\n teamId: t123\n exampleNetwork:\n type: betterstack:Network\n name: example\n properties:\n name: example\n ipPrefix: 10.0.0.0\n ipPrefixLength: 16\n teamId: t123\n exampleServer:\n type: betterstack:Server\n name: example\n properties:\n teamId: t123\n name: web-1\n serverType: AM1\n image: ubuntu-26-04\n sshKeys:\n - ${example.slug}\n networkIds:\n - ${exampleNetwork.id}\n exampleVolume:\n type: betterstack:Volume\n name: example\n properties:\n name: example\n sizeGb: 10\n serverId: ${exampleServer.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e A volume is stored on one host. Attaching the volume to a server on another host moves the volume there first.\n\n## Import\n\nImport an existing volume by its ID. Get the ID from the matching get function, which finds it by \u003cspan pulumi-lang-nodejs=\"`name`\" pulumi-lang-dotnet=\"`Name`\" pulumi-lang-go=\"`name`\" pulumi-lang-python=\"`name`\" pulumi-lang-yaml=\"`name`\" pulumi-lang-java=\"`name`\" pulumi-lang-hcl=\"`name`\"\u003e`name`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e.\n\n```sh\n$ pulumi import betterstack:index/volume:Volume example 12345\n```\n\n", "properties": { "autoMount": { "type": "boolean", "description": "Whether the server mounts the volume automatically when it's attached. Needs a \u003cspan pulumi-lang-nodejs=\"`format`\" pulumi-lang-dotnet=\"`Format`\" pulumi-lang-go=\"`format`\" pulumi-lang-python=\"`format`\" pulumi-lang-yaml=\"`format`\" pulumi-lang-java=\"`format`\" pulumi-lang-hcl=\"`format`\"\u003e`format`\u003c/span\u003e. Defaults to false.\n" }, "createdAt": { "type": "string", "description": "When the volume was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this volume is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "devicePath": { "type": "string", "description": "The volume's device path on the server, under `/dev/disk/by-id`. Use the device path in `/etc/fstab`, since it doesn't change. null while the volume isn't attached.\n" }, "failureReason": { "type": "string", "description": "Why the last change to the volume failed, such as an attach, detach or resize. The reason stays after the volume is back to 'available' or 'attached'.\n" }, "format": { "type": "string", "description": "The filesystem we created on the volume, or null for a volume without a filesystem. Valid values: 'ext4', 'xfs'.\n" }, "lock": { "$ref": "#/types/betterstack:index/VolumeLock:VolumeLock", "description": "Our lock on the volume, or null. A locked volume can't be changed. Every change is refused with the code 'locked'.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "mountPath": { "type": "string", "description": "Where the server mounts the volume, under `/mnt`, or null when the volume isn't mounted.\n" }, "name": { "type": "string", "description": "The volume's name. Must be unique among the organization's volumes. A deleted volume's name can be used again.\n" }, "serverId": { "type": "string", "description": "The ID of the server the volume is attached to, or null when the volume isn't attached. The server must be running or stopped.\n" }, "sizeGb": { "type": "integer", "description": "The volume's size in GiB, from 1 to 3072. Can't be made smaller.\n" }, "status": { "type": "string", "description": "The volume's state. While a change to the volume is in progress, other changes to it are refused. 'creating': We're creating the volume. 'attaching': We're attaching the volume to a server. 'attached': The volume is attached to a server. 'detaching': We're detaching the volume. 'available': The volume isn't attached to a server. A new volume that ends up 'available' couldn't be attached, and \u003cspan pulumi-lang-nodejs=\"`failureReason`\" pulumi-lang-dotnet=\"`FailureReason`\" pulumi-lang-go=\"`failureReason`\" pulumi-lang-python=\"`failure_reason`\" pulumi-lang-yaml=\"`failureReason`\" pulumi-lang-java=\"`failureReason`\" pulumi-lang-hcl=\"`failure_reason`\"\u003e`failureReason`\u003c/span\u003e says why. 'moving': We're copying the volume to the host of the server you're attaching it to. 'resizing': We're growing the volume. 'snapshotting': We're creating a snapshot of the volume. 'deleting': We're deleting the volume. 'failed': We couldn't create the volume. A failed volume stays in this state. 'destroyed': The volume is deleted.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the volume. A volume belongs to the team of the server you created it on.\n" }, "updatedAt": { "type": "string", "description": "When the volume was last updated.\n" }, "volumeType": { "type": "string", "description": "The kind of storage, always 'nvme'. Valid values: 'nvme'. Defaults to 'nvme'.\n" } }, "required": [ "autoMount", "createdAt", "deletionProtection", "devicePath", "failureReason", "lock", "metadata", "mountPath", "name", "serverId", "sizeGb", "status", "teamId", "updatedAt", "volumeType" ], "inputProperties": { "autoMount": { "type": "boolean", "description": "Whether the server mounts the volume automatically when it's attached. Needs a \u003cspan pulumi-lang-nodejs=\"`format`\" pulumi-lang-dotnet=\"`Format`\" pulumi-lang-go=\"`format`\" pulumi-lang-python=\"`format`\" pulumi-lang-yaml=\"`format`\" pulumi-lang-java=\"`format`\" pulumi-lang-hcl=\"`format`\"\u003e`format`\u003c/span\u003e. Defaults to false.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this volume is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "format": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/volumeFormat:VolumeFormat" } ], "description": "The filesystem we created on the volume, or null for a volume without a filesystem. Valid values: 'ext4', 'xfs'.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "name": { "type": "string", "description": "The volume's name. Must be unique among the organization's volumes. A deleted volume's name can be used again.\n" }, "serverId": { "type": "string", "description": "The ID of the server the volume is attached to, or null when the volume isn't attached. The server must be running or stopped.\n" }, "sizeGb": { "type": "integer", "description": "The volume's size in GiB, from 1 to 3072. Can't be made smaller.\n" }, "volumeType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/volumeType:VolumeType" } ], "description": "The kind of storage, always 'nvme'. Valid values: 'nvme'. Defaults to 'nvme'.\n" } }, "requiredInputs": [ "name", "serverId", "sizeGb" ], "stateInputs": { "description": "Input properties used for looking up and filtering Volume resources.\n", "properties": { "autoMount": { "type": "boolean", "description": "Whether the server mounts the volume automatically when it's attached. Needs a \u003cspan pulumi-lang-nodejs=\"`format`\" pulumi-lang-dotnet=\"`Format`\" pulumi-lang-go=\"`format`\" pulumi-lang-python=\"`format`\" pulumi-lang-yaml=\"`format`\" pulumi-lang-java=\"`format`\" pulumi-lang-hcl=\"`format`\"\u003e`format`\u003c/span\u003e. Defaults to false.\n" }, "createdAt": { "type": "string", "description": "When the volume was created.\n" }, "deletionProtection": { "type": "boolean", "description": "Whether destroying or replacing this volume is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n" }, "devicePath": { "type": "string", "description": "The volume's device path on the server, under `/dev/disk/by-id`. Use the device path in `/etc/fstab`, since it doesn't change. null while the volume isn't attached.\n" }, "failureReason": { "type": "string", "description": "Why the last change to the volume failed, such as an attach, detach or resize. The reason stays after the volume is back to 'available' or 'attached'.\n" }, "format": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/volumeFormat:VolumeFormat" } ], "description": "The filesystem we created on the volume, or null for a volume without a filesystem. Valid values: 'ext4', 'xfs'.\n" }, "lock": { "$ref": "#/types/betterstack:index/VolumeLock:VolumeLock", "description": "Our lock on the volume, or null. A locked volume can't be changed. Every change is refused with the code 'locked'.\n" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10. An update replaces every tag. Set it to an empty object to remove them all.\n" }, "mountPath": { "type": "string", "description": "Where the server mounts the volume, under `/mnt`, or null when the volume isn't mounted.\n" }, "name": { "type": "string", "description": "The volume's name. Must be unique among the organization's volumes. A deleted volume's name can be used again.\n" }, "serverId": { "type": "string", "description": "The ID of the server the volume is attached to, or null when the volume isn't attached. The server must be running or stopped.\n" }, "sizeGb": { "type": "integer", "description": "The volume's size in GiB, from 1 to 3072. Can't be made smaller.\n" }, "status": { "type": "string", "description": "The volume's state. While a change to the volume is in progress, other changes to it are refused. 'creating': We're creating the volume. 'attaching': We're attaching the volume to a server. 'attached': The volume is attached to a server. 'detaching': We're detaching the volume. 'available': The volume isn't attached to a server. A new volume that ends up 'available' couldn't be attached, and \u003cspan pulumi-lang-nodejs=\"`failureReason`\" pulumi-lang-dotnet=\"`FailureReason`\" pulumi-lang-go=\"`failureReason`\" pulumi-lang-python=\"`failure_reason`\" pulumi-lang-yaml=\"`failureReason`\" pulumi-lang-java=\"`failureReason`\" pulumi-lang-hcl=\"`failure_reason`\"\u003e`failureReason`\u003c/span\u003e says why. 'moving': We're copying the volume to the host of the server you're attaching it to. 'resizing': We're growing the volume. 'snapshotting': We're creating a snapshot of the volume. 'deleting': We're deleting the volume. 'failed': We couldn't create the volume. A failed volume stays in this state. 'destroyed': The volume is deleted.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the volume. A volume belongs to the team of the server you created it on.\n" }, "updatedAt": { "type": "string", "description": "When the volume was last updated.\n" }, "volumeType": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/volumeType:VolumeType" } ], "description": "The kind of storage, always 'nvme'. Valid values: 'nvme'. Defaults to 'nvme'.\n" } }, "type": "object" } }, "betterstack:index/webhook:Webhook": { "description": "A URL we notify when your resources in this zone change.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = new betterstack.Webhook(\"example\", {\n name: \"example\",\n url: \"https://example.com\",\n webhookTypes: [\"server\"],\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.Webhook(\"example\",\n name=\"example\",\n url=\"https://example.com\",\n webhook_types=[\"server\"],\n team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new BetterStack.Webhook(\"example\", new()\n {\n Name = \"example\",\n Url = \"https://example.com\",\n WebhookTypes = new[]\n {\n \"server\",\n },\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.NewWebhook(ctx, \"example\", \u0026betterstack.WebhookArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tUrl: pulumi.String(\"https://example.com\"),\n\t\t\tWebhookTypes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"server\"),\n\t\t\t},\n\t\t\tTeamId: pulumi.String(\"t123\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\nresource \"betterstack_webhook\" \"example\" {\n lifecycle {\n create_before_destroy = true\n }\n name = \"example\"\n url = \"https://example.com\"\n webhook_types = [\"server\"]\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.Webhook;\nimport com.betterstack.pulumi.WebhookArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new Webhook(\"example\", WebhookArgs.builder()\n .name(\"example\")\n .url(\"https://example.com\")\n .webhookTypes(\"server\")\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: betterstack:Webhook\n properties:\n name: example\n url: https://example.com\n webhookTypes:\n - server\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003e The servers behind managed services, such as a MySQL instance's nodes, send no notifications.\n\n## Import\n\nImport an existing webhook by its ID.\n\n```sh\n$ pulumi import betterstack:index/webhook:Webhook example 12345\n```\n\n", "properties": { "createdAt": { "type": "string", "description": "When the webhook was created.\n" }, "failedDeliveries": { "type": "integer", "description": "The number of notifications in a row that we couldn't deliver. A delivered notification resets the count to '0'.\n" }, "name": { "type": "string", "description": "The webhook's name.\n" }, "secret": { "type": "string", "description": "The secret we sign notifications with. Each notification has an `X-Signature` header, `sha256=` followed by the HMAC-SHA256 of the body made with this secret. We create the secret with the webhook, and every response includes it. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "status": { "type": "string", "description": "Whether we send notifications to the webhook. Defaults to 'active'. 'active': We send notifications. 'paused': We send no notifications until you set it back to 'active'.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the webhook. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the webhook was last updated.\n" }, "url": { "type": "string", "description": "The URL we send notifications to. Use an HTTPS URL to protect what the notifications contain. To check that the URL receives notifications, use [Test a webhook](https://betterstack.com/docs/cloud/api/webhooks/test-webhook/).\n" }, "webhookTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of resources we notify about. Accepts 'server', 'snapshot', 'reserved_ip', 'network', 'firewall', 'ssh_key', 'placement_group', 'scheduled_snapshot', 'load_balancer', 'certificate', 'volume', 'volume_snapshot', 'scheduled_volume_snapshot', 'valkey', 'mysql', 'postgres', 'clickhouse', 'kafka' and 'object_proxy'. 'object_proxy' covers object caches. A notification names its kind in its 'object' field.\n" } }, "required": [ "createdAt", "failedDeliveries", "name", "secret", "status", "teamId", "updatedAt", "url", "webhookTypes" ], "inputProperties": { "name": { "type": "string", "description": "The webhook's name.\n" }, "status": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/webhookStatus:WebhookStatus" } ], "description": "Whether we send notifications to the webhook. Defaults to 'active'. 'active': We send notifications. 'paused': We send no notifications until you set it back to 'active'.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the webhook. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "url": { "type": "string", "description": "The URL we send notifications to. Use an HTTPS URL to protect what the notifications contain. To check that the URL receives notifications, use [Test a webhook](https://betterstack.com/docs/cloud/api/webhooks/test-webhook/).\n" }, "webhookTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of resources we notify about. Accepts 'server', 'snapshot', 'reserved_ip', 'network', 'firewall', 'ssh_key', 'placement_group', 'scheduled_snapshot', 'load_balancer', 'certificate', 'volume', 'volume_snapshot', 'scheduled_volume_snapshot', 'valkey', 'mysql', 'postgres', 'clickhouse', 'kafka' and 'object_proxy'. 'object_proxy' covers object caches. A notification names its kind in its 'object' field.\n" } }, "requiredInputs": [ "name", "teamId", "url", "webhookTypes" ], "stateInputs": { "description": "Input properties used for looking up and filtering Webhook resources.\n", "properties": { "createdAt": { "type": "string", "description": "When the webhook was created.\n" }, "failedDeliveries": { "type": "integer", "description": "The number of notifications in a row that we couldn't deliver. A delivered notification resets the count to '0'.\n" }, "name": { "type": "string", "description": "The webhook's name.\n" }, "secret": { "type": "string", "description": "The secret we sign notifications with. Each notification has an `X-Signature` header, `sha256=` followed by the HMAC-SHA256 of the body made with this secret. We create the secret with the webhook, and every response includes it. To print it, export it as a stack output and run pulumi stack output with its name and --show-secrets.\n", "secret": true }, "status": { "type": "string", "oneOf": [ { "type": "string" }, { "type": "string", "$ref": "#/types/betterstack:index/webhookStatus:WebhookStatus" } ], "description": "Whether we send notifications to the webhook. Defaults to 'active'. 'active': We send notifications. 'paused': We send no notifications until you set it back to 'active'.\n" }, "teamId": { "type": "string", "description": "The ID of the team that owns the webhook. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n" }, "updatedAt": { "type": "string", "description": "When the webhook was last updated.\n" }, "url": { "type": "string", "description": "The URL we send notifications to. Use an HTTPS URL to protect what the notifications contain. To check that the URL receives notifications, use [Test a webhook](https://betterstack.com/docs/cloud/api/webhooks/test-webhook/).\n" }, "webhookTypes": { "type": "array", "items": { "type": "string" }, "description": "The kinds of resources we notify about. Accepts 'server', 'snapshot', 'reserved_ip', 'network', 'firewall', 'ssh_key', 'placement_group', 'scheduled_snapshot', 'load_balancer', 'certificate', 'volume', 'volume_snapshot', 'scheduled_volume_snapshot', 'valkey', 'mysql', 'postgres', 'clickhouse', 'kafka' and 'object_proxy'. 'object_proxy' covers object caches. A notification names its kind in its 'object' field.\n" } }, "type": "object" } } }, "functions": { "betterstack:index/getAlert:getAlert": { "description": "An alert on a dashboard chart or a saved exploration that opens an incident when its condition is met.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getAlert({\n dashboardId: \"123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_alert(dashboard_id=\"123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetAlert.Invoke(new()\n {\n DashboardId = \"123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetAlert(ctx, \u0026betterstack.LookupAlertArgs{\n\t\t\tDashboardId: pulumi.StringRef(\"123\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_alert\" \"example\" {\n dashboard_id = \"123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetAlertArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getAlert(GetAlertArgs.builder()\n .dashboardId(\"123\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getAlert\n arguments:\n dashboardId: '123'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getAlert.\n", "properties": { "chartId": { "type": "string" }, "dashboardId": { "type": "string" }, "explorationId": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getAlert.\n", "properties": { "additionalConditions": { "items": { "$ref": "#/types/betterstack:index/getAlertAdditionalCondition:getAlertAdditionalCondition" }, "type": "array" }, "aggregationInterval": { "type": "integer" }, "alertType": { "type": "string" }, "anomalySensitivity": { "type": "number" }, "anomalyTrainingRangeDays": { "type": "integer" }, "anomalyTrigger": { "type": "string" }, "call": { "type": "boolean" }, "chartId": { "type": "string" }, "checkPeriod": { "type": "integer" }, "confirmationPeriod": { "type": "integer" }, "createdAt": { "type": "string" }, "criticalAlert": { "type": "boolean" }, "dashboardId": { "type": "string" }, "email": { "type": "boolean" }, "escalationTarget": { "$ref": "#/types/betterstack:index/getAlertEscalationTarget:getAlertEscalationTarget" }, "explorationId": { "type": "string" }, "id": { "type": "string" }, "incidentCause": { "type": "string" }, "incidentName": { "type": "string" }, "incidentPerSeries": { "type": "boolean" }, "metadata": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "type": "object" }, "name": { "type": "string" }, "onMissingData": { "type": "string" }, "operator": { "type": "string" }, "paused": { "type": "boolean" }, "pausedReason": { "type": "string" }, "push": { "type": "boolean" }, "queryPeriod": { "type": "integer" }, "recoveryPeriod": { "type": "integer" }, "seriesNames": { "items": { "type": "string" }, "type": "array" }, "seriesNamesExcept": { "items": { "type": "string" }, "type": "array" }, "shownInterval": { "type": "integer" }, "sms": { "type": "boolean" }, "sourceMode": { "type": "string" }, "sourcePlatforms": { "items": { "type": "string" }, "type": "array" }, "sourceVariable": { "type": "string" }, "stringValue": { "type": "string" }, "teamId": { "type": "string" }, "updatedAt": { "type": "string" }, "value": { "type": "number" }, "variableValues": { "items": { "$ref": "#/types/betterstack:index/getAlertVariableValue:getAlertVariableValue" }, "type": "array" } }, "required": [ "additionalConditions", "aggregationInterval", "alertType", "anomalySensitivity", "anomalyTrainingRangeDays", "anomalyTrigger", "call", "chartId", "checkPeriod", "confirmationPeriod", "createdAt", "criticalAlert", "dashboardId", "email", "escalationTarget", "explorationId", "id", "incidentCause", "incidentName", "incidentPerSeries", "metadata", "name", "onMissingData", "operator", "paused", "pausedReason", "push", "queryPeriod", "recoveryPeriod", "seriesNames", "seriesNamesExcept", "shownInterval", "sms", "sourceMode", "sourcePlatforms", "sourceVariable", "stringValue", "teamId", "updatedAt", "value", "variableValues" ], "type": "object" } }, "betterstack:index/getApplication:getApplication": { "description": "An error-tracking application collects the exceptions, releases and web events of one service.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getApplication({\n name: \"new-web-app\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_application(name=\"new-web-app\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetApplication.Invoke(new()\n {\n Name = \"new-web-app\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetApplication(ctx, \u0026betterstack.LookupApplicationArgs{\n\t\t\tName: pulumi.StringRef(\"new-web-app\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_application\" \"example\" {\n name = \"new-web-app\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetApplicationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getApplication(GetApplicationArgs.builder()\n .name(\"new-web-app\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getApplication\n arguments:\n name: new-web-app\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n\n'aiohttp_errors', 'android_errors', 'angular_errors', 'asgi_errors', 'asp_dot_net_core_errors', 'asp_dot_net_errors', 'astro_errors', 'aws_lambda_dot_net_errors', 'aws_lambda_node_errors', 'aws_lambda_python_errors', 'azure_functions_node_errors', 'bottle_errors', 'bun_errors', 'celery_errors', 'chalice_errors', 'cli_errors', 'cloudflare_pages_errors', 'connect_errors', 'dart_errors', 'deno_errors', 'django_errors', 'dot_net_errors', 'dot_net_http_errors', 'dot_net_maui_errors', 'echo_errors', 'electron_errors', 'elixir_errors', 'ember_errors', 'express_errors', 'falcon_errors', 'fastapi_errors', 'fasthttp_errors', 'fastify_errors', 'fiber_errors', 'flask_errors', 'flutter_errors', 'gatsby_errors', 'gin_errors', 'go_errors', 'godot_errors', 'google_cloud_function_dot_net_errors', 'google_cloud_function_node_errors', 'google_cloud_function_python_errors', 'hapi_errors', 'ios_errors', 'iris_errors', 'java_errors', 'javascript_errors', 'koa_errors', 'kotlin_errors', 'laravel_errors', 'log4j_errors', 'logback_errors', 'macos_errors', 'minidump_errors', 'native_errors', 'negroni_errors', 'nest_js_errors', 'next_js_errors', 'node_errors', 'nuxt_errors', 'php_errors', 'powershell_errors', 'pyramid_errors', 'python_errors', 'qt_errors', 'quart_errors', 'rack_middleware_errors', 'rails_errors', 'react_errors', 'react_native_errors', 'react_router_framework_errors', 'remix_errors', 'rq_errors', 'ruby_errors', 'rust_errors', 'sanic_errors', 'serverless_python_errors', 'solid_errors', 'solidstart_errors', 'spring_boot_errors', 'spring_errors', 'starlette_errors', 'svelte_errors', 'sveltekit_errors', 'symfony_errors', 'tanstack_start_react_errors', 'tornado_errors', 'tryton_errors', 'unity_errors', 'unreal_engine_errors', 'vue_errors', 'windows_forms_errors', 'wpf_errors', 'wsgi_errors'\n\n'aiohttp_errors', 'android_errors', 'angular_errors', 'asgi_errors', 'asp_dot_net_core_errors', 'asp_dot_net_errors', 'astro_errors', 'aws_lambda_dot_net_errors', 'aws_lambda_node_errors', 'aws_lambda_python_errors', 'azure_functions_node_errors', 'bottle_errors', 'bun_errors', 'celery_errors', 'chalice_errors', 'cli_errors', 'cloudflare_pages_errors', 'connect_errors', 'dart_errors', 'deno_errors', 'django_errors', 'dot_net_errors', 'dot_net_http_errors', 'dot_net_maui_errors', 'echo_errors', 'electron_errors', 'elixir_errors', 'ember_errors', 'express_errors', 'falcon_errors', 'fastapi_errors', 'fasthttp_errors', 'fastify_errors', 'fiber_errors', 'flask_errors', 'flutter_errors', 'gatsby_errors', 'gin_errors', 'go_errors', 'godot_errors', 'google_cloud_function_dot_net_errors', 'google_cloud_function_node_errors', 'google_cloud_function_python_errors', 'hapi_errors', 'ios_errors', 'iris_errors', 'java_errors', 'javascript_errors', 'koa_errors', 'kotlin_errors', 'laravel_errors', 'log4j_errors', 'logback_errors', 'macos_errors', 'minidump_errors', 'native_errors', 'negroni_errors', 'nest_js_errors', 'next_js_errors', 'node_errors', 'nuxt_errors', 'php_errors', 'powershell_errors', 'pyramid_errors', 'python_errors', 'qt_errors', 'quart_errors', 'rack_middleware_errors', 'rails_errors', 'react_errors', 'react_native_errors', 'react_router_framework_errors', 'remix_errors', 'rq_errors', 'ruby_errors', 'rust_errors', 'sanic_errors', 'serverless_python_errors', 'solid_errors', 'solidstart_errors', 'spring_boot_errors', 'spring_errors', 'starlette_errors', 'svelte_errors', 'sveltekit_errors', 'symfony_errors', 'tanstack_start_react_errors', 'tornado_errors', 'tryton_errors', 'unity_errors', 'unreal_engine_errors', 'vue_errors', 'windows_forms_errors', 'wpf_errors', 'wsgi_errors'\n", "inputs": { "description": "A collection of arguments for invoking getApplication.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getApplication.\n", "properties": { "aiPromptTemplate": { "type": "string" }, "applicationGroupId": { "type": "string" }, "codeMappingSourceRoot": { "type": "string" }, "codeMappingStackRoot": { "type": "string" }, "correlateWithSourceId": { "type": "string" }, "createdAt": { "type": "string" }, "customBucket": { "$ref": "#/types/betterstack:index/getApplicationCustomBucket:getApplicationCustomBucket" }, "dataRegion": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "errorsRetention": { "type": "integer" }, "githubRepositoryName": { "type": "string" }, "gitlabRepositoryName": { "type": "string" }, "id": { "type": "string" }, "ingestingHost": { "type": "string" }, "ingestingPaused": { "type": "boolean" }, "jsTagConfiguration": { "$ref": "#/types/betterstack:index/getApplicationJsTagConfiguration:getApplicationJsTagConfiguration" }, "jsTagOwnDomainStatus": { "type": "string" }, "jsTagToken": { "secret": true, "type": "string" }, "name": { "type": "string" }, "parentSourceId": { "type": "string" }, "platform": { "type": "string" }, "queryCollections": { "$ref": "#/types/betterstack:index/getApplicationQueryCollections:getApplicationQueryCollections" }, "replaysRetention": { "type": "integer" }, "sourceTypes": { "items": { "type": "string" }, "type": "array" }, "spikeProtectionBaselineMultiplier": { "type": "integer" }, "tableName": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "token": { "secret": true, "type": "string" }, "updatedAt": { "type": "string" }, "vrlTransformationExceptions": { "type": "string" }, "vrlTransformationLogs": { "type": "string" }, "vrlTransformationReplays": { "type": "string" }, "vrlTransformationSpans": { "type": "string" }, "vrlTransformationWebEvents": { "type": "string" }, "webEventsRetention": { "type": "integer" } }, "required": [ "aiPromptTemplate", "applicationGroupId", "codeMappingSourceRoot", "codeMappingStackRoot", "correlateWithSourceId", "createdAt", "customBucket", "dataRegion", "deletionProtection", "errorsRetention", "githubRepositoryName", "gitlabRepositoryName", "id", "ingestingHost", "ingestingPaused", "jsTagConfiguration", "jsTagOwnDomainStatus", "jsTagToken", "name", "parentSourceId", "platform", "queryCollections", "replaysRetention", "sourceTypes", "spikeProtectionBaselineMultiplier", "tableName", "teamId", "teamName", "token", "updatedAt", "vrlTransformationExceptions", "vrlTransformationLogs", "vrlTransformationReplays", "vrlTransformationSpans", "vrlTransformationWebEvents", "webEventsRetention" ], "type": "object" } }, "betterstack:index/getApplicationGroup:getApplicationGroup": { "description": "A group that organizes related error-tracking applications together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getApplicationGroup({\n name: \"Production apps\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_application_group(name=\"Production apps\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetApplicationGroup.Invoke(new()\n {\n Name = \"Production apps\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetApplicationGroup(ctx, \u0026betterstack.LookupApplicationGroupArgs{\n\t\t\tName: pulumi.StringRef(\"Production apps\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_application_group\" \"example\" {\n name = \"Production apps\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetApplicationGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getApplicationGroup(GetApplicationGroupArgs.builder()\n .name(\"Production apps\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getApplicationGroup\n arguments:\n name: Production apps\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getApplicationGroup.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getApplicationGroup.\n", "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "sortIndex": { "type": "integer" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "createdAt", "id", "name", "sortIndex", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getAwsLogGroupSubscription:getAwsLogGroupSubscription": { "description": "An override that subscribes a CloudWatch log group to an AWS source or keeps it unsubscribed, even before the source has found the group.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getAwsLogGroupSubscription({\n sourceId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_aws_log_group_subscription(source_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetAwsLogGroupSubscription.Invoke(new()\n {\n SourceId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetAwsLogGroupSubscription(ctx, \u0026betterstack.LookupAwsLogGroupSubscriptionArgs{\n\t\t\tSourceId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_aws_log_group_subscription\" \"example\" {\n source_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetAwsLogGroupSubscriptionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getAwsLogGroupSubscription(GetAwsLogGroupSubscriptionArgs.builder()\n .sourceId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getAwsLogGroupSubscription\n arguments:\n sourceId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAwsLogGroupSubscription.\n", "properties": { "id": { "type": "string", "description": "The ID of the AWS log group subscription to look up.\n" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "teamId": { "type": "string", "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id", "sourceId" ] }, "outputs": { "description": "A collection of values returned by getAwsLogGroupSubscription.\n", "properties": { "createdAt": { "description": "When the override was created.\n", "type": "string" }, "id": { "description": "The ID of the AWS log group subscription to look up.\n", "type": "string" }, "name": { "description": "CloudWatch log-group name.\n", "type": "string" }, "region": { "description": "AWS region of the log group.\n", "type": "string" }, "sourceId": { "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n", "type": "string" }, "subscribed": { "description": "true subscribes the log group. false keeps it unsubscribed, even when automatic subscription is on.\n", "type": "boolean" }, "teamId": { "description": "Team that owns the source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "updatedAt": { "description": "When the override was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "name", "region", "sourceId", "subscribed", "teamId", "updatedAt" ], "type": "object" } }, "betterstack:index/getCatalogRecord:getCatalogRecord": { "description": "A catalog record is one entry in a catalog relation, with values for its attributes.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getCatalogRecord({\n catalogRelationId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_catalog_record(catalog_relation_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetCatalogRecord.Invoke(new()\n {\n CatalogRelationId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetCatalogRecord(ctx, \u0026betterstack.LookupCatalogRecordArgs{\n\t\t\tCatalogRelationId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_catalog_record\" \"example\" {\n catalog_relation_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetCatalogRecordArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getCatalogRecord(GetCatalogRecordArgs.builder()\n .catalogRelationId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getCatalogRecord\n arguments:\n catalogRelationId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCatalogRecord.\n", "properties": { "catalogRelationId": { "type": "string", "description": "The ID of the parent this catalog relation belongs to. Changing it replaces the resource.\n" }, "id": { "type": "string", "description": "The ID of the catalog record to look up.\n" } }, "type": "object", "required": [ "catalogRelationId", "id" ] }, "outputs": { "description": "A collection of values returned by getCatalogRecord.\n", "properties": { "attributes": { "description": "The record's values, one entry per attribute that has values. Each entry sets one catalog attribute, by ID or name, to one or more values. Required on create and update, and an update replaces all of them.\n", "items": { "$ref": "#/types/betterstack:index/getCatalogRecordAttribute:getCatalogRecordAttribute" }, "type": "array" }, "catalogRelationId": { "description": "The ID of the parent this catalog relation belongs to. Changing it replaces the resource.\n", "type": "string" }, "id": { "description": "The ID of the catalog record to look up.\n", "type": "string" } }, "required": [ "attributes", "catalogRelationId", "id" ], "type": "object" } }, "betterstack:index/getCatalogRelation:getCatalogRelation": { "description": "A catalog relation is a table in your on-call catalog, such as your services or teams. When an incident's metadata matches a record's primary attributes, the incident gets the record's other attributes as metadata.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getCatalogRelation({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_catalog_relation(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetCatalogRelation.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetCatalogRelation(ctx, \u0026betterstack.LookupCatalogRelationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_catalog_relation\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetCatalogRelationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getCatalogRelation(GetCatalogRelationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getCatalogRelation\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCatalogRelation.\n", "properties": { "id": { "type": "string", "description": "The ID of the catalog relation to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getCatalogRelation.\n", "properties": { "attributes": { "description": "The relation's attributes, in the order the web app shows them as columns. List primary attributes first, since primary attributes always come before the others. Required on create, and at least one must be primary. An update that sends \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e replaces all of them, and any attribute you leave out is removed, along with its values in every record. Leave \u003cspan pulumi-lang-nodejs=\"`attributes`\" pulumi-lang-dotnet=\"`Attributes`\" pulumi-lang-go=\"`attributes`\" pulumi-lang-python=\"`attributes`\" pulumi-lang-yaml=\"`attributes`\" pulumi-lang-java=\"`attributes`\" pulumi-lang-hcl=\"`attributes`\"\u003e`attributes`\u003c/span\u003e out of an update to keep the attributes as they are.\n", "items": { "$ref": "#/types/betterstack:index/getCatalogRelationAttribute:getCatalogRelationAttribute" }, "type": "array" }, "description": { "description": "What this catalog relation describes.\n", "type": "string" }, "id": { "description": "The ID of the catalog relation to look up.\n", "type": "string" }, "matchMode": { "description": "How an incident is matched to a record when the relation has several primary attributes. 'any': Matches a record when any primary attribute matches. 'all': Matches a record when every primary attribute matches.\n", "type": "string" }, "name": { "description": "Catalog relation name.\n", "type": "string" }, "organizationId": { "description": "Organization that owns this catalog relation, such as '123'. Defaults to the token's own organization. Required when you sign in with OAuth and can access more than one organization.\n", "type": "string" }, "recordsCount": { "description": "Number of catalog records in this catalog relation.\n", "type": "integer" } }, "required": [ "attributes", "description", "id", "matchMode", "name", "organizationId", "recordsCount" ], "type": "object" } }, "betterstack:index/getCertificate:getCertificate": { "description": "A TLS certificate for the 'https' services of your load balancers. You either upload the certificate, or we issue and renew it with Let's Encrypt. A certificate works in every availability zone.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getCertificate({\n certificateType: \"managed\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_certificate(certificate_type=\"managed\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetCertificate.Invoke(new()\n {\n CertificateType = \"managed\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetCertificate(ctx, \u0026betterstack.LookupCertificateArgs{\n\t\t\tCertificateType: pulumi.StringRef(\"managed\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_certificate\" \"example\" {\n certificate_type = \"managed\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetCertificateArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getCertificate(GetCertificateArgs.builder()\n .certificateType(\"managed\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getCertificate\n arguments:\n certificateType: managed\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getCertificate.\n", "properties": { "certificateType": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getCertificate.\n", "properties": { "certificate": { "type": "string" }, "certificateType": { "type": "string" }, "createdAt": { "type": "string" }, "domainNames": { "items": { "type": "string" }, "type": "array" }, "fingerprint": { "type": "string" }, "id": { "type": "string" }, "lastIssuedAt": { "type": "string" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "notValidAfter": { "type": "string" }, "notValidBefore": { "type": "string" }, "privateKey": { "secret": true, "type": "string" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "teamId": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "certificate", "certificateType", "createdAt", "domainNames", "fingerprint", "id", "lastIssuedAt", "metadata", "name", "notValidAfter", "notValidBefore", "privateKey", "status", "statusMessage", "teamId", "updatedAt" ], "type": "object" } }, "betterstack:index/getClickHouse:getClickHouse": { "description": "A managed ClickHouse instance, an analytical database for large amounts of data.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getClickHouse({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_click_house(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetClickHouse.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetClickHouse(ctx, \u0026betterstack.LookupClickHouseArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_click_house\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetClickHouseArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getClickHouse(GetClickHouseArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getClickHouse\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getClickHouse.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getClickHouse.\n", "properties": { "availableEngineVersions": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "endpoint": { "$ref": "#/types/betterstack:index/getClickHouseEndpoint:getClickHouseEndpoint" }, "enginePatchVersion": { "type": "string" }, "engineVersion": { "type": "string" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "latestSnapshotAt": { "type": "string" }, "maxConcurrentQueries": { "type": "integer" }, "members": { "items": { "$ref": "#/types/betterstack:index/getClickHouseMember:getClickHouseMember" }, "type": "array" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "publicAccess": { "type": "boolean" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "timezone": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" }, "usableDiskGb": { "type": "integer" } }, "required": [ "availableEngineVersions", "createdAt", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "id", "latestSnapshotAt", "maxConcurrentQueries", "members", "metadata", "name", "networkIds", "publicAccess", "status", "statusMessage", "teamId", "term", "timezone", "type", "updatedAt", "usableDiskGb" ], "type": "object" } }, "betterstack:index/getClickHouseScheduledSnapshot:getClickHouseScheduledSnapshot": { "description": "A schedule that creates snapshots of a ClickHouse instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getClickHouseScheduledSnapshot({\n clickhouseId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_click_house_scheduled_snapshot(clickhouse_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetClickHouseScheduledSnapshot.Invoke(new()\n {\n ClickhouseId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetClickHouseScheduledSnapshot(ctx, \u0026betterstack.LookupClickHouseScheduledSnapshotArgs{\n\t\t\tClickhouseId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_click_house_scheduled_snapshot\" \"example\" {\n clickhouse_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetClickHouseScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getClickHouseScheduledSnapshot(GetClickHouseScheduledSnapshotArgs.builder()\n .clickhouseId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getClickHouseScheduledSnapshot\n arguments:\n clickhouseId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClickHouseScheduledSnapshot.\n", "properties": { "clickhouseId": { "type": "string", "description": "The ID of the ClickHouse instance the schedule belongs to. Changing it replaces the resource.\n" }, "id": { "type": "string", "description": "The schedule's ID, a UUID.\n" } }, "type": "object", "required": [ "clickhouseId", "id" ] }, "outputs": { "description": "A collection of values returned by getClickHouseScheduledSnapshot.\n", "properties": { "clickhouseId": { "description": "The ID of the ClickHouse instance the schedule belongs to. Changing it replaces the resource.\n", "type": "string" }, "createdAt": { "description": "When the schedule was created.\n", "type": "string" }, "frequency": { "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n", "type": "string" }, "id": { "description": "The schedule's ID, a UUID.\n", "type": "string" }, "lastRunAt": { "description": "When the schedule last created a snapshot, or null until the first one.\n", "type": "string" }, "serverId": { "description": "The ID of the server that runs the instance.\n", "type": "string" }, "updatedAt": { "description": "When the schedule was last updated.\n", "type": "string" } }, "required": [ "clickhouseId", "createdAt", "frequency", "id", "lastRunAt", "serverId", "updatedAt" ], "type": "object" } }, "betterstack:index/getClickHouseType:getClickHouseType": { "description": "A size of ClickHouse instance you can order.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getClickHouseType({\n name: \"CH1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_click_house_type(name=\"CH1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetClickHouseType.Invoke(new()\n {\n Name = \"CH1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetClickHouseType(ctx, \u0026betterstack.GetClickHouseTypeArgs{\n\t\t\tName: \"CH1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_click_house_type\" \"example\" {\n name = \"CH1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetClickHouseTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getClickHouseType(GetClickHouseTypeArgs.builder()\n .name(\"CH1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getClickHouseType\n arguments:\n name: CH1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClickHouseType.\n", "properties": { "name": { "type": "string", "description": "The type name. Send it as 'type' when you create or rescale a ClickHouse instance.\n" } }, "type": "object", "required": [ "name" ] }, "outputs": { "description": "A collection of values returned by getClickHouseType.\n", "properties": { "availability": { "description": "Whether you can order the type. 'global': You can order the type. 'unavailable': The type is deprecated. Instances on it keep running, but you can't create or rescale to it.\n", "type": "string" }, "maxConcurrentQueries": { "description": "The most queries that can run at the same time.\n", "type": "integer" }, "name": { "description": "The type name. Send it as 'type' when you create or rescale a ClickHouse instance.\n", "type": "string" }, "ramGb": { "description": "Memory, in GiB.\n", "type": "integer" }, "replacement": { "description": "The type to use instead of this deprecated one, or null for a type you can order.\n", "type": "string" }, "usableDiskGb": { "description": "Storage for your data, in GiB.\n", "type": "integer" }, "vcpu": { "description": "The number of virtual CPUs.\n", "type": "integer" } }, "required": [ "availability", "maxConcurrentQueries", "name", "ramGb", "replacement", "usableDiskGb", "vcpu" ], "type": "object" } }, "betterstack:index/getClickHouseVersion:getClickHouseVersion": { "description": "A ClickHouse LTS version you can run a managed ClickHouse instance on.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getClickHouseVersion({\n engineVersion: \"26.8\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_click_house_version(engine_version=\"26.8\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetClickHouseVersion.Invoke(new()\n {\n EngineVersion = \"26.8\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetClickHouseVersion(ctx, \u0026betterstack.GetClickHouseVersionArgs{\n\t\t\tEngineVersion: \"26.8\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_click_house_version\" \"example\" {\n engine_version = \"26.8\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetClickHouseVersionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getClickHouseVersion(GetClickHouseVersionArgs.builder()\n .engineVersion(\"26.8\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getClickHouseVersion\n arguments:\n engineVersion: '26.8'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClickHouseVersion.\n", "properties": { "engineVersion": { "type": "string", "description": "The ClickHouse LTS version as major and minor, such as `26.8`. We install its latest patch release and keep it updated.\n" } }, "type": "object", "required": [ "engineVersion" ] }, "outputs": { "description": "A collection of values returned by getClickHouseVersion.\n", "properties": { "engineVersion": { "description": "The ClickHouse LTS version as major and minor, such as `26.8`. We install its latest patch release and keep it updated.\n", "type": "string" }, "latest": { "description": "Whether a new instance gets this version when you leave out \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e.\n", "type": "boolean" } }, "required": [ "engineVersion", "latest" ], "type": "object" } }, "betterstack:index/getCollector:getCollector": { "description": "A Better Stack Collector agent that ingests logs, metrics, and traces from a host or cluster.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getCollector({\n name: \"Configured K8s Collector\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_collector(name=\"Configured K8s Collector\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetCollector.Invoke(new()\n {\n Name = \"Configured K8s Collector\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetCollector(ctx, \u0026betterstack.LookupCollectorArgs{\n\t\t\tName: pulumi.StringRef(\"Configured K8s Collector\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_collector\" \"example\" {\n name = \"Configured K8s Collector\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetCollectorArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getCollector(GetCollectorArgs.builder()\n .name(\"Configured K8s Collector\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getCollector\n arguments:\n name: Configured K8s Collector\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getCollector.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getCollector.\n", "properties": { "blockedMetrics": { "items": { "type": "string" }, "type": "array" }, "collectorLogsTransformation": { "type": "string" }, "collectorMetricsTransformation": { "type": "string" }, "collectorTracesTransformation": { "type": "string" }, "configuration": { "$ref": "#/types/betterstack:index/getCollectorConfiguration:getCollectorConfiguration" }, "connectedSourceIds": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "type": "string" }, "customBucket": { "$ref": "#/types/betterstack:index/getCollectorCustomBucket:getCollectorCustomBucket" }, "dataRegion": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "id": { "type": "string" }, "ingestingPaused": { "type": "boolean" }, "ingestionLogsTransformation": { "type": "string" }, "ingestionTracesTransformation": { "type": "string" }, "installationGuideUrl": { "type": "string" }, "liveTailPattern": { "type": "string" }, "liveTailPatternSpans": { "type": "string" }, "logsRetention": { "type": "integer" }, "metricsRetention": { "type": "integer" }, "name": { "type": "string" }, "note": { "type": "string" }, "pingedAt": { "type": "string" }, "platform": { "type": "string" }, "secret": { "secret": true, "type": "string" }, "serviceFields": { "items": { "$ref": "#/types/betterstack:index/getCollectorServiceField:getCollectorServiceField" }, "type": "array" }, "sourceGroupId": { "type": "string" }, "sourceId": { "type": "string" }, "status": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "updatedAt": { "type": "string" }, "userVectorConfig": { "type": "string" } }, "required": [ "blockedMetrics", "collectorLogsTransformation", "collectorMetricsTransformation", "collectorTracesTransformation", "configuration", "connectedSourceIds", "createdAt", "customBucket", "dataRegion", "deletionProtection", "id", "ingestingPaused", "ingestionLogsTransformation", "ingestionTracesTransformation", "installationGuideUrl", "liveTailPattern", "liveTailPatternSpans", "logsRetention", "metricsRetention", "name", "note", "pingedAt", "platform", "secret", "serviceFields", "sourceGroupId", "sourceId", "status", "teamId", "teamName", "updatedAt", "userVectorConfig" ], "type": "object" } }, "betterstack:index/getCollectorTarget:getCollectorTarget": { "description": "A database or process a collector scrapes for metrics, for example Postgres, nginx, or a Prometheus endpoint.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getCollectorTarget({\n collectorId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_collector_target(collector_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetCollectorTarget.Invoke(new()\n {\n CollectorId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetCollectorTarget(ctx, \u0026betterstack.LookupCollectorTargetArgs{\n\t\t\tCollectorId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_collector_target\" \"example\" {\n collector_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetCollectorTargetArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getCollectorTarget(GetCollectorTargetArgs.builder()\n .collectorId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getCollectorTarget\n arguments:\n collectorId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCollectorTarget.\n", "properties": { "collectorId": { "type": "string", "description": "The ID of the parent this collector belongs to. Changing it replaces the resource.\n" }, "id": { "type": "string", "description": "The ID of the collector target to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns the collector's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "collectorId", "id" ] }, "outputs": { "description": "A collection of values returned by getCollectorTarget.\n", "properties": { "annotations": { "$ref": "#/types/betterstack:index/getCollectorTargetAnnotations:getCollectorTargetAnnotations", "description": "Where the collector gets the target's credentials and connection settings while Kubernetes annotations control the target, or null when no annotations control it. While annotations control a target, the collector ignores the credentials and connection settings stored on the target. The target's \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sslMode`\" pulumi-lang-dotnet=\"`SslMode`\" pulumi-lang-go=\"`sslMode`\" pulumi-lang-python=\"`ssl_mode`\" pulumi-lang-yaml=\"`sslMode`\" pulumi-lang-java=\"`sslMode`\" pulumi-lang-hcl=\"`ssl_mode`\"\u003e`sslMode`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`tls`\" pulumi-lang-dotnet=\"`Tls`\" pulumi-lang-go=\"`tls`\" pulumi-lang-python=\"`tls`\" pulumi-lang-yaml=\"`tls`\" pulumi-lang-java=\"`tls`\" pulumi-lang-hcl=\"`tls`\"\u003e`tls`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`scheme`\" pulumi-lang-dotnet=\"`Scheme`\" pulumi-lang-go=\"`scheme`\" pulumi-lang-python=\"`scheme`\" pulumi-lang-yaml=\"`scheme`\" pulumi-lang-java=\"`scheme`\" pulumi-lang-hcl=\"`scheme`\"\u003e`scheme`\u003c/span\u003e keep the values you stored.\n" }, "apiKey": { "description": "API key for 'elasticsearch' targets.\n", "secret": true, "type": "string" }, "collectorId": { "description": "The ID of the parent this collector belongs to. Changing it replaces the resource.\n", "type": "string" }, "container": { "description": "Detected container.\n", "type": "string" }, "createdAt": { "description": "When the target was created.\n", "type": "string" }, "enabled": { "description": "Whether the collector scrapes this target. A new target is enabled unless it's set to false. Disabling it sets \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e to 'disabled', and enabling it again checks the target again.\n", "type": "boolean" }, "endpoint": { "description": "The full scrape URL, like `http://10.0.0.5:9090/metrics`. Required for 'prometheus' targets and returned only for them. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'prometheus'.\n", "type": "string" }, "host": { "description": "Target host. For a process target such as 'nginx' or 'prometheus', the host the collector runs on.\n", "type": "string" }, "id": { "description": "The ID of the collector target to look up.\n", "type": "string" }, "kind": { "description": "Target type. Responses can also hold 'pgcat', 'node_exporter' and 'kube_state_metrics', targets the collector finds by itself. You can't create those. Valid values: 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached', 'elasticsearch', 'nginx', 'apache', 'kafka', 'prometheus', 'traefik'.\n", "type": "string" }, "listenIp": { "description": "The IP address the process listens on. Accepted and returned only for 'nginx', 'apache', 'kafka' and 'traefik', and null when not set. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'traefik'.\n", "type": "string" }, "password": { "description": "Password for database and 'elasticsearch' targets.\n", "secret": true, "type": "string" }, "port": { "description": "The target's port. null when a target is found by its \u003cspan pulumi-lang-nodejs=\"`listenIp`\" pulumi-lang-dotnet=\"`ListenIp`\" pulumi-lang-go=\"`listenIp`\" pulumi-lang-python=\"`listen_ip`\" pulumi-lang-yaml=\"`listenIp`\" pulumi-lang-java=\"`listenIp`\" pulumi-lang-hcl=\"`listen_ip`\"\u003e`listenIp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`service`\" pulumi-lang-dotnet=\"`Service`\" pulumi-lang-go=\"`service`\" pulumi-lang-python=\"`service`\" pulumi-lang-yaml=\"`service`\" pulumi-lang-java=\"`service`\" pulumi-lang-hcl=\"`service`\"\u003e`service`\u003c/span\u003e instead. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch' or 'nginx' or 'apache' or 'kafka' or 'traefik'.\n", "type": "integer" }, "scheme": { "description": "The connection scheme. Accepted and returned only for 'elasticsearch'. Valid values: 'http', 'https'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'elasticsearch'.\n", "type": "string" }, "service": { "description": "The service name. Required for 'nginx', 'apache', 'kafka', 'prometheus' and 'traefik' targets, and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'nginx' or 'apache' or 'kafka' or 'prometheus' or 'traefik'.\n", "type": "string" }, "sslMode": { "description": "The SSL mode for the connection. Required for 'postgres' and 'pgbouncer', and accepted and returned only for those. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer'. 'disable': Connects without SSL. 'require': Connects over SSL without verifying the server's certificate. `verify-ca`: Connects over SSL and checks that a trusted certificate authority signed the server's certificate.\n", "type": "string" }, "status": { "description": "The connection status. An update that includes \u003cspan pulumi-lang-nodejs=\"`host`\" pulumi-lang-dotnet=\"`Host`\" pulumi-lang-go=\"`host`\" pulumi-lang-python=\"`host`\" pulumi-lang-yaml=\"`host`\" pulumi-lang-java=\"`host`\" pulumi-lang-hcl=\"`host`\"\u003e`host`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`port`\" pulumi-lang-dotnet=\"`Port`\" pulumi-lang-go=\"`port`\" pulumi-lang-python=\"`port`\" pulumi-lang-yaml=\"`port`\" pulumi-lang-java=\"`port`\" pulumi-lang-hcl=\"`port`\"\u003e`port`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`service`\" pulumi-lang-dotnet=\"`Service`\" pulumi-lang-go=\"`service`\" pulumi-lang-python=\"`service`\" pulumi-lang-yaml=\"`service`\" pulumi-lang-java=\"`service`\" pulumi-lang-hcl=\"`service`\"\u003e`service`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`listenIp`\" pulumi-lang-dotnet=\"`ListenIp`\" pulumi-lang-go=\"`listenIp`\" pulumi-lang-python=\"`listen_ip`\" pulumi-lang-yaml=\"`listenIp`\" pulumi-lang-java=\"`listenIp`\" pulumi-lang-hcl=\"`listen_ip`\"\u003e`listenIp`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`endpoint`\" pulumi-lang-dotnet=\"`Endpoint`\" pulumi-lang-go=\"`endpoint`\" pulumi-lang-python=\"`endpoint`\" pulumi-lang-yaml=\"`endpoint`\" pulumi-lang-java=\"`endpoint`\" pulumi-lang-hcl=\"`endpoint`\"\u003e`endpoint`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`scheme`\" pulumi-lang-dotnet=\"`Scheme`\" pulumi-lang-go=\"`scheme`\" pulumi-lang-python=\"`scheme`\" pulumi-lang-yaml=\"`scheme`\" pulumi-lang-java=\"`scheme`\" pulumi-lang-hcl=\"`scheme`\"\u003e`scheme`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`password`\" pulumi-lang-dotnet=\"`Password`\" pulumi-lang-go=\"`password`\" pulumi-lang-python=\"`password`\" pulumi-lang-yaml=\"`password`\" pulumi-lang-java=\"`password`\" pulumi-lang-hcl=\"`password`\"\u003e`password`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`apiKey`\" pulumi-lang-dotnet=\"`ApiKey`\" pulumi-lang-go=\"`apiKey`\" pulumi-lang-python=\"`api_key`\" pulumi-lang-yaml=\"`apiKey`\" pulumi-lang-java=\"`apiKey`\" pulumi-lang-hcl=\"`api_key`\"\u003e`apiKey`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`sslMode`\" pulumi-lang-dotnet=\"`SslMode`\" pulumi-lang-go=\"`sslMode`\" pulumi-lang-python=\"`ssl_mode`\" pulumi-lang-yaml=\"`sslMode`\" pulumi-lang-java=\"`sslMode`\" pulumi-lang-hcl=\"`ssl_mode`\"\u003e`sslMode`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`tls`\" pulumi-lang-dotnet=\"`Tls`\" pulumi-lang-go=\"`tls`\" pulumi-lang-python=\"`tls`\" pulumi-lang-yaml=\"`tls`\" pulumi-lang-java=\"`tls`\" pulumi-lang-hcl=\"`tls`\"\u003e`tls`\u003c/span\u003e sets it back to 'pending'. 'pending': The collector hasn't reported on the target yet. 'up': The collector collects metrics from the target. 'unreachable': The collector can't connect to the target or hasn't seen it lately. 'down': The collector reaches the target, but its check fails. 'invalid_credentials': The target rejects the credentials. 'configuration_required': The database needs more setup, such as the 'pg_stat_statements' extension. A target that Kubernetes annotations control also gets this status while the collector can't read one of its credentials. 'disabled': The target is paused and the collector doesn't check it. 'removed': The collector no longer finds the target.\n", "type": "string" }, "teamId": { "description": "Team that owns the collector's source, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "tls": { "description": "The TLS mode for the connection. Required for 'mysql', and accepted and returned only for it. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'mysql'. false: Connects without TLS. true: Connects over TLS and verifies the server's certificate. `skip-verify`: Connects over TLS without verifying the server's certificate. 'preferred': Uses TLS when the server supports it, without verifying the server's certificate.\n", "type": "string" }, "updatedAt": { "description": "When the target was last updated.\n", "type": "string" }, "username": { "description": "The username for the connection, or null when not set. While Kubernetes annotations control the target, the collector gets the username as \u003cspan pulumi-lang-nodejs=\"`annotations`\" pulumi-lang-dotnet=\"`Annotations`\" pulumi-lang-go=\"`annotations`\" pulumi-lang-python=\"`annotations`\" pulumi-lang-yaml=\"`annotations`\" pulumi-lang-java=\"`annotations`\" pulumi-lang-hcl=\"`annotations`\"\u003e`annotations`\u003c/span\u003e shows instead. Accepted and returned only for 'postgres', 'pgbouncer', 'mysql', 'redis', 'mongodb', 'memcached' and 'elasticsearch'. Applies only when \u003cspan pulumi-lang-nodejs=\"`kind`\" pulumi-lang-dotnet=\"`Kind`\" pulumi-lang-go=\"`kind`\" pulumi-lang-python=\"`kind`\" pulumi-lang-yaml=\"`kind`\" pulumi-lang-java=\"`kind`\" pulumi-lang-hcl=\"`kind`\"\u003e`kind`\u003c/span\u003e is 'postgres' or 'pgbouncer' or 'mysql' or 'redis' or 'mongodb' or 'memcached' or 'elasticsearch'.\n", "type": "string" } }, "required": [ "annotations", "apiKey", "collectorId", "container", "createdAt", "enabled", "endpoint", "host", "id", "kind", "listenIp", "password", "port", "scheme", "service", "sslMode", "status", "teamId", "tls", "updatedAt", "username" ], "type": "object" } }, "betterstack:index/getConnection:getConnection": { "description": "A ClickHouse connection for querying ingested data directly over SQL.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getConnection({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_connection(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetConnection.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetConnection(ctx, \u0026betterstack.LookupConnectionArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_connection\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetConnectionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getConnection(GetConnectionArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getConnection\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getConnection.\n", "properties": { "id": { "type": "string", "description": "The ID of the connection to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getConnection.\n", "properties": { "clientType": { "description": "Client protocol. Valid values: 'clickhouse', 'grafana'.\n", "type": "string" }, "cluster": { "description": "The one cluster the connection points at, by its name. [Get a source](https://betterstack.com/docs/logs/api/get-a-single-source/) returns the \u003cspan pulumi-lang-nodejs=\"`cluster`\" pulumi-lang-dotnet=\"`Cluster`\" pulumi-lang-go=\"`cluster`\" pulumi-lang-python=\"`cluster`\" pulumi-lang-yaml=\"`cluster`\" pulumi-lang-java=\"`cluster`\" pulumi-lang-hcl=\"`cluster`\"\u003e`cluster`\u003c/span\u003e its data is stored on.\n", "type": "string" }, "clusters": { "description": "Every cluster the connection reaches.\n", "items": { "$ref": "#/types/betterstack:index/getConnectionCluster:getConnectionCluster" }, "type": "array" }, "createdAt": { "description": "When the connection was created.\n", "type": "string" }, "createdBy": { "$ref": "#/types/betterstack:index/getConnectionCreatedBy:getConnectionCreatedBy", "description": "User who created the connection in the web UI. Always null for a connection created through the API or MCP.\n" }, "dataSources": { "description": "Sources this connection can query. Not returned when listing connections.\n", "items": { "$ref": "#/types/betterstack:index/getConnectionDataSource:getConnectionDataSource" }, "type": "array" }, "host": { "description": "Connection host.\n", "type": "string" }, "id": { "description": "The ID of the connection to look up.\n", "type": "string" }, "ipAllowlist": { "description": "Allowed source IPs or CIDRs.\n", "items": { "type": "string" }, "type": "array" }, "note": { "description": "Free-form note.\n", "type": "string" }, "password": { "description": "Connection password. Returned only when the connection is created and never again, so save it then.\n", "secret": true, "type": "string" }, "port": { "description": "Connection port.\n", "type": "integer" }, "sampleQuery": { "description": "An example 'curl' query to get started. When you create the connection, the query includes the password. Later responses show `INSERT_PASSWORD` in its place. Not returned when listing connections.\n", "secret": true, "type": "string" }, "teamIds": { "description": "Teams whose data this connection reaches, as 't'-prefixed team IDs such as 't123'. Get the IDs via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "items": { "type": "string" }, "type": "array" }, "teamNames": { "description": "Names of the teams whose data this connection reaches.\n", "items": { "type": "string" }, "type": "array" }, "username": { "description": "The username to connect with.\n", "type": "string" }, "validUntil": { "description": "When the credential expires, or null if it never does. Leaving it out clears it, on create too.\n", "type": "string" } }, "required": [ "clientType", "cluster", "clusters", "createdAt", "createdBy", "dataSources", "host", "id", "ipAllowlist", "note", "password", "port", "sampleQuery", "teamIds", "teamNames", "username", "validUntil" ], "type": "object" } }, "betterstack:index/getDashboard:getDashboard": { "description": "A dashboard of charts visualizing logs, metrics, and traces.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getDashboard({\n dashboardGroupId: \"789\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_dashboard(dashboard_group_id=\"789\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetDashboard.Invoke(new()\n {\n DashboardGroupId = \"789\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetDashboard(ctx, \u0026betterstack.LookupDashboardArgs{\n\t\t\tDashboardGroupId: pulumi.StringRef(\"789\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_dashboard\" \"example\" {\n dashboard_group_id = \"789\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetDashboardArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getDashboard(GetDashboardArgs.builder()\n .dashboardGroupId(\"789\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getDashboard\n arguments:\n dashboardGroupId: '789'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getDashboard.\n", "properties": { "dashboardGroupId": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "product": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getDashboard.\n", "properties": { "charts": { "items": { "$ref": "#/types/betterstack:index/getDashboardChartSummary:getDashboardChartSummary" }, "type": "array" }, "createdAt": { "type": "string" }, "dashboardGroupId": { "type": "string" }, "dateRangeFrom": { "type": "string" }, "dateRangeTo": { "type": "string" }, "hasOverlaps": { "type": "boolean" }, "id": { "type": "string" }, "name": { "type": "string" }, "product": { "type": "string" }, "refreshInterval": { "type": "integer" }, "resourceGroupName": { "type": "string" }, "sections": { "items": { "$ref": "#/types/betterstack:index/getDashboardSectionSummary:getDashboardSectionSummary" }, "type": "array" }, "sourceEligibilitySql": { "type": "string" }, "sourceId": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "templateId": { "type": "string" }, "updatedAt": { "type": "string" }, "url": { "type": "string" }, "variables": { "items": { "$ref": "#/types/betterstack:index/getDashboardVariable:getDashboardVariable" }, "type": "array" } }, "required": [ "charts", "createdAt", "dashboardGroupId", "dateRangeFrom", "dateRangeTo", "hasOverlaps", "id", "name", "product", "refreshInterval", "resourceGroupName", "sections", "sourceEligibilitySql", "sourceId", "teamId", "teamName", "templateId", "updatedAt", "url", "variables" ], "type": "object" } }, "betterstack:index/getDashboardChart:getDashboardChart": { "description": "A chart on a dashboard, backed by one or more queries.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getDashboardChart({\n dashboardId: \"12345\",\n name: \"Errors\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_dashboard_chart(dashboard_id=\"12345\",\n name=\"Errors\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetDashboardChart.Invoke(new()\n {\n DashboardId = \"12345\",\n Name = \"Errors\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetDashboardChart(ctx, \u0026betterstack.LookupDashboardChartArgs{\n\t\t\tDashboardId: \"12345\",\n\t\t\tName: pulumi.StringRef(\"Errors\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_dashboard_chart\" \"example\" {\n dashboard_id = \"12345\"\n name = \"Errors\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetDashboardChartArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getDashboardChart(GetDashboardChartArgs.builder()\n .dashboardId(\"12345\")\n .name(\"Errors\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getDashboardChart\n arguments:\n dashboardId: '12345'\n name: Errors\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getDashboardChart.\n", "properties": { "dashboardId": { "type": "string", "description": "Dashboard this chart is on. Can't be changed after the chart is created. Changing it replaces the resource.\n" }, "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object", "required": [ "dashboardId" ] }, "outputs": { "description": "A collection of values returned by getDashboardChart.\n", "properties": { "chartType": { "type": "string" }, "dashboardId": { "description": "Dashboard this chart is on. Can't be changed after the chart is created. Changing it replaces the resource.\n", "type": "string" }, "description": { "type": "string" }, "explanation": { "type": "string" }, "h": { "type": "integer" }, "id": { "type": "string" }, "name": { "type": "string" }, "queries": { "items": { "$ref": "#/types/betterstack:index/getDashboardChartQuery:getDashboardChartQuery" }, "type": "array" }, "settings": { "$ref": "#/types/betterstack:index/getDashboardChartSettings:getDashboardChartSettings" }, "teamId": { "type": "string" }, "w": { "type": "integer" }, "x": { "type": "integer" }, "y": { "type": "integer" } }, "required": [ "chartType", "dashboardId", "description", "explanation", "h", "id", "name", "queries", "settings", "teamId", "w", "x", "y" ], "type": "object" } }, "betterstack:index/getDashboardGroup:getDashboardGroup": { "description": "A group that organizes related dashboards together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getDashboardGroup({\n name: \"Production Monitoring\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_dashboard_group(name=\"Production Monitoring\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetDashboardGroup.Invoke(new()\n {\n Name = \"Production Monitoring\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetDashboardGroup(ctx, \u0026betterstack.LookupDashboardGroupArgs{\n\t\t\tName: pulumi.StringRef(\"Production Monitoring\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_dashboard_group\" \"example\" {\n name = \"Production Monitoring\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetDashboardGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getDashboardGroup(GetDashboardGroupArgs.builder()\n .name(\"Production Monitoring\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getDashboardGroup\n arguments:\n name: Production Monitoring\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getDashboardGroup.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getDashboardGroup.\n", "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "createdAt", "id", "name", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getDashboardSection:getDashboardSection": { "description": "A full-width section divider that groups charts on a dashboard.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getDashboardSection({\n dashboardId: \"12345\",\n name: \"Errors\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_dashboard_section(dashboard_id=\"12345\",\n name=\"Errors\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetDashboardSection.Invoke(new()\n {\n DashboardId = \"12345\",\n Name = \"Errors\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetDashboardSection(ctx, \u0026betterstack.LookupDashboardSectionArgs{\n\t\t\tDashboardId: \"12345\",\n\t\t\tName: pulumi.StringRef(\"Errors\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_dashboard_section\" \"example\" {\n dashboard_id = \"12345\"\n name = \"Errors\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetDashboardSectionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getDashboardSection(GetDashboardSectionArgs.builder()\n .dashboardId(\"12345\")\n .name(\"Errors\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getDashboardSection\n arguments:\n dashboardId: '12345'\n name: Errors\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getDashboardSection.\n", "properties": { "dashboardId": { "type": "string", "description": "Dashboard this section is on. Can't be changed after the section is created. Changing it replaces the resource.\n" }, "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object", "required": [ "dashboardId" ] }, "outputs": { "description": "A collection of values returned by getDashboardSection.\n", "properties": { "collapsed": { "type": "boolean" }, "dashboardId": { "description": "Dashboard this section is on. Can't be changed after the section is created. Changing it replaces the resource.\n", "type": "string" }, "explanation": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" }, "y": { "type": "integer" } }, "required": [ "collapsed", "dashboardId", "explanation", "id", "name", "teamId", "y" ], "type": "object" } }, "betterstack:index/getDashboardTemplate:getDashboardTemplate": { "description": "A prebuilt dashboard template you can create a dashboard from.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getDashboardTemplate({\n name: \"Better Stack Collector\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_dashboard_template(name=\"Better Stack Collector\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetDashboardTemplate.Invoke(new()\n {\n Name = \"Better Stack Collector\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetDashboardTemplate(ctx, \u0026betterstack.GetDashboardTemplateArgs{\n\t\t\tName: pulumi.StringRef(\"Better Stack Collector\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_dashboard_template\" \"example\" {\n name = \"Better Stack Collector\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetDashboardTemplateArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getDashboardTemplate(GetDashboardTemplateArgs.builder()\n .name(\"Better Stack Collector\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getDashboardTemplate\n arguments:\n name: Better Stack Collector\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getDashboardTemplate.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getDashboardTemplate.\n", "properties": { "categories": { "items": { "type": "string" }, "type": "array" }, "description": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "categories", "description", "id", "name" ], "type": "object" } }, "betterstack:index/getErrorsGitHubIntegration:getErrorsGitHubIntegration": { "description": "An Error tracking GitHub integration, which links your GitHub repositories to Error tracking.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getErrorsGitHubIntegration({\n accountLogin: \"acme\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_errors_git_hub_integration(account_login=\"acme\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetErrorsGitHubIntegration.Invoke(new()\n {\n AccountLogin = \"acme\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetErrorsGitHubIntegration(ctx, \u0026betterstack.GetErrorsGitHubIntegrationArgs{\n\t\t\tAccountLogin: pulumi.StringRef(\"acme\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_errors_git_hub_integration\" \"example\" {\n account_login = \"acme\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetErrorsGitHubIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getErrorsGitHubIntegration(GetErrorsGitHubIntegrationArgs.builder()\n .accountLogin(\"acme\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getErrorsGitHubIntegration\n arguments:\n accountLogin: acme\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getErrorsGitHubIntegration.\n", "properties": { "accountLogin": { "type": "string" }, "id": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getErrorsGitHubIntegration.\n", "properties": { "accountLogin": { "type": "string" }, "accountType": { "type": "string" }, "canCreatePullRequests": { "type": "boolean" }, "id": { "type": "string" }, "repositories": { "items": { "$ref": "#/types/betterstack:index/getErrorsGitHubIntegrationRepository:getErrorsGitHubIntegrationRepository" }, "type": "array" }, "settingsUrl": { "type": "string" }, "status": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" } }, "required": [ "accountLogin", "accountType", "canCreatePullRequests", "id", "repositories", "settingsUrl", "status", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getErrorsJiraIntegration:getErrorsJiraIntegration": { "description": "An Error tracking Jira integration. The integration sets which errors are filed as Jira work items, in which space, and with which work type and fields.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getErrorsJiraIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_errors_jira_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetErrorsJiraIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetErrorsJiraIntegration(ctx, \u0026betterstack.LookupErrorsJiraIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_errors_jira_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetErrorsJiraIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getErrorsJiraIntegration(GetErrorsJiraIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getErrorsJiraIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getErrorsJiraIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Errors Jira integration to look up.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getErrorsJiraIntegration.\n", "properties": { "affectedUsersThresholdCount": { "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.\n", "type": "integer" }, "applications": { "description": "Applications this integration files work items for, each with its environments. Empty means any application. An update replaces the whole list.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsJiraIntegrationApplication:getErrorsJiraIntegrationApplication" }, "type": "array" }, "id": { "description": "The ID of the Errors Jira integration to look up.\n", "type": "string" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "More Jira fields set on new work items, keyed by Jira field ID. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.\n" }, "jiraIssueTypeId": { "description": "The ID of the Jira work type new work items get.\n", "type": "string" }, "jiraProjectKey": { "description": "The key of the Jira space work items are created in.\n", "type": "string" }, "jiraSiteUrl": { "description": "Jira site the integration is connected to.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "notifications": { "$ref": "#/types/betterstack:index/getErrorsJiraIntegrationNotifications:getErrorsJiraIntegrationNotifications", "description": "Which events file a Jira work item, as under **Automatic work item creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.\n", "type": "integer" }, "occurrenceThresholdInterval": { "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'.\n", "type": "string" }, "tagFilters": { "description": "The tags an error must have to get a work item. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsJiraIntegrationTagFilter:getErrorsJiraIntegrationTagFilter" }, "type": "array" }, "teamId": { "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns the integration.\n", "type": "string" } }, "required": [ "affectedUsersThresholdCount", "applications", "id", "jiraFields", "jiraIssueTypeId", "jiraProjectKey", "jiraSiteUrl", "name", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "tagFilters", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getErrorsLinearIntegration:getErrorsLinearIntegration": { "description": "An Error tracking Linear integration. The integration sets which errors are filed as Linear issues, with which issue properties, and how errors and issues are kept in sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getErrorsLinearIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_errors_linear_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetErrorsLinearIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetErrorsLinearIntegration(ctx, \u0026betterstack.LookupErrorsLinearIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_errors_linear_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetErrorsLinearIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getErrorsLinearIntegration(GetErrorsLinearIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getErrorsLinearIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getErrorsLinearIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Errors Linear integration to look up.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getErrorsLinearIntegration.\n", "properties": { "affectedUsersThresholdCount": { "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.\n", "type": "integer" }, "applications": { "description": "Applications this integration files issues for, each with its environments. Empty means any application. An update replaces the whole list.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsLinearIntegrationApplication:getErrorsLinearIntegrationApplication" }, "type": "array" }, "autoReopen": { "description": "Reopen the Linear issue when its error is automatically re-opened, moving the issue back to \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e. Works only when \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e are both set.\n", "type": "boolean" }, "autoResolve": { "description": "Resolve the error when its Linear issue is done, and move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the error is resolved. Moving the issue works only when \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e is set.\n", "type": "boolean" }, "id": { "description": "The ID of the Errors Linear integration to look up.\n", "type": "string" }, "linearAssigneeId": { "description": "The ID of the Linear user new issues are assigned to. null clears it. Reads return an empty string when none is set.\n", "type": "string" }, "linearLabelIds": { "description": "The IDs of the Linear labels added to new issues. An update replaces the whole list.\n", "items": { "type": "string" }, "type": "array" }, "linearPriority": { "description": "Priority of new issues. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n", "type": "string" }, "linearProjectId": { "description": "The ID of the Linear project new issues are added to. null clears it. Reads return an empty string when none is set.\n", "type": "string" }, "linearResolvedStatusId": { "description": "The ID of the Linear status an issue moves to when its error is resolved. null clears it. Reads return an empty string when none is set.\n", "type": "string" }, "linearStatusId": { "description": "The ID of the Linear status new issues get. Empty means the Linear team's default status. null clears it. Reads return an empty string when none is set.\n", "type": "string" }, "linearTeamId": { "description": "The ID of the Linear team issues are created in. To get the Linear IDs, pick them once on the integration's **Configure** page and read them back via [Get a Linear integration](https://betterstack.com/docs/errors/api/integrations/linear/get/). Changing the team clears \u003cspan pulumi-lang-nodejs=\"`linearStatusId`\" pulumi-lang-dotnet=\"`LinearStatusId`\" pulumi-lang-go=\"`linearStatusId`\" pulumi-lang-python=\"`linear_status_id`\" pulumi-lang-yaml=\"`linearStatusId`\" pulumi-lang-java=\"`linearStatusId`\" pulumi-lang-hcl=\"`linear_status_id`\"\u003e`linearStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`linearProjectId`\" pulumi-lang-dotnet=\"`LinearProjectId`\" pulumi-lang-go=\"`linearProjectId`\" pulumi-lang-python=\"`linear_project_id`\" pulumi-lang-yaml=\"`linearProjectId`\" pulumi-lang-java=\"`linearProjectId`\" pulumi-lang-hcl=\"`linear_project_id`\"\u003e`linearProjectId`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`linearLabelIds`\" pulumi-lang-dotnet=\"`LinearLabelIds`\" pulumi-lang-go=\"`linearLabelIds`\" pulumi-lang-python=\"`linear_label_ids`\" pulumi-lang-yaml=\"`linearLabelIds`\" pulumi-lang-java=\"`linearLabelIds`\" pulumi-lang-hcl=\"`linear_label_ids`\"\u003e`linearLabelIds`\u003c/span\u003e unless the same request sets them. null clears it.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "notifications": { "$ref": "#/types/betterstack:index/getErrorsLinearIntegrationNotifications:getErrorsLinearIntegrationNotifications", "description": "Which events file a Linear issue, as under **Automatic issue creation** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.\n", "type": "integer" }, "occurrenceThresholdInterval": { "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'.\n", "type": "string" }, "syncComments": { "description": "Share comments between errors and their linked Linear issues.\n", "type": "boolean" }, "tagFilters": { "description": "The tags an error must have to get an issue. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsLinearIntegrationTagFilter:getErrorsLinearIntegrationTagFilter" }, "type": "array" }, "teamId": { "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns the integration.\n", "type": "string" } }, "required": [ "affectedUsersThresholdCount", "applications", "autoReopen", "autoResolve", "id", "linearAssigneeId", "linearLabelIds", "linearPriority", "linearProjectId", "linearResolvedStatusId", "linearStatusId", "linearTeamId", "name", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "syncComments", "tagFilters", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getErrorsMicrosoftTeamsIntegration:getErrorsMicrosoftTeamsIntegration": { "description": "An Error tracking Microsoft Teams integration. The integration sets which errors reach which channels of the team the Better Stack app was added to.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getErrorsMicrosoftTeamsIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_errors_microsoft_teams_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetErrorsMicrosoftTeamsIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetErrorsMicrosoftTeamsIntegration(ctx, \u0026betterstack.LookupErrorsMicrosoftTeamsIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_errors_microsoft_teams_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetErrorsMicrosoftTeamsIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getErrorsMicrosoftTeamsIntegration(GetErrorsMicrosoftTeamsIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getErrorsMicrosoftTeamsIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getErrorsMicrosoftTeamsIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Errors Microsoft Teams integration to look up.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getErrorsMicrosoftTeamsIntegration.\n", "properties": { "affectedUsersThresholdCount": { "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.\n", "type": "integer" }, "id": { "description": "The ID of the Errors Microsoft Teams integration to look up.\n", "type": "string" }, "microsoftTeamsChannelName": { "description": "Channel the app was added to, which gets every error while \u003cspan pulumi-lang-nodejs=\"`routes`\" pulumi-lang-dotnet=\"`Routes`\" pulumi-lang-go=\"`routes`\" pulumi-lang-python=\"`routes`\" pulumi-lang-yaml=\"`routes`\" pulumi-lang-java=\"`routes`\" pulumi-lang-hcl=\"`routes`\"\u003e`routes`\u003c/span\u003e is empty.\n", "type": "string" }, "microsoftTeamsTeamName": { "description": "Microsoft Teams team the Better Stack app was added to.\n", "type": "string" }, "notifications": { "$ref": "#/types/betterstack:index/getErrorsMicrosoftTeamsIntegrationNotifications:getErrorsMicrosoftTeamsIntegrationNotifications", "description": "Which events post to the channels, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.\n", "type": "integer" }, "occurrenceThresholdInterval": { "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'.\n", "type": "string" }, "routes": { "description": "Which applications' errors go to which channels. An application that isn't in any route gets no messages, unless one of the routes has no applications. Empty means everything goes to the channel the app was added to. An update replaces the whole list.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsMicrosoftTeamsIntegrationRoute:getErrorsMicrosoftTeamsIntegrationRoute" }, "type": "array" }, "tagFilters": { "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsMicrosoftTeamsIntegrationTagFilter:getErrorsMicrosoftTeamsIntegrationTagFilter" }, "type": "array" }, "teamId": { "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns the integration.\n", "type": "string" } }, "required": [ "affectedUsersThresholdCount", "id", "microsoftTeamsChannelName", "microsoftTeamsTeamName", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "routes", "tagFilters", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getErrorsSlackIntegration:getErrorsSlackIntegration": { "description": "An Error tracking Slack integration. The integration sets the Slack channel that gets error notifications, which errors reach the channel and how updates are posted.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getErrorsSlackIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_errors_slack_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetErrorsSlackIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetErrorsSlackIntegration(ctx, \u0026betterstack.LookupErrorsSlackIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_errors_slack_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetErrorsSlackIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getErrorsSlackIntegration(GetErrorsSlackIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getErrorsSlackIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getErrorsSlackIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Errors Slack integration to look up.\n" }, "teamId": { "type": "string", "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getErrorsSlackIntegration.\n", "properties": { "affectedUsersThresholdCount": { "description": "Total number of affected users for `notifications.affected_users_threshold`. A positive whole number.\n", "type": "integer" }, "aiSreOnMention": { "description": "Start an AI SRE conversation when Better Stack is tagged in the channel.\n", "type": "boolean" }, "applications": { "description": "Applications whose errors this integration posts, each with its environments. Empty means any application. An update replaces the whole list.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsSlackIntegrationApplication:getErrorsSlackIntegrationApplication" }, "type": "array" }, "broadcastUpdates": { "description": "With 'thread_based', also send important updates to the channel. Important updates are resolved and re-opened errors, spikes, and errors reaching an occurrence milestone.\n", "type": "boolean" }, "id": { "description": "The ID of the Errors Slack integration to look up.\n", "type": "string" }, "notifications": { "$ref": "#/types/betterstack:index/getErrorsSlackIntegrationNotifications:getErrorsSlackIntegrationNotifications", "description": "Which events post to the channel, as under **Notify me when** in the web app. An update changes only the toggles sent.\n" }, "occurrenceThresholdCount": { "description": "Number of occurrences for `notifications.occurrence_threshold`. A positive whole number.\n", "type": "integer" }, "occurrenceThresholdInterval": { "description": "Time window for `notifications.occurrence_threshold`. Valid values: 'minute', 'hour', 'day', 'week'.\n", "type": "string" }, "postUpdates": { "description": "How updates are posted to Slack. 'single_channel': Posts every update to the channel. 'thread_based': Posts each new error to the channel and its updates in a thread.\n", "type": "string" }, "slackChannelName": { "description": "Slack channel errors are posted to.\n", "type": "string" }, "slackTeamName": { "description": "The Slack workspace the channel is in.\n", "type": "string" }, "tagFilters": { "description": "The tags an error must have to be posted. An error matches when one of its exceptions has every tag listed, each set to one of the tag's values. Empty means every error. You can list up to 10 tags, each once, with up to 50 values each. A tag or value can be up to 200 characters. An update replaces the whole list. The \u003cspan pulumi-lang-nodejs=\"`newReleases`\" pulumi-lang-dotnet=\"`NewReleases`\" pulumi-lang-go=\"`newReleases`\" pulumi-lang-python=\"`new_releases`\" pulumi-lang-yaml=\"`newReleases`\" pulumi-lang-java=\"`newReleases`\" pulumi-lang-hcl=\"`new_releases`\"\u003e`newReleases`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`spikeProtection`\" pulumi-lang-dotnet=\"`SpikeProtection`\" pulumi-lang-go=\"`spikeProtection`\" pulumi-lang-python=\"`spike_protection`\" pulumi-lang-yaml=\"`spikeProtection`\" pulumi-lang-java=\"`spikeProtection`\" pulumi-lang-hcl=\"`spike_protection`\"\u003e`spikeProtection`\u003c/span\u003e notifications and state changes are posted whatever the tags.\n", "items": { "$ref": "#/types/betterstack:index/getErrorsSlackIntegrationTagFilter:getErrorsSlackIntegrationTagFilter" }, "type": "array" }, "teamId": { "description": "ID of the team that owns the integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns the integration.\n", "type": "string" } }, "required": [ "affectedUsersThresholdCount", "aiSreOnMention", "applications", "broadcastUpdates", "id", "notifications", "occurrenceThresholdCount", "occurrenceThresholdInterval", "postUpdates", "slackChannelName", "slackTeamName", "tagFilters", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getEscalationPolicy:getEscalationPolicy": { "description": "An escalation policy decides who we notify about an incident, in what order, and how long we wait between steps.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getEscalationPolicy({\n name: \"On-call, then the whole team\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_escalation_policy(name=\"On-call, then the whole team\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetEscalationPolicy.Invoke(new()\n {\n Name = \"On-call, then the whole team\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetEscalationPolicy(ctx, \u0026betterstack.LookupEscalationPolicyArgs{\n\t\t\tName: pulumi.StringRef(\"On-call, then the whole team\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_escalation_policy\" \"example\" {\n name = \"On-call, then the whole team\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetEscalationPolicyArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getEscalationPolicy(GetEscalationPolicyArgs.builder()\n .name(\"On-call, then the whole team\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getEscalationPolicy\n arguments:\n name: On-call, then the whole team\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getEscalationPolicy.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getEscalationPolicy.\n", "properties": { "escalationPolicyGroupId": { "type": "string" }, "fallbackEscalationPolicyId": { "type": "string" }, "id": { "type": "string" }, "incidentToken": { "secret": true, "type": "string" }, "name": { "type": "string" }, "repeatCount": { "type": "integer" }, "repeatDelay": { "type": "integer" }, "steps": { "items": { "$ref": "#/types/betterstack:index/getEscalationPolicyStep:getEscalationPolicyStep" }, "type": "array" }, "teamId": { "type": "string" }, "teamName": { "type": "string" } }, "required": [ "escalationPolicyGroupId", "fallbackEscalationPolicyId", "id", "incidentToken", "name", "repeatCount", "repeatDelay", "steps", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getEscalationPolicyGroup:getEscalationPolicyGroup": { "description": "An escalation policy group keeps related escalation policies together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getEscalationPolicyGroup({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_escalation_policy_group(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetEscalationPolicyGroup.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetEscalationPolicyGroup(ctx, \u0026betterstack.LookupEscalationPolicyGroupArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_escalation_policy_group\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetEscalationPolicyGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getEscalationPolicyGroup(GetEscalationPolicyGroupArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getEscalationPolicyGroup\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getEscalationPolicyGroup.\n", "properties": { "id": { "type": "string", "description": "The ID of the escalation policy group to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getEscalationPolicyGroup.\n", "properties": { "createdAt": { "description": "When the group was created.\n", "type": "string" }, "id": { "description": "The ID of the escalation policy group to look up.\n", "type": "string" }, "name": { "description": "Group name.\n", "type": "string" }, "sortIndex": { "description": "The group's position in your list of escalation policy groups, lower values first. null when no position was set.\n", "type": "integer" }, "teamId": { "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this group.\n", "type": "string" }, "updatedAt": { "description": "When the group was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "name", "sortIndex", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getExploration:getExploration": { "description": "A saved exploration, which is a chart with its queries and variables over logs, metrics, or traces.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getExploration({\n name: \"Error Rate Analysis\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_exploration(name=\"Error Rate Analysis\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetExploration.Invoke(new()\n {\n Name = \"Error Rate Analysis\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetExploration(ctx, \u0026betterstack.LookupExplorationArgs{\n\t\t\tName: pulumi.StringRef(\"Error Rate Analysis\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_exploration\" \"example\" {\n name = \"Error Rate Analysis\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetExplorationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getExploration(GetExplorationArgs.builder()\n .name(\"Error Rate Analysis\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getExploration\n arguments:\n name: Error Rate Analysis\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getExploration.\n", "properties": { "explorationGroupId": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "product": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getExploration.\n", "properties": { "chart": { "$ref": "#/types/betterstack:index/getExplorationChart:getExplorationChart" }, "createdAt": { "type": "string" }, "dateRangeFrom": { "type": "string" }, "dateRangeTo": { "type": "string" }, "explorationGroupId": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "product": { "type": "string" }, "queries": { "items": { "$ref": "#/types/betterstack:index/getExplorationQuery:getExplorationQuery" }, "type": "array" }, "sourceId": { "type": "string" }, "sourceType": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "updatedAt": { "type": "string" }, "variables": { "items": { "$ref": "#/types/betterstack:index/getExplorationVariable:getExplorationVariable" }, "type": "array" } }, "required": [ "chart", "createdAt", "dateRangeFrom", "dateRangeTo", "explorationGroupId", "id", "name", "product", "queries", "sourceId", "sourceType", "teamId", "teamName", "updatedAt", "variables" ], "type": "object" } }, "betterstack:index/getExplorationGroup:getExplorationGroup": { "description": "A group that organizes related explorations together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getExplorationGroup({\n name: \"Production Monitoring\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_exploration_group(name=\"Production Monitoring\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetExplorationGroup.Invoke(new()\n {\n Name = \"Production Monitoring\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetExplorationGroup(ctx, \u0026betterstack.LookupExplorationGroupArgs{\n\t\t\tName: pulumi.StringRef(\"Production Monitoring\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_exploration_group\" \"example\" {\n name = \"Production Monitoring\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetExplorationGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getExplorationGroup(GetExplorationGroupArgs.builder()\n .name(\"Production Monitoring\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getExplorationGroup\n arguments:\n name: Production Monitoring\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getExplorationGroup.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getExplorationGroup.\n", "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "createdAt", "id", "name", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getExtractedMetric:getExtractedMetric": { "description": "A rule that extracts a metric, or a label, from a source's logs using its \u003cspan pulumi-lang-nodejs=\"`sqlExpression`\" pulumi-lang-dotnet=\"`SqlExpression`\" pulumi-lang-go=\"`sqlExpression`\" pulumi-lang-python=\"`sql_expression`\" pulumi-lang-yaml=\"`sqlExpression`\" pulumi-lang-java=\"`sqlExpression`\" pulumi-lang-hcl=\"`sql_expression`\"\u003e`sqlExpression`\u003c/span\u003e.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getExtractedMetric({\n sourceId: \"12345\",\n name: \"duration_ms\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_extracted_metric(source_id=\"12345\",\n name=\"duration_ms\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetExtractedMetric.Invoke(new()\n {\n SourceId = \"12345\",\n Name = \"duration_ms\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetExtractedMetric(ctx, \u0026betterstack.LookupExtractedMetricArgs{\n\t\t\tSourceId: \"12345\",\n\t\t\tName: pulumi.StringRef(\"duration_ms\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_extracted_metric\" \"example\" {\n source_id = \"12345\"\n name = \"duration_ms\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetExtractedMetricArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getExtractedMetric(GetExtractedMetricArgs.builder()\n .sourceId(\"12345\")\n .name(\"duration_ms\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getExtractedMetric\n arguments:\n sourceId: '12345'\n name: duration_ms\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getExtractedMetric.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" }, "teamId": { "type": "string" } }, "type": "object", "required": [ "sourceId" ] }, "outputs": { "description": "A collection of values returned by getExtractedMetric.\n", "properties": { "aggregations": { "items": { "type": "string" }, "type": "array" }, "buildType": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "sourceId": { "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n", "type": "string" }, "sqlExpression": { "type": "string" }, "teamId": { "type": "string" }, "type": { "type": "string" } }, "required": [ "aggregations", "buildType", "id", "name", "sourceId", "sqlExpression", "teamId", "type" ], "type": "object" } }, "betterstack:index/getFirewall:getFirewall": { "description": "A named set of inbound and outbound rules that you can attach to servers. A firewall blocks all traffic that no rule allows.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getFirewall({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_firewall(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetFirewall.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetFirewall(ctx, \u0026betterstack.LookupFirewallArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_firewall\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetFirewallArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getFirewall(GetFirewallArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getFirewall\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getFirewall.\n", "properties": { "id": { "type": "string", "description": "The firewall's ID, a UUID.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getFirewall.\n", "properties": { "createdAt": { "description": "When the firewall was created.\n", "type": "string" }, "id": { "description": "The firewall's ID, a UUID.\n", "type": "string" }, "name": { "description": "The firewall's name, unique in your organization.\n", "type": "string" }, "rules": { "description": "The firewall's rules. Add a rule via [Create a firewall rule](https://betterstack.com/docs/cloud/api/firewall-rules/create-firewall-rule/) and remove one via [Remove a firewall rule](https://betterstack.com/docs/cloud/api/firewall-rules/delete-firewall-rule/).\n", "items": { "$ref": "#/types/betterstack:index/getFirewallRuleSummary:getFirewallRuleSummary" }, "type": "array" }, "teamId": { "description": "The ID of the team that owns the firewall. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "type": "string" }, "updatedAt": { "description": "When the firewall was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "name", "rules", "teamId", "updatedAt" ], "type": "object" } }, "betterstack:index/getFirewallRule:getFirewallRule": { "description": "A rule that allows traffic through a firewall. A rule matches traffic by direction, protocol, address and port range.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getFirewallRule({\n firewallId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_firewall_rule(firewall_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetFirewallRule.Invoke(new()\n {\n FirewallId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetFirewallRule(ctx, \u0026betterstack.LookupFirewallRuleArgs{\n\t\t\tFirewallId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_firewall_rule\" \"example\" {\n firewall_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetFirewallRuleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getFirewallRule(GetFirewallRuleArgs.builder()\n .firewallId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getFirewallRule\n arguments:\n firewallId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getFirewallRule.\n", "properties": { "firewallId": { "type": "string", "description": "The ID of the parent this firewall belongs to. Changing it replaces the resource.\n" }, "id": { "type": "string", "description": "The rule's ID, a UUID.\n" } }, "type": "object", "required": [ "firewallId", "id" ] }, "outputs": { "description": "A collection of values returned by getFirewallRule.\n", "properties": { "direction": { "description": "Which traffic the rule matches. 'inbound': The rule matches traffic that arrives at the server. 'outbound': The rule matches traffic that leaves the server.\n", "type": "string" }, "firewallId": { "description": "The ID of the parent this firewall belongs to. Changing it replaces the resource.\n", "type": "string" }, "id": { "description": "The rule's ID, a UUID.\n", "type": "string" }, "ipAddresses": { "description": "The addresses the rule applies to, in CIDR notation, such as `10.0.0.0/8`. Use `0.0.0.0/0` and `::/0` for every address. The list can't be empty.\n", "items": { "type": "string" }, "type": "array" }, "portFrom": { "description": "The first port of the range, from '0' to '65535'. Send it for every protocol. A protocol without ports, such as 'icmp', ignores it.\n", "type": "integer" }, "portTo": { "description": "The last port of the range, from \u003cspan pulumi-lang-nodejs=\"`portFrom`\" pulumi-lang-dotnet=\"`PortFrom`\" pulumi-lang-go=\"`portFrom`\" pulumi-lang-python=\"`port_from`\" pulumi-lang-yaml=\"`portFrom`\" pulumi-lang-java=\"`portFrom`\" pulumi-lang-hcl=\"`port_from`\"\u003e`portFrom`\u003c/span\u003e to '65535'.\n", "type": "integer" }, "protocol": { "description": "The IP protocol the rule matches. 'any' matches every protocol. Valid values: 'tcp', 'udp', 'icmp', 'gre', 'esp', 'any'.\n", "type": "string" } }, "required": [ "direction", "firewallId", "id", "ipAddresses", "portFrom", "portTo", "protocol" ], "type": "object" } }, "betterstack:index/getGcpMetric:getGcpMetric": { "description": "A Google Cloud metric a GCP source can collect, and whether its metric filters collect it.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getGcpMetric({\n sourceId: \"12345\",\n metricType: \"compute.googleapis.com/instance/cpu/utilization\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_gcp_metric(source_id=\"12345\",\n metric_type=\"compute.googleapis.com/instance/cpu/utilization\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetGcpMetric.Invoke(new()\n {\n SourceId = \"12345\",\n MetricType = \"compute.googleapis.com/instance/cpu/utilization\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetGcpMetric(ctx, \u0026betterstack.GetGcpMetricArgs{\n\t\t\tSourceId: \"12345\",\n\t\t\tMetricType: pulumi.StringRef(\"compute.googleapis.com/instance/cpu/utilization\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_gcp_metric\" \"example\" {\n source_id = \"12345\"\n metric_type = \"compute.googleapis.com/instance/cpu/utilization\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetGcpMetricArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getGcpMetric(GetGcpMetricArgs.builder()\n .sourceId(\"12345\")\n .metricType(\"compute.googleapis.com/instance/cpu/utilization\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getGcpMetric\n arguments:\n sourceId: '12345'\n metricType: compute.googleapis.com/instance/cpu/utilization\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getGcpMetric.\n", "properties": { "id": { "type": "string" }, "metricType": { "type": "string" }, "sourceId": { "type": "string", "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "sourceId" ] }, "outputs": { "description": "A collection of values returned by getGcpMetric.\n", "properties": { "collected": { "type": "boolean" }, "description": { "type": "string" }, "displayName": { "type": "string" }, "id": { "type": "string" }, "kind": { "type": "string" }, "metricType": { "type": "string" }, "serviceName": { "type": "string" }, "sourceId": { "description": "The ID of the parent this source belongs to. Changing it replaces the resource.\n", "type": "string" } }, "required": [ "collected", "description", "displayName", "id", "kind", "metricType", "serviceName", "sourceId" ], "type": "object" } }, "betterstack:index/getHeartbeat:getHeartbeat": { "description": "A heartbeat watches a cron job or background service. Your job requests the heartbeat's URL on a schedule, and we alert you when a request doesn't arrive in time.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getHeartbeat({\n name: \"Nightly database backup\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_heartbeat(name=\"Nightly database backup\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetHeartbeat.Invoke(new()\n {\n Name = \"Nightly database backup\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetHeartbeat(ctx, \u0026betterstack.LookupHeartbeatArgs{\n\t\t\tName: pulumi.StringRef(\"Nightly database backup\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_heartbeat\" \"example\" {\n name = \"Nightly database backup\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetHeartbeatArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getHeartbeat(GetHeartbeatArgs.builder()\n .name(\"Nightly database backup\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getHeartbeat\n arguments:\n name: Nightly database backup\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getHeartbeat.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getHeartbeat.\n", "properties": { "call": { "type": "boolean" }, "createdAt": { "type": "string" }, "criticalAlert": { "type": "boolean" }, "deletionProtection": { "type": "boolean" }, "email": { "type": "boolean" }, "escalationPolicyId": { "type": "string" }, "grace": { "type": "integer" }, "heartbeatGroupId": { "type": "string" }, "id": { "type": "string" }, "maintenanceDays": { "items": { "type": "string" }, "type": "array" }, "maintenanceFrom": { "type": "string" }, "maintenanceTimezone": { "type": "string" }, "maintenanceTo": { "type": "string" }, "metadata": { "additionalProperties": { "$ref": "#/types/betterstack:index/getHeartbeatMetadata:getHeartbeatMetadata" }, "type": "object" }, "name": { "type": "string" }, "paused": { "type": "boolean" }, "pausedAt": { "type": "string" }, "period": { "type": "integer" }, "push": { "type": "boolean" }, "serverTimezone": { "type": "string" }, "sms": { "type": "boolean" }, "sortIndex": { "type": "integer" }, "status": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "teamWait": { "type": "integer" }, "updatedAt": { "type": "string" }, "url": { "secret": true, "type": "string" } }, "required": [ "call", "createdAt", "criticalAlert", "deletionProtection", "email", "escalationPolicyId", "grace", "heartbeatGroupId", "id", "maintenanceDays", "maintenanceFrom", "maintenanceTimezone", "maintenanceTo", "metadata", "name", "paused", "pausedAt", "period", "push", "serverTimezone", "sms", "sortIndex", "status", "teamId", "teamName", "teamWait", "updatedAt", "url" ], "type": "object" } }, "betterstack:index/getHeartbeatGroup:getHeartbeatGroup": { "description": "A group that organizes related heartbeats together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getHeartbeatGroup({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_heartbeat_group(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetHeartbeatGroup.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetHeartbeatGroup(ctx, \u0026betterstack.LookupHeartbeatGroupArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_heartbeat_group\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetHeartbeatGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getHeartbeatGroup(GetHeartbeatGroupArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getHeartbeatGroup\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getHeartbeatGroup.\n", "properties": { "id": { "type": "string", "description": "The ID of the heartbeat group to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this heartbeat group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getHeartbeatGroup.\n", "properties": { "createdAt": { "description": "When the group was created.\n", "type": "string" }, "id": { "description": "The ID of the heartbeat group to look up.\n", "type": "string" }, "name": { "description": "Group name.\n", "type": "string" }, "paused": { "description": "Whether every heartbeat in the group is paused, false when the group has none.\n", "type": "boolean" }, "sortIndex": { "description": "The position of the group in your list of heartbeat groups, lower values first. null when no position was set.\n", "type": "integer" }, "teamId": { "description": "Team that owns this heartbeat group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this heartbeat group.\n", "type": "string" }, "updatedAt": { "description": "When the group was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "name", "paused", "sortIndex", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getImage:getImage": { "description": "An operating system image a server can be created from.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getImage({\n id: \"ubuntu-26-04\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_image(id=\"ubuntu-26-04\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetImage.Invoke(new()\n {\n Id = \"ubuntu-26-04\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetImage(ctx, \u0026betterstack.GetImageArgs{\n\t\t\tId: \"ubuntu-26-04\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_image\" \"example\" {\n id = \"ubuntu-26-04\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetImageArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getImage(GetImageArgs.builder()\n .id(\"ubuntu-26-04\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getImage\n arguments:\n id: ubuntu-26-04\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getImage.\n", "properties": { "id": { "type": "string", "description": "The ID of the image to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getImage.\n", "properties": { "id": { "description": "The ID of the image to look up.\n", "type": "string" }, "slug": { "description": "The image's name, such as `ubuntu-26-04`. Send it as 'image' when you create a server.\n", "type": "string" } }, "required": [ "id", "slug" ], "type": "object" } }, "betterstack:index/getIncidentsAmazonSnsIntegration:getIncidentsAmazonSnsIntegration": { "description": "An Amazon SNS integration opens incidents from the notifications your Amazon SNS topic sends. Rules you set decide which notifications open, acknowledge or resolve an incident.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsAmazonSnsIntegration({\n name: \"Backend alerts\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_amazon_sns_integration(name=\"Backend alerts\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsAmazonSnsIntegration.Invoke(new()\n {\n Name = \"Backend alerts\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsAmazonSnsIntegration(ctx, \u0026betterstack.LookupIncidentsAmazonSnsIntegrationArgs{\n\t\t\tName: pulumi.StringRef(\"Backend alerts\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_amazon_sns_integration\" \"example\" {\n name = \"Backend alerts\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsAmazonSnsIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsAmazonSnsIntegration(GetIncidentsAmazonSnsIntegrationArgs.builder()\n .name(\"Backend alerts\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsAmazonSnsIntegration\n arguments:\n name: Backend alerts\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsAmazonSnsIntegration.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getIncidentsAmazonSnsIntegration.\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationAcknowledgedAlertIdField:getIncidentsAmazonSnsIntegrationAcknowledgedAlertIdField" }, "acknowledgedRuleType": { "type": "string" }, "acknowledgedRules": { "items": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationAcknowledgedRule:getIncidentsAmazonSnsIntegrationAcknowledgedRule" }, "type": "array" }, "call": { "type": "boolean" }, "causeField": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationCauseField:getIncidentsAmazonSnsIntegrationCauseField" }, "createdAt": { "type": "string" }, "criticalAlert": { "type": "boolean" }, "email": { "type": "boolean" }, "escalationPolicyId": { "type": "string" }, "id": { "type": "string" }, "metadata": { "additionalProperties": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationMetadata:getIncidentsAmazonSnsIntegrationMetadata" }, "type": "object" }, "name": { "type": "string" }, "otherAcknowledgedFields": { "items": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationOtherAcknowledgedField:getIncidentsAmazonSnsIntegrationOtherAcknowledgedField" }, "type": "array" }, "otherResolvedFields": { "items": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationOtherResolvedField:getIncidentsAmazonSnsIntegrationOtherResolvedField" }, "type": "array" }, "otherStartedFields": { "items": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationOtherStartedField:getIncidentsAmazonSnsIntegrationOtherStartedField" }, "type": "array" }, "paused": { "type": "boolean" }, "push": { "type": "boolean" }, "recoveryPeriod": { "type": "integer" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationResolvedAlertIdField:getIncidentsAmazonSnsIntegrationResolvedAlertIdField" }, "resolvedRuleType": { "type": "string" }, "resolvedRules": { "items": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationResolvedRule:getIncidentsAmazonSnsIntegrationResolvedRule" }, "type": "array" }, "sampleBody": { "type": "string" }, "sampleHeaders": { "type": "string" }, "sampleQueryString": { "type": "string" }, "sms": { "type": "boolean" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationStartedAlertIdField:getIncidentsAmazonSnsIntegrationStartedAlertIdField" }, "startedRuleType": { "type": "string" }, "startedRules": { "items": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationStartedRule:getIncidentsAmazonSnsIntegrationStartedRule" }, "type": "array" }, "subscriptionState": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "teamWait": { "type": "integer" }, "titleField": { "$ref": "#/types/betterstack:index/getIncidentsAmazonSnsIntegrationTitleField:getIncidentsAmazonSnsIntegrationTitleField" }, "topicArn": { "type": "string" }, "updatedAt": { "type": "string" }, "url": { "secret": true, "type": "string" } }, "required": [ "acknowledgedAlertIdField", "acknowledgedRuleType", "acknowledgedRules", "call", "causeField", "createdAt", "criticalAlert", "email", "escalationPolicyId", "id", "metadata", "name", "otherAcknowledgedFields", "otherResolvedFields", "otherStartedFields", "paused", "push", "recoveryPeriod", "resolvedAlertIdField", "resolvedRuleType", "resolvedRules", "sampleBody", "sampleHeaders", "sampleQueryString", "sms", "startedAlertIdField", "startedRuleType", "startedRules", "subscriptionState", "teamId", "teamName", "teamWait", "titleField", "topicArn", "updatedAt", "url" ], "type": "object" } }, "betterstack:index/getIncidentsAwsCloudWatchIntegration:getIncidentsAwsCloudWatchIntegration": { "description": "Receives alerts from AWS CloudWatch and opens Better Stack incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsAwsCloudWatchIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_aws_cloud_watch_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsAwsCloudWatchIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsAwsCloudWatchIntegration(ctx, \u0026betterstack.LookupIncidentsAwsCloudWatchIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_aws_cloud_watch_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsAwsCloudWatchIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsAwsCloudWatchIntegration(GetIncidentsAwsCloudWatchIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsAwsCloudWatchIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsAwsCloudWatchIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the AWS CloudWatch integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsAwsCloudWatchIntegration.\n", "properties": { "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the AWS CloudWatch integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into AWS CloudWatch. Alerts AWS CloudWatch sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsAzureIntegration:getIncidentsAzureIntegration": { "description": "An Azure integration turns alerts from Azure into incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsAzureIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_azure_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsAzureIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsAzureIntegration(ctx, \u0026betterstack.LookupIncidentsAzureIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_azure_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsAzureIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsAzureIntegration(GetIncidentsAzureIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsAzureIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsAzureIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Azure integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsAzureIntegration.\n", "properties": { "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the Azure integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into Azure. Alerts Azure sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsDatadogIntegration:getIncidentsDatadogIntegration": { "description": "Receives alerts from Datadog and opens Better Stack incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsDatadogIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_datadog_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsDatadogIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsDatadogIntegration(ctx, \u0026betterstack.LookupIncidentsDatadogIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_datadog_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsDatadogIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsDatadogIntegration(GetIncidentsDatadogIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsDatadogIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsDatadogIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Datadog integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsDatadogIntegration.\n", "properties": { "alertingRule": { "description": "Which Datadog alert levels open incidents. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n", "type": "string" }, "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the Datadog integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into Datadog. Alerts Datadog sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "alertingRule", "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsElasticIntegration:getIncidentsElasticIntegration": { "description": "An Elastic integration turns alerts from Elastic into incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsElasticIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_elastic_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsElasticIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsElasticIntegration(ctx, \u0026betterstack.LookupIncidentsElasticIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_elastic_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsElasticIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsElasticIntegration(GetIncidentsElasticIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsElasticIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsElasticIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Elastic integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsElasticIntegration.\n", "properties": { "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the Elastic integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into Elastic. Alerts Elastic sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsGoogleMonitoringIntegration:getIncidentsGoogleMonitoringIntegration": { "description": "Receives alerts from Google Monitoring and opens Better Stack incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsGoogleMonitoringIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_google_monitoring_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsGoogleMonitoringIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsGoogleMonitoringIntegration(ctx, \u0026betterstack.LookupIncidentsGoogleMonitoringIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_google_monitoring_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsGoogleMonitoringIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsGoogleMonitoringIntegration(GetIncidentsGoogleMonitoringIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsGoogleMonitoringIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsGoogleMonitoringIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Google Monitoring integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsGoogleMonitoringIntegration.\n", "properties": { "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the Google Monitoring integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into Google Monitoring. Alerts Google Monitoring sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsGrafanaIntegration:getIncidentsGrafanaIntegration": { "description": "A Grafana integration turns alerts from Grafana into incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsGrafanaIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_grafana_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsGrafanaIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsGrafanaIntegration(ctx, \u0026betterstack.LookupIncidentsGrafanaIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_grafana_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsGrafanaIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsGrafanaIntegration(GetIncidentsGrafanaIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsGrafanaIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsGrafanaIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Grafana integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsGrafanaIntegration.\n", "properties": { "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the Grafana integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into Grafana. Alerts Grafana sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsIncomingEmailIntegration:getIncidentsIncomingEmailIntegration": { "description": "An e-mail address that opens incidents from the e-mails it receives. Fields you set pick values such as the cause out of each e-mail, and rules decide whether an e-mail opens, acknowledges or resolves an incident.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsIncomingEmailIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_incoming_email_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsIncomingEmailIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsIncomingEmailIntegration(ctx, \u0026betterstack.LookupIncidentsIncomingEmailIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_incoming_email_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsIncomingEmailIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsIncomingEmailIntegration(GetIncidentsIncomingEmailIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsIncomingEmailIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsIncomingEmailIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the incoming e-mail integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsIncomingEmailIntegration.\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationAcknowledgedAlertIdField:getIncidentsIncomingEmailIntegrationAcknowledgedAlertIdField", "description": "How to extract the alert ID from an e-mail that acknowledges an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "acknowledgedRuleType": { "description": "When e-mails acknowledge an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`acknowledgedAlertIdField`\" pulumi-lang-dotnet=\"`AcknowledgedAlertIdField`\" pulumi-lang-go=\"`acknowledgedAlertIdField`\" pulumi-lang-python=\"`acknowledged_alert_id_field`\" pulumi-lang-yaml=\"`acknowledgedAlertIdField`\" pulumi-lang-java=\"`acknowledgedAlertIdField`\" pulumi-lang-hcl=\"`acknowledged_alert_id_field`\"\u003e`acknowledgedAlertIdField`\u003c/span\u003e and at least one rule. 'unused': E-mails never acknowledge an incident. 'any': An e-mail acknowledges an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e matches. 'all': An e-mail acknowledges an incident when all of \u003cspan pulumi-lang-nodejs=\"`acknowledgedRules`\" pulumi-lang-dotnet=\"`AcknowledgedRules`\" pulumi-lang-go=\"`acknowledgedRules`\" pulumi-lang-python=\"`acknowledged_rules`\" pulumi-lang-yaml=\"`acknowledgedRules`\" pulumi-lang-java=\"`acknowledgedRules`\" pulumi-lang-hcl=\"`acknowledged_rules`\"\u003e`acknowledgedRules`\u003c/span\u003e match.\n", "type": "string" }, "acknowledgedRules": { "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationAcknowledgedRule:getIncidentsIncomingEmailIntegrationAcknowledgedRule" }, "type": "array" }, "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "causeField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationCauseField:getIncidentsIncomingEmailIntegrationCauseField", "description": "How to extract the incident cause from the e-mail that starts an incident. Defaults to the whole subject.\n" }, "createdAt": { "description": "When the integration was created.\n", "type": "string" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "emailAddress": { "description": "The address to forward your e-mails to. E-mails sent to it open incidents.\n", "type": "string" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly. Returned as a string.\n", "type": "string" }, "id": { "description": "The ID of the incoming e-mail integration to look up.\n", "type": "string" }, "metadata": { "additionalProperties": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationMetadata:getIncidentsIncomingEmailIntegrationMetadata" }, "description": "Custom metadata. Each key holds a list of values. A value is a string, written as `{type: \"String\", value}`, or a catalog reference, written as `{type, item_id, name, email}`. User references are returned as 'u123' and team references as 't123'. Get a user's ID via [List team members](https://betterstack.com/docs/uptime/api/team-members/list/), and a team's ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/). A key accepts a single value or a list. Values under one key must all be the same type and can't repeat. Each key holds its list under \u003cspan pulumi-lang-nodejs=\"`values`\" pulumi-lang-dotnet=\"`Values`\" pulumi-lang-go=\"`values`\" pulumi-lang-python=\"`values`\" pulumi-lang-yaml=\"`values`\" pulumi-lang-java=\"`values`\" pulumi-lang-hcl=\"`values`\"\u003e`values`\u003c/span\u003e.\n", "type": "object" }, "name": { "description": "The name of the e-mail integration shown in the dashboard.\n", "type": "string" }, "otherAcknowledgedFields": { "description": "Custom fields extracted from an e-mail that acknowledges an incident.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationOtherAcknowledgedField:getIncidentsIncomingEmailIntegrationOtherAcknowledgedField" }, "type": "array" }, "otherResolvedFields": { "description": "Custom fields extracted from an e-mail that resolves an incident.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationOtherResolvedField:getIncidentsIncomingEmailIntegrationOtherResolvedField" }, "type": "array" }, "otherStartedFields": { "description": "Custom fields extracted from the e-mail that opens an incident, saved as incident metadata.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationOtherStartedField:getIncidentsIncomingEmailIntegrationOtherStartedField" }, "type": "array" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "recoveryPeriod": { "description": "How long to wait after a resolving e-mail before the incident resolves, in seconds. A new alert during the wait keeps the incident open. Applies only while \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'. Valid values: '0', '60', '180', '300', '900', '1800', '3600', '7200'.\n", "type": "integer" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationResolvedAlertIdField:getIncidentsIncomingEmailIntegrationResolvedAlertIdField", "description": "How to extract the alert ID from an e-mail that resolves an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Required when \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "resolvedRuleType": { "description": "When e-mails resolve an incident. Any value other than 'unused' needs \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`resolvedAlertIdField`\" pulumi-lang-dotnet=\"`ResolvedAlertIdField`\" pulumi-lang-go=\"`resolvedAlertIdField`\" pulumi-lang-python=\"`resolved_alert_id_field`\" pulumi-lang-yaml=\"`resolvedAlertIdField`\" pulumi-lang-java=\"`resolvedAlertIdField`\" pulumi-lang-hcl=\"`resolved_alert_id_field`\"\u003e`resolvedAlertIdField`\u003c/span\u003e and at least one rule. Each e-mail is checked against the resolve rules first, then the acknowledge rules, then the open rules. An e-mail that matches no open incident can still open one. 'unused': E-mails never resolve an incident. 'any': An e-mail resolves an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e matches. 'all': An e-mail resolves an incident when all of \u003cspan pulumi-lang-nodejs=\"`resolvedRules`\" pulumi-lang-dotnet=\"`ResolvedRules`\" pulumi-lang-go=\"`resolvedRules`\" pulumi-lang-python=\"`resolved_rules`\" pulumi-lang-yaml=\"`resolvedRules`\" pulumi-lang-java=\"`resolvedRules`\" pulumi-lang-hcl=\"`resolved_rules`\"\u003e`resolvedRules`\u003c/span\u003e match.\n", "type": "string" }, "resolvedRules": { "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e checks, with the same keys as \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e. At least one is required when the type is 'any' or 'all'.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationResolvedRule:getIncidentsIncomingEmailIntegrationResolvedRule" }, "type": "array" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationStartedAlertIdField:getIncidentsIncomingEmailIntegrationStartedAlertIdField", "description": "How to extract the alert ID from the e-mail that starts an incident, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e. Later e-mails acknowledge or resolve the open incident with the same alert ID. Required when \u003cspan pulumi-lang-nodejs=\"`acknowledgedRuleType`\" pulumi-lang-dotnet=\"`AcknowledgedRuleType`\" pulumi-lang-go=\"`acknowledgedRuleType`\" pulumi-lang-python=\"`acknowledged_rule_type`\" pulumi-lang-yaml=\"`acknowledgedRuleType`\" pulumi-lang-java=\"`acknowledgedRuleType`\" pulumi-lang-hcl=\"`acknowledged_rule_type`\"\u003e`acknowledgedRuleType`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`resolvedRuleType`\" pulumi-lang-dotnet=\"`ResolvedRuleType`\" pulumi-lang-go=\"`resolvedRuleType`\" pulumi-lang-python=\"`resolved_rule_type`\" pulumi-lang-yaml=\"`resolvedRuleType`\" pulumi-lang-java=\"`resolvedRuleType`\" pulumi-lang-hcl=\"`resolved_rule_type`\"\u003e`resolvedRuleType`\u003c/span\u003e isn't 'unused'.\n" }, "startedRuleType": { "description": "When e-mails open an incident. Every value other than 'unused' needs at least one rule. When \u003cspan pulumi-lang-nodejs=\"`startedAlertIdField`\" pulumi-lang-dotnet=\"`StartedAlertIdField`\" pulumi-lang-go=\"`startedAlertIdField`\" pulumi-lang-python=\"`started_alert_id_field`\" pulumi-lang-yaml=\"`startedAlertIdField`\" pulumi-lang-java=\"`startedAlertIdField`\" pulumi-lang-hcl=\"`started_alert_id_field`\"\u003e`startedAlertIdField`\u003c/span\u003e finds an alert ID that matches an open incident, the e-mail goes to that incident instead of opening a new one. 'unused': Every e-mail that doesn't acknowledge or resolve an incident opens one. 'any': An e-mail opens an incident when at least one of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e matches. 'all': An e-mail opens an incident when all of \u003cspan pulumi-lang-nodejs=\"`startedRules`\" pulumi-lang-dotnet=\"`StartedRules`\" pulumi-lang-go=\"`startedRules`\" pulumi-lang-python=\"`started_rules`\" pulumi-lang-yaml=\"`startedRules`\" pulumi-lang-java=\"`startedRules`\" pulumi-lang-hcl=\"`started_rules`\"\u003e`startedRules`\u003c/span\u003e match.\n", "type": "string" }, "startedRules": { "description": "The conditions \u003cspan pulumi-lang-nodejs=\"`startedRuleType`\" pulumi-lang-dotnet=\"`StartedRuleType`\" pulumi-lang-go=\"`startedRuleType`\" pulumi-lang-python=\"`started_rule_type`\" pulumi-lang-yaml=\"`startedRuleType`\" pulumi-lang-java=\"`startedRuleType`\" pulumi-lang-hcl=\"`started_rule_type`\"\u003e`startedRuleType`\u003c/span\u003e checks. At least one rule is required when the type is 'any' or 'all'.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationStartedRule:getIncidentsIncomingEmailIntegrationStartedRule" }, "type": "array" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "titleField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingEmailIntegrationTitleField:getIncidentsIncomingEmailIntegrationTitleField", "description": "Field that extracts the incident title, with the same keys as \u003cspan pulumi-lang-nodejs=\"`causeField`\" pulumi-lang-dotnet=\"`CauseField`\" pulumi-lang-go=\"`causeField`\" pulumi-lang-python=\"`cause_field`\" pulumi-lang-yaml=\"`causeField`\" pulumi-lang-java=\"`causeField`\" pulumi-lang-hcl=\"`cause_field`\"\u003e`causeField`\u003c/span\u003e.\n" }, "updatedAt": { "description": "When the integration was last updated.\n", "type": "string" } }, "required": [ "acknowledgedAlertIdField", "acknowledgedRuleType", "acknowledgedRules", "call", "causeField", "createdAt", "criticalAlert", "email", "emailAddress", "escalationPolicyId", "id", "metadata", "name", "otherAcknowledgedFields", "otherResolvedFields", "otherStartedFields", "paused", "push", "recoveryPeriod", "resolvedAlertIdField", "resolvedRuleType", "resolvedRules", "sms", "startedAlertIdField", "startedRuleType", "startedRules", "teamId", "teamName", "teamWait", "titleField", "updatedAt" ], "type": "object" } }, "betterstack:index/getIncidentsIncomingWebhookIntegration:getIncidentsIncomingWebhookIntegration": { "description": "A webhook URL that opens incidents from the requests it receives. Fields you set pick values such as the cause out of each request, and rules decide whether a request opens, acknowledges or resolves an incident.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsIncomingWebhookIntegration({\n name: \"Backend service\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_incoming_webhook_integration(name=\"Backend service\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsIncomingWebhookIntegration.Invoke(new()\n {\n Name = \"Backend service\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsIncomingWebhookIntegration(ctx, \u0026betterstack.LookupIncidentsIncomingWebhookIntegrationArgs{\n\t\t\tName: pulumi.StringRef(\"Backend service\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_incoming_webhook_integration\" \"example\" {\n name = \"Backend service\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsIncomingWebhookIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsIncomingWebhookIntegration(GetIncidentsIncomingWebhookIntegrationArgs.builder()\n .name(\"Backend service\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsIncomingWebhookIntegration\n arguments:\n name: Backend service\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsIncomingWebhookIntegration.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getIncidentsIncomingWebhookIntegration.\n", "properties": { "acknowledgedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField:getIncidentsIncomingWebhookIntegrationAcknowledgedAlertIdField" }, "acknowledgedRuleType": { "type": "string" }, "acknowledgedRules": { "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationAcknowledgedRule:getIncidentsIncomingWebhookIntegrationAcknowledgedRule" }, "type": "array" }, "call": { "type": "boolean" }, "causeField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationCauseField:getIncidentsIncomingWebhookIntegrationCauseField" }, "createdAt": { "type": "string" }, "criticalAlert": { "type": "boolean" }, "email": { "type": "boolean" }, "escalationPolicyId": { "type": "string" }, "id": { "type": "string" }, "metadata": { "additionalProperties": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationMetadata:getIncidentsIncomingWebhookIntegrationMetadata" }, "type": "object" }, "name": { "type": "string" }, "otherAcknowledgedFields": { "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationOtherAcknowledgedField:getIncidentsIncomingWebhookIntegrationOtherAcknowledgedField" }, "type": "array" }, "otherResolvedFields": { "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationOtherResolvedField:getIncidentsIncomingWebhookIntegrationOtherResolvedField" }, "type": "array" }, "otherStartedFields": { "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationOtherStartedField:getIncidentsIncomingWebhookIntegrationOtherStartedField" }, "type": "array" }, "paused": { "type": "boolean" }, "push": { "type": "boolean" }, "recoveryPeriod": { "type": "integer" }, "resolvedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationResolvedAlertIdField:getIncidentsIncomingWebhookIntegrationResolvedAlertIdField" }, "resolvedRuleType": { "type": "string" }, "resolvedRules": { "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationResolvedRule:getIncidentsIncomingWebhookIntegrationResolvedRule" }, "type": "array" }, "sampleBody": { "type": "string" }, "sampleHeaders": { "type": "string" }, "sampleQueryString": { "type": "string" }, "sms": { "type": "boolean" }, "startedAlertIdField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationStartedAlertIdField:getIncidentsIncomingWebhookIntegrationStartedAlertIdField" }, "startedRuleType": { "type": "string" }, "startedRules": { "items": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationStartedRule:getIncidentsIncomingWebhookIntegrationStartedRule" }, "type": "array" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "teamWait": { "type": "integer" }, "titleField": { "$ref": "#/types/betterstack:index/getIncidentsIncomingWebhookIntegrationTitleField:getIncidentsIncomingWebhookIntegrationTitleField" }, "updatedAt": { "type": "string" }, "url": { "secret": true, "type": "string" } }, "required": [ "acknowledgedAlertIdField", "acknowledgedRuleType", "acknowledgedRules", "call", "causeField", "createdAt", "criticalAlert", "email", "escalationPolicyId", "id", "metadata", "name", "otherAcknowledgedFields", "otherResolvedFields", "otherStartedFields", "paused", "push", "recoveryPeriod", "resolvedAlertIdField", "resolvedRuleType", "resolvedRules", "sampleBody", "sampleHeaders", "sampleQueryString", "sms", "startedAlertIdField", "startedRuleType", "startedRules", "teamId", "teamName", "teamWait", "titleField", "updatedAt", "url" ], "type": "object" } }, "betterstack:index/getIncidentsJiraIntegration:getIncidentsJiraIntegration": { "description": "A Jira integration creates Jira issues for your incidents and keeps them in sync.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsJiraIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_jira_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsJiraIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsJiraIntegration(ctx, \u0026betterstack.LookupIncidentsJiraIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_jira_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsJiraIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsJiraIntegration(GetIncidentsJiraIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsJiraIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsJiraIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Jira integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsJiraIntegration.\n", "properties": { "automaticIssueCreation": { "description": "Whether to create a Jira issue for every incident automatically.\n", "type": "boolean" }, "id": { "description": "The ID of the Jira integration to look up.\n", "type": "string" }, "jiraFields": { "$ref": "pulumi.json#/Any", "description": "Extra Jira fields to set on created issues, keyed by Jira field ID. Set the integration up in the app, then use the \u003cspan pulumi-lang-nodejs=\"`jiraFields`\" pulumi-lang-dotnet=\"`JiraFields`\" pulumi-lang-go=\"`jiraFields`\" pulumi-lang-python=\"`jira_fields`\" pulumi-lang-yaml=\"`jiraFields`\" pulumi-lang-java=\"`jiraFields`\" pulumi-lang-hcl=\"`jira_fields`\"\u003e`jiraFields`\u003c/span\u003e from [Get a Jira integration](https://betterstack.com/docs/uptime/api/single-jira-integration/) as a template. Each value has the shape of its Jira field type. A list field such as labels accepts a list of `{label, value}` objects, for example `{\"labels\": [{\"label\": \"outage\", \"value\": \"outage\"}]}`. A text field accepts a string, for example `{'customfield_10042': \"Checkout\"}`. A user, team or parent field accepts one `{label, value}` object, and a single-select or priority field the option's ID as a string. A number field accepts a number, and a date picker field an ISO 8601 time such as `2026-12-01T09:00:00Z`.\n" }, "jiraIssueTypeId": { "description": "ID of the Jira issue type for created issues. Get the ID via the Get issue types for project endpoint of Jira's REST API.\n", "type": "string" }, "jiraProjectKey": { "description": "Key of the Jira project that issues are created in. Get the key from your Jira issue keys, such as `ABC` in `ABC-123`. A key that isn't found is refused, and the error lists the available keys.\n", "type": "string" }, "name": { "description": "Integration name. null while the integration is still being connected.\n", "type": "string" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" } }, "required": [ "automaticIssueCreation", "id", "jiraFields", "jiraIssueTypeId", "jiraProjectKey", "name", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getIncidentsLinearIntegration:getIncidentsLinearIntegration": { "description": "A Linear integration creates Linear issues for your incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsLinearIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_linear_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsLinearIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsLinearIntegration(ctx, \u0026betterstack.LookupIncidentsLinearIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_linear_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsLinearIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsLinearIntegration(GetIncidentsLinearIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsLinearIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsLinearIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Linear integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsLinearIntegration.\n", "properties": { "automaticIssueClosure": { "description": "Whether to move the issue to \u003cspan pulumi-lang-nodejs=\"`linearResolvedStatusId`\" pulumi-lang-dotnet=\"`LinearResolvedStatusId`\" pulumi-lang-go=\"`linearResolvedStatusId`\" pulumi-lang-python=\"`linear_resolved_status_id`\" pulumi-lang-yaml=\"`linearResolvedStatusId`\" pulumi-lang-java=\"`linearResolvedStatusId`\" pulumi-lang-hcl=\"`linear_resolved_status_id`\"\u003e`linearResolvedStatusId`\u003c/span\u003e when the incident is resolved.\n", "type": "boolean" }, "automaticIssueCreation": { "description": "Whether to create a Linear issue for every incident automatically.\n", "type": "boolean" }, "id": { "description": "The ID of the Linear integration to look up.\n", "type": "string" }, "linearAssigneeId": { "description": "ID of the Linear user that issues are assigned to. null leaves issues unassigned.\n", "type": "string" }, "linearLabels": { "description": "Labels added to the issues created.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsLinearIntegrationLinearLabel:getIncidentsLinearIntegrationLinearLabel" }, "type": "array" }, "linearPriority": { "description": "Priority of the issues created. Valid values: 'no_priority', 'urgent', 'high', 'medium', 'low'.\n", "type": "string" }, "linearProjectId": { "description": "ID of the Linear project that issues are added to. null adds them to no project.\n", "type": "string" }, "linearResolvedStatusId": { "description": "ID of the Linear status that issues move to when the incident is resolved.\n", "type": "string" }, "linearStatusId": { "description": "ID of the Linear status that issues start in. null uses the Linear team's default status.\n", "type": "string" }, "linearTeamId": { "description": "ID of the Linear team that issues are created in.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" } }, "required": [ "automaticIssueClosure", "automaticIssueCreation", "id", "linearAssigneeId", "linearLabels", "linearPriority", "linearProjectId", "linearResolvedStatusId", "linearStatusId", "linearTeamId", "name", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getIncidentsNewRelicIntegration:getIncidentsNewRelicIntegration": { "description": "Receives alerts from New Relic and opens Better Stack incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsNewRelicIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_new_relic_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsNewRelicIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsNewRelicIntegration(ctx, \u0026betterstack.LookupIncidentsNewRelicIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_new_relic_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsNewRelicIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsNewRelicIntegration(GetIncidentsNewRelicIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsNewRelicIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsNewRelicIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the New Relic integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsNewRelicIntegration.\n", "properties": { "alertingRule": { "description": "Which New Relic alert levels open incidents. 'alert': Opens an incident for alerts only. 'alert_and_warn': Opens an incident for alerts and warnings.\n", "type": "string" }, "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the New Relic integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into New Relic. Alerts New Relic sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "alertingRule", "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsOutgoingEmailIntegration:getIncidentsOutgoingEmailIntegration": { "description": "Sends e-mails about your incidents to addresses outside Better Stack, such as a customer's distribution list. You can write your own subject, title and body for each stage of an incident.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsOutgoingEmailIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_outgoing_email_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsOutgoingEmailIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsOutgoingEmailIntegration(ctx, \u0026betterstack.LookupIncidentsOutgoingEmailIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_outgoing_email_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsOutgoingEmailIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsOutgoingEmailIntegration(GetIncidentsOutgoingEmailIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsOutgoingEmailIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsOutgoingEmailIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the outgoing e-mail integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsOutgoingEmailIntegration.\n", "properties": { "id": { "description": "The ID of the outgoing e-mail integration to look up.\n", "type": "string" }, "name": { "description": "The integration's name, shown in the dashboard.\n", "type": "string" }, "notifyAlongsidePrimaryResponder": { "description": "Whether to e-mail the recipients alongside the primary responder on incidents with no escalation policy.\n", "type": "boolean" }, "onIncidentAcknowledged": { "description": "Whether to e-mail the recipients when an incident is acknowledged.\n", "type": "boolean" }, "onIncidentComment": { "description": "Whether to e-mail the recipients when a new comment is posted on an incident.\n", "type": "boolean" }, "onIncidentReopened": { "description": "Whether to e-mail the recipients when an incident is reopened.\n", "type": "boolean" }, "onIncidentResolved": { "description": "Whether to e-mail the recipients when an incident is resolved.\n", "type": "boolean" }, "onIncidentStarted": { "description": "Whether to e-mail the recipients when an incident starts.\n", "type": "boolean" }, "paused": { "description": "Whether the integration is paused. A paused integration sends no e-mails.\n", "type": "boolean" }, "recipients": { "description": "The people the integration e-mails. Each recipient is an object with an \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e key and up to 10 extra text keys, such as 'first_name', which templates render as `$RECIPIENT.\u003ckey\u003e`.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsOutgoingEmailIntegrationRecipient:getIncidentsOutgoingEmailIntegrationRecipient" }, "type": "array" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "templates": { "description": "Custom subject, title and body for stages of an incident, one entry per stage. A blank subject, title or body uses the default template.\n", "items": { "$ref": "#/types/betterstack:index/getIncidentsOutgoingEmailIntegrationTemplate:getIncidentsOutgoingEmailIntegrationTemplate" }, "type": "array" } }, "required": [ "id", "name", "notifyAlongsidePrimaryResponder", "onIncidentAcknowledged", "onIncidentComment", "onIncidentReopened", "onIncidentResolved", "onIncidentStarted", "paused", "recipients", "teamId", "teamName", "templates" ], "type": "object" } }, "betterstack:index/getIncidentsOutgoingPagerDutyIntegration:getIncidentsOutgoingPagerDutyIntegration": { "description": "Forwards Better Stack incidents to a PagerDuty service.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsOutgoingPagerDutyIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_outgoing_pager_duty_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsOutgoingPagerDutyIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsOutgoingPagerDutyIntegration(ctx, \u0026betterstack.LookupIncidentsOutgoingPagerDutyIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_outgoing_pager_duty_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsOutgoingPagerDutyIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsOutgoingPagerDutyIntegration(GetIncidentsOutgoingPagerDutyIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsOutgoingPagerDutyIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsOutgoingPagerDutyIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the outgoing PagerDuty integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsOutgoingPagerDutyIntegration.\n", "properties": { "id": { "description": "The ID of the outgoing PagerDuty integration to look up.\n", "type": "string" }, "key": { "description": "PagerDuty integration key, also called the routing key.\n", "secret": true, "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "notifyAlongsidePrimaryResponder": { "description": "Whether to notify this PagerDuty integration alongside the primary responder for incidents with no escalation policy. For an incident with an escalation policy, it's notified only when a step of that policy notifies it.\n", "type": "boolean" }, "severity": { "description": "PagerDuty severity sent with the event. Valid values: 'info', 'warning', 'error', 'critical'.\n", "type": "string" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" } }, "required": [ "id", "key", "name", "notifyAlongsidePrimaryResponder", "severity", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getIncidentsOutgoingWebhookIntegration:getIncidentsOutgoingWebhookIntegration": { "description": "An outgoing webhook integration sends a request to your URL when an incident, an on-call shift or a monitor changes.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsOutgoingWebhookIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_outgoing_webhook_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsOutgoingWebhookIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsOutgoingWebhookIntegration(ctx, \u0026betterstack.LookupIncidentsOutgoingWebhookIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_outgoing_webhook_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsOutgoingWebhookIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsOutgoingWebhookIntegration(GetIncidentsOutgoingWebhookIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsOutgoingWebhookIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsOutgoingWebhookIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the outgoing webhook integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsOutgoingWebhookIntegration.\n", "properties": { "customWebhookTemplate": { "$ref": "#/types/betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplate:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplate", "description": "The saved request template, returned under 'included'. null when the webhook has no custom template.\n" }, "customWebhookTemplateAttributes": { "$ref": "#/types/betterstack:index/getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes:getIncidentsOutgoingWebhookIntegrationCustomWebhookTemplateAttributes", "description": "Custom request method, headers, body and basic authentication. Without a custom template, an 'incident_change' or 'monitor_change' webhook sends the incident or monitor under 'data', with what happened in 'event', such as 'started' or 'created'. Without a custom template, an 'on_call_change' webhook sends the on-call schedule's 'message', 'emails', 'on_holiday_emails', 'change', 'calendar_id', 'calendar_name' and 'primary_calendar' under 'data'. Returned as \u003cspan pulumi-lang-nodejs=\"`customWebhookTemplate`\" pulumi-lang-dotnet=\"`CustomWebhookTemplate`\" pulumi-lang-go=\"`customWebhookTemplate`\" pulumi-lang-python=\"`custom_webhook_template`\" pulumi-lang-yaml=\"`customWebhookTemplate`\" pulumi-lang-java=\"`customWebhookTemplate`\" pulumi-lang-hcl=\"`custom_webhook_template`\"\u003e`customWebhookTemplate`\u003c/span\u003e.\n" }, "id": { "description": "The ID of the outgoing webhook integration to look up.\n", "type": "string" }, "metadataApiVersion": { "description": "How the `$METADATA` variables in the URL and \u003cspan pulumi-lang-nodejs=\"`bodyTemplate`\" pulumi-lang-dotnet=\"`BodyTemplate`\" pulumi-lang-go=\"`bodyTemplate`\" pulumi-lang-python=\"`body_template`\" pulumi-lang-yaml=\"`bodyTemplate`\" pulumi-lang-java=\"`bodyTemplate`\" pulumi-lang-hcl=\"`body_template`\"\u003e`bodyTemplate`\u003c/span\u003e render. 'v2': Renders `$METADATA.\u003ckey\u003e` as the key's last plain-text value. 'v3': Renders `$METADATA.\u003ckey\u003e` as all the key's values joined by commas. `$METADATA_ARRAY` and `$METADATA.\u003ckey\u003e.values` list each value with its type.\n", "type": "string" }, "name": { "description": "The integration's name, shown in the dashboard.\n", "type": "string" }, "notifyAlongsidePrimaryResponder": { "description": "Whether to send the webhook when the on-call person is alerted about an incident without an escalation policy. Only for an 'incident_change' webhook. Defaults to true.\n", "type": "boolean" }, "onIncidentAcknowledged": { "description": "Whether to send the webhook when an incident is acknowledged. Only for an 'incident_change' webhook. Defaults to true.\n", "type": "boolean" }, "onIncidentComment": { "description": "Whether to send the webhook when a comment is added to an incident. Without a custom template, the body of a comment webhook also has a 'comment' object, whose 'attributes' hold the comment's 'content', 'created_at', 'updated_at', 'user_id' and 'user_email'. Only for an 'incident_change' webhook. Defaults to true.\n", "type": "boolean" }, "onIncidentReopened": { "description": "Whether to send the webhook when an incident is reopened. Only for an 'incident_change' webhook. Defaults to true.\n", "type": "boolean" }, "onIncidentResolved": { "description": "Whether to send the webhook when an incident is resolved. Only for an 'incident_change' webhook. Defaults to true.\n", "type": "boolean" }, "onIncidentStarted": { "description": "Whether to send the webhook when an incident starts. Only for an 'incident_change' webhook. Defaults to true.\n", "type": "boolean" }, "paused": { "description": "Whether the integration is paused. A paused integration sends no webhooks.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "triggerType": { "description": "What triggers the webhook. Fixed once the integration is created. 'incident_change': Sends the webhook when an incident starts, is acknowledged, resolved or reopened, or gets a comment. 'on_call_change': Sends the webhook when the person on call changes, or when their holiday starts or ends during their shift. 'monitor_change': Sends the webhook when a monitor is created, updated, paused, unpaused or removed.\n", "type": "string" }, "url": { "description": "The URL the webhook is sent to. For an 'incident_change' webhook, it can use the `$INCIDENT_ID`, `$TEAM_ID` and `$METADATA` variables.\n", "type": "string" } }, "required": [ "customWebhookTemplate", "customWebhookTemplateAttributes", "id", "metadataApiVersion", "name", "notifyAlongsidePrimaryResponder", "onIncidentAcknowledged", "onIncidentComment", "onIncidentReopened", "onIncidentResolved", "onIncidentStarted", "paused", "teamId", "teamName", "triggerType", "url" ], "type": "object" } }, "betterstack:index/getIncidentsPrometheusIntegration:getIncidentsPrometheusIntegration": { "description": "A Prometheus integration turns alerts from Prometheus into incidents.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsPrometheusIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_prometheus_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsPrometheusIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsPrometheusIntegration(ctx, \u0026betterstack.LookupIncidentsPrometheusIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_prometheus_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsPrometheusIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsPrometheusIntegration(GetIncidentsPrometheusIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsPrometheusIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsPrometheusIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Prometheus integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsPrometheusIntegration.\n", "properties": { "call": { "description": "Whether to call the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "criticalAlert": { "description": "Whether to send a critical push notification that ignores the mute switch and Do Not Disturb mode. Ignored while an escalation policy is set.\n", "type": "boolean" }, "email": { "description": "Whether to send an e-mail to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "escalationPolicyId": { "description": "ID of the escalation policy for alerts, or null to alert the current on-call person directly.\n", "type": "string" }, "id": { "description": "The ID of the Prometheus integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "paused": { "description": "Whether the integration is paused. A paused integration opens no incidents.\n", "type": "boolean" }, "push": { "description": "Whether to send a push notification to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "sms": { "description": "Whether to send an SMS to the on-call person. Ignored while an escalation policy is set.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "teamWait": { "description": "Seconds to wait before escalating to the whole team. '0' alerts the whole team right away, and null never escalates to the team. Ignored while an escalation policy is set.\n", "type": "integer" }, "webhookUrl": { "description": "The URL to paste into Prometheus. Alerts Prometheus sends to it open incidents.\n", "secret": true, "type": "string" } }, "required": [ "call", "criticalAlert", "email", "escalationPolicyId", "id", "name", "paused", "push", "sms", "teamId", "teamName", "teamWait", "webhookUrl" ], "type": "object" } }, "betterstack:index/getIncidentsSlackIntegration:getIncidentsSlackIntegration": { "description": "A connected Slack channel that receives incident notifications.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsSlackIntegration({\n slackChannelName: \"#better-stack-incidents\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_slack_integration(slack_channel_name=\"#better-stack-incidents\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsSlackIntegration.Invoke(new()\n {\n SlackChannelName = \"#better-stack-incidents\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsSlackIntegration(ctx, \u0026betterstack.GetIncidentsSlackIntegrationArgs{\n\t\t\tSlackChannelName: pulumi.StringRef(\"#better-stack-incidents\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_slack_integration\" \"example\" {\n slack_channel_name = \"#better-stack-incidents\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsSlackIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsSlackIntegration(GetIncidentsSlackIntegrationArgs.builder()\n .slackChannelName(\"#better-stack-incidents\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsSlackIntegration\n arguments:\n slackChannelName: '#better-stack-incidents'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsSlackIntegration.\n", "properties": { "id": { "type": "string" }, "slackChannelName": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getIncidentsSlackIntegration.\n", "properties": { "aiSreOnMention": { "type": "boolean" }, "alertAllTeamsAndPolicies": { "type": "boolean" }, "alertOptions": { "items": { "$ref": "#/types/betterstack:index/getIncidentsSlackIntegrationAlertOption:getIncidentsSlackIntegrationAlertOption" }, "type": "array" }, "channelDisplayName": { "type": "string" }, "channelInvitees": { "items": { "$ref": "#/types/betterstack:index/getIncidentsSlackIntegrationChannelInvitee:getIncidentsSlackIntegrationChannelInvitee" }, "type": "array" }, "directMessageOnMention": { "type": "boolean" }, "id": { "type": "string" }, "integrationType": { "type": "string" }, "inviteNewSlackUsers": { "type": "boolean" }, "notifyAlongsidePrimaryResponder": { "type": "boolean" }, "notifyOnPause": { "type": "boolean" }, "notifyOnResolve": { "type": "boolean" }, "onCallNotifications": { "type": "boolean" }, "postIncidentMetadata": { "type": "boolean" }, "postStatusPageUpdates": { "type": "boolean" }, "postTimelineEvents": { "type": "boolean" }, "privateChannel": { "type": "boolean" }, "restrictIncidentCreationToChannel": { "type": "boolean" }, "slackChannelId": { "type": "string" }, "slackChannelName": { "type": "string" }, "slackStatus": { "type": "string" }, "slackTeamId": { "type": "string" }, "slackTeamName": { "type": "string" }, "statusPageUpdateResources": { "items": { "$ref": "#/types/betterstack:index/getIncidentsSlackIntegrationStatusPageUpdateResource:getIncidentsSlackIntegrationStatusPageUpdateResource" }, "type": "array" }, "teamId": { "type": "string" }, "teamName": { "type": "string" } }, "required": [ "aiSreOnMention", "alertAllTeamsAndPolicies", "alertOptions", "channelDisplayName", "channelInvitees", "directMessageOnMention", "id", "integrationType", "inviteNewSlackUsers", "notifyAlongsidePrimaryResponder", "notifyOnPause", "notifyOnResolve", "onCallNotifications", "postIncidentMetadata", "postStatusPageUpdates", "postTimelineEvents", "privateChannel", "restrictIncidentCreationToChannel", "slackChannelId", "slackChannelName", "slackStatus", "slackTeamId", "slackTeamName", "statusPageUpdateResources", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getIncidentsSplunkOnCallIntegration:getIncidentsSplunkOnCallIntegration": { "description": "A Splunk On-Call integration sends your incidents to Splunk On-Call, formerly VictorOps.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIncidentsSplunkOnCallIntegration({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_incidents_splunk_on_call_integration(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIncidentsSplunkOnCallIntegration.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIncidentsSplunkOnCallIntegration(ctx, \u0026betterstack.LookupIncidentsSplunkOnCallIntegrationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_incidents_splunk_on_call_integration\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIncidentsSplunkOnCallIntegrationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIncidentsSplunkOnCallIntegration(GetIncidentsSplunkOnCallIntegrationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIncidentsSplunkOnCallIntegration\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getIncidentsSplunkOnCallIntegration.\n", "properties": { "id": { "type": "string", "description": "The ID of the Splunk On-Call integration to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getIncidentsSplunkOnCallIntegration.\n", "properties": { "id": { "description": "The ID of the Splunk On-Call integration to look up.\n", "type": "string" }, "name": { "description": "Integration name.\n", "type": "string" }, "notifyAlongsidePrimaryResponder": { "description": "Whether incidents without an escalation policy are sent to Splunk On-Call when the on-call person is alerted. An incident with an escalation policy is sent only when a step of that policy notifies this integration.\n", "type": "boolean" }, "paused": { "description": "Whether the integration is paused. A paused integration sends nothing to Splunk On-Call.\n", "type": "boolean" }, "teamId": { "description": "Team that owns this integration, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this integration.\n", "type": "string" }, "url": { "description": "Splunk On-Call REST endpoint URL.\n", "secret": true, "type": "string" } }, "required": [ "id", "name", "notifyAlongsidePrimaryResponder", "paused", "teamId", "teamName", "url" ], "type": "object" } }, "betterstack:index/getIpList:getIpList": { "description": "List the IP addresses to allow in your firewall so Better Stack monitors can reach your services, grouped by cluster.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getIpList({});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_ip_list()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetIpList.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetIpList(ctx, \u0026betterstack.GetIpListArgs{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_ip_list\" \"example\" {\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetIpListArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getIpList(GetIpListArgs.builder()\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getIpList\n arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e is computed. Every refresh performs a live query; no API token is needed when the declared endpoint is public.\n", "inputs": { "description": "A collection of arguments for invoking getIpList.\n", "properties": { "filterClusters": { "type": "array", "items": { "type": "string" }, "description": "Restrict values to these collection keys. Omitted or empty selects all keys. Unknown keys are rejected.\n" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getIpList.\n", "properties": { "allClusters": { "items": { "type": "string" }, "type": "array" }, "filterClusters": { "description": "Restrict values to these collection keys. Omitted or empty selects all keys. Unknown keys are rejected.\n", "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "ips": { "items": { "type": "string" }, "type": "array" } }, "required": [ "allClusters", "id", "ips" ], "type": "object" } }, "betterstack:index/getKafka:getKafka": { "description": "A managed Kafka cluster with one or three brokers, running in KRaft mode.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKafka({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kafka(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKafka.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKafka(ctx, \u0026betterstack.LookupKafkaArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kafka\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKafkaArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKafka(GetKafkaArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKafka\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getKafka.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getKafka.\n", "properties": { "availableEngineVersions": { "items": { "type": "string" }, "type": "array" }, "brokerCount": { "type": "integer" }, "brokers": { "items": { "$ref": "#/types/betterstack:index/getKafkaBroker:getKafkaBroker" }, "type": "array" }, "createdAt": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "endpoint": { "$ref": "#/types/betterstack:index/getKafkaEndpoint:getKafkaEndpoint" }, "enginePatchVersion": { "type": "string" }, "engineVersion": { "type": "string" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "maxPartitions": { "type": "integer" }, "metadata": { "$ref": "pulumi.json#/Any" }, "minInsyncReplicas": { "type": "integer" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "partitionCount": { "type": "integer" }, "publicAccess": { "type": "boolean" }, "replicationFactor": { "type": "integer" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "storageBudgetBytes": { "type": "integer" }, "storageBudgetUsedBytes": { "type": "integer" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "topics": { "items": { "$ref": "#/types/betterstack:index/getKafkaTopicSummary:getKafkaTopicSummary" }, "type": "array" }, "type": { "type": "string" }, "updatedAt": { "type": "string" }, "usableStorageGb": { "type": "integer" }, "users": { "items": { "$ref": "#/types/betterstack:index/getKafkaUserSummary:getKafkaUserSummary" }, "type": "array" } }, "required": [ "availableEngineVersions", "brokerCount", "brokers", "createdAt", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "id", "maxPartitions", "metadata", "minInsyncReplicas", "name", "networkIds", "partitionCount", "publicAccess", "replicationFactor", "status", "statusMessage", "storageBudgetBytes", "storageBudgetUsedBytes", "teamId", "term", "topics", "type", "updatedAt", "usableStorageGb", "users" ], "type": "object" } }, "betterstack:index/getKafkaTopic:getKafkaTopic": { "description": "A topic on a managed Kafka cluster. Clients can't create topics on the cluster, so create them via [Create a Kafka topic](https://betterstack.com/docs/cloud/api/kafka-topics/create-kafka-topic/).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKafkaTopic({\n kafkaId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kafka_topic(kafka_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKafkaTopic.Invoke(new()\n {\n KafkaId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKafkaTopic(ctx, \u0026betterstack.LookupKafkaTopicArgs{\n\t\t\tKafkaId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kafka_topic\" \"example\" {\n kafka_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKafkaTopicArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKafkaTopic(GetKafkaTopicArgs.builder()\n .kafkaId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKafkaTopic\n arguments:\n kafkaId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getKafkaTopic.\n", "properties": { "id": { "type": "string", "description": "The topic's ID, a UUID. Get, update and delete a topic by this ID, never by its name.\n" }, "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "kafkaId" ] }, "outputs": { "description": "A collection of values returned by getKafkaTopic.\n", "properties": { "budgetBytes": { "description": "The most disk space the topic can use on each broker, in bytes. The budget is \u003cspan pulumi-lang-nodejs=\"`partitions`\" pulumi-lang-dotnet=\"`Partitions`\" pulumi-lang-go=\"`partitions`\" pulumi-lang-python=\"`partitions`\" pulumi-lang-yaml=\"`partitions`\" pulumi-lang-java=\"`partitions`\" pulumi-lang-hcl=\"`partitions`\"\u003e`partitions`\u003c/span\u003e times \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e, plus one segment for each partition.\n", "type": "integer" }, "cleanupPolicy": { "description": "How Kafka removes old messages. 'delete': Deletes messages older than the retention time or past the retention size. 'compact': Keeps only the latest message for each key. 'compact_delete': Keeps only the latest message for each key, and also deletes messages past retention. Kafka calls it `compact,delete`.\n", "type": "string" }, "createdAt": { "description": "When the topic was created.\n", "type": "string" }, "deletionProtection": { "description": "Whether destroying or replacing this kafka topic is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n", "type": "boolean" }, "id": { "description": "The topic's ID, a UUID. Get, update and delete a topic by this ID, never by its name.\n", "type": "string" }, "kafkaId": { "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n", "type": "string" }, "maxMessageBytes": { "description": "The largest message the topic accepts, in bytes, from 1024 to 8388608.\n", "type": "integer" }, "name": { "description": "The topic's name, unique in the cluster, 1–249 letters, digits, dots, hyphens and underscores. Can't be `.` or `..` or start with `__`.\n", "type": "string" }, "partitions": { "description": "The number of partitions, at least 1. All topics together must fit within the cluster type's 'max_partitions'.\n", "type": "integer" }, "replicationFactor": { "description": "The number of copies of each partition, the same as the cluster's number of brokers.\n", "type": "integer" }, "retentionBytes": { "description": "The most data to keep in each partition, in bytes, at least 1048576.\n", "type": "integer" }, "retentionMs": { "description": "How long to keep messages, in milliseconds, at least 60000. `-1` keeps them with no time limit, and \u003cspan pulumi-lang-nodejs=\"`retentionBytes`\" pulumi-lang-dotnet=\"`RetentionBytes`\" pulumi-lang-go=\"`retentionBytes`\" pulumi-lang-python=\"`retention_bytes`\" pulumi-lang-yaml=\"`retentionBytes`\" pulumi-lang-java=\"`retentionBytes`\" pulumi-lang-hcl=\"`retention_bytes`\"\u003e`retentionBytes`\u003c/span\u003e still limits their size.\n", "type": "integer" }, "updatedAt": { "description": "When the topic was last updated.\n", "type": "string" } }, "required": [ "budgetBytes", "cleanupPolicy", "createdAt", "deletionProtection", "id", "kafkaId", "maxMessageBytes", "name", "partitions", "replicationFactor", "retentionBytes", "retentionMs", "updatedAt" ], "type": "object" } }, "betterstack:index/getKafkaType:getKafkaType": { "description": "A size of Kafka cluster you can order.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKafkaType({\n name: \"KA1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kafka_type(name=\"KA1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKafkaType.Invoke(new()\n {\n Name = \"KA1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKafkaType(ctx, \u0026betterstack.GetKafkaTypeArgs{\n\t\t\tName: \"KA1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kafka_type\" \"example\" {\n name = \"KA1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKafkaTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKafkaType(GetKafkaTypeArgs.builder()\n .name(\"KA1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKafkaType\n arguments:\n name: KA1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getKafkaType.\n", "properties": { "name": { "type": "string", "description": "The type's name, such as `KA1`. Send it as 'type' when you create or rescale a cluster.\n" } }, "type": "object", "required": [ "name" ] }, "outputs": { "description": "A collection of values returned by getKafkaType.\n", "properties": { "availability": { "description": "Whether you can order the type. 'global': We offer the type. 'unavailable': The type is deprecated. Clusters that have it keep running, but you can't create or rescale a cluster to it.\n", "type": "string" }, "maxPartitions": { "description": "The most partitions a cluster of this type can have across all its topics.\n", "type": "integer" }, "name": { "description": "The type's name, such as `KA1`. Send it as 'type' when you create or rescale a cluster.\n", "type": "string" }, "ramGb": { "description": "The RAM of each broker, in GiB.\n", "type": "integer" }, "replacement": { "description": "The name of the type to use in place of this deprecated one, or null for a type we offer.\n", "type": "string" }, "usableStorageGb": { "description": "The storage for your topics on each broker, in GiB. Every broker stores every partition, so this is also the cluster's storage for topics.\n", "type": "integer" }, "vcpu": { "description": "The number of vCPUs of each broker.\n", "type": "integer" } }, "required": [ "availability", "maxPartitions", "name", "ramGb", "replacement", "usableStorageGb", "vcpu" ], "type": "object" } }, "betterstack:index/getKafkaUser:getKafkaUser": { "description": "A user of a Kafka cluster. Clients sign in as a user with SCRAM, and can use only the topics the user's privileges allow.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKafkaUser({\n kafkaId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kafka_user(kafka_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKafkaUser.Invoke(new()\n {\n KafkaId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKafkaUser(ctx, \u0026betterstack.LookupKafkaUserArgs{\n\t\t\tKafkaId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kafka_user\" \"example\" {\n kafka_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKafkaUserArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKafkaUser(GetKafkaUserArgs.builder()\n .kafkaId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKafkaUser\n arguments:\n kafkaId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getKafkaUser.\n", "properties": { "id": { "type": "string", "description": "The user's ID, a UUID. Requests for one user use this ID, never the \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e.\n" }, "kafkaId": { "type": "string", "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "kafkaId" ] }, "outputs": { "description": "A collection of values returned by getKafkaUser.\n", "properties": { "createdAt": { "description": "When the user was created.\n", "type": "string" }, "defaultUser": { "description": "Whether this is the cluster's 'default' user, which every cluster comes with. You can't delete the 'default' user, but you can change its privileges.\n", "type": "boolean" }, "id": { "description": "The user's ID, a UUID. Requests for one user use this ID, never the \u003cspan pulumi-lang-nodejs=\"`username`\" pulumi-lang-dotnet=\"`Username`\" pulumi-lang-go=\"`username`\" pulumi-lang-python=\"`username`\" pulumi-lang-yaml=\"`username`\" pulumi-lang-java=\"`username`\" pulumi-lang-hcl=\"`username`\"\u003e`username`\u003c/span\u003e.\n", "type": "string" }, "kafkaId": { "description": "The ID of the parent this kafka belongs to. Changing it replaces the resource.\n", "type": "string" }, "privileges": { "description": "The topics the user can use and what it can do on them, up to 25 entries. A user with no privileges has an empty list.\n", "items": { "$ref": "#/types/betterstack:index/getKafkaUserPrivilege:getKafkaUserPrivilege" }, "type": "array" }, "updatedAt": { "description": "When the user was last updated.\n", "type": "string" }, "username": { "description": "The name clients sign in with, unique in the cluster, up to 64 lowercase letters, digits, hyphens and underscores, starting with a letter or digit. Can't start with 'betterstack'.\n", "type": "string" } }, "required": [ "createdAt", "defaultUser", "id", "kafkaId", "privileges", "updatedAt", "username" ], "type": "object" } }, "betterstack:index/getKafkaVersion:getKafkaVersion": { "description": "A Kafka version you can run a new cluster on or upgrade to.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKafkaVersion({\n engineVersion: \"4.4\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kafka_version(engine_version=\"4.4\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKafkaVersion.Invoke(new()\n {\n EngineVersion = \"4.4\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKafkaVersion(ctx, \u0026betterstack.GetKafkaVersionArgs{\n\t\t\tEngineVersion: \"4.4\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kafka_version\" \"example\" {\n engine_version = \"4.4\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKafkaVersionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKafkaVersion(GetKafkaVersionArgs.builder()\n .engineVersion(\"4.4\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKafkaVersion\n arguments:\n engineVersion: '4.4'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getKafkaVersion.\n", "properties": { "engineVersion": { "type": "string", "description": "The version as major and minor number, such as `4.4`. We pick the patch release and apply patch updates automatically.\n" } }, "type": "object", "required": [ "engineVersion" ] }, "outputs": { "description": "A collection of values returned by getKafkaVersion.\n", "properties": { "engineVersion": { "description": "The version as major and minor number, such as `4.4`. We pick the patch release and apply patch updates automatically.\n", "type": "string" }, "latest": { "description": "Whether new clusters get this version by default.\n", "type": "boolean" } }, "required": [ "engineVersion", "latest" ], "type": "object" } }, "betterstack:index/getKubernetesCluster:getKubernetesCluster": { "description": "A managed Kubernetes cluster, with a control plane and groups of workers in \u003cspan pulumi-lang-nodejs=\"`nodePools`\" pulumi-lang-dotnet=\"`NodePools`\" pulumi-lang-go=\"`nodePools`\" pulumi-lang-python=\"`node_pools`\" pulumi-lang-yaml=\"`nodePools`\" pulumi-lang-java=\"`nodePools`\" pulumi-lang-hcl=\"`node_pools`\"\u003e`nodePools`\u003c/span\u003e. The control plane runs on a single server.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKubernetesCluster({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kubernetes_cluster(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKubernetesCluster.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKubernetesCluster(ctx, \u0026betterstack.LookupKubernetesClusterArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kubernetes_cluster\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKubernetesClusterArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKubernetesCluster(GetKubernetesClusterArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKubernetesCluster\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getKubernetesCluster.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getKubernetesCluster.\n", "properties": { "apiAllowedCidrs": { "items": { "type": "string" }, "type": "array" }, "availableVersions": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "endpoint": { "$ref": "#/types/betterstack:index/getKubernetesClusterEndpoint:getKubernetesClusterEndpoint" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "kubeconfigRotatedAt": { "type": "string" }, "latestSnapshotAt": { "type": "string" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "nodePools": { "items": { "$ref": "#/types/betterstack:index/getKubernetesClusterNodePool:getKubernetesClusterNodePool" }, "type": "array" }, "nodesReady": { "type": "integer" }, "nodesTotal": { "type": "integer" }, "patchVersion": { "type": "string" }, "podCidr": { "type": "string" }, "serviceCidr": { "type": "string" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "teamId": { "type": "string" }, "updatedAt": { "type": "string" }, "version": { "type": "string" } }, "required": [ "apiAllowedCidrs", "availableVersions", "createdAt", "deletionProtection", "endpoint", "firewallIds", "id", "kubeconfigRotatedAt", "latestSnapshotAt", "metadata", "name", "networkIds", "nodePools", "nodesReady", "nodesTotal", "patchVersion", "podCidr", "serviceCidr", "status", "statusMessage", "teamId", "updatedAt", "version" ], "type": "object" } }, "betterstack:index/getKubernetesNodePool:getKubernetesNodePool": { "description": "A group of workers in a Kubernetes cluster, all of one server type. You add, scale and remove workers through the cluster's node pools.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKubernetesNodePool({\n kubernetesClusterId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kubernetes_node_pool(kubernetes_cluster_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKubernetesNodePool.Invoke(new()\n {\n KubernetesClusterId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKubernetesNodePool(ctx, \u0026betterstack.LookupKubernetesNodePoolArgs{\n\t\t\tKubernetesClusterId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kubernetes_node_pool\" \"example\" {\n kubernetes_cluster_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKubernetesNodePoolArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKubernetesNodePool(GetKubernetesNodePoolArgs.builder()\n .kubernetesClusterId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKubernetesNodePool\n arguments:\n kubernetesClusterId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getKubernetesNodePool.\n", "properties": { "id": { "type": "string", "description": "The node pool's ID, a UUID.\n" }, "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "kubernetesClusterId" ] }, "outputs": { "description": "A collection of values returned by getKubernetesNodePool.\n", "properties": { "id": { "description": "The node pool's ID, a UUID.\n", "type": "string" }, "kubernetesClusterId": { "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n", "type": "string" }, "labels": { "$ref": "pulumi.json#/Any", "description": "The Kubernetes labels of the workers, as string pairs, or an empty object when there are none.\n" }, "name": { "description": "The node pool's name, unique among the cluster's node pools.\n", "type": "string" }, "nodeCount": { "description": "How many workers the node pool should have, from 0 to 100. The node pools of a cluster can have 100 workers in total. \u003cspan pulumi-lang-nodejs=\"`nodes`\" pulumi-lang-dotnet=\"`Nodes`\" pulumi-lang-go=\"`nodes`\" pulumi-lang-python=\"`nodes`\" pulumi-lang-yaml=\"`nodes`\" pulumi-lang-java=\"`nodes`\" pulumi-lang-hcl=\"`nodes`\"\u003e`nodes`\u003c/span\u003e lists the workers the node pool has now.\n", "type": "integer" }, "nodes": { "description": "The node pool's workers. New workers show up at once as 'queued', then go through 'provisioning' and 'joining' to 'ready'.\n", "items": { "$ref": "#/types/betterstack:index/getKubernetesNodePoolNode:getKubernetesNodePoolNode" }, "type": "array" }, "nodesReady": { "description": "How many workers of the node pool are 'ready'.\n", "type": "integer" }, "scaling": { "$ref": "#/types/betterstack:index/getKubernetesNodePoolScaling:getKubernetesNodePoolScaling", "description": "How a change of size is going while \u003cspan pulumi-lang-nodejs=\"`status`\" pulumi-lang-dotnet=\"`Status`\" pulumi-lang-go=\"`status`\" pulumi-lang-python=\"`status`\" pulumi-lang-yaml=\"`status`\" pulumi-lang-java=\"`status`\" pulumi-lang-hcl=\"`status`\"\u003e`status`\u003c/span\u003e is \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e, or null otherwise.\n" }, "serverType": { "description": "The server type of the workers.\n", "type": "string" }, "status": { "description": "The node pool's state. The node pool is ready when the cluster is 'running' and every worker of the node pool is 'ready'. 'active': The node pool isn't changing size. The node pool's workers can still be joining or being replaced. \u003cspan pulumi-lang-nodejs=\"`scaling`\" pulumi-lang-dotnet=\"`Scaling`\" pulumi-lang-go=\"`scaling`\" pulumi-lang-python=\"`scaling`\" pulumi-lang-yaml=\"`scaling`\" pulumi-lang-java=\"`scaling`\" pulumi-lang-hcl=\"`scaling`\"\u003e`scaling`\u003c/span\u003e: We're adding or removing workers to reach \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e. Scaling happens after you change \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, or when the node pool has more or fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e. 'deleting': We're removing the node pool. 'destroyed': The node pool is deleted.\n", "type": "string" }, "statusMessage": { "description": "Why the node pool has fewer workers than \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e, such as a quota limit, no capacity for the server type in the zone, or a server we couldn't create. null again once the node pool reaches \u003cspan pulumi-lang-nodejs=\"`nodeCount`\" pulumi-lang-dotnet=\"`NodeCount`\" pulumi-lang-go=\"`nodeCount`\" pulumi-lang-python=\"`node_count`\" pulumi-lang-yaml=\"`nodeCount`\" pulumi-lang-java=\"`nodeCount`\" pulumi-lang-hcl=\"`node_count`\"\u003e`nodeCount`\u003c/span\u003e.\n", "type": "string" }, "taints": { "description": "The Kubernetes taints of the workers, or an empty list when there are none.\n", "items": { "$ref": "#/types/betterstack:index/getKubernetesNodePoolTaint:getKubernetesNodePoolTaint" }, "type": "array" } }, "required": [ "id", "kubernetesClusterId", "labels", "name", "nodeCount", "nodes", "nodesReady", "scaling", "serverType", "status", "statusMessage", "taints" ], "type": "object" } }, "betterstack:index/getKubernetesScheduledSnapshot:getKubernetesScheduledSnapshot": { "description": "A schedule that creates snapshots of a Kubernetes cluster's control plane.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKubernetesScheduledSnapshot({\n kubernetesClusterId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kubernetes_scheduled_snapshot(kubernetes_cluster_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKubernetesScheduledSnapshot.Invoke(new()\n {\n KubernetesClusterId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKubernetesScheduledSnapshot(ctx, \u0026betterstack.LookupKubernetesScheduledSnapshotArgs{\n\t\t\tKubernetesClusterId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kubernetes_scheduled_snapshot\" \"example\" {\n kubernetes_cluster_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKubernetesScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKubernetesScheduledSnapshot(GetKubernetesScheduledSnapshotArgs.builder()\n .kubernetesClusterId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKubernetesScheduledSnapshot\n arguments:\n kubernetesClusterId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getKubernetesScheduledSnapshot.\n", "properties": { "id": { "type": "string", "description": "The schedule's ID, a UUID.\n" }, "kubernetesClusterId": { "type": "string", "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "kubernetesClusterId" ] }, "outputs": { "description": "A collection of values returned by getKubernetesScheduledSnapshot.\n", "properties": { "createdAt": { "description": "When the schedule was created.\n", "type": "string" }, "frequency": { "description": "How often to create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n", "type": "string" }, "id": { "description": "The schedule's ID, a UUID.\n", "type": "string" }, "kubernetesClusterId": { "description": "The ID of the parent this kubernetes cluster belongs to. Changing it replaces the resource.\n", "type": "string" }, "lastRunAt": { "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n", "type": "string" }, "serverId": { "description": "The ID of the server that runs the cluster's control plane.\n", "type": "string" }, "updatedAt": { "description": "When the schedule was last updated.\n", "type": "string" } }, "required": [ "createdAt", "frequency", "id", "kubernetesClusterId", "lastRunAt", "serverId", "updatedAt" ], "type": "object" } }, "betterstack:index/getKubernetesVersion:getKubernetesVersion": { "description": "A Kubernetes minor version you can run a cluster on, and the exact build we install for it.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getKubernetesVersion({\n version: \"1.37\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_kubernetes_version(version=\"1.37\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetKubernetesVersion.Invoke(new()\n {\n Version = \"1.37\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetKubernetesVersion(ctx, \u0026betterstack.GetKubernetesVersionArgs{\n\t\t\tVersion: \"1.37\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_kubernetes_version\" \"example\" {\n version = \"1.37\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetKubernetesVersionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()\n .version(\"1.37\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getKubernetesVersion\n arguments:\n version: '1.37'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getKubernetesVersion.\n", "properties": { "version": { "type": "string", "description": "The Kubernetes minor version, such as `1.37`. Send it as \u003cspan pulumi-lang-nodejs=\"`version`\" pulumi-lang-dotnet=\"`Version`\" pulumi-lang-go=\"`version`\" pulumi-lang-python=\"`version`\" pulumi-lang-yaml=\"`version`\" pulumi-lang-java=\"`version`\" pulumi-lang-hcl=\"`version`\"\u003e`version`\u003c/span\u003e when you create a cluster.\n" } }, "type": "object", "required": [ "version" ] }, "outputs": { "description": "A collection of values returned by getKubernetesVersion.\n", "properties": { "build": { "description": "The exact Kubernetes build we install for this version, such as `v1.37.2+k3s1`.\n", "type": "string" }, "latest": { "description": "Whether a new cluster gets this version when you leave out \u003cspan pulumi-lang-nodejs=\"`version`\" pulumi-lang-dotnet=\"`Version`\" pulumi-lang-go=\"`version`\" pulumi-lang-python=\"`version`\" pulumi-lang-yaml=\"`version`\" pulumi-lang-java=\"`version`\" pulumi-lang-hcl=\"`version`\"\u003e`version`\u003c/span\u003e.\n", "type": "boolean" }, "version": { "description": "The Kubernetes minor version, such as `1.37`. Send it as \u003cspan pulumi-lang-nodejs=\"`version`\" pulumi-lang-dotnet=\"`Version`\" pulumi-lang-go=\"`version`\" pulumi-lang-python=\"`version`\" pulumi-lang-yaml=\"`version`\" pulumi-lang-java=\"`version`\" pulumi-lang-hcl=\"`version`\"\u003e`version`\u003c/span\u003e when you create a cluster.\n", "type": "string" } }, "required": [ "build", "latest", "version" ], "type": "object" } }, "betterstack:index/getLoadBalancer:getLoadBalancer": { "description": "A managed load balancer that spreads TCP, UDP, HTTP and HTTPS traffic over your servers. A load balancer has services that listen for traffic and targets that receive it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getLoadBalancer({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_load_balancer(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetLoadBalancer.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetLoadBalancer(ctx, \u0026betterstack.LookupLoadBalancerArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_load_balancer\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetLoadBalancerArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getLoadBalancer(GetLoadBalancerArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getLoadBalancer\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getLoadBalancer.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getLoadBalancer.\n", "properties": { "algorithm": { "type": "string" }, "configAppliedAt": { "type": "string" }, "createdAt": { "type": "string" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "privateIps": { "items": { "$ref": "#/types/betterstack:index/getLoadBalancerPrivateIp:getLoadBalancerPrivateIp" }, "type": "array" }, "publicIps": { "items": { "$ref": "#/types/betterstack:index/getLoadBalancerPublicIp:getLoadBalancerPublicIp" }, "type": "array" }, "services": { "items": { "$ref": "#/types/betterstack:index/getLoadBalancerServiceSummary:getLoadBalancerServiceSummary" }, "type": "array" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "targets": { "items": { "$ref": "#/types/betterstack:index/getLoadBalancerTargetSummary:getLoadBalancerTargetSummary" }, "type": "array" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "algorithm", "configAppliedAt", "createdAt", "firewallIds", "id", "metadata", "name", "networkIds", "privateIps", "publicIps", "services", "status", "statusMessage", "targets", "teamId", "term", "type", "updatedAt" ], "type": "object" } }, "betterstack:index/getLoadBalancerService:getLoadBalancerService": { "description": "A port a load balancer listens on, with how it forwards the traffic to the load balancer's targets. Each service checks the targets' health on its own.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getLoadBalancerService({\n loadBalancerId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_load_balancer_service(load_balancer_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetLoadBalancerService.Invoke(new()\n {\n LoadBalancerId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetLoadBalancerService(ctx, \u0026betterstack.LookupLoadBalancerServiceArgs{\n\t\t\tLoadBalancerId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_load_balancer_service\" \"example\" {\n load_balancer_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetLoadBalancerServiceArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getLoadBalancerService(GetLoadBalancerServiceArgs.builder()\n .loadBalancerId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getLoadBalancerService\n arguments:\n loadBalancerId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getLoadBalancerService.\n", "properties": { "id": { "type": "string", "description": "The service's ID.\n" }, "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "loadBalancerId" ] }, "outputs": { "description": "A collection of values returned by getLoadBalancerService.\n", "properties": { "certificateIds": { "description": "The IDs of the certificates the service presents. Get them via [List certificates](https://betterstack.com/docs/cloud/api/certificates/list-certificates/).\n", "items": { "type": "string" }, "type": "array" }, "createdAt": { "description": "When the service was created.\n", "type": "string" }, "destinationPort": { "description": "The port on the targets that traffic goes to, 1–65535.\n", "type": "integer" }, "healthCheck": { "$ref": "#/types/betterstack:index/getLoadBalancerServiceHealthCheck:getLoadBalancerServiceHealthCheck", "description": "How the service checks that its targets are healthy.\n" }, "httpTimeoutSeconds": { "description": "How long the service waits for a client or a target to send data during an HTTP request, in seconds, 5–600. Only 'http' and 'https' services use it.\n", "type": "integer" }, "id": { "description": "The service's ID.\n", "type": "string" }, "listenPort": { "description": "The port the service listens on, 1–65535. Can't be '8402' or '9901', which the load balancer uses itself. A 'tcp' and a 'udp' service can use the same port.\n", "type": "integer" }, "loadBalancerId": { "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n", "type": "string" }, "protocol": { "description": "The protocol the service listens for. 'tcp': Forwards TCP connections. 'http': Forwards HTTP requests. 'https': Decrypts HTTPS traffic with the service's certificates and forwards HTTP requests. An 'https' service requires at least one certificate in \u003cspan pulumi-lang-nodejs=\"`certificateIds`\" pulumi-lang-dotnet=\"`CertificateIds`\" pulumi-lang-go=\"`certificateIds`\" pulumi-lang-python=\"`certificate_ids`\" pulumi-lang-yaml=\"`certificateIds`\" pulumi-lang-java=\"`certificateIds`\" pulumi-lang-hcl=\"`certificate_ids`\"\u003e`certificateIds`\u003c/span\u003e. 'udp': Forwards UDP traffic. A 'udp' service can't use certificates, \u003cspan pulumi-lang-nodejs=\"`stickySessions`\" pulumi-lang-dotnet=\"`StickySessions`\" pulumi-lang-go=\"`stickySessions`\" pulumi-lang-python=\"`sticky_sessions`\" pulumi-lang-yaml=\"`stickySessions`\" pulumi-lang-java=\"`stickySessions`\" pulumi-lang-hcl=\"`sticky_sessions`\"\u003e`stickySessions`\u003c/span\u003e, \u003cspan pulumi-lang-nodejs=\"`redirectHttp`\" pulumi-lang-dotnet=\"`RedirectHttp`\" pulumi-lang-go=\"`redirectHttp`\" pulumi-lang-python=\"`redirect_http`\" pulumi-lang-yaml=\"`redirectHttp`\" pulumi-lang-java=\"`redirectHttp`\" pulumi-lang-hcl=\"`redirect_http`\"\u003e`redirectHttp`\u003c/span\u003e or \u003cspan pulumi-lang-nodejs=\"`proxyProtocol`\" pulumi-lang-dotnet=\"`ProxyProtocol`\" pulumi-lang-go=\"`proxyProtocol`\" pulumi-lang-python=\"`proxy_protocol`\" pulumi-lang-yaml=\"`proxyProtocol`\" pulumi-lang-java=\"`proxyProtocol`\" pulumi-lang-hcl=\"`proxy_protocol`\"\u003e`proxyProtocol`\u003c/span\u003e.\n", "type": "string" }, "proxyProtocol": { "description": "The PROXY protocol version the targets accept, or 'disabled'. A 'udp' service can't use it. Valid values: 'disabled', 'v1', 'v2'.\n", "type": "string" }, "redirectHttp": { "description": "Whether HTTP requests are redirected to this HTTPS service. Only 'https' services can redirect.\n", "type": "boolean" }, "stickyCookieLifetimeSeconds": { "description": "How long the sticky session cookie lasts, 1–86400 seconds.\n", "type": "integer" }, "stickyCookieName": { "description": "The name of the sticky session cookie, 1–64 letters, digits, underscores, dots or hyphens.\n", "type": "string" }, "stickySessions": { "description": "Whether a cookie sends each client to the same target. Only 'http' and 'https' services can use sticky sessions.\n", "type": "boolean" }, "targetHealths": { "description": "The latest health of each target, updated about every 30 seconds.\n", "items": { "$ref": "#/types/betterstack:index/getLoadBalancerServiceTargetHealth:getLoadBalancerServiceTargetHealth" }, "type": "array" }, "updatedAt": { "description": "When the service was last updated.\n", "type": "string" } }, "required": [ "certificateIds", "createdAt", "destinationPort", "healthCheck", "httpTimeoutSeconds", "id", "listenPort", "loadBalancerId", "protocol", "proxyProtocol", "redirectHttp", "stickyCookieLifetimeSeconds", "stickyCookieName", "stickySessions", "targetHealths", "updatedAt" ], "type": "object" } }, "betterstack:index/getLoadBalancerTarget:getLoadBalancerTarget": { "description": "A server, or every server with a set of tags, that a load balancer sends traffic to.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getLoadBalancerTarget({\n loadBalancerId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_load_balancer_target(load_balancer_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetLoadBalancerTarget.Invoke(new()\n {\n LoadBalancerId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetLoadBalancerTarget(ctx, \u0026betterstack.LookupLoadBalancerTargetArgs{\n\t\t\tLoadBalancerId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_load_balancer_target\" \"example\" {\n load_balancer_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetLoadBalancerTargetArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getLoadBalancerTarget(GetLoadBalancerTargetArgs.builder()\n .loadBalancerId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getLoadBalancerTarget\n arguments:\n loadBalancerId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getLoadBalancerTarget.\n", "properties": { "id": { "type": "string", "description": "The target's ID.\n" }, "loadBalancerId": { "type": "string", "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "loadBalancerId" ] }, "outputs": { "description": "A collection of values returned by getLoadBalancerTarget.\n", "properties": { "createdAt": { "description": "When the target was added.\n", "type": "string" }, "id": { "description": "The target's ID.\n", "type": "string" }, "loadBalancerId": { "description": "The ID of the parent this load balancer belongs to. Changing it replaces the resource.\n", "type": "string" }, "selector": { "$ref": "pulumi.json#/Any", "description": "The tags a server must have to receive traffic, as string pairs. A server must have every pair.\n" }, "serverId": { "description": "The ID of the server to send traffic to.\n", "type": "string" }, "type": { "description": "What the target points at. 'server': One server. Send \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. 'label_selector': Every server that has the tags in \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e. Send \u003cspan pulumi-lang-nodejs=\"`selector`\" pulumi-lang-dotnet=\"`Selector`\" pulumi-lang-go=\"`selector`\" pulumi-lang-python=\"`selector`\" pulumi-lang-yaml=\"`selector`\" pulumi-lang-java=\"`selector`\" pulumi-lang-hcl=\"`selector`\"\u003e`selector`\u003c/span\u003e and leave out \u003cspan pulumi-lang-nodejs=\"`serverId`\" pulumi-lang-dotnet=\"`ServerId`\" pulumi-lang-go=\"`serverId`\" pulumi-lang-python=\"`server_id`\" pulumi-lang-yaml=\"`serverId`\" pulumi-lang-java=\"`serverId`\" pulumi-lang-hcl=\"`server_id`\"\u003e`serverId`\u003c/span\u003e.\n", "type": "string" }, "updatedAt": { "description": "When the target was last updated.\n", "type": "string" }, "usePrivateIp": { "description": "Whether to send traffic to the servers' private IP on a network they share with the load balancer, instead of their public IP.\n", "type": "boolean" } }, "required": [ "createdAt", "id", "loadBalancerId", "selector", "serverId", "type", "updatedAt", "usePrivateIp" ], "type": "object" } }, "betterstack:index/getLoadBalancerType:getLoadBalancerType": { "description": "A size of load balancer you can order.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getLoadBalancerType({\n name: \"LB1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_load_balancer_type(name=\"LB1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetLoadBalancerType.Invoke(new()\n {\n Name = \"LB1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetLoadBalancerType(ctx, \u0026betterstack.GetLoadBalancerTypeArgs{\n\t\t\tName: \"LB1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_load_balancer_type\" \"example\" {\n name = \"LB1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetLoadBalancerTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getLoadBalancerType(GetLoadBalancerTypeArgs.builder()\n .name(\"LB1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getLoadBalancerType\n arguments:\n name: LB1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getLoadBalancerType.\n", "properties": { "name": { "type": "string", "description": "The type's name, such as `LB1`. Send it as 'type' when you create or rescale a load balancer.\n" } }, "type": "object", "required": [ "name" ] }, "outputs": { "description": "A collection of values returned by getLoadBalancerType.\n", "properties": { "availability": { "description": "Whether you can order the type. 'global': You can order the type. 'unavailable': The type is deprecated. Load balancers that have it keep running, but you can't create or rescale a load balancer to it.\n", "type": "string" }, "maxCertificates": { "description": "The most different certificates a load balancer of this type can present across its services.\n", "type": "integer" }, "maxConnections": { "description": "The most connections a load balancer of this type accepts at once.\n", "type": "integer" }, "maxServices": { "description": "The most services a load balancer of this type can have.\n", "type": "integer" }, "maxTargets": { "description": "The most targets a load balancer of this type can have. Each server that a target's tag 'selector' matches counts toward the limit.\n", "type": "integer" }, "name": { "description": "The type's name, such as `LB1`. Send it as 'type' when you create or rescale a load balancer.\n", "type": "string" }, "replacement": { "description": "The name of the type to use instead of this deprecated one, or null for a type you can order.\n", "type": "string" } }, "required": [ "availability", "maxCertificates", "maxConnections", "maxServices", "maxTargets", "name", "replacement" ], "type": "object" } }, "betterstack:index/getMetadata:getMetadata": { "description": "Metadata is a key with one or more values that you attach to a monitor, heartbeat, incident or integration, such as the team that owns it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getMetadata({\n ownerType: \"Monitor\",\n ownerId: \"2\",\n key: \"Owner\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_metadata(owner_type=\"Monitor\",\n owner_id=\"2\",\n key=\"Owner\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetMetadata.Invoke(new()\n {\n OwnerType = \"Monitor\",\n OwnerId = \"2\",\n Key = \"Owner\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetMetadata(ctx, \u0026betterstack.LookupMetadataArgs{\n\t\t\tOwnerType: pulumi.StringRef(\"Monitor\"),\n\t\t\tOwnerId: pulumi.StringRef(\"2\"),\n\t\t\tKey: pulumi.StringRef(\"Owner\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_metadata\" \"example\" {\n owner_type = \"Monitor\"\n owner_id = \"2\"\n key = \"Owner\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetMetadataArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getMetadata(GetMetadataArgs.builder()\n .ownerType(\"Monitor\")\n .ownerId(\"2\")\n .key(\"Owner\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getMetadata\n arguments:\n ownerType: Monitor\n ownerId: '2'\n key: Owner\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getMetadata.\n", "properties": { "id": { "type": "string" }, "key": { "type": "string" }, "ownerId": { "type": "string" }, "ownerType": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getMetadata.\n", "properties": { "id": { "type": "string" }, "key": { "type": "string" }, "mode": { "type": "string" }, "ownerId": { "type": "string" }, "ownerType": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "values": { "items": { "$ref": "#/types/betterstack:index/getMetadataValue:getMetadataValue" }, "type": "array" } }, "required": [ "id", "key", "mode", "ownerId", "ownerType", "teamId", "teamName", "values" ], "type": "object" } }, "betterstack:index/getMonitor:getMonitor": { "description": "An uptime monitor that periodically checks a URL, host, or service and alerts on failures.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getMonitor({\n pronounceableName: \"Uptime homepage\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_monitor(pronounceable_name=\"Uptime homepage\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetMonitor.Invoke(new()\n {\n PronounceableName = \"Uptime homepage\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetMonitor(ctx, \u0026betterstack.LookupMonitorArgs{\n\t\t\tPronounceableName: pulumi.StringRef(\"Uptime homepage\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_monitor\" \"example\" {\n pronounceable_name = \"Uptime homepage\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetMonitorArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getMonitor(GetMonitorArgs.builder()\n .pronounceableName(\"Uptime homepage\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getMonitor\n arguments:\n pronounceableName: Uptime homepage\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getMonitor.\n", "properties": { "id": { "type": "string" }, "paused": { "type": "boolean" }, "pronounceableName": { "type": "string" }, "status": { "type": "string" }, "teamId": { "type": "string" }, "url": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getMonitor.\n", "properties": { "authPassword": { "secret": true, "type": "string" }, "authUsername": { "secret": true, "type": "string" }, "call": { "type": "boolean" }, "checkFrequency": { "type": "integer" }, "checksVersion": { "type": "string" }, "confirmationPeriod": { "type": "integer" }, "createdAt": { "type": "string" }, "criticalAlert": { "type": "boolean" }, "deletionProtection": { "type": "boolean" }, "domainExpiration": { "type": "integer" }, "effectiveCheckFrequency": { "type": "integer" }, "effectiveCheckFrequencyReason": { "type": "string" }, "email": { "type": "boolean" }, "environmentVariables": { "additionalProperties": { "type": "string" }, "secret": true, "type": "object" }, "escalationPolicyId": { "type": "string" }, "expectedStatusCodes": { "items": { "type": "integer" }, "type": "array" }, "expirationEscalationPolicyId": { "type": "string" }, "followRedirects": { "type": "boolean" }, "httpMethod": { "type": "string" }, "id": { "type": "string" }, "ipVersion": { "type": "string" }, "lastCheckedAt": { "type": "string" }, "maintenanceDays": { "items": { "type": "string" }, "type": "array" }, "maintenanceFrom": { "type": "string" }, "maintenanceTimezone": { "type": "string" }, "maintenanceTo": { "type": "string" }, "metadata": { "additionalProperties": { "$ref": "#/types/betterstack:index/getMonitorMetadata:getMonitorMetadata" }, "type": "object" }, "monitorGroupId": { "type": "string" }, "monitorType": { "type": "string" }, "paused": { "type": "boolean" }, "pausedAt": { "type": "string" }, "playwrightScript": { "type": "string" }, "port": { "type": "string" }, "pronounceableName": { "type": "string" }, "proxyHost": { "type": "string" }, "proxyPort": { "type": "integer" }, "push": { "type": "boolean" }, "recoveryPeriod": { "type": "integer" }, "regions": { "items": { "type": "string" }, "type": "array" }, "rememberCookies": { "type": "boolean" }, "requestBody": { "type": "string" }, "requestHeaders": { "items": { "$ref": "#/types/betterstack:index/getMonitorRequestHeader:getMonitorRequestHeader" }, "type": "array" }, "requestTimeout": { "type": "integer" }, "requiredKeyword": { "type": "string" }, "scenarioName": { "type": "string" }, "sms": { "type": "boolean" }, "sslExpiration": { "type": "integer" }, "status": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "teamWait": { "type": "integer" }, "updatedAt": { "type": "string" }, "url": { "type": "string" }, "verifySsl": { "type": "boolean" } }, "required": [ "authPassword", "authUsername", "call", "checkFrequency", "checksVersion", "confirmationPeriod", "createdAt", "criticalAlert", "deletionProtection", "domainExpiration", "effectiveCheckFrequency", "effectiveCheckFrequencyReason", "email", "environmentVariables", "escalationPolicyId", "expectedStatusCodes", "expirationEscalationPolicyId", "followRedirects", "httpMethod", "id", "ipVersion", "lastCheckedAt", "maintenanceDays", "maintenanceFrom", "maintenanceTimezone", "maintenanceTo", "metadata", "monitorGroupId", "monitorType", "paused", "pausedAt", "playwrightScript", "port", "pronounceableName", "proxyHost", "proxyPort", "push", "recoveryPeriod", "regions", "rememberCookies", "requestBody", "requestHeaders", "requestTimeout", "requiredKeyword", "scenarioName", "sms", "sslExpiration", "status", "teamId", "teamName", "teamWait", "updatedAt", "url", "verifySsl" ], "type": "object" } }, "betterstack:index/getMonitorGroup:getMonitorGroup": { "description": "A group that organizes related monitors together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getMonitorGroup({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_monitor_group(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetMonitorGroup.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetMonitorGroup(ctx, \u0026betterstack.LookupMonitorGroupArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_monitor_group\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetMonitorGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getMonitorGroup(GetMonitorGroupArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getMonitorGroup\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getMonitorGroup.\n", "properties": { "id": { "type": "string", "description": "The ID of the monitor group to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this monitor group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getMonitorGroup.\n", "properties": { "createdAt": { "description": "When the group was created.\n", "type": "string" }, "id": { "description": "The ID of the monitor group to look up.\n", "type": "string" }, "name": { "description": "Group name.\n", "type": "string" }, "paused": { "description": "Whether every monitor in the group is paused, false when the group has none.\n", "type": "boolean" }, "sortIndex": { "description": "The position of the group in your list of monitor groups, lower values first. null when no position was set.\n", "type": "integer" }, "teamId": { "description": "Team that owns this monitor group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this monitor group.\n", "type": "string" }, "updatedAt": { "description": "When the group was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "name", "paused", "sortIndex", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getMySQL:getMySQL": { "description": "A managed MySQL instance with a primary and up to two read replicas. Replicas copy the primary asynchronously.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getMySQL({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_my_sql(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetMySQL.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetMySQL(ctx, \u0026betterstack.LookupMySQLArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_my_s_q_l\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetMySQLArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getMySQL(GetMySQLArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getMySQL\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getMySQL.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getMySQL.\n", "properties": { "availableEngineVersions": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "type": "string" }, "defaultTimeZone": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "endpoint": { "$ref": "#/types/betterstack:index/getMySQLEndpoint:getMySQLEndpoint" }, "enginePatchVersion": { "type": "string" }, "engineVersion": { "type": "string" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "latestSnapshotAt": { "type": "string" }, "maxAllowedPacket": { "type": "integer" }, "maxConnections": { "type": "integer" }, "members": { "items": { "$ref": "#/types/betterstack:index/getMySQLMember:getMySQLMember" }, "type": "array" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "publicAccess": { "type": "boolean" }, "readOnly": { "type": "boolean" }, "replicaCount": { "type": "integer" }, "sqlMode": { "type": "string" }, "sqlRequirePrimaryKey": { "type": "boolean" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" }, "usableDiskGb": { "type": "integer" } }, "required": [ "availableEngineVersions", "createdAt", "defaultTimeZone", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "id", "latestSnapshotAt", "maxAllowedPacket", "maxConnections", "members", "metadata", "name", "networkIds", "publicAccess", "readOnly", "replicaCount", "sqlMode", "sqlRequirePrimaryKey", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableDiskGb" ], "type": "object" } }, "betterstack:index/getMySQLScheduledSnapshot:getMySQLScheduledSnapshot": { "description": "A schedule that creates snapshots of a MySQL instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getMySQLScheduledSnapshot({\n mysqlId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_my_sql_scheduled_snapshot(mysql_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetMySQLScheduledSnapshot.Invoke(new()\n {\n MysqlId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetMySQLScheduledSnapshot(ctx, \u0026betterstack.LookupMySQLScheduledSnapshotArgs{\n\t\t\tMysqlId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_my_s_q_l_scheduled_snapshot\" \"example\" {\n mysql_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetMySQLScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getMySQLScheduledSnapshot(GetMySQLScheduledSnapshotArgs.builder()\n .mysqlId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getMySQLScheduledSnapshot\n arguments:\n mysqlId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getMySQLScheduledSnapshot.\n", "properties": { "id": { "type": "string", "description": "The schedule's ID, a UUID.\n" }, "mysqlId": { "type": "string", "description": "The ID of the MySQL instance the schedule belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "mysqlId" ] }, "outputs": { "description": "A collection of values returned by getMySQLScheduledSnapshot.\n", "properties": { "createdAt": { "description": "When the schedule was created.\n", "type": "string" }, "frequency": { "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n", "type": "string" }, "id": { "description": "The schedule's ID, a UUID.\n", "type": "string" }, "lastRunAt": { "description": "When the schedule last created a snapshot, or null before the first one.\n", "type": "string" }, "mysqlId": { "description": "The ID of the MySQL instance the schedule belongs to. Changing it replaces the resource.\n", "type": "string" }, "serverId": { "description": "The ID of the server that runs the instance's primary. Changes when the instance fails over.\n", "type": "string" }, "updatedAt": { "description": "When the schedule was last updated.\n", "type": "string" } }, "required": [ "createdAt", "frequency", "id", "lastRunAt", "mysqlId", "serverId", "updatedAt" ], "type": "object" } }, "betterstack:index/getMySQLType:getMySQLType": { "description": "A size of MySQL instance you can order, with its disk and connection limits.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getMySQLType({\n name: \"MY1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_my_sql_type(name=\"MY1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetMySQLType.Invoke(new()\n {\n Name = \"MY1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetMySQLType(ctx, \u0026betterstack.GetMySQLTypeArgs{\n\t\t\tName: \"MY1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_my_s_q_l_type\" \"example\" {\n name = \"MY1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetMySQLTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getMySQLType(GetMySQLTypeArgs.builder()\n .name(\"MY1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getMySQLType\n arguments:\n name: MY1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getMySQLType.\n", "properties": { "name": { "type": "string", "description": "The type's name, such as `MY8`. Send it as 'type' when you create or rescale an instance.\n" } }, "type": "object", "required": [ "name" ] }, "outputs": { "description": "A collection of values returned by getMySQLType.\n", "properties": { "availability": { "description": "Whether you can create instances of this type. 'global': You can create instances of this type. 'unavailable': The type is deprecated. Instances of this type keep running, but you can't create an instance of it or rescale to it.\n", "type": "string" }, "maxConnections": { "description": "The most connections an instance of this type accepts at once.\n", "type": "integer" }, "name": { "description": "The type's name, such as `MY8`. Send it as 'type' when you create or rescale an instance.\n", "type": "string" }, "replacement": { "description": "The name of the type to use instead of this deprecated one, or null when the type is offered.\n", "type": "string" }, "usableDiskGb": { "description": "The disk space for your data, in GiB.\n", "type": "integer" } }, "required": [ "availability", "maxConnections", "name", "replacement", "usableDiskGb" ], "type": "object" } }, "betterstack:index/getMySQLVersion:getMySQLVersion": { "description": "A MySQL LTS version you can create an instance with.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getMySQLVersion({\n engineVersion: \"9.7\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_my_sql_version(engine_version=\"9.7\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetMySQLVersion.Invoke(new()\n {\n EngineVersion = \"9.7\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetMySQLVersion(ctx, \u0026betterstack.GetMySQLVersionArgs{\n\t\t\tEngineVersion: \"9.7\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_my_s_q_l_version\" \"example\" {\n engine_version = \"9.7\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetMySQLVersionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getMySQLVersion(GetMySQLVersionArgs.builder()\n .engineVersion(\"9.7\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getMySQLVersion\n arguments:\n engineVersion: '9.7'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getMySQLVersion.\n", "properties": { "engineVersion": { "type": "string", "description": "The MySQL LTS version, as major and minor, such as `9.7`.\n" } }, "type": "object", "required": [ "engineVersion" ] }, "outputs": { "description": "A collection of values returned by getMySQLVersion.\n", "properties": { "engineVersion": { "description": "The MySQL LTS version, as major and minor, such as `9.7`.\n", "type": "string" }, "latest": { "description": "Whether a new instance gets this version when you leave out \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e.\n", "type": "boolean" } }, "required": [ "engineVersion", "latest" ], "type": "object" } }, "betterstack:index/getNetwork:getNetwork": { "description": "A private network you can attach servers to. Servers on the network get private addresses from its IP range.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getNetwork({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_network(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetNetwork.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetNetwork(ctx, \u0026betterstack.LookupNetworkArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_network\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetNetworkArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getNetwork(GetNetworkArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getNetwork\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNetwork.\n", "properties": { "id": { "type": "string", "description": "The network's ID, a UUID.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getNetwork.\n", "properties": { "createdAt": { "description": "When the network was created.\n", "type": "string" }, "id": { "description": "The network's ID, a UUID.\n", "type": "string" }, "ipPrefix": { "description": "The IPv4 or IPv6 address the network's range starts at, such as `10.0.0.0`.\n", "type": "string" }, "ipPrefixLength": { "description": "The prefix length of the network's range, such as '24' for an IPv4 range of 256 addresses. Accepts '0' to '128'. Use at most '32' for an IPv4 range.\n", "type": "integer" }, "name": { "description": "The network's name.\n", "type": "string" }, "teamId": { "description": "The ID of the team that owns the network. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "type": "string" }, "updatedAt": { "description": "When the network was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "ipPrefix", "ipPrefixLength", "name", "teamId", "updatedAt" ], "type": "object" } }, "betterstack:index/getObjectCache:getObjectCache": { "description": "An S3-compatible cache in front of your buckets at another storage provider. The object cache serves reads from fast local disks and passes writes on to the original buckets.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getObjectCache({\n status: \"provisioning\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_object_cache(status=\"provisioning\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetObjectCache.Invoke(new()\n {\n Status = \"provisioning\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetObjectCache(ctx, \u0026betterstack.LookupObjectCacheArgs{\n\t\t\tStatus: pulumi.StringRef(\"provisioning\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_object_cache\" \"example\" {\n status = \"provisioning\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetObjectCacheArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getObjectCache(GetObjectCacheArgs.builder()\n .status(\"provisioning\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getObjectCache\n arguments:\n status: provisioning\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getObjectCache.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getObjectCache.\n", "properties": { "buckets": { "items": { "$ref": "#/types/betterstack:index/getObjectCacheBucketSummary:getObjectCacheBucketSummary" }, "type": "array" }, "cacheTtlSeconds": { "type": "integer" }, "cacheUsedGb": { "type": "number" }, "configAppliedAt": { "type": "string" }, "createdAt": { "type": "string" }, "endpoints": { "$ref": "#/types/betterstack:index/getObjectCacheEndpoints:getObjectCacheEndpoints" }, "evictionPolicy": { "type": "string" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "fsync": { "type": "boolean" }, "id": { "type": "string" }, "listingCacheTtlSeconds": { "type": "integer" }, "maxCapacityGb": { "type": "integer" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "placementGroupId": { "type": "string" }, "publicAccess": { "type": "boolean" }, "publicIpv4": { "type": "boolean" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" }, "usableCacheGb": { "type": "integer" } }, "required": [ "buckets", "cacheTtlSeconds", "cacheUsedGb", "configAppliedAt", "createdAt", "endpoints", "evictionPolicy", "firewallIds", "fsync", "id", "listingCacheTtlSeconds", "maxCapacityGb", "metadata", "name", "networkIds", "placementGroupId", "publicAccess", "publicIpv4", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableCacheGb" ], "type": "object" } }, "betterstack:index/getObjectCacheBucket:getObjectCacheBucket": { "description": "A bucket an object cache serves. Each one maps to a bucket at your S3-compatible storage provider.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getObjectCacheBucket({\n objectProxyId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_object_cache_bucket(object_proxy_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetObjectCacheBucket.Invoke(new()\n {\n ObjectProxyId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetObjectCacheBucket(ctx, \u0026betterstack.LookupObjectCacheBucketArgs{\n\t\t\tObjectProxyId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_object_cache_bucket\" \"example\" {\n object_proxy_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetObjectCacheBucketArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getObjectCacheBucket(GetObjectCacheBucketArgs.builder()\n .objectProxyId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getObjectCacheBucket\n arguments:\n objectProxyId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getObjectCacheBucket.\n", "properties": { "id": { "type": "string", "description": "The bucket's ID, a UUID.\n" }, "objectProxyId": { "type": "string", "description": "The ID of the parent this object proxy belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "objectProxyId" ] }, "outputs": { "description": "A collection of values returned by getObjectCacheBucket.\n", "properties": { "createdAt": { "description": "When the bucket was added.\n", "type": "string" }, "id": { "description": "The bucket's ID, a UUID.\n", "type": "string" }, "name": { "description": "The bucket name clients use with the object cache, 3–63 lowercase letters, digits, dots and hyphens, starting and ending with a letter or digit.\n", "type": "string" }, "objectProxyId": { "description": "The ID of the parent this object proxy belongs to. Changing it replaces the resource.\n", "type": "string" }, "originAccessKeyId": { "description": "The access key ID for your storage provider. Not returned after it's saved.\n", "secret": true, "type": "string" }, "originBucket": { "description": "The name of the bucket at your storage provider, at most 255 characters.\n", "type": "string" }, "originCreationDate": { "description": "When the bucket at your storage provider was created, as your storage provider reports it.\n", "type": "string" }, "originEndpoint": { "description": "The HTTPS URL of your storage provider's S3 endpoint, such as `https://s3.us-east-1.amazonaws.com`.\n", "type": "string" }, "originForcePathStyle": { "description": "Whether we send the bucket name in the URL path to your storage provider, instead of in the hostname.\n", "type": "boolean" }, "originPrefix": { "description": "A folder in the bucket at your storage provider to serve as the whole bucket, such as `tenant-a/`. Clients see only the objects under it.\n", "type": "string" }, "originRegion": { "description": "The region of your storage provider, such as `us-east-1` or 'auto'.\n", "type": "string" }, "originSecretAccessKey": { "description": "The secret key for your storage provider. Not returned after it's saved.\n", "secret": true, "type": "string" }, "scopedCredentials": { "description": "Whether the bucket has its own access keys. When it's false, create them with [Rotate an object cache bucket's credentials](https://betterstack.com/docs/cloud/api/object-cache-buckets/rotate-object-cache-bucket-credentials/).\n", "type": "boolean" } }, "required": [ "createdAt", "id", "name", "objectProxyId", "originAccessKeyId", "originBucket", "originCreationDate", "originEndpoint", "originForcePathStyle", "originPrefix", "originRegion", "originSecretAccessKey", "scopedCredentials" ], "type": "object" } }, "betterstack:index/getObjectCacheType:getObjectCacheType": { "description": "A size of object cache you can order.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getObjectCacheType({\n name: \"OP100\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_object_cache_type(name=\"OP100\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetObjectCacheType.Invoke(new()\n {\n Name = \"OP100\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetObjectCacheType(ctx, \u0026betterstack.GetObjectCacheTypeArgs{\n\t\t\tName: \"OP100\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_object_cache_type\" \"example\" {\n name = \"OP100\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetObjectCacheTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getObjectCacheType(GetObjectCacheTypeArgs.builder()\n .name(\"OP100\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getObjectCacheType\n arguments:\n name: OP100\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getObjectCacheType.\n", "properties": { "name": { "type": "string", "description": "The type's name, such as `OP100`. Send it as 'type' when you create or rescale an object cache.\n" } }, "type": "object", "required": [ "name" ] }, "outputs": { "description": "A collection of values returned by getObjectCacheType.\n", "properties": { "availability": { "description": "Whether you can order the type. 'global': You can order the type. 'unavailable': The type is deprecated. Object caches that have it keep running, but you can't create or rescale an object cache to it.\n", "type": "string" }, "maxCachedEntries": { "description": "The most entries the cache holds.\n", "type": "integer" }, "name": { "description": "The type's name, such as `OP100`. Send it as 'type' when you create or rescale an object cache.\n", "type": "string" }, "replacement": { "description": "The name of the type to use in place of this deprecated one, or null for a type we offer.\n", "type": "string" }, "usableCacheGb": { "description": "The cache space on NVMe disks, in GB.\n", "type": "integer" } }, "required": [ "availability", "maxCachedEntries", "name", "replacement", "usableCacheGb" ], "type": "object" } }, "betterstack:index/getOnCallRotation:getOnCallRotation": { "description": "An on-call rotation puts the users of an on-call schedule on call in turns, with shifts of a set length.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getOnCallRotation({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_on_call_rotation(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetOnCallRotation.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetOnCallRotation(ctx, \u0026betterstack.LookupOnCallRotationArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_on_call_rotation\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetOnCallRotationArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getOnCallRotation(GetOnCallRotationArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getOnCallRotation\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getOnCallRotation.\n", "properties": { "id": { "type": "string", "description": "The ID of the on-call rotation to look up.\n" }, "teamId": { "type": "string", "description": "Team of the rotation's on-call schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getOnCallRotation.\n", "properties": { "applyFrom": { "description": "The date the change applies from. Shifts before it stay as they are. Leave it out to apply the change now.\n", "type": "string" }, "applyFromTimezone": { "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e. Ignored when \u003cspan pulumi-lang-nodejs=\"`applyFrom`\" pulumi-lang-dotnet=\"`ApplyFrom`\" pulumi-lang-go=\"`applyFrom`\" pulumi-lang-python=\"`apply_from`\" pulumi-lang-yaml=\"`applyFrom`\" pulumi-lang-java=\"`applyFrom`\" pulumi-lang-hcl=\"`apply_from`\"\u003e`applyFrom`\u003c/span\u003e has a UTC offset.\n", "type": "string" }, "effectiveTimezone": { "description": "The time zone \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e are read in. Same as \u003cspan pulumi-lang-nodejs=\"`timezone`\" pulumi-lang-dotnet=\"`Timezone`\" pulumi-lang-go=\"`timezone`\" pulumi-lang-python=\"`timezone`\" pulumi-lang-yaml=\"`timezone`\" pulumi-lang-java=\"`timezone`\" pulumi-lang-hcl=\"`timezone`\"\u003e`timezone`\u003c/span\u003e when it's set, otherwise the schedule's default time zone, or `UTC` when neither is set.\n", "type": "string" }, "endRotationsAt": { "description": "When the rotation schedule ends.\n", "type": "string" }, "id": { "description": "The ID of the on-call rotation to look up.\n", "type": "string" }, "rotationInterval": { "description": "Unit for \u003cspan pulumi-lang-nodejs=\"`rotationLength`\" pulumi-lang-dotnet=\"`RotationLength`\" pulumi-lang-go=\"`rotationLength`\" pulumi-lang-python=\"`rotation_length`\" pulumi-lang-yaml=\"`rotationLength`\" pulumi-lang-java=\"`rotationLength`\" pulumi-lang-hcl=\"`rotation_length`\"\u003e`rotationLength`\u003c/span\u003e. Valid values: 'hour', 'day', 'week'.\n", "type": "string" }, "rotationLength": { "description": "How long each shift lasts, in \u003cspan pulumi-lang-nodejs=\"`rotationInterval`\" pulumi-lang-dotnet=\"`RotationInterval`\" pulumi-lang-go=\"`rotationInterval`\" pulumi-lang-python=\"`rotation_interval`\" pulumi-lang-yaml=\"`rotationInterval`\" pulumi-lang-java=\"`rotationInterval`\" pulumi-lang-hcl=\"`rotation_interval`\"\u003e`rotationInterval`\u003c/span\u003e units. A whole number of at least '1'.\n", "type": "integer" }, "startRotationsAt": { "description": "When the rotation schedule starts.\n", "type": "string" }, "teamId": { "description": "Team of the rotation's on-call schedule, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "timezone": { "description": "Time zone for \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e and for handovers across daylight saving changes. A new rotation with \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e defaults to UTC.\n", "type": "string" }, "users": { "description": "E-mail addresses of users in the rotation, in shift order. Each must be a responder in the schedule's team.\n", "items": { "type": "string" }, "type": "array" }, "workingHours": { "description": "The times the rotation pages anyone, as up to 50 weekly windows in local time. Windows are returned as `HH:MM`, sorted by day. A window that ends at or before its start runs overnight, and one with the same start and end covers the whole day. Without \u003cspan pulumi-lang-nodejs=\"`workingHours`\" pulumi-lang-dotnet=\"`WorkingHours`\" pulumi-lang-go=\"`workingHours`\" pulumi-lang-python=\"`working_hours`\" pulumi-lang-yaml=\"`workingHours`\" pulumi-lang-java=\"`workingHours`\" pulumi-lang-hcl=\"`working_hours`\"\u003e`workingHours`\u003c/span\u003e, or with an empty list, the rotation pages around the clock.\n", "items": { "$ref": "#/types/betterstack:index/getOnCallRotationWorkingHour:getOnCallRotationWorkingHour" }, "type": "array" } }, "required": [ "applyFrom", "applyFromTimezone", "effectiveTimezone", "endRotationsAt", "id", "rotationInterval", "rotationLength", "startRotationsAt", "teamId", "timezone", "users", "workingHours" ], "type": "object" } }, "betterstack:index/getOnCallSchedule:getOnCallSchedule": { "description": "An on-call schedule says who on your team is on call and when. A schedule has a rotation that puts people on call in turns, and overrides that put someone else on call for a while.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getOnCallSchedule({\n name: \"Backend on-call\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_on_call_schedule(name=\"Backend on-call\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetOnCallSchedule.Invoke(new()\n {\n Name = \"Backend on-call\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetOnCallSchedule(ctx, \u0026betterstack.LookupOnCallScheduleArgs{\n\t\t\tName: pulumi.StringRef(\"Backend on-call\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_on_call_schedule\" \"example\" {\n name = \"Backend on-call\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetOnCallScheduleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getOnCallSchedule(GetOnCallScheduleArgs.builder()\n .name(\"Backend on-call\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getOnCallSchedule\n arguments:\n name: Backend on-call\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n\nOmitting all lookup inputs selects the API's 'default' object.\n", "inputs": { "description": "A collection of arguments for invoking getOnCallSchedule.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getOnCallSchedule.\n", "properties": { "defaultSchedule": { "type": "boolean" }, "id": { "type": "string" }, "name": { "type": "string" }, "onCallUsers": { "items": { "$ref": "#/types/betterstack:index/getOnCallScheduleOnCallUser:getOnCallScheduleOnCallUser" }, "type": "array" }, "shifts": { "items": { "$ref": "#/types/betterstack:index/getOnCallScheduleShift:getOnCallScheduleShift" }, "type": "array" }, "slackGroupHandle": { "type": "string" }, "slackGroups": { "items": { "$ref": "#/types/betterstack:index/getOnCallScheduleSlackGroup:getOnCallScheduleSlackGroup" }, "type": "array" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "useExistingSlackGroup": { "type": "boolean" } }, "required": [ "defaultSchedule", "id", "name", "onCallUsers", "shifts", "slackGroupHandle", "slackGroups", "teamId", "teamName", "useExistingSlackGroup" ], "type": "object" } }, "betterstack:index/getOtlp:getOtlp": { "description": "An export that sends the metrics of a team's servers in this zone to your OTLP receiver every minute.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getOtlp({\n teamId: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_otlp(team_id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetOtlp.Invoke(new()\n {\n TeamId = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetOtlp(ctx, \u0026betterstack.LookupOtlpArgs{\n\t\t\tTeamId: pulumi.StringRef(\"t123\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_otlp\" \"example\" {\n team_id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetOtlpArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getOtlp(GetOtlpArgs.builder()\n .teamId(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getOtlp\n arguments:\n teamId: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getOtlp.\n", "properties": { "id": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getOtlp.\n", "properties": { "createdAt": { "type": "string" }, "endpoint": { "type": "string" }, "headerNames": { "items": { "type": "string" }, "type": "array" }, "headers": { "$ref": "pulumi.json#/Any", "secret": true }, "id": { "type": "string" }, "lastDeliveredAt": { "type": "string" }, "lastError": { "type": "string" }, "lastErrorAt": { "type": "string" }, "name": { "type": "string" }, "pausedReason": { "type": "string" }, "resourceTypes": { "items": { "type": "string" }, "type": "array" }, "status": { "type": "string" }, "teamId": { "type": "string" }, "temporality": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "createdAt", "endpoint", "headerNames", "headers", "id", "lastDeliveredAt", "lastError", "lastErrorAt", "name", "pausedReason", "resourceTypes", "status", "teamId", "temporality", "updatedAt" ], "type": "object" } }, "betterstack:index/getPlacementGroup:getPlacementGroup": { "description": "A group of servers that we either spread across different hosts or pack onto as few hosts as we can, as long as there's room.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getPlacementGroup({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_placement_group(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetPlacementGroup.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetPlacementGroup(ctx, \u0026betterstack.LookupPlacementGroupArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_placement_group\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetPlacementGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getPlacementGroup(GetPlacementGroupArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getPlacementGroup\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPlacementGroup.\n", "properties": { "id": { "type": "string", "description": "The placement group's ID, a UUID.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getPlacementGroup.\n", "properties": { "createdAt": { "description": "When the group was created.\n", "type": "string" }, "id": { "description": "The placement group's ID, a UUID.\n", "type": "string" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10.\n" }, "name": { "description": "The group's name.\n", "type": "string" }, "placementType": { "description": "How we place the group's servers. When there isn't room, the server is still created, on another host. 'spread': We put each server on a different host when we can. 'compact': We put the servers on as few hosts as we can.\n", "type": "string" }, "serverIds": { "description": "The IDs of the servers in the group. A server joins the group when you create it with 'placement_group_id'.\n", "items": { "type": "string" }, "type": "array" }, "teamId": { "description": "The ID of the team that owns the group. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "type": "string" }, "updatedAt": { "description": "When the group was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "metadata", "name", "placementType", "serverIds", "teamId", "updatedAt" ], "type": "object" } }, "betterstack:index/getPostgres:getPostgres": { "description": "A managed PostgreSQL instance with up to two read replicas. Clients connect straight to PostgreSQL, or through PgBouncer, which pools connections.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getPostgres({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_postgres(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetPostgres.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetPostgres(ctx, \u0026betterstack.LookupPostgresArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_postgres\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetPostgresArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getPostgres(GetPostgresArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getPostgres\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getPostgres.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getPostgres.\n", "properties": { "availableEngineVersions": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "type": "string" }, "database": { "type": "string" }, "databases": { "items": { "type": "string" }, "type": "array" }, "deletionProtection": { "type": "boolean" }, "endpoint": { "$ref": "#/types/betterstack:index/getPostgresEndpoint:getPostgresEndpoint" }, "enginePatchVersion": { "type": "string" }, "engineVersion": { "type": "string" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "idleInTransactionSessionTimeout": { "type": "integer" }, "latestSnapshotAt": { "type": "string" }, "logMinDurationStatement": { "type": "integer" }, "maxConnections": { "type": "integer" }, "maxPooledConnections": { "type": "integer" }, "members": { "items": { "$ref": "#/types/betterstack:index/getPostgresMember:getPostgresMember" }, "type": "array" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "publicAccess": { "type": "boolean" }, "readOnly": { "type": "boolean" }, "replicaCount": { "type": "integer" }, "statementTimeout": { "type": "integer" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" }, "usableStorageGb": { "type": "integer" }, "users": { "items": { "$ref": "#/types/betterstack:index/getPostgresUserSummary:getPostgresUserSummary" }, "type": "array" }, "workMemMb": { "type": "integer" } }, "required": [ "availableEngineVersions", "createdAt", "database", "databases", "deletionProtection", "endpoint", "enginePatchVersion", "engineVersion", "firewallIds", "id", "idleInTransactionSessionTimeout", "latestSnapshotAt", "logMinDurationStatement", "maxConnections", "maxPooledConnections", "members", "metadata", "name", "networkIds", "publicAccess", "readOnly", "replicaCount", "statementTimeout", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableStorageGb", "users", "workMemMb" ], "type": "object" } }, "betterstack:index/getPostgresDatabase:getPostgresDatabase": { "description": "A database inside a managed PostgreSQL instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getPostgresDatabase({\n postgresId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_postgres_database(postgres_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetPostgresDatabase.Invoke(new()\n {\n PostgresId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetPostgresDatabase(ctx, \u0026betterstack.LookupPostgresDatabaseArgs{\n\t\t\tPostgresId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_postgres_database\" \"example\" {\n postgres_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetPostgresDatabaseArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getPostgresDatabase(GetPostgresDatabaseArgs.builder()\n .postgresId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getPostgresDatabase\n arguments:\n postgresId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPostgresDatabase.\n", "properties": { "id": { "type": "string", "description": "The database's ID, a UUID.\n" }, "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "postgresId" ] }, "outputs": { "description": "A collection of values returned by getPostgresDatabase.\n", "properties": { "createdAt": { "description": "When the database was created.\n", "type": "string" }, "deletionProtection": { "description": "Whether destroying or replacing this postgres database is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n", "type": "boolean" }, "id": { "description": "The database's ID, a UUID.\n", "type": "string" }, "name": { "description": "The database's name. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore. Can't be 'postgres', 'template0' or 'template1'.\n", "type": "string" }, "postgresId": { "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n", "type": "string" } }, "required": [ "createdAt", "deletionProtection", "id", "name", "postgresId" ], "type": "object" } }, "betterstack:index/getPostgresScheduledSnapshot:getPostgresScheduledSnapshot": { "description": "A schedule that creates snapshots of a PostgreSQL instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getPostgresScheduledSnapshot({\n postgresId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_postgres_scheduled_snapshot(postgres_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetPostgresScheduledSnapshot.Invoke(new()\n {\n PostgresId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetPostgresScheduledSnapshot(ctx, \u0026betterstack.LookupPostgresScheduledSnapshotArgs{\n\t\t\tPostgresId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_postgres_scheduled_snapshot\" \"example\" {\n postgres_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetPostgresScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getPostgresScheduledSnapshot(GetPostgresScheduledSnapshotArgs.builder()\n .postgresId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getPostgresScheduledSnapshot\n arguments:\n postgresId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPostgresScheduledSnapshot.\n", "properties": { "id": { "type": "string", "description": "The schedule's ID, a UUID.\n" }, "postgresId": { "type": "string", "description": "The ID of the PostgreSQL instance. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "postgresId" ] }, "outputs": { "description": "A collection of values returned by getPostgresScheduledSnapshot.\n", "properties": { "createdAt": { "description": "When the schedule was created.\n", "type": "string" }, "frequency": { "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n", "type": "string" }, "id": { "description": "The schedule's ID, a UUID.\n", "type": "string" }, "lastRunAt": { "description": "When the schedule last ran, or null until the schedule first runs.\n", "type": "string" }, "postgresId": { "description": "The ID of the PostgreSQL instance. Changing it replaces the resource.\n", "type": "string" }, "serverId": { "description": "The ID of the server that runs the instance's primary. Changes when the instance fails over.\n", "type": "string" }, "updatedAt": { "description": "When the schedule was last updated.\n", "type": "string" } }, "required": [ "createdAt", "frequency", "id", "lastRunAt", "postgresId", "serverId", "updatedAt" ], "type": "object" } }, "betterstack:index/getPostgresType:getPostgresType": { "description": "A size of PostgreSQL instance you can order, with its CPUs, memory, disk and connection limits.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getPostgresType({\n name: \"PG1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_postgres_type(name=\"PG1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetPostgresType.Invoke(new()\n {\n Name = \"PG1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetPostgresType(ctx, \u0026betterstack.GetPostgresTypeArgs{\n\t\t\tName: \"PG1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_postgres_type\" \"example\" {\n name = \"PG1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetPostgresTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getPostgresType(GetPostgresTypeArgs.builder()\n .name(\"PG1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getPostgresType\n arguments:\n name: PG1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPostgresType.\n", "properties": { "name": { "type": "string", "description": "The type's name, such as `PG1`. Send it as 'type' when you create or rescale a PostgreSQL instance.\n" } }, "type": "object", "required": [ "name" ] }, "outputs": { "description": "A collection of values returned by getPostgresType.\n", "properties": { "availability": { "description": "Whether you can create instances of this type. 'global': You can create instances of this type. 'unavailable': The type is deprecated. Instances of this type keep running, but you can't create an instance of it or rescale to it.\n", "type": "string" }, "maxConnections": { "description": "How many clients can connect straight to PostgreSQL at once, without going through PgBouncer.\n", "type": "integer" }, "maxPooledConnections": { "description": "How many clients can connect through PgBouncer at once.\n", "type": "integer" }, "name": { "description": "The type's name, such as `PG1`. Send it as 'type' when you create or rescale a PostgreSQL instance.\n", "type": "string" }, "ramGb": { "description": "The memory on each node, in GiB.\n", "type": "integer" }, "replacement": { "description": "The type to use instead of this deprecated one, or null when the type is offered.\n", "type": "string" }, "usableStorageGb": { "description": "The disk space for your data, in GiB.\n", "type": "integer" }, "vcpu": { "description": "The number of virtual CPUs on each node.\n", "type": "integer" } }, "required": [ "availability", "maxConnections", "maxPooledConnections", "name", "ramGb", "replacement", "usableStorageGb", "vcpu" ], "type": "object" } }, "betterstack:index/getPostgresUser:getPostgresUser": { "description": "A user of a PostgreSQL instance, with its access level on each database.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getPostgresUser({\n postgresId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_postgres_user(postgres_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetPostgresUser.Invoke(new()\n {\n PostgresId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetPostgresUser(ctx, \u0026betterstack.LookupPostgresUserArgs{\n\t\t\tPostgresId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_postgres_user\" \"example\" {\n postgres_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetPostgresUserArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getPostgresUser(GetPostgresUserArgs.builder()\n .postgresId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getPostgresUser\n arguments:\n postgresId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPostgresUser.\n", "properties": { "id": { "type": "string", "description": "The user's ID, a UUID.\n" }, "postgresId": { "type": "string", "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "postgresId" ] }, "outputs": { "description": "A collection of values returned by getPostgresUser.\n", "properties": { "createdAt": { "description": "When the user was created.\n", "type": "string" }, "defaultUser": { "description": "Whether this is the instance's default 'admin' user. The default user's access can't be changed. The default user can't be deleted.\n", "type": "boolean" }, "id": { "description": "The user's ID, a UUID.\n", "type": "string" }, "postgresId": { "description": "The ID of the parent this postgres belongs to. Changing it replaces the resource.\n", "type": "string" }, "privileges": { "$ref": "pulumi.json#/Any", "description": "The user's access to each database, as an object that maps a database name to an access level, such as `{\"appdb\": 'read_write'}`. A database that isn't in the object gets no access. 'read' can read the tables in the 'public' schema. 'read_write' can also add, change and delete rows and run functions, but can't create tables. 'all' can also create tables and schemas and maintain them, such as with `VACUUM`. 'none' gives no access.\n" }, "username": { "description": "The user's name in PostgreSQL. Accepts up to 63 lowercase letters, digits and underscores, and must start with a letter or an underscore.\n", "type": "string" } }, "required": [ "createdAt", "defaultUser", "id", "postgresId", "privileges", "username" ], "type": "object" } }, "betterstack:index/getPostgresVersion:getPostgresVersion": { "description": "A PostgreSQL major version you can create an instance with.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getPostgresVersion({\n engineVersion: \"19\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_postgres_version(engine_version=\"19\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetPostgresVersion.Invoke(new()\n {\n EngineVersion = \"19\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetPostgresVersion(ctx, \u0026betterstack.GetPostgresVersionArgs{\n\t\t\tEngineVersion: \"19\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_postgres_version\" \"example\" {\n engine_version = \"19\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetPostgresVersionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getPostgresVersion(GetPostgresVersionArgs.builder()\n .engineVersion(\"19\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getPostgresVersion\n arguments:\n engineVersion: '19'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getPostgresVersion.\n", "properties": { "engineVersion": { "type": "string", "description": "The PostgreSQL major version, such as '19'.\n" } }, "type": "object", "required": [ "engineVersion" ] }, "outputs": { "description": "A collection of values returned by getPostgresVersion.\n", "properties": { "engineVersion": { "description": "The PostgreSQL major version, such as '19'.\n", "type": "string" }, "latest": { "description": "Whether a new instance gets this version when you leave out \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e.\n", "type": "boolean" } }, "required": [ "engineVersion", "latest" ], "type": "object" } }, "betterstack:index/getQuota:getQuota": { "description": "The organization's resource limits in this zone.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getQuota({});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_quota()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetQuota.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetQuota(ctx, map[string]interface{}{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_quota\" \"example\" {\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getQuota(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getQuota\n arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nThe data source accepts no arguments.\n", "outputs": { "description": "A collection of values returned by getQuota.\n", "properties": { "apiRequestsPerMinute": { "$ref": "#/types/betterstack:index/getQuotaApiRequestsPerMinute:getQuotaApiRequestsPerMinute", "description": "How many API requests the organization can send in one minute, all teams together. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a rate. A request over the limit is refused with the code 'rate_limited'.\n" }, "certificates": { "$ref": "#/types/betterstack:index/getQuotaCertificates:getQuotaCertificates", "description": "How many uploaded and managed TLS certificates the organization can have. Certificates are shared across zones, so the count is the same in each zone.\n" }, "clickhouses": { "$ref": "#/types/betterstack:index/getQuotaClickhouses:getQuotaClickhouses", "description": "How many managed ClickHouse instances the organization can have.\n" }, "cloudflareRecords": { "$ref": "#/types/betterstack:index/getQuotaCloudflareRecords:getQuotaCloudflareRecords", "description": "How many Cloudflare DNS records one server can have. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a limit on each server.\n" }, "consoleSessions": { "$ref": "#/types/betterstack:index/getQuotaConsoleSessions:getQuotaConsoleSessions", "description": "How many console sessions can be open at the same time.\n" }, "dedicatedServers": { "$ref": "#/types/betterstack:index/getQuotaDedicatedServers:getQuotaDedicatedServers", "description": "How many dedicated servers the organization can have.\n" }, "dedicatedVcpus": { "$ref": "#/types/betterstack:index/getQuotaDedicatedVcpus:getQuotaDedicatedVcpus", "description": "The total vCPUs of your servers on the dedicated tier.\n" }, "firewallRules": { "$ref": "#/types/betterstack:index/getQuotaFirewallRules:getQuotaFirewallRules", "description": "How many rules one firewall can have. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a limit on each firewall.\n" }, "firewalls": { "$ref": "#/types/betterstack:index/getQuotaFirewalls:getQuotaFirewalls", "description": "How many firewalls the organization can have.\n" }, "id": { "description": "Always 'quota', since there is one.\n", "type": "string" }, "kafkas": { "$ref": "#/types/betterstack:index/getQuotaKafkas:getQuotaKafkas", "description": "How many managed Kafka clusters the organization can have.\n" }, "kubernetesControlPlanes": { "$ref": "#/types/betterstack:index/getQuotaKubernetesControlPlanes:getQuotaKubernetesControlPlanes", "description": "How many Kubernetes control planes the organization can have.\n" }, "loadBalancers": { "$ref": "#/types/betterstack:index/getQuotaLoadBalancers:getQuotaLoadBalancers", "description": "How many managed load balancers the organization can have.\n" }, "mysqls": { "$ref": "#/types/betterstack:index/getQuotaMysqls:getQuotaMysqls", "description": "How many managed MySQL instances the organization can have.\n" }, "networks": { "$ref": "#/types/betterstack:index/getQuotaNetworks:getQuotaNetworks", "description": "How many private networks the organization can have.\n" }, "objectProxies": { "$ref": "#/types/betterstack:index/getQuotaObjectProxies:getQuotaObjectProxies", "description": "How many object caches the organization can have.\n" }, "otlps": { "$ref": "#/types/betterstack:index/getQuotaOtlps:getQuotaOtlps", "description": "How many OTLP exports the organization can have, paused ones included.\n" }, "placementGroupCount": { "$ref": "#/types/betterstack:index/getQuotaPlacementGroupCount:getQuotaPlacementGroupCount", "description": "How many placement groups the organization can have.\n" }, "placementGroupServers": { "$ref": "#/types/betterstack:index/getQuotaPlacementGroupServers:getQuotaPlacementGroupServers", "description": "How many servers one placement group can hold. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a limit on each group.\n" }, "postgresInstances": { "$ref": "#/types/betterstack:index/getQuotaPostgresInstances:getQuotaPostgresInstances", "description": "How many managed PostgreSQL instances the organization can have.\n" }, "privateIpsPerServerPerNetwork": { "$ref": "#/types/betterstack:index/getQuotaPrivateIpsPerServerPerNetwork:getQuotaPrivateIpsPerServerPerNetwork", "description": "How many private addresses one server can hold in one network. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a limit on each server and network.\n" }, "publicIpv4Addresses": { "$ref": "#/types/betterstack:index/getQuotaPublicIpv4Addresses:getQuotaPublicIpv4Addresses", "description": "How many public IPv4 addresses the organization can hold in the zone, reserved ones included.\n" }, "publicIpv6Addresses": { "$ref": "#/types/betterstack:index/getQuotaPublicIpv6Addresses:getQuotaPublicIpv6Addresses", "description": "How many public IPv6 addresses the organization can hold in the zone, reserved ones included.\n" }, "ramGb": { "$ref": "#/types/betterstack:index/getQuotaRamGb:getQuotaRamGb", "description": "The total memory of all your servers on every tier, in GiB.\n" }, "regularServers": { "$ref": "#/types/betterstack:index/getQuotaRegularServers:getQuotaRegularServers", "description": "How many regular servers the organization can have.\n" }, "regularVcpus": { "$ref": "#/types/betterstack:index/getQuotaRegularVcpus:getQuotaRegularVcpus", "description": "The total vCPUs of your servers on the regular tier.\n" }, "rescalesPerMinute": { "$ref": "#/types/betterstack:index/getQuotaRescalesPerMinute:getQuotaRescalesPerMinute", "description": "How many server rescales the organization can start in 60 seconds. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a rate. A request over the limit is refused with the code 'rate_limited'.\n" }, "reservedIpv4Addresses": { "$ref": "#/types/betterstack:index/getQuotaReservedIpv4Addresses:getQuotaReservedIpv4Addresses", "description": "How many reserved IPv4 addresses the organization can have.\n" }, "reservedIpv6Addresses": { "$ref": "#/types/betterstack:index/getQuotaReservedIpv6Addresses:getQuotaReservedIpv6Addresses", "description": "How many reserved IPv6 addresses the organization can have.\n" }, "scheduledSnapshots": { "$ref": "#/types/betterstack:index/getQuotaScheduledSnapshots:getQuotaScheduledSnapshots", "description": "How many snapshot schedules of servers, managed databases and Kubernetes clusters the organization can have.\n" }, "scheduledVolumeSnapshots": { "$ref": "#/types/betterstack:index/getQuotaScheduledVolumeSnapshots:getQuotaScheduledVolumeSnapshots", "description": "How many snapshot schedules of volumes the organization can have.\n" }, "serverPoolSize": { "$ref": "#/types/betterstack:index/getQuotaServerPoolSize:getQuotaServerPoolSize", "description": "The total maximum size of all server pools.\n" }, "serversPerMinute": { "$ref": "#/types/betterstack:index/getQuotaServersPerMinute:getQuotaServersPerMinute", "description": "How many servers the organization can create in 60 seconds. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a rate.\n" }, "snapshotStorageGb": { "$ref": "#/types/betterstack:index/getQuotaSnapshotStorageGb:getQuotaSnapshotStorageGb", "description": "The total size of server snapshots and managed backups, in whole GiB, rounded down.\n" }, "snapshots": { "$ref": "#/types/betterstack:index/getQuotaSnapshots:getQuotaSnapshots", "description": "How many server snapshots and managed service backups the organization can have.\n" }, "snapshotsPerMinute": { "$ref": "#/types/betterstack:index/getQuotaSnapshotsPerMinute:getQuotaSnapshotsPerMinute", "description": "How many snapshots the organization can start in 60 seconds. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a rate. A request over the limit is refused with the code 'rate_limited'.\n" }, "spotServers": { "$ref": "#/types/betterstack:index/getQuotaSpotServers:getQuotaSpotServers", "description": "How many spot servers the organization can have.\n" }, "spotVcpus": { "$ref": "#/types/betterstack:index/getQuotaSpotVcpus:getQuotaSpotVcpus", "description": "The total vCPUs of your servers on the spot tier.\n" }, "sshKeys": { "$ref": "#/types/betterstack:index/getQuotaSshKeys:getQuotaSshKeys", "description": "How many SSH keys the organization can have. SSH keys are shared across zones, so the count is the same in each zone.\n" }, "valkeys": { "$ref": "#/types/betterstack:index/getQuotaValkeys:getQuotaValkeys", "description": "How many managed Valkey instances the organization can have.\n" }, "volumeSnapshotStorageGb": { "$ref": "#/types/betterstack:index/getQuotaVolumeSnapshotStorageGb:getQuotaVolumeSnapshotStorageGb", "description": "The total size of every volume snapshot, in whole GiB, rounded down.\n" }, "volumeSnapshots": { "$ref": "#/types/betterstack:index/getQuotaVolumeSnapshots:getQuotaVolumeSnapshots", "description": "How many volume snapshots the organization can have.\n" }, "volumeSnapshotsPerMinute": { "$ref": "#/types/betterstack:index/getQuotaVolumeSnapshotsPerMinute:getQuotaVolumeSnapshotsPerMinute", "description": "How many snapshots of volumes the organization can start in 60 seconds. \u003cspan pulumi-lang-nodejs=\"`used`\" pulumi-lang-dotnet=\"`Used`\" pulumi-lang-go=\"`used`\" pulumi-lang-python=\"`used`\" pulumi-lang-yaml=\"`used`\" pulumi-lang-java=\"`used`\" pulumi-lang-hcl=\"`used`\"\u003e`used`\u003c/span\u003e is null for a rate. A request over the limit is refused with the code 'rate_limited'.\n" }, "volumeStorageGb": { "$ref": "#/types/betterstack:index/getQuotaVolumeStorageGb:getQuotaVolumeStorageGb", "description": "The total size of the organization's volumes in GiB.\n" }, "volumes": { "$ref": "#/types/betterstack:index/getQuotaVolumes:getQuotaVolumes", "description": "How many volumes the organization can have.\n" }, "webhooks": { "$ref": "#/types/betterstack:index/getQuotaWebhooks:getQuotaWebhooks", "description": "How many webhooks the organization can have, paused ones included.\n" } }, "required": [ "apiRequestsPerMinute", "certificates", "clickhouses", "cloudflareRecords", "consoleSessions", "dedicatedServers", "dedicatedVcpus", "firewallRules", "firewalls", "id", "kafkas", "kubernetesControlPlanes", "loadBalancers", "mysqls", "networks", "objectProxies", "otlps", "placementGroupCount", "placementGroupServers", "postgresInstances", "privateIpsPerServerPerNetwork", "publicIpv4Addresses", "publicIpv6Addresses", "ramGb", "regularServers", "regularVcpus", "rescalesPerMinute", "reservedIpv4Addresses", "reservedIpv6Addresses", "scheduledSnapshots", "scheduledVolumeSnapshots", "serverPoolSize", "serversPerMinute", "snapshotStorageGb", "snapshots", "snapshotsPerMinute", "spotServers", "spotVcpus", "sshKeys", "valkeys", "volumeSnapshotStorageGb", "volumeSnapshots", "volumeSnapshotsPerMinute", "volumeStorageGb", "volumes", "webhooks" ], "type": "object" } }, "betterstack:index/getRelease:getRelease": { "description": "A release of an error-tracking application, detected automatically or registered through the API so it appears the moment it deploys.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getRelease({\n applicationId: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_release(application_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetRelease.Invoke(new()\n {\n ApplicationId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetRelease(ctx, \u0026betterstack.LookupReleaseArgs{\n\t\t\tApplicationId: pulumi.StringRef(\"12345\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_release\" \"example\" {\n application_id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetReleaseArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getRelease(GetReleaseArgs.builder()\n .applicationId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getRelease\n arguments:\n applicationId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getRelease.\n", "properties": { "applicationId": { "type": "string" }, "id": { "type": "string" }, "version": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getRelease.\n", "properties": { "applicationId": { "type": "string" }, "createdAt": { "type": "string" }, "environment": { "items": { "type": "string" }, "type": "array" }, "environments": { "items": { "type": "string" }, "type": "array" }, "firstSeenAt": { "type": "string" }, "id": { "type": "string" }, "lastSeenAt": { "type": "string" }, "origin": { "type": "string" }, "teamId": { "type": "string" }, "updatedAt": { "type": "string" }, "version": { "type": "string" } }, "required": [ "applicationId", "createdAt", "environment", "environments", "firstSeenAt", "id", "lastSeenAt", "origin", "teamId", "updatedAt", "version" ], "type": "object" } }, "betterstack:index/getReservedIp:getReservedIp": { "description": "A public IP address that belongs to your team instead of a server. You can move a reserved IP between servers, and you keep it when you delete a server.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getReservedIp({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_reserved_ip(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetReservedIp.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetReservedIp(ctx, \u0026betterstack.LookupReservedIpArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_reserved_ip\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetReservedIpArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getReservedIp(GetReservedIpArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getReservedIp\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getReservedIp.\n", "properties": { "id": { "type": "string", "description": "The reserved IP's ID, a UUID.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getReservedIp.\n", "properties": { "createdAt": { "description": "When the reserved IP was created.\n", "type": "string" }, "gateway": { "description": "The gateway for the address, for when you configure the server's network yourself.\n", "type": "string" }, "id": { "description": "The reserved IP's ID, a UUID.\n", "type": "string" }, "ip": { "description": "The IP address.\n", "type": "string" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10.\n" }, "name": { "description": "The reserved IP's name, unique in the organization.\n", "type": "string" }, "ptrRecord": { "description": "The reverse DNS name for the address. A \u003cspan pulumi-lang-nodejs=\"`ptrRecord`\" pulumi-lang-dotnet=\"`PtrRecord`\" pulumi-lang-go=\"`ptrRecord`\" pulumi-lang-python=\"`ptr_record`\" pulumi-lang-yaml=\"`ptrRecord`\" pulumi-lang-java=\"`ptrRecord`\" pulumi-lang-hcl=\"`ptr_record`\"\u003e`ptrRecord`\u003c/span\u003e you send when you assign the address replaces this one while the address stays assigned.\n", "type": "string" }, "server": { "$ref": "#/types/betterstack:index/getReservedIpServer:getReservedIpServer", "description": "The server the address is assigned to, or null when the address isn't assigned.\n" }, "serverId": { "description": "The ID of the server the address is assigned to, or null when the address isn't assigned. To change it, use [Assign a reserved IP](https://betterstack.com/docs/cloud/api/reserved-ips/assign-reserved-ip/) and [Unassign a reserved IP](https://betterstack.com/docs/cloud/api/reserved-ips/unassign-reserved-ip/).\n", "type": "string" }, "teamId": { "description": "The ID of the team that owns the reserved IP. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "type": "string" }, "term": { "description": "The billing term. 'monthly': Billed each month. 'annual': Paid for a year at a time.\n", "type": "string" }, "type": { "description": "Whether it's an IPv4 or an IPv6 address. Valid values: 'ipv4', 'ipv6'.\n", "type": "string" }, "updatedAt": { "description": "When the reserved IP was last updated.\n", "type": "string" } }, "required": [ "createdAt", "gateway", "id", "ip", "metadata", "name", "ptrRecord", "server", "serverId", "teamId", "term", "type", "updatedAt" ], "type": "object" } }, "betterstack:index/getRole:getRole": { "description": "A role in the organization, either a system role or a custom role built in the role editor.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getRole({\n name: \"Team lead\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_role(name=\"Team lead\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetRole.Invoke(new()\n {\n Name = \"Team lead\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetRole(ctx, \u0026betterstack.GetRoleArgs{\n\t\t\tName: pulumi.StringRef(\"Team lead\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_role\" \"example\" {\n name = \"Team lead\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetRoleArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getRole(GetRoleArgs.builder()\n .name(\"Team lead\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getRole\n arguments:\n name: Team lead\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getRole.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getRole.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "role": { "type": "string" } }, "required": [ "id", "name", "role" ], "type": "object" } }, "betterstack:index/getScheduledSnapshot:getScheduledSnapshot": { "description": "A schedule that creates snapshots of a server.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getScheduledSnapshot({\n serverId: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_scheduled_snapshot(server_id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetScheduledSnapshot.Invoke(new()\n {\n ServerId = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetScheduledSnapshot(ctx, \u0026betterstack.LookupScheduledSnapshotArgs{\n\t\t\tServerId: pulumi.StringRef(\"12345\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_scheduled_snapshot\" \"example\" {\n server_id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getScheduledSnapshot(GetScheduledSnapshotArgs.builder()\n .serverId(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getScheduledSnapshot\n arguments:\n serverId: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getScheduledSnapshot.\n", "properties": { "id": { "type": "string" }, "serverId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getScheduledSnapshot.\n", "properties": { "createdAt": { "type": "string" }, "frequency": { "type": "string" }, "id": { "type": "string" }, "lastRunAt": { "type": "string" }, "serverId": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "createdAt", "frequency", "id", "lastRunAt", "serverId", "updatedAt" ], "type": "object" } }, "betterstack:index/getScheduledVolumeSnapshot:getScheduledVolumeSnapshot": { "description": "A schedule that creates snapshots of a volume.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getScheduledVolumeSnapshot({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_scheduled_volume_snapshot(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetScheduledVolumeSnapshot.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetScheduledVolumeSnapshot(ctx, \u0026betterstack.LookupScheduledVolumeSnapshotArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_scheduled_volume_snapshot\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetScheduledVolumeSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getScheduledVolumeSnapshot(GetScheduledVolumeSnapshotArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getScheduledVolumeSnapshot\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getScheduledVolumeSnapshot.\n", "properties": { "id": { "type": "string", "description": "The schedule's ID, a UUID.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getScheduledVolumeSnapshot.\n", "properties": { "createdAt": { "description": "When the schedule was created.\n", "type": "string" }, "frequency": { "description": "How often we create a snapshot. A monthly schedule runs on the same day each month. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n", "type": "string" }, "id": { "description": "The schedule's ID, a UUID.\n", "type": "string" }, "lastRunAt": { "description": "When the schedule last created a snapshot, or null until the schedule first runs.\n", "type": "string" }, "updatedAt": { "description": "When the schedule was last updated.\n", "type": "string" }, "volumeId": { "description": "The ID of the volume the schedule creates snapshots of. Get it via [List volumes](https://betterstack.com/docs/cloud/api/volumes/list-volumes/).\n", "type": "string" } }, "required": [ "createdAt", "frequency", "id", "lastRunAt", "updatedAt", "volumeId" ], "type": "object" } }, "betterstack:index/getServer:getServer": { "description": "A virtual machine, with its size, image, networks, firewall, addresses and status.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getServer({\n name: \"web-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_server(name=\"web-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetServer.Invoke(new()\n {\n Name = \"web-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetServer(ctx, \u0026betterstack.LookupServerArgs{\n\t\t\tName: pulumi.StringRef(\"web-1\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_server\" \"example\" {\n name = \"web-1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetServerArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getServer(GetServerArgs.builder()\n .name(\"web-1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getServer\n arguments:\n name: web-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getServer.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "poolId": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getServer.\n", "properties": { "aiEngineerAccess": { "type": "boolean" }, "claimedAt": { "type": "string" }, "cloudflareRecords": { "items": { "$ref": "#/types/betterstack:index/getServerCloudflareRecord:getServerCloudflareRecord" }, "type": "array" }, "connectionTracking": { "$ref": "#/types/betterstack:index/getServerConnectionTracking:getServerConnectionTracking" }, "createdAt": { "type": "string" }, "ddosProtection": { "type": "boolean" }, "deletionProtection": { "type": "boolean" }, "diskSizeGb": { "type": "integer" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "image": { "type": "string" }, "ipAddresses": { "items": { "$ref": "#/types/betterstack:index/getServerIpAddress:getServerIpAddress" }, "type": "array" }, "lock": { "$ref": "#/types/betterstack:index/getServerLock:getServerLock" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "nestedVirtualization": { "type": "boolean" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "observability": { "type": "boolean" }, "placementGroupId": { "type": "string" }, "poolId": { "type": "string" }, "privateIps": { "items": { "$ref": "#/types/betterstack:index/getServerPrivateIpItem:getServerPrivateIpItem" }, "type": "array" }, "publicIpv4": { "type": "boolean" }, "rescueState": { "type": "string" }, "reservedIpIds": { "items": { "type": "string" }, "type": "array" }, "serverType": { "type": "string" }, "sshKeys": { "items": { "type": "string" }, "type": "array" }, "status": { "type": "string" }, "subdomain": { "type": "boolean" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "updatedAt": { "type": "string" }, "userData": { "secret": true, "type": "string" }, "vulnerabilityMonitoring": { "type": "boolean" } }, "required": [ "aiEngineerAccess", "claimedAt", "cloudflareRecords", "connectionTracking", "createdAt", "ddosProtection", "deletionProtection", "diskSizeGb", "firewallIds", "id", "image", "ipAddresses", "lock", "metadata", "name", "nestedVirtualization", "networkIds", "observability", "placementGroupId", "poolId", "privateIps", "publicIpv4", "rescueState", "reservedIpIds", "serverType", "sshKeys", "status", "subdomain", "teamId", "term", "updatedAt", "userData", "vulnerabilityMonitoring" ], "type": "object" } }, "betterstack:index/getServerPool:getServerPool": { "description": "A server pool keeps spare servers of one type running, so you can claim a running server from the pool in under a second.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getServerPool({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_server_pool(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetServerPool.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetServerPool(ctx, \u0026betterstack.LookupServerPoolArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_server_pool\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetServerPoolArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getServerPool(GetServerPoolArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getServerPool\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getServerPool.\n", "properties": { "id": { "type": "string", "description": "The pool's ID, a UUID.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getServerPool.\n", "properties": { "available": { "description": "How many spare servers are ready to claim right away.\n", "type": "integer" }, "claimsTotal": { "description": "How many servers have been claimed from the pool.\n", "type": "integer" }, "createdAt": { "description": "When the pool was created.\n", "type": "string" }, "defaults": { "$ref": "#/types/betterstack:index/getServerPoolDefaults:getServerPoolDefaults", "description": "What every spare server gets when it boots, such as \u003cspan pulumi-lang-nodejs=\"`sshKeys`\" pulumi-lang-dotnet=\"`SshKeys`\" pulumi-lang-go=\"`sshKeys`\" pulumi-lang-python=\"`ssh_keys`\" pulumi-lang-yaml=\"`sshKeys`\" pulumi-lang-java=\"`sshKeys`\" pulumi-lang-hcl=\"`ssh_keys`\"\u003e`sshKeys`\u003c/span\u003e, firewalls, private networks and tags. When you claim a server and add nothing to these, the server is ready as soon as the request returns.\n" }, "enabled": { "description": "Whether the pool keeps spare servers. A disabled pool removes all its spare servers and keeps its settings. Claiming from a disabled pool is refused.\n", "type": "boolean" }, "growthMultiplier": { "description": "How much the pool grows when you claim a server from an empty pool. \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, from 1 to 10. '1' turns growing off.\n", "type": "number" }, "id": { "description": "The pool's ID, a UUID.\n", "type": "string" }, "idleMinutes": { "description": "How many minutes without a claim before the pool shrinks, from 1 to 1440.\n", "type": "integer" }, "image": { "description": "The 'slug' of the image the spare servers boot from. null for a pool that boots from a snapshot.\n", "type": "string" }, "maxSize": { "description": "The most spare servers the pool keeps. The \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e of all your organization's pools together can't be more than its 'server_pool_size' quota.\n", "type": "integer" }, "minSize": { "description": "The fewest spare servers the pool keeps, from 0 up to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e.\n", "type": "integer" }, "name": { "description": "The pool's name. Must be unique in the team, with up to 63 lowercase letters, digits and hyphens, and start and end with a letter or digit. Spare servers are named after the pool, with a hyphen and 6 hex characters added. A server gets its own name when you claim it.\n", "type": "string" }, "publicIpv4": { "description": "Whether the spare servers get a public IPv4 address. A server without one has only IPv6.\n", "type": "boolean" }, "serverType": { "description": "The server type of the spare servers. For a pool that boots from a snapshot, the snapshot's server type.\n", "type": "string" }, "shrinkMultiplier": { "description": "How much the pool shrinks while it's full and nobody has claimed a server for \u003cspan pulumi-lang-nodejs=\"`idleMinutes`\" pulumi-lang-dotnet=\"`IdleMinutes`\" pulumi-lang-go=\"`idleMinutes`\" pulumi-lang-python=\"`idle_minutes`\" pulumi-lang-yaml=\"`idleMinutes`\" pulumi-lang-java=\"`idleMinutes`\" pulumi-lang-hcl=\"`idle_minutes`\"\u003e`idleMinutes`\u003c/span\u003e. Each minute, \u003cspan pulumi-lang-nodejs=\"`targetSize`\" pulumi-lang-dotnet=\"`TargetSize`\" pulumi-lang-go=\"`targetSize`\" pulumi-lang-python=\"`target_size`\" pulumi-lang-yaml=\"`targetSize`\" pulumi-lang-java=\"`targetSize`\" pulumi-lang-hcl=\"`target_size`\"\u003e`targetSize`\u003c/span\u003e is multiplied by this factor, which is more than 0 and at most 1. '1' turns shrinking off.\n", "type": "number" }, "snapshotId": { "description": "The ID of the snapshot the spare servers boot from. null for a pool that boots from an image.\n", "type": "string" }, "targetSize": { "description": "The number of spare servers the pool currently aims for, from \u003cspan pulumi-lang-nodejs=\"`minSize`\" pulumi-lang-dotnet=\"`MinSize`\" pulumi-lang-go=\"`minSize`\" pulumi-lang-python=\"`min_size`\" pulumi-lang-yaml=\"`minSize`\" pulumi-lang-java=\"`minSize`\" pulumi-lang-hcl=\"`min_size`\"\u003e`minSize`\u003c/span\u003e to \u003cspan pulumi-lang-nodejs=\"`maxSize`\" pulumi-lang-dotnet=\"`MaxSize`\" pulumi-lang-go=\"`maxSize`\" pulumi-lang-python=\"`max_size`\" pulumi-lang-yaml=\"`maxSize`\" pulumi-lang-java=\"`maxSize`\" pulumi-lang-hcl=\"`max_size`\"\u003e`maxSize`\u003c/span\u003e. The target grows and shrinks as servers are claimed, and is 0 while the pool is disabled.\n", "type": "integer" }, "teamId": { "description": "The ID of the team that owns the pool and its servers.\n", "type": "string" }, "updatedAt": { "description": "When the pool was last updated.\n", "type": "string" }, "warming": { "description": "How many spare servers are still booting.\n", "type": "integer" } }, "required": [ "available", "claimsTotal", "createdAt", "defaults", "enabled", "growthMultiplier", "id", "idleMinutes", "image", "maxSize", "minSize", "name", "publicIpv4", "serverType", "shrinkMultiplier", "snapshotId", "targetSize", "teamId", "updatedAt", "warming" ], "type": "object" } }, "betterstack:index/getServerPrivateIp:getServerPrivateIp": { "description": "A private IP of a server in one of its private networks.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getServerPrivateIp({\n serverId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_server_private_ip(server_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetServerPrivateIp.Invoke(new()\n {\n ServerId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetServerPrivateIp(ctx, \u0026betterstack.LookupServerPrivateIpArgs{\n\t\t\tServerId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_server_private_ip\" \"example\" {\n server_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetServerPrivateIpArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getServerPrivateIp(GetServerPrivateIpArgs.builder()\n .serverId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getServerPrivateIp\n arguments:\n serverId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getServerPrivateIp.\n", "properties": { "id": { "type": "string", "description": "The ID of the private IP on the server, a UUID.\n" }, "serverId": { "type": "string", "description": "The ID of the server that has the address. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "serverId" ] }, "outputs": { "description": "A collection of values returned by getServerPrivateIp.\n", "properties": { "createdAt": { "description": "When the address was assigned.\n", "type": "string" }, "id": { "description": "The ID of the private IP on the server, a UUID.\n", "type": "string" }, "ipAddress": { "description": "The private IP address.\n", "type": "string" }, "networkId": { "description": "The ID of the private network the address is in.\n", "type": "string" }, "serverId": { "description": "The ID of the server that has the address. Changing it replaces the resource.\n", "type": "string" }, "updatedAt": { "description": "When the private IP was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "ipAddress", "networkId", "serverId", "updatedAt" ], "type": "object" } }, "betterstack:index/getServerType:getServerType": { "description": "A server size, with its vCPUs, memory, disk and bandwidth, and whether you can order it.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getServerType({\n id: \"AM1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_server_type(id=\"AM1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetServerType.Invoke(new()\n {\n Id = \"AM1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetServerType(ctx, \u0026betterstack.GetServerTypeArgs{\n\t\t\tId: \"AM1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_server_type\" \"example\" {\n id = \"AM1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetServerTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getServerType(GetServerTypeArgs.builder()\n .id(\"AM1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getServerType\n arguments:\n id: AM1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getServerType.\n", "properties": { "id": { "type": "string", "description": "The ID of the server type to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getServerType.\n", "properties": { "availability": { "description": "Whether you can order the type. 'global': You can order the type when the zone has capacity for it. 'restricted': You can order the type when the zone has capacity for it, the same as 'global'. 'unavailable': The type is deprecated. A create or a rescale to it is refused with 'type_deprecated' and the name of its replacement.\n", "type": "string" }, "bandwidthGbit": { "description": "The bandwidth limit in gigabits per second. Each network interface of the server gets this limit in each direction.\n", "type": "integer" }, "family": { "description": "The family the type belongs to. `AM` has shared AMD CPUs, `AMD` dedicated AMD CPUs and `AMS` spot servers on AMD CPUs. `IS` has shared Intel CPUs and `ISS` spot servers on Intel CPUs. `M` runs on dedicated Mac hardware and `G` on dedicated servers with GPUs.\n", "type": "string" }, "id": { "description": "The ID of the server type to look up.\n", "type": "string" }, "name": { "description": "The type's name, such as `AM4`. Send it as 'server_type' when you create a server.\n", "type": "string" }, "ramGb": { "description": "The memory in GiB.\n", "type": "integer" }, "replacement": { "description": "The name of the type to use in place of this deprecated one, or null for a type we offer.\n", "type": "string" }, "storageGb": { "description": "The root disk size in GiB. A server rescaled down to this type can keep its larger disk.\n", "type": "integer" }, "vcpu": { "description": "The number of vCPUs.\n", "type": "integer" } }, "required": [ "availability", "bandwidthGbit", "family", "id", "name", "ramGb", "replacement", "storageGb", "vcpu" ], "type": "object" } }, "betterstack:index/getSeverity:getSeverity": { "description": "A named alerting level, such as low or high, that sets how people are alerted when an escalation policy step uses it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getSeverity({\n name: \"Critical\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_severity(name=\"Critical\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetSeverity.Invoke(new()\n {\n Name = \"Critical\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetSeverity(ctx, \u0026betterstack.LookupSeverityArgs{\n\t\t\tName: pulumi.StringRef(\"Critical\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity\" \"example\" {\n name = \"Critical\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getSeverity(GetSeverityArgs.builder()\n .name(\"Critical\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getSeverity\n arguments:\n name: Critical\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getSeverity.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getSeverity.\n", "properties": { "call": { "type": "boolean" }, "criticalAlert": { "type": "boolean" }, "email": { "type": "boolean" }, "id": { "type": "string" }, "name": { "type": "string" }, "push": { "type": "boolean" }, "severityGroupId": { "type": "string" }, "sms": { "type": "boolean" }, "teamId": { "type": "string" }, "teamName": { "type": "string" } }, "required": [ "call", "criticalAlert", "email", "id", "name", "push", "severityGroupId", "sms", "teamId", "teamName" ], "type": "object" } }, "betterstack:index/getSeverityGroup:getSeverityGroup": { "description": "A severity group keeps related severities together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getSeverityGroup({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_severity_group(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetSeverityGroup.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetSeverityGroup(ctx, \u0026betterstack.LookupSeverityGroupArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_severity_group\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSeverityGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getSeverityGroup(GetSeverityGroupArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getSeverityGroup\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSeverityGroup.\n", "properties": { "id": { "type": "string", "description": "The ID of the severity group to look up.\n" }, "teamId": { "type": "string", "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getSeverityGroup.\n", "properties": { "createdAt": { "description": "When the group was created.\n", "type": "string" }, "id": { "description": "The ID of the severity group to look up.\n", "type": "string" }, "name": { "description": "Group name.\n", "type": "string" }, "sortIndex": { "description": "Display order of the group among your severity groups. Lower values come first.\n", "type": "integer" }, "teamId": { "description": "Team that owns this group, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" }, "teamName": { "description": "Name of the team that owns this group.\n", "type": "string" }, "updatedAt": { "description": "When the group was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "name", "sortIndex", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getSource:getSource": { "description": "A telemetry source, a stream of logs, metrics, or traces ingested into Better Stack.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getSource({\n name: \"Production servers\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_source(name=\"Production servers\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetSource.Invoke(new()\n {\n Name = \"Production servers\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetSource(ctx, \u0026betterstack.LookupSourceArgs{\n\t\t\tName: pulumi.StringRef(\"Production servers\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_source\" \"example\" {\n name = \"Production servers\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSourceArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getSource(GetSourceArgs.builder()\n .name(\"Production servers\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getSource\n arguments:\n name: Production servers\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n\n'apache2', 'aws', 'aws_cloudwatch', 'aws_ecs', 'aws_elb', 'aws_fargate', 'azure', 'azure_logs', 'claude_platform', 'cloudflare_logpush', 'cloudflare_prometheus_exporter', 'cloudflare_worker', 'datadog_agent', 'digitalocean', 'docker', 'dokku', 'dotnet', 'elasticsearch', 'erlang', 'fastly', 'filebeat', 'flights', 'fluentbit', 'fluentd', 'fly_io', 'gcp', 'go', 'google_cloud_pubsub', 'haproxy', 'heroku', 'http', 'java', 'javascript', 'kubernetes', 'logstash', 'minio', 'mongodb', 'mysql', 'nginx', 'open_telemetry', 'oracle_cloud', 'php', 'postgresql', 'prometheus', 'prometheus_scrape', 'python', 'rabbitmq', 'redis', 'render', 'rsyslog', 'ruby', `syslog-ng`, 'traefik', 'ubuntu', 'vector', 'vercel_integration', 'winlogbeat'\n\n'apache2', 'aws', 'aws_cloudwatch', 'aws_ecs', 'aws_elb', 'aws_fargate', 'azure', 'azure_logs', 'claude_platform', 'cloudflare_logpush', 'cloudflare_prometheus_exporter', 'cloudflare_worker', 'datadog_agent', 'digitalocean', 'docker', 'dokku', 'dotnet', 'elasticsearch', 'erlang', 'fastly', 'filebeat', 'flights', 'fluentbit', 'fluentd', 'fly_io', 'gcp', 'go', 'google_cloud_pubsub', 'haproxy', 'heroku', 'http', 'java', 'javascript', 'kubernetes', 'logstash', 'minio', 'mongodb', 'mysql', 'nginx', 'open_telemetry', 'oracle_cloud', 'php', 'postgresql', 'prometheus', 'prometheus_scrape', 'python', 'rabbitmq', 'redis', 'render', 'rsyslog', 'ruby', `syslog-ng`, 'traefik', 'ubuntu', 'vector', 'vercel_integration', 'winlogbeat'\n", "inputs": { "description": "A collection of arguments for invoking getSource.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "tableName": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getSource.\n", "properties": { "blockedMetrics": { "items": { "type": "string" }, "type": "array" }, "cluster": { "type": "string" }, "connectedSourceIds": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "type": "string" }, "customBucket": { "$ref": "#/types/betterstack:index/getSourceCustomBucket:getSourceCustomBucket" }, "dataRegion": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "gcpMetricsFilters": { "items": { "$ref": "#/types/betterstack:index/getSourceGcpMetricsFilter:getSourceGcpMetricsFilter" }, "type": "array" }, "id": { "type": "string" }, "ingestingHost": { "type": "string" }, "ingestingPaused": { "type": "boolean" }, "liveTailPattern": { "type": "string" }, "liveTailPatternSpans": { "type": "string" }, "logsRetention": { "type": "integer" }, "metricsRetention": { "type": "integer" }, "name": { "type": "string" }, "parentSourceId": { "type": "string" }, "platform": { "type": "string" }, "queryCollections": { "$ref": "#/types/betterstack:index/getSourceQueryCollections:getSourceQueryCollections" }, "scrapeFrequencySecs": { "type": "integer" }, "scrapeRequestBasicAuthPassword": { "secret": true, "type": "string" }, "scrapeRequestBasicAuthUser": { "type": "string" }, "scrapeRequestHeaders": { "items": { "$ref": "#/types/betterstack:index/getSourceScrapeRequestHeader:getSourceScrapeRequestHeader" }, "type": "array" }, "scrapeUrls": { "items": { "type": "string" }, "type": "array" }, "serviceFields": { "items": { "$ref": "#/types/betterstack:index/getSourceServiceField:getSourceServiceField" }, "type": "array" }, "skipSslVerify": { "type": "boolean" }, "sourceGroupId": { "type": "string" }, "sourceTypes": { "items": { "type": "string" }, "type": "array" }, "tableName": { "type": "string" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "token": { "secret": true, "type": "string" }, "updatedAt": { "type": "string" }, "vrlTransformationLogs": { "type": "string" }, "vrlTransformationSpans": { "type": "string" } }, "required": [ "blockedMetrics", "cluster", "connectedSourceIds", "createdAt", "customBucket", "dataRegion", "deletionProtection", "gcpMetricsFilters", "id", "ingestingHost", "ingestingPaused", "liveTailPattern", "liveTailPatternSpans", "logsRetention", "metricsRetention", "name", "parentSourceId", "platform", "queryCollections", "scrapeFrequencySecs", "scrapeRequestBasicAuthPassword", "scrapeRequestBasicAuthUser", "scrapeRequestHeaders", "scrapeUrls", "serviceFields", "skipSslVerify", "sourceGroupId", "sourceTypes", "tableName", "teamId", "teamName", "token", "updatedAt", "vrlTransformationLogs", "vrlTransformationSpans" ], "type": "object" } }, "betterstack:index/getSourceGroup:getSourceGroup": { "description": "A group that organizes related telemetry sources together.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getSourceGroup({\n name: \"Backend sources\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_source_group(name=\"Backend sources\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetSourceGroup.Invoke(new()\n {\n Name = \"Backend sources\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetSourceGroup(ctx, \u0026betterstack.LookupSourceGroupArgs{\n\t\t\tName: pulumi.StringRef(\"Backend sources\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_source_group\" \"example\" {\n name = \"Backend sources\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSourceGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getSourceGroup(GetSourceGroupArgs.builder()\n .name(\"Backend sources\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getSourceGroup\n arguments:\n name: Backend sources\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getSourceGroup.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "teamId": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getSourceGroup.\n", "properties": { "createdAt": { "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "sortIndex": { "type": "integer" }, "teamId": { "type": "string" }, "teamName": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "createdAt", "id", "name", "sortIndex", "teamId", "teamName", "updatedAt" ], "type": "object" } }, "betterstack:index/getSshKey:getSshKey": { "description": "An SSH key for the root user of your servers. We add it to a server when the server is created, or later when you attach it.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getSshKey({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_ssh_key(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetSshKey.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetSshKey(ctx, \u0026betterstack.LookupSshKeyArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_ssh_key\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetSshKeyArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getSshKey(GetSshKeyArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getSshKey\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSshKey.\n", "properties": { "id": { "type": "string", "description": "The ID of the SSH key to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getSshKey.\n", "properties": { "createdAt": { "description": "When the key was created.\n", "type": "string" }, "id": { "description": "The ID of the SSH key to look up.\n", "type": "string" }, "metadata": { "$ref": "pulumi.json#/Any", "description": "Your own tags, as string keys and values. At most 10.\n" }, "publicKey": { "description": "One OpenSSH public key, such as the contents of a `.pub` file. Never send a private key.\n", "type": "string" }, "serverIds": { "description": "The IDs of the servers to add the new key to, at most 100, in any zone. Only running servers get the key. The key is created even when a server can't get it.\n", "items": { "type": "string" }, "type": "array" }, "slug": { "description": "The key's name. Must be unique in its team, up to 255 characters long, and start and end with a letter or digit. Dots, hyphens and underscores are allowed in between. A deleted key's \u003cspan pulumi-lang-nodejs=\"`slug`\" pulumi-lang-dotnet=\"`Slug`\" pulumi-lang-go=\"`slug`\" pulumi-lang-python=\"`slug`\" pulumi-lang-yaml=\"`slug`\" pulumi-lang-java=\"`slug`\" pulumi-lang-hcl=\"`slug`\"\u003e`slug`\u003c/span\u003e stays taken until the key is removed from every zone.\n", "type": "string" }, "teamId": { "description": "The ID of the team that owns the key. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "type": "string" }, "updatedAt": { "description": "When the key was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "metadata", "publicKey", "serverIds", "slug", "teamId", "updatedAt" ], "type": "object" } }, "betterstack:index/getStatusPage:getStatusPage": { "description": "A public or private status page that communicates service health to your users.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getStatusPage({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_status_page(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetStatusPage.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetStatusPage(ctx, \u0026betterstack.LookupStatusPageArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_status_page\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetStatusPageArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getStatusPage(GetStatusPageArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getStatusPage\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getStatusPage.\n", "properties": { "id": { "type": "string", "description": "The ID of the status page to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getStatusPage.\n", "properties": { "aggregateState": { "description": "The page's overall status. 'operational': No resource on the page is down, degraded or in maintenance. 'degraded': A resource is degraded and none is down. 'downtime': A resource is down. 'maintenance': A resource is in maintenance and none is down or degraded.\n", "type": "string" }, "announcement": { "description": "Announcement banner text.\n", "type": "string" }, "announcementEmbedCss": { "description": "Your own CSS for the announcement on the embeddable widget.\n", "type": "string" }, "announcementEmbedLink": { "description": "Link the announcement points to on the embeddable widget.\n", "type": "string" }, "announcementEmbedVisible": { "description": "Whether the embeddable widget shows the announcement.\n", "type": "boolean" }, "automaticReports": { "description": "Whether status page reports are created automatically for new incidents.\n", "type": "boolean" }, "companyName": { "description": "Company name shown on the page.\n", "type": "string" }, "companyUrl": { "description": "Company website URL.\n", "type": "string" }, "contactUrl": { "description": "URL visitors can use to get in touch, such as a support page or a `mailto:` address like `mailto:support@example.com`.\n", "type": "string" }, "createdAt": { "description": "When the status page was created.\n", "type": "string" }, "customCss": { "description": "Custom CSS added to the page.\n", "type": "string" }, "customDomain": { "description": "A host name you own to serve the page from, such as `status.example.com`. Point its CNAME record to `statuspage.betteruptime.com`.\n", "type": "string" }, "customJavascript": { "description": "Custom JavaScript added to the page.\n", "type": "string" }, "darkLogoRemoteUrl": { "description": "The URL the dark mode logo was fetched from.\n", "type": "string" }, "darkLogoUrl": { "description": "The logo shown in dark mode. Responses return the URL of the stored logo.\n", "type": "string" }, "deletionProtection": { "description": "Whether destroying or replacing this status page is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n", "type": "boolean" }, "design": { "description": "Page design. 'v1': The classic design. 'v2': The modern design.\n", "type": "string" }, "faviconRemoteUrl": { "description": "The URL the favicon was fetched from.\n", "type": "string" }, "faviconUrl": { "description": "The icon browsers show in the page's tab, as the URL of the stored favicon. Only the 'v2' design shows it.\n", "type": "string" }, "googleAnalyticsId": { "description": "Your Google Analytics ID, such as `G-XXXXXXXX`. Must start with `G-`, `UA-` or `GTM-`.\n", "type": "string" }, "hideFromSearchEngines": { "description": "Whether to hide the page from search engines with a 'noindex' tag.\n", "type": "boolean" }, "history": { "description": "Number of days of history the page shows, from 7 to 365.\n", "type": "integer" }, "id": { "description": "The ID of the status page to look up.\n", "type": "string" }, "ipAllowlist": { "description": "IP addresses or CIDR ranges allowed to view the page. Entries starting with `#` are comments.\n", "items": { "type": "string" }, "type": "array" }, "layout": { "description": "Header layout of the page. Only the 'v2' design uses it. Valid values: 'vertical', 'horizontal'.\n", "type": "string" }, "logoRemoteUrl": { "description": "The URL the light mode logo was fetched from.\n", "type": "string" }, "logoUrl": { "description": "The logo shown in light mode. Responses return the URL of the stored logo.\n", "type": "string" }, "minIncidentLength": { "description": "Shortest incident the page shows, in seconds. '0' shows every incident.\n", "type": "integer" }, "navigationLinks": { "description": "Up to four links in the page's navigation, each with \u003cspan pulumi-lang-nodejs=\"`text`\" pulumi-lang-dotnet=\"`Text`\" pulumi-lang-go=\"`text`\" pulumi-lang-python=\"`text`\" pulumi-lang-yaml=\"`text`\" pulumi-lang-java=\"`text`\" pulumi-lang-hcl=\"`text`\"\u003e`text`\u003c/span\u003e and \u003cspan pulumi-lang-nodejs=\"`href`\" pulumi-lang-dotnet=\"`Href`\" pulumi-lang-go=\"`href`\" pulumi-lang-python=\"`href`\" pulumi-lang-yaml=\"`href`\" pulumi-lang-java=\"`href`\" pulumi-lang-hcl=\"`href`\"\u003e`href`\u003c/span\u003e. Only the 'v2' design shows them. An empty list removes them all.\n", "items": { "$ref": "#/types/betterstack:index/getStatusPageNavigationLink:getStatusPageNavigationLink" }, "type": "array" }, "organizationId": { "description": "The ID of the organization the page belongs to, such as '123'. Get the ID from \u003cspan pulumi-lang-nodejs=\"`organizationId`\" pulumi-lang-dotnet=\"`OrganizationId`\" pulumi-lang-go=\"`organizationId`\" pulumi-lang-python=\"`organization_id`\" pulumi-lang-yaml=\"`organizationId`\" pulumi-lang-java=\"`organizationId`\" pulumi-lang-hcl=\"`organization_id`\"\u003e`organizationId`\u003c/span\u003e in [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "type": "string" }, "password": { "description": "Password visitors enter to view the page. Never returned. Setting a password also turns on \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e, unless \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e is set too. An empty password removes the password and turns protection off.\n", "secret": true, "type": "string" }, "passwordEnabled": { "description": "Whether visitors need a password to view the page. Off unless you turn it on or set \u003cspan pulumi-lang-nodejs=\"`password`\" pulumi-lang-dotnet=\"`Password`\" pulumi-lang-go=\"`password`\" pulumi-lang-python=\"`password`\" pulumi-lang-yaml=\"`password`\" pulumi-lang-java=\"`password`\" pulumi-lang-hcl=\"`password`\"\u003e`password`\u003c/span\u003e.\n", "type": "boolean" }, "publicUrl": { "description": "The address visitors open the page at. The \u003cspan pulumi-lang-nodejs=\"`customDomain`\" pulumi-lang-dotnet=\"`CustomDomain`\" pulumi-lang-go=\"`customDomain`\" pulumi-lang-python=\"`custom_domain`\" pulumi-lang-yaml=\"`customDomain`\" pulumi-lang-java=\"`customDomain`\" pulumi-lang-hcl=\"`custom_domain`\"\u003e`customDomain`\u003c/span\u003e when the page has one, otherwise the betterstack.com \u003cspan pulumi-lang-nodejs=\"`subdomain`\" pulumi-lang-dotnet=\"`Subdomain`\" pulumi-lang-go=\"`subdomain`\" pulumi-lang-python=\"`subdomain`\" pulumi-lang-yaml=\"`subdomain`\" pulumi-lang-java=\"`subdomain`\" pulumi-lang-hcl=\"`subdomain`\"\u003e`subdomain`\u003c/span\u003e.\n", "type": "string" }, "published": { "description": "Whether the page is published and publicly visible. An unpublished page is a draft. Publishing a draft fails when the organization already has as many published status pages as its plan allows.\n", "type": "boolean" }, "requireSso": { "description": "Whether visitors must sign in with SSO to view the page. Needs SSO set up for your organization, and can't be on together with \u003cspan pulumi-lang-nodejs=\"`passwordEnabled`\" pulumi-lang-dotnet=\"`PasswordEnabled`\" pulumi-lang-go=\"`passwordEnabled`\" pulumi-lang-python=\"`password_enabled`\" pulumi-lang-yaml=\"`passwordEnabled`\" pulumi-lang-java=\"`passwordEnabled`\" pulumi-lang-hcl=\"`password_enabled`\"\u003e`passwordEnabled`\u003c/span\u003e.\n", "type": "boolean" }, "sections": { "description": "The page's sections and their resources, in display order. Only an update accepts it. Sending it replaces the whole structure, and sections and resources are matched by \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e. A section or resource without an \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e is created, and one you leave out is removed from the page. Removing a resource doesn't change the monitor or other resource it shows. An attribute you leave out of a resource keeps its value. Leave \u003cspan pulumi-lang-nodejs=\"`sections`\" pulumi-lang-dotnet=\"`Sections`\" pulumi-lang-go=\"`sections`\" pulumi-lang-python=\"`sections`\" pulumi-lang-yaml=\"`sections`\" pulumi-lang-java=\"`sections`\" pulumi-lang-hcl=\"`sections`\"\u003e`sections`\u003c/span\u003e out to keep the structure as it is.\n", "items": { "$ref": "#/types/betterstack:index/getStatusPageSection:getStatusPageSection" }, "type": "array" }, "statusPageGroupId": { "description": "The ID of the status page group the page belongs to. Get the ID via [List status page groups](https://betterstack.com/docs/uptime/api/list-all-status-page-groups/).\n", "type": "string" }, "subdomain": { "description": "Subdomain of the page's default address. Must be unique across Better Stack, up to 63 characters of letters, digits, dashes and underscores.\n", "type": "string" }, "subscribable": { "description": "Whether visitors can subscribe to updates.\n", "type": "boolean" }, "theme": { "description": "Color theme. Only the 'v2' design uses it. Valid values: 'light', 'dark', 'system'.\n", "type": "string" }, "timezone": { "description": "Time zone the page shows times in, as a Rails time zone name such as `Tokyo` or an IANA ID such as `Europe/Prague`. Returned as the Rails name.\n", "type": "string" }, "treatNotMonitoredAsOperational": { "description": "Whether the days a resource wasn't monitored show as operational in its history and count toward its uptime, instead of showing as not monitored.\n", "type": "boolean" }, "updatedAt": { "description": "When the status page was last updated.\n", "type": "string" }, "whitelabeled": { "description": "Whether to remove Better Stack branding from the page.\n", "type": "boolean" } }, "required": [ "aggregateState", "announcement", "announcementEmbedCss", "announcementEmbedLink", "announcementEmbedVisible", "automaticReports", "companyName", "companyUrl", "contactUrl", "createdAt", "customCss", "customDomain", "customJavascript", "darkLogoRemoteUrl", "darkLogoUrl", "deletionProtection", "design", "faviconRemoteUrl", "faviconUrl", "googleAnalyticsId", "hideFromSearchEngines", "history", "id", "ipAllowlist", "layout", "logoRemoteUrl", "logoUrl", "minIncidentLength", "navigationLinks", "organizationId", "password", "passwordEnabled", "publicUrl", "published", "requireSso", "sections", "statusPageGroupId", "subdomain", "subscribable", "theme", "timezone", "treatNotMonitoredAsOperational", "updatedAt", "whitelabeled" ], "type": "object" } }, "betterstack:index/getStatusPageGroup:getStatusPageGroup": { "description": "A group of related status pages. Status page groups belong to your organization, not to one team.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getStatusPageGroup({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_status_page_group(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetStatusPageGroup.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetStatusPageGroup(ctx, \u0026betterstack.LookupStatusPageGroupArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_status_page_group\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetStatusPageGroupArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getStatusPageGroup(GetStatusPageGroupArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getStatusPageGroup\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getStatusPageGroup.\n", "properties": { "id": { "type": "string", "description": "The ID of the status page group to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getStatusPageGroup.\n", "properties": { "createdAt": { "description": "When the status page group was created.\n", "type": "string" }, "id": { "description": "The ID of the status page group to look up.\n", "type": "string" }, "name": { "description": "Group name.\n", "type": "string" }, "organizationId": { "description": "Organization the group belongs to, such as '123'. Required when you sign in with OAuth and can access more than one organization. Without it, the group belongs to your token's organization. Not returned in responses.\n", "type": "string" }, "sortIndex": { "description": "Display order among the organization's status page groups. Lower values come first. Writes also accept it as 'position'.\n", "type": "integer" }, "updatedAt": { "description": "When the status page group was last updated.\n", "type": "string" } }, "required": [ "createdAt", "id", "name", "organizationId", "sortIndex", "updatedAt" ], "type": "object" } }, "betterstack:index/getTeam:getTeam": { "description": "A team in the organization. Everything you create in any Better Stack product belongs to a team.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getTeam({\n id: \"t123\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_team(id=\"t123\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetTeam.Invoke(new()\n {\n Id = \"t123\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetTeam(ctx, \u0026betterstack.LookupTeamArgs{\n\t\t\tId: \"t123\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_team\" \"example\" {\n id = \"t123\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetTeamArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getTeam(GetTeamArgs.builder()\n .id(\"t123\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getTeam\n arguments:\n id: t123\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTeam.\n", "properties": { "id": { "type": "string", "description": "The ID of the team to look up.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getTeam.\n", "properties": { "createdAt": { "description": "When the team was created.\n", "type": "string" }, "deletionProtection": { "description": "Whether destroying or replacing this team is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n", "type": "boolean" }, "id": { "description": "The ID of the team to look up.\n", "type": "string" }, "incidentGroupingMetadataScope": { "description": "Metadata keys whose values must match for incidents to be grouped. New teams start with `[\"Origin\"]`. null groups the same way as `[\"Origin\"]`.\n", "items": { "type": "string" }, "type": "array" }, "incidentGroupingPeriod": { "description": "Seconds within which a new incident is grouped with an earlier one that's still open, for example '300' for 5 minutes. '0' never groups incidents. From '0' to '2147483647', and new teams start at '300'.\n", "type": "integer" }, "logoRemoteUrl": { "description": "The URL the team's logo was fetched from.\n", "type": "string" }, "name": { "description": "The team's name. Must be unique in the organization, ignoring letter case.\n", "type": "string" }, "notifyAboutAllIncidentsInAGroup": { "description": "Whether every incident in a group alerts, rather than only the first. New teams start at true.\n", "type": "boolean" }, "onCallReminderEmail": { "description": "Send on-call reminders by e-mail. New teams start at true.\n", "type": "boolean" }, "onCallReminderLeadTime": { "description": "Seconds before an on-call shift starts to remind the person, or '0' for no reminder. The other values are '3600', '21600', '43200', '86400', '172800' and '604800'. New teams start at '86400'.\n", "type": "integer" }, "onCallReminderPush": { "description": "Send on-call reminders as push notifications. New teams start at true.\n", "type": "boolean" }, "onCallReminderSms": { "description": "Send on-call reminders by SMS. New teams start at false.\n", "type": "boolean" }, "openedEmailsTrackingEnabled": { "description": "Whether the incident timeline records when a team member opens the e-mail about a new incident. New teams start at true.\n", "type": "boolean" }, "organizationId": { "description": "ID of the organization the team belongs to.\n", "type": "string" }, "reportingEnabled": { "description": "Whether reporting is on, which unlocks the reports in Incidents. New teams start at false.\n", "type": "boolean" }, "updatedAt": { "description": "When the team was last updated.\n", "type": "string" } }, "required": [ "createdAt", "deletionProtection", "id", "incidentGroupingMetadataScope", "incidentGroupingPeriod", "logoRemoteUrl", "name", "notifyAboutAllIncidentsInAGroup", "onCallReminderEmail", "onCallReminderLeadTime", "onCallReminderPush", "onCallReminderSms", "openedEmailsTrackingEnabled", "organizationId", "reportingEnabled", "updatedAt" ], "type": "object" } }, "betterstack:index/getTeamMember:getTeamMember": { "description": "A member of a team, or a pending invitation to join it, with the member's role or the role the invitation gives.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getTeamMember({\n email: \"new.user@example.com\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_team_member(email=\"new.user@example.com\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetTeamMember.Invoke(new()\n {\n Email = \"new.user@example.com\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetTeamMember(ctx, \u0026betterstack.LookupTeamMemberArgs{\n\t\t\tEmail: pulumi.StringRef(\"new.user@example.com\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_team_member\" \"example\" {\n email = \"new.user@example.com\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetTeamMemberArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getTeamMember(GetTeamMemberArgs.builder()\n .email(\"new.user@example.com\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getTeamMember\n arguments:\n email: new.user@example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTeamMember.\n", "properties": { "email": { "type": "string", "description": "The e-mail address of the team member to look up. Set it, or \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e to the same value.\n" }, "id": { "type": "string", "description": "The same value as \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e.\n" }, "teamId": { "type": "string", "description": "Team the membership is in, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getTeamMember.\n", "properties": { "createdAt": { "description": "When the user account was created. Absent on a pending invitation.\n", "type": "string" }, "deletionProtection": { "description": "Whether destroying or replacing this team member is refused. Defaults to true. Set it to false and apply before you delete or replace it on purpose. The setting is kept in state and never sent to Better Stack.\n", "type": "boolean" }, "email": { "description": "The e-mail address of the team member to look up. Set it, or \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e to the same value.\n", "type": "string" }, "firstName": { "description": "The member's first name, or null when they haven't set one. Absent on a pending invitation.\n", "type": "string" }, "id": { "description": "The same value as \u003cspan pulumi-lang-nodejs=\"`email`\" pulumi-lang-dotnet=\"`Email`\" pulumi-lang-go=\"`email`\" pulumi-lang-python=\"`email`\" pulumi-lang-yaml=\"`email`\" pulumi-lang-java=\"`email`\" pulumi-lang-hcl=\"`email`\"\u003e`email`\u003c/span\u003e.\n", "type": "string" }, "invitedAt": { "description": "When the invitation was created. Present only on a pending invitation.\n", "type": "string" }, "lastName": { "description": "The member's last name, or null when they haven't set one. Absent on a pending invitation.\n", "type": "string" }, "mobileAppPlatforms": { "description": "The platforms the member's mobile apps receive push notifications on, 'ios' and 'android', or empty when none. Absent on a pending invitation.\n", "items": { "type": "string" }, "type": "array" }, "role": { "description": "The member's built-in role in this team. A user can have a different role in each team. null on an invitation to a custom role. With neither \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e nor \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e, an invitation gets the responder role. 'admin': Can access every feature in every team, including billing, organization settings and API tokens. The API never assigns it. 'billing_admin': Can manage subscriptions, invoices and payment settings for the whole organization, without access to operational features. 'team_lead': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, invite team members and change their roles. 'responder': Can access monitors, incidents, on-call, status pages, telemetry and AI SRE, and invite team members. 'member': Can access sources, Live tail, dashboards, error tracking, session replays and AI SRE, without monitors, incidents or on-call. 'custom': The member has a custom role. Assign one with \u003cspan pulumi-lang-nodejs=\"`roleId`\" pulumi-lang-dotnet=\"`RoleId`\" pulumi-lang-go=\"`roleId`\" pulumi-lang-python=\"`role_id`\" pulumi-lang-yaml=\"`roleId`\" pulumi-lang-java=\"`roleId`\" pulumi-lang-hcl=\"`role_id`\"\u003e`roleId`\u003c/span\u003e instead.\n", "type": "string" }, "roleId": { "description": "ID of the member's role, or of the role an invitation gives, custom roles included. Get the IDs via [List roles](https://betterstack.com/docs/uptime/api/roles/list/). When \u003cspan pulumi-lang-nodejs=\"`role`\" pulumi-lang-dotnet=\"`Role`\" pulumi-lang-go=\"`role`\" pulumi-lang-python=\"`role`\" pulumi-lang-yaml=\"`role`\" pulumi-lang-java=\"`role`\" pulumi-lang-hcl=\"`role`\"\u003e`role`\u003c/span\u003e is also given, both must name the same role.\n", "type": "string" }, "teamId": { "description": "Team the membership is in, such as 't123'. Defaults to the provider's \u003cspan pulumi-lang-nodejs=\"`teamId`\" pulumi-lang-dotnet=\"`TeamId`\" pulumi-lang-go=\"`teamId`\" pulumi-lang-python=\"`team_id`\" pulumi-lang-yaml=\"`teamId`\" pulumi-lang-java=\"`teamId`\" pulumi-lang-hcl=\"`team_id`\"\u003e`teamId`\u003c/span\u003e. Set it to look the object up in another team.\n", "type": "string" } }, "required": [ "createdAt", "deletionProtection", "email", "firstName", "id", "invitedAt", "lastName", "mobileAppPlatforms", "role", "roleId", "teamId" ], "type": "object" } }, "betterstack:index/getValkey:getValkey": { "description": "A managed Valkey instance, with one primary and up to two replicas.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getValkey({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_valkey(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetValkey.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetValkey(ctx, \u0026betterstack.LookupValkeyArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_valkey\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetValkeyArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getValkey(GetValkeyArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getValkey\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getValkey.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getValkey.\n", "properties": { "availableEngineVersions": { "items": { "type": "string" }, "type": "array" }, "createdAt": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "endpoint": { "$ref": "#/types/betterstack:index/getValkeyEndpoint:getValkeyEndpoint" }, "engineVersion": { "type": "string" }, "evictionPolicy": { "type": "string" }, "firewallIds": { "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "latestSnapshotAt": { "type": "string" }, "maxConnections": { "type": "integer" }, "members": { "items": { "$ref": "#/types/betterstack:index/getValkeyMember:getValkeyMember" }, "type": "array" }, "metadata": { "$ref": "pulumi.json#/Any" }, "name": { "type": "string" }, "networkIds": { "items": { "type": "string" }, "type": "array" }, "persistence": { "type": "string" }, "publicAccess": { "type": "boolean" }, "replicaCount": { "type": "integer" }, "status": { "type": "string" }, "statusMessage": { "type": "string" }, "teamId": { "type": "string" }, "term": { "type": "string" }, "type": { "type": "string" }, "updatedAt": { "type": "string" }, "usableMemoryGb": { "type": "integer" } }, "required": [ "availableEngineVersions", "createdAt", "deletionProtection", "endpoint", "engineVersion", "evictionPolicy", "firewallIds", "id", "latestSnapshotAt", "maxConnections", "members", "metadata", "name", "networkIds", "persistence", "publicAccess", "replicaCount", "status", "statusMessage", "teamId", "term", "type", "updatedAt", "usableMemoryGb" ], "type": "object" } }, "betterstack:index/getValkeyScheduledSnapshot:getValkeyScheduledSnapshot": { "description": "A schedule that creates a snapshot of a Valkey instance at a regular interval, always from the instance's current primary.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getValkeyScheduledSnapshot({\n valkeyId: \"12345\",\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_valkey_scheduled_snapshot(valkey_id=\"12345\",\n id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetValkeyScheduledSnapshot.Invoke(new()\n {\n ValkeyId = \"12345\",\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetValkeyScheduledSnapshot(ctx, \u0026betterstack.LookupValkeyScheduledSnapshotArgs{\n\t\t\tValkeyId: \"12345\",\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_valkey_scheduled_snapshot\" \"example\" {\n valkey_id = \"12345\"\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetValkeyScheduledSnapshotArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getValkeyScheduledSnapshot(GetValkeyScheduledSnapshotArgs.builder()\n .valkeyId(\"12345\")\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getValkeyScheduledSnapshot\n arguments:\n valkeyId: '12345'\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getValkeyScheduledSnapshot.\n", "properties": { "id": { "type": "string", "description": "The schedule ID, a UUID.\n" }, "valkeyId": { "type": "string", "description": "The ID of the Valkey instance. Changing it replaces the resource.\n" } }, "type": "object", "required": [ "id", "valkeyId" ] }, "outputs": { "description": "A collection of values returned by getValkeyScheduledSnapshot.\n", "properties": { "createdAt": { "description": "When the schedule was created.\n", "type": "string" }, "frequency": { "description": "How often we create a snapshot. A 'monthly' schedule follows calendar months. Valid values: 'hourly', 'daily', 'weekly', 'monthly'.\n", "type": "string" }, "id": { "description": "The schedule ID, a UUID.\n", "type": "string" }, "lastRunAt": { "description": "When the schedule last ran, or null before the first run.\n", "type": "string" }, "serverId": { "description": "The ID of the server that runs the instance's current primary. Changes after a failover.\n", "type": "string" }, "updatedAt": { "description": "When the schedule was last updated.\n", "type": "string" }, "valkeyId": { "description": "The ID of the Valkey instance. Changing it replaces the resource.\n", "type": "string" } }, "required": [ "createdAt", "frequency", "id", "lastRunAt", "serverId", "updatedAt", "valkeyId" ], "type": "object" } }, "betterstack:index/getValkeyType:getValkeyType": { "description": "A size of Valkey instance you can order.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getValkeyType({\n name: \"VK1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_valkey_type(name=\"VK1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetValkeyType.Invoke(new()\n {\n Name = \"VK1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetValkeyType(ctx, \u0026betterstack.GetValkeyTypeArgs{\n\t\t\tName: \"VK1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_valkey_type\" \"example\" {\n name = \"VK1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetValkeyTypeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getValkeyType(GetValkeyTypeArgs.builder()\n .name(\"VK1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getValkeyType\n arguments:\n name: VK1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getValkeyType.\n", "properties": { "name": { "type": "string", "description": "The type's name, such as `VK1`. Send it as 'type' when you create or rescale an instance.\n" } }, "type": "object", "required": [ "name" ] }, "outputs": { "description": "A collection of values returned by getValkeyType.\n", "properties": { "availability": { "description": "Whether you can order the type. 'global': You can order the type. 'unavailable': The type is deprecated. Instances that have it keep running, but you can't create or rescale an instance to it.\n", "type": "string" }, "maxConnections": { "description": "The most connections an instance of this type accepts at once.\n", "type": "integer" }, "name": { "description": "The type's name, such as `VK1`. Send it as 'type' when you create or rescale an instance.\n", "type": "string" }, "replacement": { "description": "The name of the type to use in place of this deprecated one, or null for a type we offer.\n", "type": "string" }, "usableMemoryGb": { "description": "The memory for your data on each node, in GiB.\n", "type": "integer" } }, "required": [ "availability", "maxConnections", "name", "replacement", "usableMemoryGb" ], "type": "object" } }, "betterstack:index/getValkeyVersion:getValkeyVersion": { "description": "A Valkey version you can run a Valkey instance on.\n\n\u003e The API describes no create/delete for this object, so this function is its only Pulumi surface.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getValkeyVersion({\n engineVersion: \"9.1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_valkey_version(engine_version=\"9.1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetValkeyVersion.Invoke(new()\n {\n EngineVersion = \"9.1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetValkeyVersion(ctx, \u0026betterstack.GetValkeyVersionArgs{\n\t\t\tEngineVersion: \"9.1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_valkey_version\" \"example\" {\n engine_version = \"9.1\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetValkeyVersionArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getValkeyVersion(GetValkeyVersionArgs.builder()\n .engineVersion(\"9.1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getValkeyVersion\n arguments:\n engineVersion: '9.1'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getValkeyVersion.\n", "properties": { "engineVersion": { "type": "string", "description": "The Valkey version as major and minor, such as `9.1`.\n" } }, "type": "object", "required": [ "engineVersion" ] }, "outputs": { "description": "A collection of values returned by getValkeyVersion.\n", "properties": { "engineVersion": { "description": "The Valkey version as major and minor, such as `9.1`.\n", "type": "string" }, "latest": { "description": "Whether a new instance gets this version when you leave out \u003cspan pulumi-lang-nodejs=\"`engineVersion`\" pulumi-lang-dotnet=\"`EngineVersion`\" pulumi-lang-go=\"`engineVersion`\" pulumi-lang-python=\"`engine_version`\" pulumi-lang-yaml=\"`engineVersion`\" pulumi-lang-java=\"`engineVersion`\" pulumi-lang-hcl=\"`engine_version`\"\u003e`engineVersion`\u003c/span\u003e.\n", "type": "boolean" } }, "required": [ "engineVersion", "latest" ], "type": "object" } }, "betterstack:index/getVolume:getVolume": { "description": "An NVMe disk that adds storage to a server. A volume is attached to one server at a time.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getVolume({\n name: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_volume(name=\"example\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetVolume.Invoke(new()\n {\n Name = \"example\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetVolume(ctx, \u0026betterstack.LookupVolumeArgs{\n\t\t\tName: pulumi.StringRef(\"example\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_volume\" \"example\" {\n name = \"example\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetVolumeArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getVolume(GetVolumeArgs.builder()\n .name(\"example\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getVolume\n arguments:\n name: example\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nSet \u003cspan pulumi-lang-nodejs=\"`id`\" pulumi-lang-dotnet=\"`Id`\" pulumi-lang-go=\"`id`\" pulumi-lang-python=\"`id`\" pulumi-lang-yaml=\"`id`\" pulumi-lang-java=\"`id`\" pulumi-lang-hcl=\"`id`\"\u003e`id`\u003c/span\u003e, or filter attributes matching exactly one record.\n", "inputs": { "description": "A collection of arguments for invoking getVolume.\n", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "serverId": { "type": "string" }, "status": { "type": "string" } }, "type": "object" }, "outputs": { "description": "A collection of values returned by getVolume.\n", "properties": { "autoMount": { "type": "boolean" }, "createdAt": { "type": "string" }, "deletionProtection": { "type": "boolean" }, "devicePath": { "type": "string" }, "failureReason": { "type": "string" }, "format": { "type": "string" }, "id": { "type": "string" }, "lock": { "$ref": "#/types/betterstack:index/getVolumeLock:getVolumeLock" }, "metadata": { "$ref": "pulumi.json#/Any" }, "mountPath": { "type": "string" }, "name": { "type": "string" }, "serverId": { "type": "string" }, "sizeGb": { "type": "integer" }, "status": { "type": "string" }, "teamId": { "type": "string" }, "updatedAt": { "type": "string" }, "volumeType": { "type": "string" } }, "required": [ "autoMount", "createdAt", "deletionProtection", "devicePath", "failureReason", "format", "id", "lock", "metadata", "mountPath", "name", "serverId", "sizeGb", "status", "teamId", "updatedAt", "volumeType" ], "type": "object" } }, "betterstack:index/getWebhook:getWebhook": { "description": "A URL we notify when your resources in this zone change.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as betterstack from \"@better_stack/pulumi\";\n\nconst example = betterstack.getWebhook({\n id: \"12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_betterstack as betterstack\n\nexample = betterstack.get_webhook(id=\"12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing BetterStack = Pulumi.BetterStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = BetterStack.GetWebhook.Invoke(new()\n {\n Id = \"12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/betterstackhq/pulumi-betterstack/sdk/go/betterstack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := betterstack.GetWebhook(ctx, \u0026betterstack.LookupWebhookArgs{\n\t\t\tId: \"12345\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```hcl\nterraform {\n required_providers {\n betterstack = {\n source = \"pulumi/betterstack\"\n }\n }\n}\n\ndata \"betterstack_webhook\" \"example\" {\n id = \"12345\"\n}\n```\n```java\npackage myproject;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.betterstack.pulumi.BetterstackFunctions;\nimport com.betterstack.pulumi.inputs.GetWebhookArgs;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = BetterstackFunctions.getWebhook(GetWebhookArgs.builder()\n .id(\"12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: betterstack:getWebhook\n arguments:\n id: '12345'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getWebhook.\n", "properties": { "id": { "type": "string", "description": "The webhook's ID, a UUID.\n" } }, "type": "object", "required": [ "id" ] }, "outputs": { "description": "A collection of values returned by getWebhook.\n", "properties": { "createdAt": { "description": "When the webhook was created.\n", "type": "string" }, "failedDeliveries": { "description": "The number of notifications in a row that we couldn't deliver. A delivered notification resets the count to '0'.\n", "type": "integer" }, "id": { "description": "The webhook's ID, a UUID.\n", "type": "string" }, "name": { "description": "The webhook's name.\n", "type": "string" }, "secret": { "description": "The secret we sign notifications with. Each notification has an `X-Signature` header, `sha256=` followed by the HMAC-SHA256 of the body made with this secret. We create the secret with the webhook, and every response includes it.\n", "secret": true, "type": "string" }, "status": { "description": "Whether we send notifications to the webhook. 'active': We send notifications. 'paused': We send no notifications until you set it back to 'active'.\n", "type": "string" }, "teamId": { "description": "The ID of the team that owns the webhook. Get the team ID via [List teams](https://betterstack.com/docs/uptime/api/teams/list/).\n", "type": "string" }, "updatedAt": { "description": "When the webhook was last updated.\n", "type": "string" }, "url": { "description": "The URL we send notifications to.\n", "type": "string" }, "webhookTypes": { "description": "The kinds of resources we notify about. Accepts 'server', 'snapshot', 'reserved_ip', 'network', 'firewall', 'ssh_key', 'placement_group', 'scheduled_snapshot', 'load_balancer', 'certificate', 'volume', 'volume_snapshot', 'scheduled_volume_snapshot', 'valkey', 'mysql', 'postgres', 'clickhouse', 'kafka' and 'object_proxy'. 'object_proxy' covers object caches. A notification names its kind in its 'object' field.\n", "items": { "type": "string" }, "type": "array" } }, "required": [ "createdAt", "failedDeliveries", "id", "name", "secret", "status", "teamId", "updatedAt", "url", "webhookTypes" ], "type": "object" } }, "pulumi:providers:betterstack/terraformConfig": { "description": "This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.", "inputs": { "properties": { "__self__": { "type": "ref", "$ref": "#/provider" } }, "type": "pulumi:providers:betterstack/terraformConfig", "required": [ "__self__" ] }, "outputs": { "properties": { "result": { "additionalProperties": { "$ref": "pulumi.json#/Any" }, "type": "object" } }, "required": [ "result" ], "type": "object" } } } }