1. Packages
  2. Chronosphere
  3. API Docs
  4. LogscaleAlert
Chronosphere v0.9.8 published on Thursday, Apr 3, 2025 by Chronosphere

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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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:

AlertType This property is required. string
Name This property is required. string
Repository
This property is required.
Changes to this property will trigger replacement.
string
RunAsUser This property is required. string
Email of the user that the alert runs on behalf of
ActionIds List<string>
Description string
Disabled bool
Query string
Slug Changes to this property will trigger replacement. string
Tags List<string>
ThrottleDuration string
Required for STANDARD type alerts, optional for FILTER type alerts
ThrottleField string
TimeWindow string
Required for STANDARD type alerts, ignored for FILTER type alerts
AlertType This property is required. string
Name This property is required. string
Repository
This property is required.
Changes to this property will trigger replacement.
string
RunAsUser This property is required. string
Email of the user that the alert runs on behalf of
ActionIds []string
Description string
Disabled bool
Query string
Slug Changes to this property will trigger replacement. string
Tags []string
ThrottleDuration string
Required for STANDARD type alerts, optional for FILTER type alerts
ThrottleField string
TimeWindow string
Required for STANDARD type alerts, ignored for FILTER type alerts
alertType This property is required. String
name This property is required. String
repository
This property is required.
Changes to this property will trigger replacement.
String
runAsUser This property is required. String
Email of the user that the alert runs on behalf of
actionIds List<String>
description String
disabled Boolean
query String
slug Changes to this property will trigger replacement. String
tags List<String>
throttleDuration String
Required for STANDARD type alerts, optional for FILTER type alerts
throttleField String
timeWindow String
Required for STANDARD type alerts, ignored for FILTER type alerts
alertType This property is required. string
name This property is required. string
repository
This property is required.
Changes to this property will trigger replacement.
string
runAsUser This property is required. string
Email of the user that the alert runs on behalf of
actionIds string[]
description string
disabled boolean
query string
slug Changes to this property will trigger replacement. string
tags string[]
throttleDuration string
Required for STANDARD type alerts, optional for FILTER type alerts
throttleField string
timeWindow 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.
str
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. str
tags 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
alertType This property is required. String
name This property is required. String
repository
This property is required.
Changes to this property will trigger replacement.
String
runAsUser This property is required. String
Email of the user that the alert runs on behalf of
actionIds List<String>
description String
disabled Boolean
query String
slug Changes to this property will trigger replacement. String
tags List<String>
throttleDuration String
Required for STANDARD type alerts, optional for FILTER type alerts
throttleField String
timeWindow 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.
The following state arguments are supported:
ActionIds List<string>
AlertType string
Description string
Disabled bool
Name string
Query string
Repository Changes to this property will trigger replacement. string
RunAsUser string
Email of the user that the alert runs on behalf of
Slug Changes to this property will trigger replacement. string
Tags List<string>
ThrottleDuration string
Required for STANDARD type alerts, optional for FILTER type alerts
ThrottleField string
TimeWindow string
Required for STANDARD type alerts, ignored for FILTER type alerts
ActionIds []string
AlertType string
Description string
Disabled bool
Name string
Query string
Repository Changes to this property will trigger replacement. string
RunAsUser string
Email of the user that the alert runs on behalf of
Slug Changes to this property will trigger replacement. string
Tags []string
ThrottleDuration string
Required for STANDARD type alerts, optional for FILTER type alerts
ThrottleField string
TimeWindow string
Required for STANDARD type alerts, ignored for FILTER type alerts
actionIds List<String>
alertType String
description String
disabled Boolean
name String
query String
repository Changes to this property will trigger replacement. String
runAsUser String
Email of the user that the alert runs on behalf of
slug Changes to this property will trigger replacement. String
tags List<String>
throttleDuration String
Required for STANDARD type alerts, optional for FILTER type alerts
throttleField String
timeWindow String
Required for STANDARD type alerts, ignored for FILTER type alerts
actionIds string[]
alertType string
description string
disabled boolean
name string
query string
repository Changes to this property will trigger replacement. string
runAsUser string
Email of the user that the alert runs on behalf of
slug Changes to this property will trigger replacement. string
tags string[]
throttleDuration string
Required for STANDARD type alerts, optional for FILTER type alerts
throttleField string
timeWindow 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. str
run_as_user str
Email of the user that the alert runs on behalf of
slug Changes to this property will trigger replacement. str
tags 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
actionIds List<String>
alertType String
description String
disabled Boolean
name String
query String
repository Changes to this property will trigger replacement. String
runAsUser String
Email of the user that the alert runs on behalf of
slug Changes to this property will trigger replacement. String
tags List<String>
throttleDuration String
Required for STANDARD type alerts, optional for FILTER type alerts
throttleField String
timeWindow 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.