1. Packages
  2. Dynatrace
  3. API Docs
  4. LogEvents
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.LogEvents

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    Create LogEvents Resource

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

    Constructor syntax

    new LogEvents(name: string, args: LogEventsArgs, opts?: CustomResourceOptions);
    @overload
    def LogEvents(resource_name: str,
                  args: LogEventsArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogEvents(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  enabled: Optional[bool] = None,
                  event_template: Optional[LogEventsEventTemplateArgs] = None,
                  query: Optional[str] = None,
                  summary: Optional[str] = None)
    func NewLogEvents(ctx *Context, name string, args LogEventsArgs, opts ...ResourceOption) (*LogEvents, error)
    public LogEvents(string name, LogEventsArgs args, CustomResourceOptions? opts = null)
    public LogEvents(String name, LogEventsArgs args)
    public LogEvents(String name, LogEventsArgs args, CustomResourceOptions options)
    
    type: dynatrace:LogEvents
    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 LogEventsArgs
    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 LogEventsArgs
    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 LogEventsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogEventsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogEventsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var logEventsResource = new Dynatrace.LogEvents("logEventsResource", new()
    {
        Enabled = false,
        EventTemplate = new Dynatrace.Inputs.LogEventsEventTemplateArgs
        {
            Description = "string",
            EventType = "string",
            Title = "string",
            DavisMerge = false,
            Metadata = new Dynatrace.Inputs.LogEventsEventTemplateMetadataArgs
            {
                Items = new[]
                {
                    new Dynatrace.Inputs.LogEventsEventTemplateMetadataItemArgs
                    {
                        MetadataKey = "string",
                        MetadataValue = "string",
                    },
                },
            },
        },
        Query = "string",
        Summary = "string",
    });
    
    example, err := dynatrace.NewLogEvents(ctx, "logEventsResource", &dynatrace.LogEventsArgs{
    	Enabled: pulumi.Bool(false),
    	EventTemplate: &dynatrace.LogEventsEventTemplateArgs{
    		Description: pulumi.String("string"),
    		EventType:   pulumi.String("string"),
    		Title:       pulumi.String("string"),
    		DavisMerge:  pulumi.Bool(false),
    		Metadata: &dynatrace.LogEventsEventTemplateMetadataArgs{
    			Items: dynatrace.LogEventsEventTemplateMetadataItemArray{
    				&dynatrace.LogEventsEventTemplateMetadataItemArgs{
    					MetadataKey:   pulumi.String("string"),
    					MetadataValue: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Query:   pulumi.String("string"),
    	Summary: pulumi.String("string"),
    })
    
    var logEventsResource = new LogEvents("logEventsResource", LogEventsArgs.builder()        
        .enabled(false)
        .eventTemplate(LogEventsEventTemplateArgs.builder()
            .description("string")
            .eventType("string")
            .title("string")
            .davisMerge(false)
            .metadata(LogEventsEventTemplateMetadataArgs.builder()
                .items(LogEventsEventTemplateMetadataItemArgs.builder()
                    .metadataKey("string")
                    .metadataValue("string")
                    .build())
                .build())
            .build())
        .query("string")
        .summary("string")
        .build());
    
    log_events_resource = dynatrace.LogEvents("logEventsResource",
        enabled=False,
        event_template=dynatrace.LogEventsEventTemplateArgs(
            description="string",
            event_type="string",
            title="string",
            davis_merge=False,
            metadata=dynatrace.LogEventsEventTemplateMetadataArgs(
                items=[dynatrace.LogEventsEventTemplateMetadataItemArgs(
                    metadata_key="string",
                    metadata_value="string",
                )],
            ),
        ),
        query="string",
        summary="string")
    
    const logEventsResource = new dynatrace.LogEvents("logEventsResource", {
        enabled: false,
        eventTemplate: {
            description: "string",
            eventType: "string",
            title: "string",
            davisMerge: false,
            metadata: {
                items: [{
                    metadataKey: "string",
                    metadataValue: "string",
                }],
            },
        },
        query: "string",
        summary: "string",
    });
    
    type: dynatrace:LogEvents
    properties:
        enabled: false
        eventTemplate:
            davisMerge: false
            description: string
            eventType: string
            metadata:
                items:
                    - metadataKey: string
                      metadataValue: string
            title: string
        query: string
        summary: string
    

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

    Enabled bool
    This setting is enabled (true) or disabled (false)
    EventTemplate Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogEventsEventTemplate
    Event template
    Query string
    Log query
    Summary string
    The textual summary of the log event entry
    Enabled bool
    This setting is enabled (true) or disabled (false)
    EventTemplate LogEventsEventTemplateArgs
    Event template
    Query string
    Log query
    Summary string
    The textual summary of the log event entry
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    eventTemplate LogEventsEventTemplate
    Event template
    query String
    Log query
    summary String
    The textual summary of the log event entry
    enabled boolean
    This setting is enabled (true) or disabled (false)
    eventTemplate LogEventsEventTemplate
    Event template
    query string
    Log query
    summary string
    The textual summary of the log event entry
    enabled bool
    This setting is enabled (true) or disabled (false)
    event_template LogEventsEventTemplateArgs
    Event template
    query str
    Log query
    summary str
    The textual summary of the log event entry
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    eventTemplate Property Map
    Event template
    query String
    Log query
    summary String
    The textual summary of the log event entry

    Outputs

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

    Get an existing LogEvents 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?: LogEventsState, opts?: CustomResourceOptions): LogEvents
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            event_template: Optional[LogEventsEventTemplateArgs] = None,
            query: Optional[str] = None,
            summary: Optional[str] = None) -> LogEvents
    func GetLogEvents(ctx *Context, name string, id IDInput, state *LogEventsState, opts ...ResourceOption) (*LogEvents, error)
    public static LogEvents Get(string name, Input<string> id, LogEventsState? state, CustomResourceOptions? opts = null)
    public static LogEvents get(String name, Output<String> id, LogEventsState 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:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    EventTemplate Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogEventsEventTemplate
    Event template
    Query string
    Log query
    Summary string
    The textual summary of the log event entry
    Enabled bool
    This setting is enabled (true) or disabled (false)
    EventTemplate LogEventsEventTemplateArgs
    Event template
    Query string
    Log query
    Summary string
    The textual summary of the log event entry
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    eventTemplate LogEventsEventTemplate
    Event template
    query String
    Log query
    summary String
    The textual summary of the log event entry
    enabled boolean
    This setting is enabled (true) or disabled (false)
    eventTemplate LogEventsEventTemplate
    Event template
    query string
    Log query
    summary string
    The textual summary of the log event entry
    enabled bool
    This setting is enabled (true) or disabled (false)
    event_template LogEventsEventTemplateArgs
    Event template
    query str
    Log query
    summary str
    The textual summary of the log event entry
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    eventTemplate Property Map
    Event template
    query String
    Log query
    summary String
    The textual summary of the log event entry

    Supporting Types

    LogEventsEventTemplate, LogEventsEventTemplateArgs

    Description string
    The description of the event to trigger.
    EventType string
    Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
    Title string
    The title of the event to trigger.
    DavisMerge bool
    Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
    Metadata Lbrlabs.PulumiPackage.Dynatrace.Inputs.LogEventsEventTemplateMetadata
    Set of additional key-value properties to be attached to the triggered event.
    Description string
    The description of the event to trigger.
    EventType string
    Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
    Title string
    The title of the event to trigger.
    DavisMerge bool
    Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
    Metadata LogEventsEventTemplateMetadata
    Set of additional key-value properties to be attached to the triggered event.
    description String
    The description of the event to trigger.
    eventType String
    Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
    title String
    The title of the event to trigger.
    davisMerge Boolean
    Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
    metadata LogEventsEventTemplateMetadata
    Set of additional key-value properties to be attached to the triggered event.
    description string
    The description of the event to trigger.
    eventType string
    Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
    title string
    The title of the event to trigger.
    davisMerge boolean
    Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
    metadata LogEventsEventTemplateMetadata
    Set of additional key-value properties to be attached to the triggered event.
    description str
    The description of the event to trigger.
    event_type str
    Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
    title str
    The title of the event to trigger.
    davis_merge bool
    Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
    metadata LogEventsEventTemplateMetadata
    Set of additional key-value properties to be attached to the triggered event.
    description String
    The description of the event to trigger.
    eventType String
    Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
    title String
    The title of the event to trigger.
    davisMerge Boolean
    Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
    metadata Property Map
    Set of additional key-value properties to be attached to the triggered event.

    LogEventsEventTemplateMetadata, LogEventsEventTemplateMetadataArgs

    LogEventsEventTemplateMetadataItem, LogEventsEventTemplateMetadataItemArgs

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs