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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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)
type: spectrocloud:Alert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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: spectrocloud.AlertHttpArray{
&spectrocloud.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: spectrocloud.AlertStatusArray{
&spectrocloud.AlertStatusArgs{
IsSucceeded: pulumi.Bool(false),
Message: pulumi.String("string"),
Time: pulumi.String("string"),
},
},
Timeouts: &spectrocloud.AlertTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
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());
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",
})
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",
},
});
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
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 string
- The component of the system that the alert is associated with. Currently,
ClusterHealth
is the only supported value. - Is
Active bool - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - Project string
- The project to which the alert belongs to.
- Type string
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests. - Alert
All boolUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - Alert
Id string - The ID of this resource.
- Created
By string - The user who created the alert.
- Https
List<Alert
Http> - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - 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<Alert
Status> - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- Timeouts
Alert
Timeouts
- Component string
- The component of the system that the alert is associated with. Currently,
ClusterHealth
is the only supported value. - Is
Active bool - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - Project string
- The project to which the alert belongs to.
- Type string
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests. - Alert
All boolUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - Alert
Id string - The ID of this resource.
- Created
By string - The user who created the alert.
- Https
[]Alert
Http Args - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - Identifiers []string
- A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
- Statuses
[]Alert
Status Args - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- Timeouts
Alert
Timeouts Args
- component String
- The component of the system that the alert is associated with. Currently,
ClusterHealth
is the only supported value. - is
Active Boolean - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - project String
- The project to which the alert belongs to.
- type String
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests. - alert
All BooleanUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - alert
Id String - The ID of this resource.
- created
By String - The user who created the alert.
- https
List<Alert
Http> - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - 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<Alert
Status> - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- timeouts
Alert
Timeouts
- component string
- The component of the system that the alert is associated with. Currently,
ClusterHealth
is the only supported value. - is
Active boolean - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - project string
- The project to which the alert belongs to.
- type string
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests. - alert
All booleanUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - alert
Id string - The ID of this resource.
- created
By string - The user who created the alert.
- https
Alert
Http[] - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - identifiers string[]
- A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
- statuses
Alert
Status[] - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- timeouts
Alert
Timeouts
- component str
- The component of the system that the alert is associated with. Currently,
ClusterHealth
is the only supported value. - is_
active bool - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - project str
- The project to which the alert belongs to.
- type str
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests. - alert_
all_ boolusers - If set to
true
, the alert will be sent to all users. Iffalse
, 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[Alert
Http Args] - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - 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[Alert
Status Args] - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- timeouts
Alert
Timeouts Args
- component String
- The component of the system that the alert is associated with. Currently,
ClusterHealth
is the only supported value. - is
Active Boolean - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - project String
- The project to which the alert belongs to.
- type String
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests. - alert
All BooleanUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - alert
Id String - The ID of this resource.
- created
By 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 tohttp
. - 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Alert
All boolUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - Alert
Id 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. - Created
By string - The user who created the alert.
- Https
List<Alert
Http> - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - Identifiers List<string>
- 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, orfalse
to deactivate it. - Project string
- The project to which the alert belongs to.
- Statuses
List<Alert
Status> - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- Timeouts
Alert
Timeouts - Type string
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests.
- Alert
All boolUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - Alert
Id 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. - Created
By string - The user who created the alert.
- Https
[]Alert
Http Args - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - Identifiers []string
- 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, orfalse
to deactivate it. - Project string
- The project to which the alert belongs to.
- Statuses
[]Alert
Status Args - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- Timeouts
Alert
Timeouts Args - Type string
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests.
- alert
All BooleanUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - alert
Id 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. - created
By String - The user who created the alert.
- https
List<Alert
Http> - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - identifiers List<String>
- A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
- is
Active Boolean - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - project String
- The project to which the alert belongs to.
- statuses
List<Alert
Status> - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- timeouts
Alert
Timeouts - type String
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests.
- alert
All booleanUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - alert
Id 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. - created
By string - The user who created the alert.
- https
Alert
Http[] - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - identifiers string[]
- A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
- is
Active boolean - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
to deactivate it. - project string
- The project to which the alert belongs to.
- statuses
Alert
Status[] - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- timeouts
Alert
Timeouts - type string
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests.
- alert_
all_ boolusers - If set to
true
, the alert will be sent to all users. Iffalse
, 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[Alert
Http Args] - The configuration block for HTTP-based alerts. This is used when the
type
is set tohttp
. - 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, orfalse
to deactivate it. - project str
- The project to which the alert belongs to.
- statuses
Sequence[Alert
Status Args] - A status block representing the internal status of the alert. This is primarily for internal use and not utilized directly.
- timeouts
Alert
Timeouts Args - type str
- The type of alert mechanism to use. Can be either
email
for email alerts orhttp
for sending HTTP requests.
- alert
All BooleanUsers - If set to
true
, the alert will be sent to all users. Iffalse
, it will target specific users or identifiers. - alert
Id 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. - created
By 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 tohttp
. - identifiers List<String>
- A set of unique identifiers to which the alert will be sent. This is used to target specific users or groups.
- is
Active Boolean - Indicates whether the alert is active. Set to
true
to activate the alert, orfalse
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 orhttp
for sending HTTP requests.
Supporting Types
AlertHttp, AlertHttpArgs
- Body string
- The payload to include in the HTTP request body when the alert is triggered.
- Method string
- The HTTP method to use for the alert. Supported values are
POST
,GET
, andPUT
. - Url 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 string
- The payload to include in the HTTP request body when the alert is triggered.
- Method string
- The HTTP method to use for the alert. Supported values are
POST
,GET
, andPUT
. - Url 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 String
- The payload to include in the HTTP request body when the alert is triggered.
- method String
- The HTTP method to use for the alert. Supported values are
POST
,GET
, andPUT
. - url 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 string
- The payload to include in the HTTP request body when the alert is triggered.
- method string
- The HTTP method to use for the alert. Supported values are
POST
,GET
, andPUT
. - url 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 str
- The payload to include in the HTTP request body when the alert is triggered.
- method str
- The HTTP method to use for the alert. Supported values are
POST
,GET
, andPUT
. - url 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 String
- The payload to include in the HTTP request body when the alert is triggered.
- method String
- The HTTP method to use for the alert. Supported values are
POST
,GET
, andPUT
. - url 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
- Is
Succeeded bool - Message string
- Time string
- Is
Succeeded bool - Message string
- Time string
- is
Succeeded Boolean - message String
- time String
- is
Succeeded boolean - message string
- time string
- is_
succeeded bool - message str
- time str
- is
Succeeded Boolean - message String
- time String
AlertTimeouts, AlertTimeoutsArgs
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.