Skip to content
betterstack-alchemyUnofficial

Incidents.SplunkOnCallIntegration

Kind ResourceType id BetterStack.Incidents.SplunkOnCallIntegrationSource src/Incidents/SplunkOnCallIntegration.tsLive test gated Lifecycle test runs against the offline mock; a live run exists but is gated behind BETTERSTACK_TEST_PAID_INTEGRATIONS=1 because the test account's plan refuses this integration (test/Incidents/SplunkOnCallIntegration.test.ts).

Sends your incidents to Splunk On-Call (formerly VictorOps). In Splunk On-Call, enable the REST Endpoint integration and copy its URL, with your routing key at the end, into url, a secret (Redacted) since it carries the API key. Incidents without an escalation policy reach Splunk On-Call when notifyAlongsidePrimaryResponder is on; with an escalation policy, only when a step of the policy notifies this integration.

Every prop updates in place (url included) except teamId, which replaces the integration. name defaults to a generated unique name.

The REST endpoint from the environment

yield* BetterStack.Incidents.SplunkOnCallIntegration("victorops", {
name: "Splunk On-Call",
url: Redacted.make(process.env.SPLUNK_ON_CALL_URL ?? ""),
notifyAlongsidePrimaryResponder: true,
});

url string | Redacted<string> required

Splunk On-Call REST endpoint URL.

name string

Integration name. Defaults to a unique name generated from the stack, stage and logical id.

notifyAlongsidePrimaryResponder boolean

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.

teamId string

Team that owns the resource, such as t123. Defaults to the credentials' team (BETTERSTACK_TEAM_ID, or the profile's team). Changing it replaces the resource.

id string always set

The incidents_splunk_on_call_integration's id.

name string | null

Integration name.

notifyAlongsidePrimaryResponder boolean

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.

paused boolean

Whether the integration is paused. A paused integration sends nothing to Splunk On-Call.

teamId string

Team that owns this integration, such as t123.

teamName string

Name of the team that owns this integration.

url string | Redacted<string>

Splunk On-Call REST endpoint URL.

SplunkOnCallIntegration.lookup(props) reads an object this stack does not manage. It is never created, updated or deleted.

id string required

The integration's id.

teamId string

Team that owns it, such as t123. Defaults to the credentials' team.