Dynatrace v0.10.0 published on Friday, Jun 7, 2024 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 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.
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=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
) - 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
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.
- 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 string
- The description of the event to trigger.
- Event
Type 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.
- 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 string
- The description of the event to trigger.
- Event
Type 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.
- 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 String
- The description of the event to trigger.
- event
Type 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.
- 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 string
- The description of the event to trigger.
- event
Type 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.
- 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 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
Log
Events Event Template Metadata - Set of additional key-value properties to be attached to the triggered event.
- description String
- The description of the event to trigger.
- event
Type 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.
- 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
LogEventsEventTemplateMetadataItem, LogEventsEventTemplateMetadataItemArgs
- Metadata
Key string - Type 'dt.' for key hints.
- Metadata
Value string - no documentation available
- Metadata
Key string - Type 'dt.' for key hints.
- Metadata
Value string - no documentation available
- metadata
Key String - Type 'dt.' for key hints.
- metadata
Value String - no documentation available
- metadata
Key string - Type 'dt.' for key hints.
- metadata
Value string - no documentation available
- metadata_
key str - Type 'dt.' for key hints.
- metadata_
value str - no documentation available
- metadata
Key String - Type 'dt.' for key hints.
- metadata
Value 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.