Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere
chronosphere.LogscaleAlert
Explore with Pulumi AI
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere
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 string
- The unique name of the resource.
- args LogscaleAlertArgs
- 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 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 string
- The unique name of the resource.
- args LogscaleAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogscaleAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
The LogscaleAlert resource accepts the following input properties:
- Alert
Type string - Name string
- Repository string
- Run
As stringUser - Email of the user that the alert runs on behalf of
- Action
Ids List<string> - Description string
- Disabled bool
- Query string
- Slug string
- 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 string - Name string
- Repository string
- Run
As stringUser - Email of the user that the alert runs on behalf of
- Action
Ids []string - Description string
- Disabled bool
- Query string
- Slug string
- []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 String - name String
- repository String
- run
As StringUser - Email of the user that the alert runs on behalf of
- action
Ids List<String> - description String
- disabled Boolean
- query String
- slug String
- 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 string - name string
- repository string
- run
As stringUser - Email of the user that the alert runs on behalf of
- action
Ids string[] - description string
- disabled boolean
- query string
- slug string
- 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 str - name str
- repository str
- run_
as_ struser - Email of the user that the alert runs on behalf of
- action_
ids Sequence[str] - description str
- disabled bool
- query str
- slug str
- 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 String - name String
- repository String
- run
As StringUser - Email of the user that the alert runs on behalf of
- action
Ids List<String> - description String
- disabled Boolean
- query String
- slug String
- 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)
Resource lookup is not supported in YAML
- 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.
- Action
Ids List<string> - Alert
Type string - Description string
- Disabled bool
- Name string
- Query string
- Repository string
- Run
As stringUser - Email of the user that the alert runs on behalf of
- Slug string
- 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 string
- Run
As stringUser - Email of the user that the alert runs on behalf of
- Slug string
- []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 String
- run
As StringUser - Email of the user that the alert runs on behalf of
- slug String
- 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 string
- run
As stringUser - Email of the user that the alert runs on behalf of
- slug string
- 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 str
- run_
as_ struser - Email of the user that the alert runs on behalf of
- slug str
- 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 String
- run
As StringUser - Email of the user that the alert runs on behalf of
- slug String
- 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.
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere