1. Packages
  2. Chronosphere
  3. API Docs
  4. LogscaleAction
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere

chronosphere.LogscaleAction

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere

    Create LogscaleAction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LogscaleAction(name: string, args: LogscaleActionArgs, opts?: CustomResourceOptions);
    @overload
    def LogscaleAction(resource_name: str,
                       args: LogscaleActionArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogscaleAction(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       name: Optional[str] = None,
                       repository: Optional[str] = None,
                       email_action: Optional[LogscaleActionEmailActionArgs] = None,
                       humio_action: Optional[LogscaleActionHumioActionArgs] = None,
                       ops_genie_action: Optional[LogscaleActionOpsGenieActionArgs] = None,
                       pager_duty_action: Optional[LogscaleActionPagerDutyActionArgs] = None,
                       slack_action: Optional[LogscaleActionSlackActionArgs] = None,
                       slack_post_message_action: Optional[LogscaleActionSlackPostMessageActionArgs] = None,
                       slug: Optional[str] = None,
                       upload_file_action: Optional[LogscaleActionUploadFileActionArgs] = None,
                       victor_ops_action: Optional[LogscaleActionVictorOpsActionArgs] = None,
                       webhook_action: Optional[LogscaleActionWebhookActionArgs] = None)
    func NewLogscaleAction(ctx *Context, name string, args LogscaleActionArgs, opts ...ResourceOption) (*LogscaleAction, error)
    public LogscaleAction(string name, LogscaleActionArgs args, CustomResourceOptions? opts = null)
    public LogscaleAction(String name, LogscaleActionArgs args)
    public LogscaleAction(String name, LogscaleActionArgs args, CustomResourceOptions options)
    
    type: chronosphere:LogscaleAction
    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 LogscaleActionArgs
    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 LogscaleActionArgs
    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 LogscaleActionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogscaleActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogscaleActionArgs
    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 logscaleActionResource = new Pulumi.LogscaleAction("logscaleActionResource", new()
    {
        Name = "string",
        Repository = "string",
        EmailAction = new Pulumi.Inputs.LogscaleActionEmailActionArgs
        {
            Recipients = new[]
            {
                "string",
            },
            AttachCsv = false,
            BodyTemplate = "string",
            SubjectTemplate = "string",
            UseProxy = false,
        },
        HumioAction = new Pulumi.Inputs.LogscaleActionHumioActionArgs
        {
            IngestToken = "string",
        },
        OpsGenieAction = new Pulumi.Inputs.LogscaleActionOpsGenieActionArgs
        {
            ApiUrl = "string",
            OpsGenieKey = "string",
            UseProxy = false,
        },
        PagerDutyAction = new Pulumi.Inputs.LogscaleActionPagerDutyActionArgs
        {
            RoutingKey = "string",
            Severity = "string",
            UseProxy = false,
        },
        SlackAction = new Pulumi.Inputs.LogscaleActionSlackActionArgs
        {
            Url = "string",
            Fields = 
            {
                { "string", "string" },
            },
            UseProxy = false,
        },
        SlackPostMessageAction = new Pulumi.Inputs.LogscaleActionSlackPostMessageActionArgs
        {
            ApiToken = "string",
            Channels = new[]
            {
                "string",
            },
            Fields = 
            {
                { "string", "string" },
            },
            UseProxy = false,
        },
        Slug = "string",
        UploadFileAction = new Pulumi.Inputs.LogscaleActionUploadFileActionArgs
        {
            FileName = "string",
        },
        VictorOpsAction = new Pulumi.Inputs.LogscaleActionVictorOpsActionArgs
        {
            MessageType = "string",
            NotifyUrl = "string",
            UseProxy = false,
        },
        WebhookAction = new Pulumi.Inputs.LogscaleActionWebhookActionArgs
        {
            Method = "string",
            Url = "string",
            BodyTemplate = "string",
            Headers = 
            {
                { "string", "string" },
            },
            IgnoreSsl = false,
            UseProxy = false,
        },
    });
    
    example, err := chronosphere.NewLogscaleAction(ctx, "logscaleActionResource", &chronosphere.LogscaleActionArgs{
    	Name:       pulumi.String("string"),
    	Repository: pulumi.String("string"),
    	EmailAction: &chronosphere.LogscaleActionEmailActionArgs{
    		Recipients: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AttachCsv:       pulumi.Bool(false),
    		BodyTemplate:    pulumi.String("string"),
    		SubjectTemplate: pulumi.String("string"),
    		UseProxy:        pulumi.Bool(false),
    	},
    	HumioAction: &chronosphere.LogscaleActionHumioActionArgs{
    		IngestToken: pulumi.String("string"),
    	},
    	OpsGenieAction: &chronosphere.LogscaleActionOpsGenieActionArgs{
    		ApiUrl:      pulumi.String("string"),
    		OpsGenieKey: pulumi.String("string"),
    		UseProxy:    pulumi.Bool(false),
    	},
    	PagerDutyAction: &chronosphere.LogscaleActionPagerDutyActionArgs{
    		RoutingKey: pulumi.String("string"),
    		Severity:   pulumi.String("string"),
    		UseProxy:   pulumi.Bool(false),
    	},
    	SlackAction: &chronosphere.LogscaleActionSlackActionArgs{
    		Url: pulumi.String("string"),
    		Fields: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		UseProxy: pulumi.Bool(false),
    	},
    	SlackPostMessageAction: &chronosphere.LogscaleActionSlackPostMessageActionArgs{
    		ApiToken: pulumi.String("string"),
    		Channels: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Fields: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		UseProxy: pulumi.Bool(false),
    	},
    	Slug: pulumi.String("string"),
    	UploadFileAction: &chronosphere.LogscaleActionUploadFileActionArgs{
    		FileName: pulumi.String("string"),
    	},
    	VictorOpsAction: &chronosphere.LogscaleActionVictorOpsActionArgs{
    		MessageType: pulumi.String("string"),
    		NotifyUrl:   pulumi.String("string"),
    		UseProxy:    pulumi.Bool(false),
    	},
    	WebhookAction: &chronosphere.LogscaleActionWebhookActionArgs{
    		Method:       pulumi.String("string"),
    		Url:          pulumi.String("string"),
    		BodyTemplate: pulumi.String("string"),
    		Headers: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		IgnoreSsl: pulumi.Bool(false),
    		UseProxy:  pulumi.Bool(false),
    	},
    })
    
    var logscaleActionResource = new LogscaleAction("logscaleActionResource", LogscaleActionArgs.builder()
        .name("string")
        .repository("string")
        .emailAction(LogscaleActionEmailActionArgs.builder()
            .recipients("string")
            .attachCsv(false)
            .bodyTemplate("string")
            .subjectTemplate("string")
            .useProxy(false)
            .build())
        .humioAction(LogscaleActionHumioActionArgs.builder()
            .ingestToken("string")
            .build())
        .opsGenieAction(LogscaleActionOpsGenieActionArgs.builder()
            .apiUrl("string")
            .opsGenieKey("string")
            .useProxy(false)
            .build())
        .pagerDutyAction(LogscaleActionPagerDutyActionArgs.builder()
            .routingKey("string")
            .severity("string")
            .useProxy(false)
            .build())
        .slackAction(LogscaleActionSlackActionArgs.builder()
            .url("string")
            .fields(Map.of("string", "string"))
            .useProxy(false)
            .build())
        .slackPostMessageAction(LogscaleActionSlackPostMessageActionArgs.builder()
            .apiToken("string")
            .channels("string")
            .fields(Map.of("string", "string"))
            .useProxy(false)
            .build())
        .slug("string")
        .uploadFileAction(LogscaleActionUploadFileActionArgs.builder()
            .fileName("string")
            .build())
        .victorOpsAction(LogscaleActionVictorOpsActionArgs.builder()
            .messageType("string")
            .notifyUrl("string")
            .useProxy(false)
            .build())
        .webhookAction(LogscaleActionWebhookActionArgs.builder()
            .method("string")
            .url("string")
            .bodyTemplate("string")
            .headers(Map.of("string", "string"))
            .ignoreSsl(false)
            .useProxy(false)
            .build())
        .build());
    
    logscale_action_resource = chronosphere.LogscaleAction("logscaleActionResource",
        name="string",
        repository="string",
        email_action=chronosphere.LogscaleActionEmailActionArgs(
            recipients=["string"],
            attach_csv=False,
            body_template="string",
            subject_template="string",
            use_proxy=False,
        ),
        humio_action=chronosphere.LogscaleActionHumioActionArgs(
            ingest_token="string",
        ),
        ops_genie_action=chronosphere.LogscaleActionOpsGenieActionArgs(
            api_url="string",
            ops_genie_key="string",
            use_proxy=False,
        ),
        pager_duty_action=chronosphere.LogscaleActionPagerDutyActionArgs(
            routing_key="string",
            severity="string",
            use_proxy=False,
        ),
        slack_action=chronosphere.LogscaleActionSlackActionArgs(
            url="string",
            fields={
                "string": "string",
            },
            use_proxy=False,
        ),
        slack_post_message_action=chronosphere.LogscaleActionSlackPostMessageActionArgs(
            api_token="string",
            channels=["string"],
            fields={
                "string": "string",
            },
            use_proxy=False,
        ),
        slug="string",
        upload_file_action=chronosphere.LogscaleActionUploadFileActionArgs(
            file_name="string",
        ),
        victor_ops_action=chronosphere.LogscaleActionVictorOpsActionArgs(
            message_type="string",
            notify_url="string",
            use_proxy=False,
        ),
        webhook_action=chronosphere.LogscaleActionWebhookActionArgs(
            method="string",
            url="string",
            body_template="string",
            headers={
                "string": "string",
            },
            ignore_ssl=False,
            use_proxy=False,
        ))
    
    const logscaleActionResource = new chronosphere.LogscaleAction("logscaleActionResource", {
        name: "string",
        repository: "string",
        emailAction: {
            recipients: ["string"],
            attachCsv: false,
            bodyTemplate: "string",
            subjectTemplate: "string",
            useProxy: false,
        },
        humioAction: {
            ingestToken: "string",
        },
        opsGenieAction: {
            apiUrl: "string",
            opsGenieKey: "string",
            useProxy: false,
        },
        pagerDutyAction: {
            routingKey: "string",
            severity: "string",
            useProxy: false,
        },
        slackAction: {
            url: "string",
            fields: {
                string: "string",
            },
            useProxy: false,
        },
        slackPostMessageAction: {
            apiToken: "string",
            channels: ["string"],
            fields: {
                string: "string",
            },
            useProxy: false,
        },
        slug: "string",
        uploadFileAction: {
            fileName: "string",
        },
        victorOpsAction: {
            messageType: "string",
            notifyUrl: "string",
            useProxy: false,
        },
        webhookAction: {
            method: "string",
            url: "string",
            bodyTemplate: "string",
            headers: {
                string: "string",
            },
            ignoreSsl: false,
            useProxy: false,
        },
    });
    
    type: chronosphere:LogscaleAction
    properties:
        emailAction:
            attachCsv: false
            bodyTemplate: string
            recipients:
                - string
            subjectTemplate: string
            useProxy: false
        humioAction:
            ingestToken: string
        name: string
        opsGenieAction:
            apiUrl: string
            opsGenieKey: string
            useProxy: false
        pagerDutyAction:
            routingKey: string
            severity: string
            useProxy: false
        repository: string
        slackAction:
            fields:
                string: string
            url: string
            useProxy: false
        slackPostMessageAction:
            apiToken: string
            channels:
                - string
            fields:
                string: string
            useProxy: false
        slug: string
        uploadFileAction:
            fileName: string
        victorOpsAction:
            messageType: string
            notifyUrl: string
            useProxy: false
        webhookAction:
            bodyTemplate: string
            headers:
                string: string
            ignoreSsl: false
            method: string
            url: string
            useProxy: false
    

    LogscaleAction 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 LogscaleAction resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LogscaleAction 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 LogscaleAction Resource

    Get an existing LogscaleAction 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?: LogscaleActionState, opts?: CustomResourceOptions): LogscaleAction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            email_action: Optional[LogscaleActionEmailActionArgs] = None,
            humio_action: Optional[LogscaleActionHumioActionArgs] = None,
            name: Optional[str] = None,
            ops_genie_action: Optional[LogscaleActionOpsGenieActionArgs] = None,
            pager_duty_action: Optional[LogscaleActionPagerDutyActionArgs] = None,
            repository: Optional[str] = None,
            slack_action: Optional[LogscaleActionSlackActionArgs] = None,
            slack_post_message_action: Optional[LogscaleActionSlackPostMessageActionArgs] = None,
            slug: Optional[str] = None,
            upload_file_action: Optional[LogscaleActionUploadFileActionArgs] = None,
            victor_ops_action: Optional[LogscaleActionVictorOpsActionArgs] = None,
            webhook_action: Optional[LogscaleActionWebhookActionArgs] = None) -> LogscaleAction
    func GetLogscaleAction(ctx *Context, name string, id IDInput, state *LogscaleActionState, opts ...ResourceOption) (*LogscaleAction, error)
    public static LogscaleAction Get(string name, Input<string> id, LogscaleActionState? state, CustomResourceOptions? opts = null)
    public static LogscaleAction get(String name, Output<String> id, LogscaleActionState 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:

    Supporting Types

    LogscaleActionEmailAction, LogscaleActionEmailActionArgs

    Recipients List<string>
    AttachCsv bool
    BodyTemplate string
    SubjectTemplate string
    UseProxy bool
    recipients List<String>
    attachCsv Boolean
    bodyTemplate String
    subjectTemplate String
    useProxy Boolean
    recipients string[]
    attachCsv boolean
    bodyTemplate string
    subjectTemplate string
    useProxy boolean
    recipients List<String>
    attachCsv Boolean
    bodyTemplate String
    subjectTemplate String
    useProxy Boolean

    LogscaleActionHumioAction, LogscaleActionHumioActionArgs

    LogscaleActionOpsGenieAction, LogscaleActionOpsGenieActionArgs

    ApiUrl string
    OpsGenieKey string
    UseProxy bool
    ApiUrl string
    OpsGenieKey string
    UseProxy bool
    apiUrl String
    opsGenieKey String
    useProxy Boolean
    apiUrl string
    opsGenieKey string
    useProxy boolean
    apiUrl String
    opsGenieKey String
    useProxy Boolean

    LogscaleActionPagerDutyAction, LogscaleActionPagerDutyActionArgs

    RoutingKey string
    Severity string
    UseProxy bool
    RoutingKey string
    Severity string
    UseProxy bool
    routingKey String
    severity String
    useProxy Boolean
    routingKey string
    severity string
    useProxy boolean
    routingKey String
    severity String
    useProxy Boolean

    LogscaleActionSlackAction, LogscaleActionSlackActionArgs

    Url string
    Fields Dictionary<string, string>
    UseProxy bool
    Url string
    Fields map[string]string
    UseProxy bool
    url String
    fields Map<String,String>
    useProxy Boolean
    url string
    fields {[key: string]: string}
    useProxy boolean
    url str
    fields Mapping[str, str]
    use_proxy bool
    url String
    fields Map<String>
    useProxy Boolean

    LogscaleActionSlackPostMessageAction, LogscaleActionSlackPostMessageActionArgs

    ApiToken string
    Channels List<string>
    Fields Dictionary<string, string>
    UseProxy bool
    ApiToken string
    Channels []string
    Fields map[string]string
    UseProxy bool
    apiToken String
    channels List<String>
    fields Map<String,String>
    useProxy Boolean
    apiToken string
    channels string[]
    fields {[key: string]: string}
    useProxy boolean
    api_token str
    channels Sequence[str]
    fields Mapping[str, str]
    use_proxy bool
    apiToken String
    channels List<String>
    fields Map<String>
    useProxy Boolean

    LogscaleActionUploadFileAction, LogscaleActionUploadFileActionArgs

    FileName string
    FileName string
    fileName String
    fileName string
    fileName String

    LogscaleActionVictorOpsAction, LogscaleActionVictorOpsActionArgs

    MessageType string
    NotifyUrl string
    UseProxy bool
    MessageType string
    NotifyUrl string
    UseProxy bool
    messageType String
    notifyUrl String
    useProxy Boolean
    messageType string
    notifyUrl string
    useProxy boolean
    messageType String
    notifyUrl String
    useProxy Boolean

    LogscaleActionWebhookAction, LogscaleActionWebhookActionArgs

    Method string
    Url string
    BodyTemplate string
    Headers Dictionary<string, string>
    IgnoreSsl bool
    UseProxy bool
    Method string
    Url string
    BodyTemplate string
    Headers map[string]string
    IgnoreSsl bool
    UseProxy bool
    method String
    url String
    bodyTemplate String
    headers Map<String,String>
    ignoreSsl Boolean
    useProxy Boolean
    method string
    url string
    bodyTemplate string
    headers {[key: string]: string}
    ignoreSsl boolean
    useProxy boolean
    method str
    url str
    body_template str
    headers Mapping[str, str]
    ignore_ssl bool
    use_proxy bool
    method String
    url String
    bodyTemplate String
    headers Map<String>
    ignoreSsl Boolean
    useProxy Boolean

    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.2 published on Monday, Sep 9, 2024 by Chronosphere