1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. Alert
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

spectrocloud.Alert

Explore with Pulumi AI

Example Usage

You can set up a maximum of two alerts for cluster health per project. A webhook can be configured in the HTTP component, and for email. You can add a target email recipient or enable alerts for all users in the corresponding project.

import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";

const alertEmail = new spectrocloud.Alert("alertEmail", {
    alertAllUsers: true,
    component: "ClusterHealth",
    identifiers: [
        "abc@spectrocloud.com",
        "cba@spectrocloud.com",
    ],
    isActive: true,
    project: "Default",
    type: "email",
});
const alertHttp = new spectrocloud.Alert("alertHttp", {
    alertAllUsers: true,
    component: "ClusterHealth",
    https: [{
        body: "{ \"text\": \"message\" }",
        headers: {
            source: "spectrocloud",
            tag: "Health",
        },
        method: "POST",
        url: "https://openhook.com/put/notify",
    }],
    isActive: true,
    project: "Default",
    type: "http",
});
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

alert_email = spectrocloud.Alert("alertEmail",
    alert_all_users=True,
    component="ClusterHealth",
    identifiers=[
        "abc@spectrocloud.com",
        "cba@spectrocloud.com",
    ],
    is_active=True,
    project="Default",
    type="email")
alert_http = spectrocloud.Alert("alertHttp",
    alert_all_users=True,
    component="ClusterHealth",
    https=[{
        "body": "{ \"text\": \"message\" }",
        "headers": {
            "source": "spectrocloud",
            "tag": "Health",
        },
        "method": "POST",
        "url": "https://openhook.com/put/notify",
    }],
    is_active=True,
    project="Default",
    type="http")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := spectrocloud.NewAlert(ctx, "alertEmail", &spectrocloud.AlertArgs{
			AlertAllUsers: pulumi.Bool(true),
			Component:     pulumi.String("ClusterHealth"),
			Identifiers: pulumi.StringArray{
				pulumi.String("abc@spectrocloud.com"),
				pulumi.String("cba@spectrocloud.com"),
			},
			IsActive: pulumi.Bool(true),
			Project:  pulumi.String("Default"),
			Type:     pulumi.String("email"),
		})
		if err != nil {
			return err
		}
		_, err = spectrocloud.NewAlert(ctx, "alertHttp", &spectrocloud.AlertArgs{
			AlertAllUsers: pulumi.Bool(true),
			Component:     pulumi.String("ClusterHealth"),
			Https: spectrocloud.AlertHttpArray{
				&spectrocloud.AlertHttpArgs{
					Body: pulumi.String("{ \"text\": \"message\" }"),
					Headers: pulumi.StringMap{
						"source": pulumi.String("spectrocloud"),
						"tag":    pulumi.String("Health"),
					},
					Method: pulumi.String("POST"),
					Url:    pulumi.String("https://openhook.com/put/notify"),
				},
			},
			IsActive: pulumi.Bool(true),
			Project:  pulumi.String("Default"),
			Type:     pulumi.String("http"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var alertEmail = new Spectrocloud.Alert("alertEmail", new()
    {
        AlertAllUsers = true,
        Component = "ClusterHealth",
        Identifiers = new[]
        {
            "abc@spectrocloud.com",
            "cba@spectrocloud.com",
        },
        IsActive = true,
        Project = "Default",
        Type = "email",
    });

    var alertHttp = new Spectrocloud.Alert("alertHttp", new()
    {
        AlertAllUsers = true,
        Component = "ClusterHealth",
        Https = new[]
        {
            new Spectrocloud.Inputs.AlertHttpArgs
            {
                Body = "{ \"text\": \"message\" }",
                Headers = 
                {
                    { "source", "spectrocloud" },
                    { "tag", "Health" },
                },
                Method = "POST",
                Url = "https://openhook.com/put/notify",
            },
        },
        IsActive = true,
        Project = "Default",
        Type = "http",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.Alert;
import com.pulumi.spectrocloud.AlertArgs;
import com.pulumi.spectrocloud.inputs.AlertHttpArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var alertEmail = new Alert("alertEmail", AlertArgs.builder()
            .alertAllUsers(true)
            .component("ClusterHealth")
            .identifiers(            
                "abc@spectrocloud.com",
                "cba@spectrocloud.com")
            .isActive(true)
            .project("Default")
            .type("email")
            .build());

        var alertHttp = new Alert("alertHttp", AlertArgs.builder()
            .alertAllUsers(true)
            .component("ClusterHealth")
            .https(AlertHttpArgs.builder()
                .body("{ \"text\": \"message\" }")
                .headers(Map.ofEntries(
                    Map.entry("source", "spectrocloud"),
                    Map.entry("tag", "Health")
                ))
                .method("POST")
                .url("https://openhook.com/put/notify")
                .build())
            .isActive(true)
            .project("Default")
            .type("http")
            .build());

    }
}
Copy
resources:
  alertEmail:
    type: spectrocloud:Alert
    properties:
      alertAllUsers: true
      component: ClusterHealth
      identifiers:
        - abc@spectrocloud.com
        - cba@spectrocloud.com
      isActive: true
      project: Default
      type: email
  alertHttp:
    type: spectrocloud:Alert
    properties:
      alertAllUsers: true
      component: ClusterHealth
      https:
        - body: '{ "text": "message" }'
          headers:
            source: spectrocloud
            tag: Health
          method: POST
          url: https://openhook.com/put/notify
      isActive: true
      project: Default
      type: http
Copy

Create Alert Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);
@overload
def Alert(resource_name: str,
          args: AlertArgs,
          opts: Optional[ResourceOptions] = None)

@overload
def Alert(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          component: Optional[str] = None,
          is_active: Optional[bool] = None,
          project: Optional[str] = None,
          type: Optional[str] = None,
          alert_all_users: Optional[bool] = None,
          alert_id: Optional[str] = None,
          created_by: Optional[str] = None,
          https: Optional[Sequence[AlertHttpArgs]] = None,
          identifiers: Optional[Sequence[str]] = None,
          statuses: Optional[Sequence[AlertStatusArgs]] = None,
          timeouts: Optional[AlertTimeoutsArgs] = None)
func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)
public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)
public Alert(String name, AlertArgs args)
public Alert(String name, AlertArgs args, CustomResourceOptions options)
type: spectrocloud:Alert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AlertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AlertArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AlertArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AlertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AlertArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var alertResource = new Spectrocloud.Alert("alertResource", new()
{
    Component = "string",
    IsActive = false,
    Project = "string",
    Type = "string",
    AlertAllUsers = false,
    AlertId = "string",
    CreatedBy = "string",
    Https = new[]
    {
        new Spectrocloud.Inputs.AlertHttpArgs
        {
            Body = "string",
            Method = "string",
            Url = "string",
            Headers = 
            {
                { "string", "string" },
            },
        },
    },
    Identifiers = new[]
    {
        "string",
    },
    Statuses = new[]
    {
        new Spectrocloud.Inputs.AlertStatusArgs
        {
            IsSucceeded = false,
            Message = "string",
            Time = "string",
        },
    },
    Timeouts = new Spectrocloud.Inputs.AlertTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
});
Copy
example, err := spectrocloud.NewAlert(ctx, "alertResource", &spectrocloud.AlertArgs{
Component: pulumi.String("string"),
IsActive: pulumi.Bool(false),
Project: pulumi.String("string"),
Type: pulumi.String("string"),
AlertAllUsers: pulumi.Bool(false),
AlertId: pulumi.String("string"),
CreatedBy: pulumi.String("string"),
Https: .AlertHttpArray{
&.AlertHttpArgs{
Body: pulumi.String("string"),
Method: pulumi.String("string"),
Url: pulumi.String("string"),
Headers: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Identifiers: pulumi.StringArray{
pulumi.String("string"),
},
Statuses: .AlertStatusArray{
&.AlertStatusArgs{
IsSucceeded: pulumi.Bool(false),
Message: pulumi.String("string"),
Time: pulumi.String("string"),
},
},
Timeouts: &.AlertTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
Copy
var alertResource = new Alert("alertResource", AlertArgs.builder()
    .component("string")
    .isActive(false)
    .project("string")
    .type("string")
    .alertAllUsers(false)
    .alertId("string")
    .createdBy("string")
    .https(AlertHttpArgs.builder()
        .body("string")
        .method("string")
        .url("string")
        .headers(Map.of("string", "string"))
        .build())
    .identifiers("string")
    .statuses(AlertStatusArgs.builder()
        .isSucceeded(false)
        .message("string")
        .time("string")
        .build())
    .timeouts(AlertTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .build());
Copy
alert_resource = spectrocloud.Alert("alertResource",
    component="string",
    is_active=False,
    project="string",
    type="string",
    alert_all_users=False,
    alert_id="string",
    created_by="string",
    https=[{
        "body": "string",
        "method": "string",
        "url": "string",
        "headers": {
            "string": "string",
        },
    }],
    identifiers=["string"],
    statuses=[{
        "is_succeeded": False,
        "message": "string",
        "time": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    })
Copy
const alertResource = new spectrocloud.Alert("alertResource", {
    component: "string",
    isActive: false,
    project: "string",
    type: "string",
    alertAllUsers: false,
    alertId: "string",
    createdBy: "string",
    https: [{
        body: "string",
        method: "string",
        url: "string",
        headers: {
            string: "string",
        },
    }],
    identifiers: ["string"],
    statuses: [{
        isSucceeded: false,
        message: "string",
        time: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: spectrocloud:Alert
properties:
    alertAllUsers: false
    alertId: string
    component: string
    createdBy: string
    https:
        - body: string
          headers:
            string: string
          method: string
          url: string
    identifiers:
        - string
    isActive: false
    project: string
    statuses:
        - isSucceeded: false
          message: string
          time: string
    timeouts:
        create: string
        delete: string
        update: string
    type: string
Copy

Alert Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Alert resource accepts the following input properties:

Component This property is required. string
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
IsActive This property is required. bool
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
Project This property is required. string
The project to which the alert belongs to.
Type This property is required. string
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
AlertAllUsers bool
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
AlertId string
The ID of this resource.
CreatedBy string
The user who created the alert.
Https List<AlertHttp>
The configuration block for HTTP-based alerts. This is used when the type is set to http.
Identifiers List<string>
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
Statuses List<AlertStatus>
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
Timeouts AlertTimeouts
Component This property is required. string
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
IsActive This property is required. bool
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
Project This property is required. string
The project to which the alert belongs to.
Type This property is required. string
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
AlertAllUsers bool
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
AlertId string
The ID of this resource.
CreatedBy string
The user who created the alert.
Https []AlertHttpArgs
The configuration block for HTTP-based alerts. This is used when the type is set to http.
Identifiers []string
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
Statuses []AlertStatusArgs
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
Timeouts AlertTimeoutsArgs
component This property is required. String
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
isActive This property is required. Boolean
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project This property is required. String
The project to which the alert belongs to.
type This property is required. String
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alertAllUsers Boolean
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alertId String
The ID of this resource.
createdBy String
The user who created the alert.
https List<AlertHttp>
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers List<String>
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
statuses List<AlertStatus>
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts AlertTimeouts
component This property is required. string
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
isActive This property is required. boolean
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project This property is required. string
The project to which the alert belongs to.
type This property is required. string
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alertAllUsers boolean
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alertId string
The ID of this resource.
createdBy string
The user who created the alert.
https AlertHttp[]
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers string[]
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
statuses AlertStatus[]
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts AlertTimeouts
component This property is required. str
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
is_active This property is required. bool
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project This property is required. str
The project to which the alert belongs to.
type This property is required. str
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alert_all_users bool
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alert_id str
The ID of this resource.
created_by str
The user who created the alert.
https Sequence[AlertHttpArgs]
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers Sequence[str]
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
statuses Sequence[AlertStatusArgs]
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts AlertTimeoutsArgs
component This property is required. String
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
isActive This property is required. Boolean
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project This property is required. String
The project to which the alert belongs to.
type This property is required. String
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alertAllUsers Boolean
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alertId String
The ID of this resource.
createdBy String
The user who created the alert.
https List<Property Map>
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers List<String>
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
statuses List<Property Map>
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Alert Resource

Get an existing Alert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AlertState, opts?: CustomResourceOptions): Alert
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alert_all_users: Optional[bool] = None,
        alert_id: Optional[str] = None,
        component: Optional[str] = None,
        created_by: Optional[str] = None,
        https: Optional[Sequence[AlertHttpArgs]] = None,
        identifiers: Optional[Sequence[str]] = None,
        is_active: Optional[bool] = None,
        project: Optional[str] = None,
        statuses: Optional[Sequence[AlertStatusArgs]] = None,
        timeouts: Optional[AlertTimeoutsArgs] = None,
        type: Optional[str] = None) -> Alert
func GetAlert(ctx *Context, name string, id IDInput, state *AlertState, opts ...ResourceOption) (*Alert, error)
public static Alert Get(string name, Input<string> id, AlertState? state, CustomResourceOptions? opts = null)
public static Alert get(String name, Output<String> id, AlertState state, CustomResourceOptions options)
resources:  _:    type: spectrocloud:Alert    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AlertAllUsers bool
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
AlertId string
The ID of this resource.
Component string
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
CreatedBy string
The user who created the alert.
Https List<AlertHttp>
The configuration block for HTTP-based alerts. This is used when the type is set to http.
Identifiers List<string>
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
IsActive bool
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
Project string
The project to which the alert belongs to.
Statuses List<AlertStatus>
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
Timeouts AlertTimeouts
Type string
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
AlertAllUsers bool
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
AlertId string
The ID of this resource.
Component string
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
CreatedBy string
The user who created the alert.
Https []AlertHttpArgs
The configuration block for HTTP-based alerts. This is used when the type is set to http.
Identifiers []string
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
IsActive bool
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
Project string
The project to which the alert belongs to.
Statuses []AlertStatusArgs
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
Timeouts AlertTimeoutsArgs
Type string
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alertAllUsers Boolean
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alertId String
The ID of this resource.
component String
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
createdBy String
The user who created the alert.
https List<AlertHttp>
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers List<String>
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
isActive Boolean
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project String
The project to which the alert belongs to.
statuses List<AlertStatus>
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts AlertTimeouts
type String
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alertAllUsers boolean
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alertId string
The ID of this resource.
component string
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
createdBy string
The user who created the alert.
https AlertHttp[]
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers string[]
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
isActive boolean
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project string
The project to which the alert belongs to.
statuses AlertStatus[]
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts AlertTimeouts
type string
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alert_all_users bool
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alert_id str
The ID of this resource.
component str
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
created_by str
The user who created the alert.
https Sequence[AlertHttpArgs]
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers Sequence[str]
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
is_active bool
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project str
The project to which the alert belongs to.
statuses Sequence[AlertStatusArgs]
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts AlertTimeoutsArgs
type str
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.
alertAllUsers Boolean
If set to true, the alert will be sent to all users. If false, it will target specific users or identifiers.
alertId String
The ID of this resource.
component String
The component of the system that the alert is associated with. Currently, ClusterHealth is the only supported value.
createdBy String
The user who created the alert.
https List<Property Map>
The configuration block for HTTP-based alerts. This is used when the type is set to http.
identifiers List<String>
A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
isActive Boolean
Indicates whether the alert is active. Set to true to activate the alert, or false to deactivate it.
project String
The project to which the alert belongs to.
statuses List<Property Map>
A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
timeouts Property Map
type String
The type of alert mechanism to use. Can be either email for email alerts or http for sending HTTP requests.

Supporting Types

AlertHttp
, AlertHttpArgs

Body This property is required. string
The payload to include in the HTTP request body when the alert is triggered.
Method This property is required. string
The HTTP method to use for the alert. Supported values are POST, GET, and PUT.
Url This property is required. string
The target URL to send the HTTP request to when the alert is triggered.
Headers Dictionary<string, string>
Optional HTTP headers to include in the request. Each header should be specified as a key-value pair.
Body This property is required. string
The payload to include in the HTTP request body when the alert is triggered.
Method This property is required. string
The HTTP method to use for the alert. Supported values are POST, GET, and PUT.
Url This property is required. string
The target URL to send the HTTP request to when the alert is triggered.
Headers map[string]string
Optional HTTP headers to include in the request. Each header should be specified as a key-value pair.
body This property is required. String
The payload to include in the HTTP request body when the alert is triggered.
method This property is required. String
The HTTP method to use for the alert. Supported values are POST, GET, and PUT.
url This property is required. String
The target URL to send the HTTP request to when the alert is triggered.
headers Map<String,String>
Optional HTTP headers to include in the request. Each header should be specified as a key-value pair.
body This property is required. string
The payload to include in the HTTP request body when the alert is triggered.
method This property is required. string
The HTTP method to use for the alert. Supported values are POST, GET, and PUT.
url This property is required. string
The target URL to send the HTTP request to when the alert is triggered.
headers {[key: string]: string}
Optional HTTP headers to include in the request. Each header should be specified as a key-value pair.
body This property is required. str
The payload to include in the HTTP request body when the alert is triggered.
method This property is required. str
The HTTP method to use for the alert. Supported values are POST, GET, and PUT.
url This property is required. str
The target URL to send the HTTP request to when the alert is triggered.
headers Mapping[str, str]
Optional HTTP headers to include in the request. Each header should be specified as a key-value pair.
body This property is required. String
The payload to include in the HTTP request body when the alert is triggered.
method This property is required. String
The HTTP method to use for the alert. Supported values are POST, GET, and PUT.
url This property is required. String
The target URL to send the HTTP request to when the alert is triggered.
headers Map<String>
Optional HTTP headers to include in the request. Each header should be specified as a key-value pair.

AlertStatus
, AlertStatusArgs

IsSucceeded bool
Message string
Time string
IsSucceeded bool
Message string
Time string
isSucceeded Boolean
message String
time String
isSucceeded boolean
message string
time string
isSucceeded Boolean
message String
time String

AlertTimeouts
, AlertTimeoutsArgs

Create string
Delete string
Update string
Create string
Delete string
Update string
create String
delete String
update String
create string
delete string
update string
create str
delete str
update str
create String
delete String
update String

Package Details

Repository
spectrocloud spectrocloud/terraform-provider-spectrocloud
License
Notes
This Pulumi package is based on the spectrocloud Terraform Provider.