1. Packages
  2. Chronosphere
  3. API Docs
  4. LogscaleAlert
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

chronosphere.LogscaleAlert

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 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

    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 string
    Name string
    Repository string
    RunAsUser string
    Email of the user that the alert runs on behalf of
    ActionIds List<string>
    Description string
    Disabled bool
    Query string
    Slug 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 string
    Name string
    Repository string
    RunAsUser string
    Email of the user that the alert runs on behalf of
    ActionIds []string
    Description string
    Disabled bool
    Query string
    Slug 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 String
    name String
    repository String
    runAsUser String
    Email of the user that the alert runs on behalf of
    actionIds List<String>
    description String
    disabled Boolean
    query String
    slug 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 string
    name string
    repository string
    runAsUser string
    Email of the user that the alert runs on behalf of
    actionIds string[]
    description string
    disabled boolean
    query string
    slug 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 str
    name str
    repository str
    run_as_user str
    Email of the user that the alert runs on behalf of
    action_ids Sequence[str]
    description str
    disabled bool
    query str
    slug 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 String
    name String
    repository String
    runAsUser String
    Email of the user that the alert runs on behalf of
    actionIds List<String>
    description String
    disabled Boolean
    query String
    slug 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)
    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.
    The following state arguments are supported:
    ActionIds List<string>
    AlertType string
    Description string
    Disabled bool
    Name string
    Query string
    Repository string
    RunAsUser string
    Email of the user that the alert runs on behalf of
    Slug 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 string
    RunAsUser string
    Email of the user that the alert runs on behalf of
    Slug 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 String
    runAsUser String
    Email of the user that the alert runs on behalf of
    slug 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 string
    runAsUser string
    Email of the user that the alert runs on behalf of
    slug 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 str
    run_as_user str
    Email of the user that the alert runs on behalf of
    slug 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 String
    runAsUser String
    Email of the user that the alert runs on behalf of
    slug 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.
    chronosphere logo
    Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere