1. Packages
  2. Dynatrace
  3. API Docs
  4. SlackNotification
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.SlackNotification

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    Create SlackNotification Resource

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

    Constructor syntax

    new SlackNotification(name: string, args: SlackNotificationArgs, opts?: CustomResourceOptions);
    @overload
    def SlackNotification(resource_name: str,
                          args: SlackNotificationArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SlackNotification(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          active: Optional[bool] = None,
                          channel: Optional[str] = None,
                          message: Optional[str] = None,
                          profile: Optional[str] = None,
                          url: Optional[str] = None,
                          legacy_id: Optional[str] = None,
                          name: Optional[str] = None)
    func NewSlackNotification(ctx *Context, name string, args SlackNotificationArgs, opts ...ResourceOption) (*SlackNotification, error)
    public SlackNotification(string name, SlackNotificationArgs args, CustomResourceOptions? opts = null)
    public SlackNotification(String name, SlackNotificationArgs args)
    public SlackNotification(String name, SlackNotificationArgs args, CustomResourceOptions options)
    
    type: dynatrace:SlackNotification
    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 SlackNotificationArgs
    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 SlackNotificationArgs
    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 SlackNotificationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlackNotificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlackNotificationArgs
    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 slackNotificationResource = new Dynatrace.SlackNotification("slackNotificationResource", new()
    {
        Active = false,
        Channel = "string",
        Message = "string",
        Profile = "string",
        Url = "string",
        LegacyId = "string",
        Name = "string",
    });
    
    example, err := dynatrace.NewSlackNotification(ctx, "slackNotificationResource", &dynatrace.SlackNotificationArgs{
    	Active:   pulumi.Bool(false),
    	Channel:  pulumi.String("string"),
    	Message:  pulumi.String("string"),
    	Profile:  pulumi.String("string"),
    	Url:      pulumi.String("string"),
    	LegacyId: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    })
    
    var slackNotificationResource = new SlackNotification("slackNotificationResource", SlackNotificationArgs.builder()
        .active(false)
        .channel("string")
        .message("string")
        .profile("string")
        .url("string")
        .legacyId("string")
        .name("string")
        .build());
    
    slack_notification_resource = dynatrace.SlackNotification("slackNotificationResource",
        active=False,
        channel="string",
        message="string",
        profile="string",
        url="string",
        legacy_id="string",
        name="string")
    
    const slackNotificationResource = new dynatrace.SlackNotification("slackNotificationResource", {
        active: false,
        channel: "string",
        message: "string",
        profile: "string",
        url: "string",
        legacyId: "string",
        name: "string",
    });
    
    type: dynatrace:SlackNotification
    properties:
        active: false
        channel: string
        legacyId: string
        message: string
        name: string
        profile: string
        url: string
    

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

    Active bool
    The configuration is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    Message string
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    Profile string
    The ID of the associated alerting profile
    Url string
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Name string
    The name of the notification configuration
    Active bool
    The configuration is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    Message string
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    Profile string
    The ID of the associated alerting profile
    Url string
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Name string
    The name of the notification configuration
    active Boolean
    The configuration is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    message String
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    profile String
    The ID of the associated alerting profile
    url String
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name String
    The name of the notification configuration
    active boolean
    The configuration is enabled (true) or disabled (false)
    channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    message string
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    profile string
    The ID of the associated alerting profile
    url string
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    legacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name string
    The name of the notification configuration
    active bool
    The configuration is enabled (true) or disabled (false)
    channel str
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    message str
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    profile str
    The ID of the associated alerting profile
    url str
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    legacy_id str
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name str
    The name of the notification configuration
    active Boolean
    The configuration is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    message String
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    profile String
    The ID of the associated alerting profile
    url String
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    name String
    The name of the notification configuration

    Outputs

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

    Get an existing SlackNotification 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?: SlackNotificationState, opts?: CustomResourceOptions): SlackNotification
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            channel: Optional[str] = None,
            legacy_id: Optional[str] = None,
            message: Optional[str] = None,
            name: Optional[str] = None,
            profile: Optional[str] = None,
            url: Optional[str] = None) -> SlackNotification
    func GetSlackNotification(ctx *Context, name string, id IDInput, state *SlackNotificationState, opts ...ResourceOption) (*SlackNotification, error)
    public static SlackNotification Get(string name, Input<string> id, SlackNotificationState? state, CustomResourceOptions? opts = null)
    public static SlackNotification get(String name, Output<String> id, SlackNotificationState 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:
    Active bool
    The configuration is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Message string
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    Name string
    The name of the notification configuration
    Profile string
    The ID of the associated alerting profile
    Url string
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    Active bool
    The configuration is enabled (true) or disabled (false)
    Channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    LegacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    Message string
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    Name string
    The name of the notification configuration
    Profile string
    The ID of the associated alerting profile
    Url string
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    active Boolean
    The configuration is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message String
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    name String
    The name of the notification configuration
    profile String
    The ID of the associated alerting profile
    url String
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    active boolean
    The configuration is enabled (true) or disabled (false)
    channel string
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    legacyId string
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message string
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    name string
    The name of the notification configuration
    profile string
    The ID of the associated alerting profile
    url string
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    active bool
    The configuration is enabled (true) or disabled (false)
    channel str
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    legacy_id str
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message str
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    name str
    The name of the notification configuration
    profile str
    The ID of the associated alerting profile
    url str
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests
    active Boolean
    The configuration is enabled (true) or disabled (false)
    channel String
    The channel (for example, #general) or the user (for example, @john.smith) to send the message to
    legacyId String
    The ID of these settings when referred to from resources requiring the REST API V1 keys
    message String
    The content of the message. You can use the following placeholders: * {ImpactedEntity}: The entity impacted by the problem or X impacted entities. * {PID}: The ID of the reported problem. * {ProblemDetailsText}: All problem event details, including root cause, as a text-formatted string. * {ProblemID}: The display number of the reported problem. * {ProblemImpact}: The impact level of the problem. Possible values are APPLICATION, SERVICE, and INFRASTRUCTURE. * {ProblemSeverity}: The severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE_CONTENTION, and CUSTOM_ALERT. * {ProblemTitle}: A short description of the problem. * {ProblemURL}: The URL of the problem within Dynatrace. * {State}: The state of the problem. Possible values are OPEN and RESOLVED. * {Tags}: The list of tags that are defined for all impacted entities, separated by commas
    name String
    The name of the notification configuration
    profile String
    The ID of the associated alerting profile
    url String
    The URL of the Slack WebHook. This is confidential information, therefore GET requests return this field with the null value, and it is optional for PUT requests

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse