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",
});
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={
"description": "string",
"event_type": "string",
"title": "string",
"davis_merge": False,
"metadata": {
"items": [{
"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
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
) - Event
Template This property is required. Pulumiverse.Dynatrace. Inputs. Log Events Event Template - 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. LogEvents Event Template Args - 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
) - event
Template This property is required. LogEvents Event Template - 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
) - event
Template This property is required. LogEvents Event Template - 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. LogEvents Event Template Args - 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
) - event
Template 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.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Event
Template Pulumiverse.Dynatrace. Inputs. Log Events Event Template - 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 LogEvents Event Template Args - 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
) - event
Template LogEvents Event Template - 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
) - event
Template LogEvents Event Template - 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 LogEvents Event Template Args - 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
) - event
Template 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.
- Event
Type 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.
- Davis
Merge bool - Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
- Metadata
Pulumiverse.
Dynatrace. Inputs. Log Events Event Template Metadata - 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.
- Event
Type 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.
- Davis
Merge bool - Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
- Metadata
Log
Events Event Template Metadata - 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.
- event
Type 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.
- davis
Merge Boolean - Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
- metadata
Log
Events Event Template Metadata - 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.
- event
Type 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.
- davis
Merge boolean - Davis® AI will try to merge this event into existing problems, otherwise a new problem will always be created.
- metadata
Log
Events Event Template Metadata - 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
Log
Events Event Template Metadata - 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.
- event
Type 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.
- davis
Merge 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. List<Pulumiverse.Dynatrace. Inputs. Log Events Event Template Metadata Item>
- Items
This property is required. []LogEvents Event Template Metadata Item
- items
This property is required. List<LogEvents Event Template Metadata Item>
- items
This property is required. LogEvents Event Template Metadata Item[]
- items
This property is required. Sequence[LogEvents Event Template Metadata Item]
- items
This property is required. List<Property Map>
LogEventsEventTemplateMetadataItem, LogEventsEventTemplateMetadataItemArgs
- Metadata
Key This property is required. string - Type 'dt.' for key hints.
- Metadata
Value This property is required. string - no documentation available
- Metadata
Key This property is required. string - Type 'dt.' for key hints.
- Metadata
Value This property is required. string - no documentation available
- metadata
Key This property is required. String - Type 'dt.' for key hints.
- metadata
Value This property is required. String - no documentation available
- metadata
Key This property is required. string - Type 'dt.' for key hints.
- metadata
Value 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
- metadata
Key This property is required. String - Type 'dt.' for key hints.
- metadata
Value 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.