chronosphere.LogscaleAction
Explore with Pulumi AI
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={
"recipients": ["string"],
"attach_csv": False,
"body_template": "string",
"subject_template": "string",
"use_proxy": False,
},
humio_action={
"ingest_token": "string",
},
ops_genie_action={
"api_url": "string",
"ops_genie_key": "string",
"use_proxy": False,
},
pager_duty_action={
"routing_key": "string",
"severity": "string",
"use_proxy": False,
},
slack_action={
"url": "string",
"fields": {
"string": "string",
},
"use_proxy": False,
},
slack_post_message_action={
"api_token": "string",
"channels": ["string"],
"fields": {
"string": "string",
},
"use_proxy": False,
},
slug="string",
upload_file_action={
"file_name": "string",
},
victor_ops_action={
"message_type": "string",
"notify_url": "string",
"use_proxy": False,
},
webhook_action={
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LogscaleAction resource accepts the following input properties:
- Name string
- Repository string
- Email
Action Chronosphere.Pulumi. Inputs. Logscale Action Email Action - Humio
Action Chronosphere.Pulumi. Inputs. Logscale Action Humio Action - Ops
Genie Chronosphere.Action Pulumi. Inputs. Logscale Action Ops Genie Action - Pager
Duty Chronosphere.Action Pulumi. Inputs. Logscale Action Pager Duty Action - Slack
Action Chronosphere.Pulumi. Inputs. Logscale Action Slack Action - Slack
Post Chronosphere.Message Action Pulumi. Inputs. Logscale Action Slack Post Message Action - Slug string
- Upload
File Chronosphere.Action Pulumi. Inputs. Logscale Action Upload File Action - Victor
Ops Chronosphere.Action Pulumi. Inputs. Logscale Action Victor Ops Action - Webhook
Action Chronosphere.Pulumi. Inputs. Logscale Action Webhook Action
- Name string
- Repository string
- Email
Action LogscaleAction Email Action Args - Humio
Action LogscaleAction Humio Action Args - Ops
Genie LogscaleAction Action Ops Genie Action Args - Pager
Duty LogscaleAction Action Pager Duty Action Args - Slack
Action LogscaleAction Slack Action Args - Slack
Post LogscaleMessage Action Action Slack Post Message Action Args - Slug string
- Upload
File LogscaleAction Action Upload File Action Args - Victor
Ops LogscaleAction Action Victor Ops Action Args - Webhook
Action LogscaleAction Webhook Action Args
- name String
- repository String
- email
Action LogscaleAction Email Action - humio
Action LogscaleAction Humio Action - ops
Genie LogscaleAction Action Ops Genie Action - pager
Duty LogscaleAction Action Pager Duty Action - slack
Action LogscaleAction Slack Action - slack
Post LogscaleMessage Action Action Slack Post Message Action - slug String
- upload
File LogscaleAction Action Upload File Action - victor
Ops LogscaleAction Action Victor Ops Action - webhook
Action LogscaleAction Webhook Action
- name string
- repository string
- email
Action LogscaleAction Email Action - humio
Action LogscaleAction Humio Action - ops
Genie LogscaleAction Action Ops Genie Action - pager
Duty LogscaleAction Action Pager Duty Action - slack
Action LogscaleAction Slack Action - slack
Post LogscaleMessage Action Action Slack Post Message Action - slug string
- upload
File LogscaleAction Action Upload File Action - victor
Ops LogscaleAction Action Victor Ops Action - webhook
Action LogscaleAction Webhook Action
- name str
- repository str
- email_
action LogscaleAction Email Action Args - humio_
action LogscaleAction Humio Action Args - ops_
genie_ Logscaleaction Action Ops Genie Action Args - pager_
duty_ Logscaleaction Action Pager Duty Action Args - slack_
action LogscaleAction Slack Action Args - slack_
post_ Logscalemessage_ action Action Slack Post Message Action Args - slug str
- upload_
file_ Logscaleaction Action Upload File Action Args - victor_
ops_ Logscaleaction Action Victor Ops Action Args - webhook_
action LogscaleAction Webhook Action Args
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.
- Email
Action Chronosphere.Pulumi. Inputs. Logscale Action Email Action - Humio
Action Chronosphere.Pulumi. Inputs. Logscale Action Humio Action - Name string
- Ops
Genie Chronosphere.Action Pulumi. Inputs. Logscale Action Ops Genie Action - Pager
Duty Chronosphere.Action Pulumi. Inputs. Logscale Action Pager Duty Action - Repository string
- Slack
Action Chronosphere.Pulumi. Inputs. Logscale Action Slack Action - Slack
Post Chronosphere.Message Action Pulumi. Inputs. Logscale Action Slack Post Message Action - Slug string
- Upload
File Chronosphere.Action Pulumi. Inputs. Logscale Action Upload File Action - Victor
Ops Chronosphere.Action Pulumi. Inputs. Logscale Action Victor Ops Action - Webhook
Action Chronosphere.Pulumi. Inputs. Logscale Action Webhook Action
- Email
Action LogscaleAction Email Action Args - Humio
Action LogscaleAction Humio Action Args - Name string
- Ops
Genie LogscaleAction Action Ops Genie Action Args - Pager
Duty LogscaleAction Action Pager Duty Action Args - Repository string
- Slack
Action LogscaleAction Slack Action Args - Slack
Post LogscaleMessage Action Action Slack Post Message Action Args - Slug string
- Upload
File LogscaleAction Action Upload File Action Args - Victor
Ops LogscaleAction Action Victor Ops Action Args - Webhook
Action LogscaleAction Webhook Action Args
- email
Action LogscaleAction Email Action - humio
Action LogscaleAction Humio Action - name String
- ops
Genie LogscaleAction Action Ops Genie Action - pager
Duty LogscaleAction Action Pager Duty Action - repository String
- slack
Action LogscaleAction Slack Action - slack
Post LogscaleMessage Action Action Slack Post Message Action - slug String
- upload
File LogscaleAction Action Upload File Action - victor
Ops LogscaleAction Action Victor Ops Action - webhook
Action LogscaleAction Webhook Action
- email
Action LogscaleAction Email Action - humio
Action LogscaleAction Humio Action - name string
- ops
Genie LogscaleAction Action Ops Genie Action - pager
Duty LogscaleAction Action Pager Duty Action - repository string
- slack
Action LogscaleAction Slack Action - slack
Post LogscaleMessage Action Action Slack Post Message Action - slug string
- upload
File LogscaleAction Action Upload File Action - victor
Ops LogscaleAction Action Victor Ops Action - webhook
Action LogscaleAction Webhook Action
- email_
action LogscaleAction Email Action Args - humio_
action LogscaleAction Humio Action Args - name str
- ops_
genie_ Logscaleaction Action Ops Genie Action Args - pager_
duty_ Logscaleaction Action Pager Duty Action Args - repository str
- slack_
action LogscaleAction Slack Action Args - slack_
post_ Logscalemessage_ action Action Slack Post Message Action Args - slug str
- upload_
file_ Logscaleaction Action Upload File Action Args - victor_
ops_ Logscaleaction Action Victor Ops Action Args - webhook_
action LogscaleAction Webhook Action Args
Supporting Types
LogscaleActionEmailAction, LogscaleActionEmailActionArgs
- Recipients List<string>
- Attach
Csv bool - Body
Template string - Subject
Template string - Use
Proxy bool
- Recipients []string
- Attach
Csv bool - Body
Template string - Subject
Template string - Use
Proxy bool
- recipients List<String>
- attach
Csv Boolean - body
Template String - subject
Template String - use
Proxy Boolean
- recipients string[]
- attach
Csv boolean - body
Template string - subject
Template string - use
Proxy boolean
- recipients Sequence[str]
- attach_
csv bool - body_
template str - subject_
template str - use_
proxy bool
- recipients List<String>
- attach
Csv Boolean - body
Template String - subject
Template String - use
Proxy Boolean
LogscaleActionHumioAction, LogscaleActionHumioActionArgs
- Ingest
Token string
- Ingest
Token string
- ingest
Token String
- ingest
Token string
- ingest_
token str
- ingest
Token String
LogscaleActionOpsGenieAction, LogscaleActionOpsGenieActionArgs
- Api
Url string - Ops
Genie stringKey - Use
Proxy bool
- Api
Url string - Ops
Genie stringKey - Use
Proxy bool
- api
Url String - ops
Genie StringKey - use
Proxy Boolean
- api
Url string - ops
Genie stringKey - use
Proxy boolean
- api_
url str - ops_
genie_ strkey - use_
proxy bool
- api
Url String - ops
Genie StringKey - use
Proxy Boolean
LogscaleActionPagerDutyAction, LogscaleActionPagerDutyActionArgs
- Routing
Key string - Severity string
- Use
Proxy bool
- Routing
Key string - Severity string
- Use
Proxy bool
- routing
Key String - severity String
- use
Proxy Boolean
- routing
Key string - severity string
- use
Proxy boolean
- routing_
key str - severity str
- use_
proxy bool
- routing
Key String - severity String
- use
Proxy Boolean
LogscaleActionSlackAction, LogscaleActionSlackActionArgs
LogscaleActionSlackPostMessageAction, LogscaleActionSlackPostMessageActionArgs
LogscaleActionUploadFileAction, LogscaleActionUploadFileActionArgs
- File
Name string
- File
Name string
- file
Name String
- file
Name string
- file_
name str
- file
Name String
LogscaleActionVictorOpsAction, LogscaleActionVictorOpsActionArgs
- Message
Type string - Notify
Url string - Use
Proxy bool
- Message
Type string - Notify
Url string - Use
Proxy bool
- message
Type String - notify
Url String - use
Proxy Boolean
- message
Type string - notify
Url string - use
Proxy boolean
- message_
type str - notify_
url str - use_
proxy bool
- message
Type String - notify
Url String - use
Proxy Boolean
LogscaleActionWebhookAction, LogscaleActionWebhookActionArgs
- method str
- url str
- body_
template str - headers Mapping[str, str]
- ignore_
ssl bool - use_
proxy bool
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.