chronosphere.LogscaleAlert
Explore with Pulumi AI
Create LogscaleAlert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogscaleAlert(name: string, args: LogscaleAlertArgs, opts?: CustomResourceOptions);
@overload
def LogscaleAlert(resource_name: str,
args: LogscaleAlertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogscaleAlert(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
alert_type: Optional[str] = None,
run_as_user: Optional[str] = None,
repository: Optional[str] = None,
disabled: Optional[bool] = None,
query: Optional[str] = None,
action_ids: Optional[Sequence[str]] = None,
description: Optional[str] = None,
slug: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
throttle_duration: Optional[str] = None,
throttle_field: Optional[str] = None,
time_window: Optional[str] = None)
func NewLogscaleAlert(ctx *Context, name string, args LogscaleAlertArgs, opts ...ResourceOption) (*LogscaleAlert, error)
public LogscaleAlert(string name, LogscaleAlertArgs args, CustomResourceOptions? opts = null)
public LogscaleAlert(String name, LogscaleAlertArgs args)
public LogscaleAlert(String name, LogscaleAlertArgs args, CustomResourceOptions options)
type: chronosphere:LogscaleAlert
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. LogscaleAlertArgs - 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. LogscaleAlertArgs - 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. LogscaleAlertArgs - 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. LogscaleAlertArgs - 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. LogscaleAlertArgs - 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 logscaleAlertResource = new Pulumi.LogscaleAlert("logscaleAlertResource", new()
{
Name = "string",
AlertType = "string",
RunAsUser = "string",
Repository = "string",
Disabled = false,
Query = "string",
ActionIds = new[]
{
"string",
},
Description = "string",
Slug = "string",
Tags = new[]
{
"string",
},
ThrottleDuration = "string",
ThrottleField = "string",
TimeWindow = "string",
});
example, err := chronosphere.NewLogscaleAlert(ctx, "logscaleAlertResource", &chronosphere.LogscaleAlertArgs{
Name: pulumi.String("string"),
AlertType: pulumi.String("string"),
RunAsUser: pulumi.String("string"),
Repository: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Query: pulumi.String("string"),
ActionIds: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Slug: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
ThrottleDuration: pulumi.String("string"),
ThrottleField: pulumi.String("string"),
TimeWindow: pulumi.String("string"),
})
var logscaleAlertResource = new LogscaleAlert("logscaleAlertResource", LogscaleAlertArgs.builder()
.name("string")
.alertType("string")
.runAsUser("string")
.repository("string")
.disabled(false)
.query("string")
.actionIds("string")
.description("string")
.slug("string")
.tags("string")
.throttleDuration("string")
.throttleField("string")
.timeWindow("string")
.build());
logscale_alert_resource = chronosphere.LogscaleAlert("logscaleAlertResource",
name="string",
alert_type="string",
run_as_user="string",
repository="string",
disabled=False,
query="string",
action_ids=["string"],
description="string",
slug="string",
tags=["string"],
throttle_duration="string",
throttle_field="string",
time_window="string")
const logscaleAlertResource = new chronosphere.LogscaleAlert("logscaleAlertResource", {
name: "string",
alertType: "string",
runAsUser: "string",
repository: "string",
disabled: false,
query: "string",
actionIds: ["string"],
description: "string",
slug: "string",
tags: ["string"],
throttleDuration: "string",
throttleField: "string",
timeWindow: "string",
});
type: chronosphere:LogscaleAlert
properties:
actionIds:
- string
alertType: string
description: string
disabled: false
name: string
query: string
repository: string
runAsUser: string
slug: string
tags:
- string
throttleDuration: string
throttleField: string
timeWindow: string
LogscaleAlert 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 LogscaleAlert resource accepts the following input properties:
- Alert
Type This property is required. string - Name
This property is required. string - Repository
This property is required. Changes to this property will trigger replacement.
- Run
As User This property is required. string - Email of the user that the alert runs on behalf of
- Action
Ids List<string> - Description string
- Disabled bool
- Query string
- Slug
Changes to this property will trigger replacement.
- List<string>
- Throttle
Duration string - Required for STANDARD type alerts, optional for FILTER type alerts
- Throttle
Field string - Time
Window string - Required for STANDARD type alerts, ignored for FILTER type alerts
- Alert
Type This property is required. string - Name
This property is required. string - Repository
This property is required. Changes to this property will trigger replacement.
- Run
As User This property is required. string - Email of the user that the alert runs on behalf of
- Action
Ids []string - Description string
- Disabled bool
- Query string
- Slug
Changes to this property will trigger replacement.
- []string
- Throttle
Duration string - Required for STANDARD type alerts, optional for FILTER type alerts
- Throttle
Field string - Time
Window string - Required for STANDARD type alerts, ignored for FILTER type alerts
- alert
Type This property is required. String - name
This property is required. String - repository
This property is required. Changes to this property will trigger replacement.
- run
As User This property is required. String - Email of the user that the alert runs on behalf of
- action
Ids List<String> - description String
- disabled Boolean
- query String
- slug
Changes to this property will trigger replacement.
- List<String>
- throttle
Duration String - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle
Field String - time
Window String - Required for STANDARD type alerts, ignored for FILTER type alerts
- alert
Type This property is required. string - name
This property is required. string - repository
This property is required. Changes to this property will trigger replacement.
- run
As User This property is required. string - Email of the user that the alert runs on behalf of
- action
Ids string[] - description string
- disabled boolean
- query string
- slug
Changes to this property will trigger replacement.
- string[]
- throttle
Duration string - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle
Field string - time
Window string - Required for STANDARD type alerts, ignored for FILTER type alerts
- alert_
type This property is required. str - name
This property is required. str - repository
This property is required. Changes to this property will trigger replacement.
- run_
as_ user This property is required. str - Email of the user that the alert runs on behalf of
- action_
ids Sequence[str] - description str
- disabled bool
- query str
- slug
Changes to this property will trigger replacement.
- Sequence[str]
- throttle_
duration str - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle_
field str - time_
window str - Required for STANDARD type alerts, ignored for FILTER type alerts
- alert
Type This property is required. String - name
This property is required. String - repository
This property is required. Changes to this property will trigger replacement.
- run
As User This property is required. String - Email of the user that the alert runs on behalf of
- action
Ids List<String> - description String
- disabled Boolean
- query String
- slug
Changes to this property will trigger replacement.
- List<String>
- throttle
Duration String - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle
Field String - time
Window String - Required for STANDARD type alerts, ignored for FILTER type alerts
Outputs
All input properties are implicitly available as output properties. Additionally, the LogscaleAlert 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 LogscaleAlert Resource
Get an existing LogscaleAlert 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?: LogscaleAlertState, opts?: CustomResourceOptions): LogscaleAlert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action_ids: Optional[Sequence[str]] = None,
alert_type: Optional[str] = None,
description: Optional[str] = None,
disabled: Optional[bool] = None,
name: Optional[str] = None,
query: Optional[str] = None,
repository: Optional[str] = None,
run_as_user: Optional[str] = None,
slug: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
throttle_duration: Optional[str] = None,
throttle_field: Optional[str] = None,
time_window: Optional[str] = None) -> LogscaleAlert
func GetLogscaleAlert(ctx *Context, name string, id IDInput, state *LogscaleAlertState, opts ...ResourceOption) (*LogscaleAlert, error)
public static LogscaleAlert Get(string name, Input<string> id, LogscaleAlertState? state, CustomResourceOptions? opts = null)
public static LogscaleAlert get(String name, Output<String> id, LogscaleAlertState state, CustomResourceOptions options)
resources: _: type: chronosphere:LogscaleAlert 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.
- Action
Ids List<string> - Alert
Type string - Description string
- Disabled bool
- Name string
- Query string
- Repository
Changes to this property will trigger replacement.
- Run
As stringUser - Email of the user that the alert runs on behalf of
- Slug
Changes to this property will trigger replacement.
- List<string>
- Throttle
Duration string - Required for STANDARD type alerts, optional for FILTER type alerts
- Throttle
Field string - Time
Window string - Required for STANDARD type alerts, ignored for FILTER type alerts
- Action
Ids []string - Alert
Type string - Description string
- Disabled bool
- Name string
- Query string
- Repository
Changes to this property will trigger replacement.
- Run
As stringUser - Email of the user that the alert runs on behalf of
- Slug
Changes to this property will trigger replacement.
- []string
- Throttle
Duration string - Required for STANDARD type alerts, optional for FILTER type alerts
- Throttle
Field string - Time
Window string - Required for STANDARD type alerts, ignored for FILTER type alerts
- action
Ids List<String> - alert
Type String - description String
- disabled Boolean
- name String
- query String
- repository
Changes to this property will trigger replacement.
- run
As StringUser - Email of the user that the alert runs on behalf of
- slug
Changes to this property will trigger replacement.
- List<String>
- throttle
Duration String - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle
Field String - time
Window String - Required for STANDARD type alerts, ignored for FILTER type alerts
- action
Ids string[] - alert
Type string - description string
- disabled boolean
- name string
- query string
- repository
Changes to this property will trigger replacement.
- run
As stringUser - Email of the user that the alert runs on behalf of
- slug
Changes to this property will trigger replacement.
- string[]
- throttle
Duration string - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle
Field string - time
Window string - Required for STANDARD type alerts, ignored for FILTER type alerts
- action_
ids Sequence[str] - alert_
type str - description str
- disabled bool
- name str
- query str
- repository
Changes to this property will trigger replacement.
- run_
as_ struser - Email of the user that the alert runs on behalf of
- slug
Changes to this property will trigger replacement.
- Sequence[str]
- throttle_
duration str - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle_
field str - time_
window str - Required for STANDARD type alerts, ignored for FILTER type alerts
- action
Ids List<String> - alert
Type String - description String
- disabled Boolean
- name String
- query String
- repository
Changes to this property will trigger replacement.
- run
As StringUser - Email of the user that the alert runs on behalf of
- slug
Changes to this property will trigger replacement.
- List<String>
- throttle
Duration String - Required for STANDARD type alerts, optional for FILTER type alerts
- throttle
Field String - time
Window String - Required for STANDARD type alerts, ignored for FILTER type alerts
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.