Skip to content

Support configurable incident_type on service automation webhooks and Terraform provider #48

@robfleming-steno

Description

@robfleming-steno

We're using StatusPal with Datadog monitors and your Terraform provider to automate our status page. We have monitors configured at multiple severity levels — some trigger at a warning threshold (degraded performance) and others at a critical threshold (full outage). We'd like to reflect this distinction on our status page so that visitors can differentiate between a minor disruption and a major outage.

Currently, there are two gaps that prevent this:

The automate/custom-jsonpath webhook endpoint always creates major incidents. There's no way to pass an incident_type (e.g., minor) as part of the webhook payload to have the auto-created incident reflect the correct severity.

The Terraform provider exposes incident_type on the statuspal_service resource as a computed (read-only) attribute. It cannot be set in configuration, so there's no way to declare via Terraform that a service's auto-created incidents should default to minor rather than major.

What we're asking for:

Allow incident_type to be passed as an optional field in the webhook payload (e.g., alongside alert_type), so callers can specify "minor" or "major" per notification
Alternatively (or additionally), make incident_type a writable attribute on the statuspal_service resource in the Terraform provider, so services can be configured to auto-create minor incidents by default
Either of these would allow us to accurately represent degraded performance vs. full outages on our status page without having to build and maintain custom middleware.

Happy to provide more context or test any changes. Thanks for considering this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions