1. Packages
  2. Dynatrace
  3. API Docs
  4. LogEvents
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.LogEvents

Explore with Pulumi AI

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 This property is required. string
The unique name of the resource.
args This property is required. LogEventsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LogEventsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LogEventsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LogEventsArgs
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 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",
});
Copy
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"),
})
Copy
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());
Copy
log_events_resource = dynatrace.LogEvents("logEventsResource",
    enabled=False,
    event_template={
        "description": "string",
        "event_type": "string",
        "title": "string",
        "davis_merge": False,
        "metadata": {
            "items": [{
                "metadata_key": "string",
                "metadata_value": "string",
            }],
        },
    },
    query="string",
    summary="string")
Copy
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",
});
Copy
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
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The LogEvents resource accepts the following input properties:

Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
EventTemplate This property is required. Pulumiverse.Dynatrace.Inputs.LogEventsEventTemplate
Event template
Query This property is required. string
Log query
Summary This property is required. string
The textual summary of the log event entry
Enabled This property is required. bool
This setting is enabled (true) or disabled (false)
EventTemplate This property is required. LogEventsEventTemplateArgs
Event template
Query This property is required. string
Log query
Summary This property is required. string
The textual summary of the log event entry
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
eventTemplate This property is required. LogEventsEventTemplate
Event template
query This property is required. String
Log query
summary This property is required. String
The textual summary of the log event entry
enabled This property is required. boolean
This setting is enabled (true) or disabled (false)
eventTemplate This property is required. LogEventsEventTemplate
Event template
query This property is required. string
Log query
summary This property is required. string
The textual summary of the log event entry
enabled This property is required. bool
This setting is enabled (true) or disabled (false)
event_template This property is required. LogEventsEventTemplateArgs
Event template
query This property is required. str
Log query
summary This property is required. str
The textual summary of the log event entry
enabled This property is required. Boolean
This setting is enabled (true) or disabled (false)
eventTemplate This property is required. Property Map
Event template
query This property is required. String
Log query
summary This property is required. 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)
resources:  _:    type: dynatrace:LogEvents    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Pulumiverse.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 This property is required. string
The description of the event to trigger.
EventType This property is required. string
Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
Title This property is required. 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 Pulumiverse.Dynatrace.Inputs.LogEventsEventTemplateMetadata
Set of additional key-value properties to be attached to the triggered event.
Description This property is required. string
The description of the event to trigger.
EventType This property is required. string
Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
Title This property is required. 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 This property is required. String
The description of the event to trigger.
eventType This property is required. String
Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
title This property is required. 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 This property is required. string
The description of the event to trigger.
eventType This property is required. string
Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
title This property is required. 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 This property is required. str
The description of the event to trigger.
event_type This property is required. str
Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
title This property is required. 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 This property is required. String
The description of the event to trigger.
eventType This property is required. String
Possible Values: AVAILABILITY, CUSTOM_ALERT, CUSTOM_ANNOTATION, CUSTOM_CONFIGURATION, CUSTOM_DEPLOYMENT, ERROR, INFO, MARKED_FOR_TERMINATION, RESOURCE, SLOWDOWN
title This property is required. 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

Items This property is required. []LogEventsEventTemplateMetadataItem
items This property is required. LogEventsEventTemplateMetadataItem[]
items This property is required. List<Property Map>

LogEventsEventTemplateMetadataItem
, LogEventsEventTemplateMetadataItemArgs

MetadataKey This property is required. string
Type 'dt.' for key hints.
MetadataValue This property is required. string
no documentation available
MetadataKey This property is required. string
Type 'dt.' for key hints.
MetadataValue This property is required. string
no documentation available
metadataKey This property is required. String
Type 'dt.' for key hints.
metadataValue This property is required. String
no documentation available
metadataKey This property is required. string
Type 'dt.' for key hints.
metadataValue This property is required. string
no documentation available
metadata_key This property is required. str
Type 'dt.' for key hints.
metadata_value This property is required. str
no documentation available
metadataKey This property is required. String
Type 'dt.' for key hints.
metadataValue This property is required. String
no documentation available

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.