published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
Dynatrace SaaS only
This resource requires an OAuth client or platform token configured with the permissions outlined in the Davis Anomaly Detection app documentation. Please set the environment variables
DT_CLIENT_IDandDT_CLIENT_SECRET, or alternativelyDT_PLATFORM_TOKEN.
Depending on the anomaly detector configuration, additional storage permissions may be required for DQL-related access (e.g.
storage:bizevents:read,storage:logs:read,storage:entities:read).
Dynatrace Documentation
Davis Anomaly Detection App - https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/anomaly-detection-app
Settings API - https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings (schemaId:
builtin:davis.anomaly-detectors)
Export Example Usage
terraform-provider-dynatrace -export dynatrace.DavisAnomalyDetectorsdownloads all existing Davis anomaly detector configuration
The full documentation of the export feature is available here.
Create DavisAnomalyDetectors Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DavisAnomalyDetectors(name: string, args: DavisAnomalyDetectorsArgs, opts?: CustomResourceOptions);@overload
def DavisAnomalyDetectors(resource_name: str,
args: DavisAnomalyDetectorsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DavisAnomalyDetectors(resource_name: str,
opts: Optional[ResourceOptions] = None,
analyzer: Optional[DavisAnomalyDetectorsAnalyzerArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
event_template: Optional[DavisAnomalyDetectorsEventTemplateArgs] = None,
execution_settings: Optional[DavisAnomalyDetectorsExecutionSettingsArgs] = None,
source: Optional[str] = None,
title: Optional[str] = None)func NewDavisAnomalyDetectors(ctx *Context, name string, args DavisAnomalyDetectorsArgs, opts ...ResourceOption) (*DavisAnomalyDetectors, error)public DavisAnomalyDetectors(string name, DavisAnomalyDetectorsArgs args, CustomResourceOptions? opts = null)
public DavisAnomalyDetectors(String name, DavisAnomalyDetectorsArgs args)
public DavisAnomalyDetectors(String name, DavisAnomalyDetectorsArgs args, CustomResourceOptions options)
type: dynatrace:DavisAnomalyDetectors
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dynatrace_davisanomalydetectors" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DavisAnomalyDetectorsArgs
- 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 DavisAnomalyDetectorsArgs
- 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 DavisAnomalyDetectorsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DavisAnomalyDetectorsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DavisAnomalyDetectorsArgs
- 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 davisAnomalyDetectorsResource = new Dynatrace.DavisAnomalyDetectors("davisAnomalyDetectorsResource", new()
{
Analyzer = new Dynatrace.Inputs.DavisAnomalyDetectorsAnalyzerArgs
{
Name = "string",
Input = new Dynatrace.Inputs.DavisAnomalyDetectorsAnalyzerInputArgs
{
AnalyzerInputFields = new[]
{
new Dynatrace.Inputs.DavisAnomalyDetectorsAnalyzerInputAnalyzerInputFieldArgs
{
Key = "string",
Value = "string",
},
},
},
},
Description = "string",
Enabled = false,
EventTemplate = new Dynatrace.Inputs.DavisAnomalyDetectorsEventTemplateArgs
{
Properties = new Dynatrace.Inputs.DavisAnomalyDetectorsEventTemplatePropertiesArgs
{
Properties = new[]
{
new Dynatrace.Inputs.DavisAnomalyDetectorsEventTemplatePropertiesPropertyArgs
{
Key = "string",
Value = "string",
},
},
},
},
ExecutionSettings = new Dynatrace.Inputs.DavisAnomalyDetectorsExecutionSettingsArgs
{
Actor = "string",
Delay = 0,
QueryOffset = 0,
},
Source = "string",
Title = "string",
});
example, err := dynatrace.NewDavisAnomalyDetectors(ctx, "davisAnomalyDetectorsResource", &dynatrace.DavisAnomalyDetectorsArgs{
Analyzer: &dynatrace.DavisAnomalyDetectorsAnalyzerArgs{
Name: pulumi.String("string"),
Input: &dynatrace.DavisAnomalyDetectorsAnalyzerInputTypeArgs{
AnalyzerInputFields: dynatrace.DavisAnomalyDetectorsAnalyzerInputAnalyzerInputFieldArray{
&dynatrace.DavisAnomalyDetectorsAnalyzerInputAnalyzerInputFieldArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
EventTemplate: &dynatrace.DavisAnomalyDetectorsEventTemplateArgs{
Properties: &dynatrace.DavisAnomalyDetectorsEventTemplatePropertiesArgs{
Properties: dynatrace.DavisAnomalyDetectorsEventTemplatePropertiesPropertyArray{
&dynatrace.DavisAnomalyDetectorsEventTemplatePropertiesPropertyArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
ExecutionSettings: &dynatrace.DavisAnomalyDetectorsExecutionSettingsArgs{
Actor: pulumi.String("string"),
Delay: pulumi.Int(0),
QueryOffset: pulumi.Int(0),
},
Source: pulumi.String("string"),
Title: pulumi.String("string"),
})
resource "dynatrace_davisanomalydetectors" "davisAnomalyDetectorsResource" {
analyzer = {
name = "string"
input = {
analyzer_input_fields = [{
"key" = "string"
"value" = "string"
}]
}
}
description = "string"
enabled = false
event_template = {
properties = {
properties = [{
"key" = "string"
"value" = "string"
}]
}
}
execution_settings = {
actor = "string"
delay = 0
query_offset = 0
}
source = "string"
title = "string"
}
var davisAnomalyDetectorsResource = new DavisAnomalyDetectors("davisAnomalyDetectorsResource", DavisAnomalyDetectorsArgs.builder()
.analyzer(DavisAnomalyDetectorsAnalyzerArgs.builder()
.name("string")
.input(DavisAnomalyDetectorsAnalyzerInputArgs.builder()
.analyzerInputFields(DavisAnomalyDetectorsAnalyzerInputAnalyzerInputFieldArgs.builder()
.key("string")
.value("string")
.build())
.build())
.build())
.description("string")
.enabled(false)
.eventTemplate(DavisAnomalyDetectorsEventTemplateArgs.builder()
.properties(DavisAnomalyDetectorsEventTemplatePropertiesArgs.builder()
.properties(DavisAnomalyDetectorsEventTemplatePropertiesPropertyArgs.builder()
.key("string")
.value("string")
.build())
.build())
.build())
.executionSettings(DavisAnomalyDetectorsExecutionSettingsArgs.builder()
.actor("string")
.delay(0)
.queryOffset(0)
.build())
.source("string")
.title("string")
.build());
davis_anomaly_detectors_resource = dynatrace.DavisAnomalyDetectors("davisAnomalyDetectorsResource",
analyzer={
"name": "string",
"input": {
"analyzer_input_fields": [{
"key": "string",
"value": "string",
}],
},
},
description="string",
enabled=False,
event_template={
"properties": {
"properties": [{
"key": "string",
"value": "string",
}],
},
},
execution_settings={
"actor": "string",
"delay": 0,
"query_offset": 0,
},
source="string",
title="string")
const davisAnomalyDetectorsResource = new dynatrace.DavisAnomalyDetectors("davisAnomalyDetectorsResource", {
analyzer: {
name: "string",
input: {
analyzerInputFields: [{
key: "string",
value: "string",
}],
},
},
description: "string",
enabled: false,
eventTemplate: {
properties: {
properties: [{
key: "string",
value: "string",
}],
},
},
executionSettings: {
actor: "string",
delay: 0,
queryOffset: 0,
},
source: "string",
title: "string",
});
type: dynatrace:DavisAnomalyDetectors
properties:
analyzer:
input:
analyzerInputFields:
- key: string
value: string
name: string
description: string
enabled: false
eventTemplate:
properties:
properties:
- key: string
value: string
executionSettings:
actor: string
delay: 0
queryOffset: 0
source: string
title: string
DavisAnomalyDetectors 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 DavisAnomalyDetectors resource accepts the following input properties:
- Analyzer
Pulumiverse.
Dynatrace. Inputs. Davis Anomaly Detectors Analyzer - Analyzer input to initialize the analyzer
- Description string
- The description of the anomaly detector
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Event
Template Pulumiverse.Dynatrace. Inputs. Davis Anomaly Detectors Event Template - Defines additional fields on the davis events triggered by the anomaly detector
- Execution
Settings Pulumiverse.Dynatrace. Inputs. Davis Anomaly Detectors Execution Settings - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- Source string
- The source which created the anomaly detector
- Title string
- The title of the anomaly detector
- Analyzer
Davis
Anomaly Detectors Analyzer Args - Analyzer input to initialize the analyzer
- Description string
- The description of the anomaly detector
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Event
Template DavisAnomaly Detectors Event Template Args - Defines additional fields on the davis events triggered by the anomaly detector
- Execution
Settings DavisAnomaly Detectors Execution Settings Args - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- Source string
- The source which created the anomaly detector
- Title string
- The title of the anomaly detector
- analyzer object
- Analyzer input to initialize the analyzer
- description string
- The description of the anomaly detector
- enabled bool
- This setting is enabled (
true) or disabled (false) - event_
template object - Defines additional fields on the davis events triggered by the anomaly detector
- execution_
settings object - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source string
- The source which created the anomaly detector
- title string
- The title of the anomaly detector
- analyzer
Davis
Anomaly Detectors Analyzer - Analyzer input to initialize the analyzer
- description String
- The description of the anomaly detector
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - event
Template DavisAnomaly Detectors Event Template - Defines additional fields on the davis events triggered by the anomaly detector
- execution
Settings DavisAnomaly Detectors Execution Settings - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source String
- The source which created the anomaly detector
- title String
- The title of the anomaly detector
- analyzer
Davis
Anomaly Detectors Analyzer - Analyzer input to initialize the analyzer
- description string
- The description of the anomaly detector
- enabled boolean
- This setting is enabled (
true) or disabled (false) - event
Template DavisAnomaly Detectors Event Template - Defines additional fields on the davis events triggered by the anomaly detector
- execution
Settings DavisAnomaly Detectors Execution Settings - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source string
- The source which created the anomaly detector
- title string
- The title of the anomaly detector
- analyzer
Davis
Anomaly Detectors Analyzer Args - Analyzer input to initialize the analyzer
- description str
- The description of the anomaly detector
- enabled bool
- This setting is enabled (
true) or disabled (false) - event_
template DavisAnomaly Detectors Event Template Args - Defines additional fields on the davis events triggered by the anomaly detector
- execution_
settings DavisAnomaly Detectors Execution Settings Args - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source str
- The source which created the anomaly detector
- title str
- The title of the anomaly detector
- analyzer Property Map
- Analyzer input to initialize the analyzer
- description String
- The description of the anomaly detector
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - event
Template Property Map - Defines additional fields on the davis events triggered by the anomaly detector
- execution
Settings Property Map - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source String
- The source which created the anomaly detector
- title String
- The title of the anomaly detector
Outputs
All input properties are implicitly available as output properties. Additionally, the DavisAnomalyDetectors 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 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 DavisAnomalyDetectors Resource
Get an existing DavisAnomalyDetectors 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?: DavisAnomalyDetectorsState, opts?: CustomResourceOptions): DavisAnomalyDetectors@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
analyzer: Optional[DavisAnomalyDetectorsAnalyzerArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
event_template: Optional[DavisAnomalyDetectorsEventTemplateArgs] = None,
execution_settings: Optional[DavisAnomalyDetectorsExecutionSettingsArgs] = None,
source: Optional[str] = None,
title: Optional[str] = None) -> DavisAnomalyDetectorsfunc GetDavisAnomalyDetectors(ctx *Context, name string, id IDInput, state *DavisAnomalyDetectorsState, opts ...ResourceOption) (*DavisAnomalyDetectors, error)public static DavisAnomalyDetectors Get(string name, Input<string> id, DavisAnomalyDetectorsState? state, CustomResourceOptions? opts = null)public static DavisAnomalyDetectors get(String name, Output<String> id, DavisAnomalyDetectorsState state, CustomResourceOptions options)resources: _: type: dynatrace:DavisAnomalyDetectors get: id: ${id}import {
to = dynatrace_davisanomalydetectors.example
id = "${id}"
}
- 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.
- Analyzer
Pulumiverse.
Dynatrace. Inputs. Davis Anomaly Detectors Analyzer - Analyzer input to initialize the analyzer
- Description string
- The description of the anomaly detector
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Event
Template Pulumiverse.Dynatrace. Inputs. Davis Anomaly Detectors Event Template - Defines additional fields on the davis events triggered by the anomaly detector
- Execution
Settings Pulumiverse.Dynatrace. Inputs. Davis Anomaly Detectors Execution Settings - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- Source string
- The source which created the anomaly detector
- Title string
- The title of the anomaly detector
- Analyzer
Davis
Anomaly Detectors Analyzer Args - Analyzer input to initialize the analyzer
- Description string
- The description of the anomaly detector
- Enabled bool
- This setting is enabled (
true) or disabled (false) - Event
Template DavisAnomaly Detectors Event Template Args - Defines additional fields on the davis events triggered by the anomaly detector
- Execution
Settings DavisAnomaly Detectors Execution Settings Args - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- Source string
- The source which created the anomaly detector
- Title string
- The title of the anomaly detector
- analyzer object
- Analyzer input to initialize the analyzer
- description string
- The description of the anomaly detector
- enabled bool
- This setting is enabled (
true) or disabled (false) - event_
template object - Defines additional fields on the davis events triggered by the anomaly detector
- execution_
settings object - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source string
- The source which created the anomaly detector
- title string
- The title of the anomaly detector
- analyzer
Davis
Anomaly Detectors Analyzer - Analyzer input to initialize the analyzer
- description String
- The description of the anomaly detector
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - event
Template DavisAnomaly Detectors Event Template - Defines additional fields on the davis events triggered by the anomaly detector
- execution
Settings DavisAnomaly Detectors Execution Settings - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source String
- The source which created the anomaly detector
- title String
- The title of the anomaly detector
- analyzer
Davis
Anomaly Detectors Analyzer - Analyzer input to initialize the analyzer
- description string
- The description of the anomaly detector
- enabled boolean
- This setting is enabled (
true) or disabled (false) - event
Template DavisAnomaly Detectors Event Template - Defines additional fields on the davis events triggered by the anomaly detector
- execution
Settings DavisAnomaly Detectors Execution Settings - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source string
- The source which created the anomaly detector
- title string
- The title of the anomaly detector
- analyzer
Davis
Anomaly Detectors Analyzer Args - Analyzer input to initialize the analyzer
- description str
- The description of the anomaly detector
- enabled bool
- This setting is enabled (
true) or disabled (false) - event_
template DavisAnomaly Detectors Event Template Args - Defines additional fields on the davis events triggered by the anomaly detector
- execution_
settings DavisAnomaly Detectors Execution Settings Args - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source str
- The source which created the anomaly detector
- title str
- The title of the anomaly detector
- analyzer Property Map
- Analyzer input to initialize the analyzer
- description String
- The description of the anomaly detector
- enabled Boolean
- This setting is enabled (
true) or disabled (false) - event
Template Property Map - Defines additional fields on the davis events triggered by the anomaly detector
- execution
Settings Property Map - Defines the configuration parameters that influence how and under what context a query or evaluation is executed.
- source String
- The source which created the anomaly detector
- title String
- The title of the anomaly detector
Supporting Types
DavisAnomalyDetectorsAnalyzer, DavisAnomalyDetectorsAnalyzerArgs
- Name string
- Fully qualified name of the analyzer
- Input
Pulumiverse.
Dynatrace. Inputs. Davis Anomaly Detectors Analyzer Input - Input fields for the specified analyzer
- Name string
- Fully qualified name of the analyzer
- Input
Davis
Anomaly Detectors Analyzer Input Type - Input fields for the specified analyzer
- name String
- Fully qualified name of the analyzer
- input
Davis
Anomaly Detectors Analyzer Input - Input fields for the specified analyzer
- name string
- Fully qualified name of the analyzer
- input
Davis
Anomaly Detectors Analyzer Input - Input fields for the specified analyzer
- name str
- Fully qualified name of the analyzer
- input
Davis
Anomaly Detectors Analyzer Input - Input fields for the specified analyzer
- name String
- Fully qualified name of the analyzer
- input Property Map
- Input fields for the specified analyzer
DavisAnomalyDetectorsAnalyzerInput, DavisAnomalyDetectorsAnalyzerInputArgs
DavisAnomalyDetectorsAnalyzerInputAnalyzerInputField, DavisAnomalyDetectorsAnalyzerInputAnalyzerInputFieldArgs
DavisAnomalyDetectorsEventTemplate, DavisAnomalyDetectorsEventTemplateArgs
- Properties
Pulumiverse.
Dynatrace. Inputs. Davis Anomaly Detectors Event Template Properties - Set of additional key-value properties to be attached to the triggered event.
- Properties
Davis
Anomaly Detectors Event Template Properties - Set of additional key-value properties to be attached to the triggered event.
- properties object
- Set of additional key-value properties to be attached to the triggered event.
- properties
Davis
Anomaly Detectors Event Template Properties - Set of additional key-value properties to be attached to the triggered event.
- properties
Davis
Anomaly Detectors Event Template Properties - Set of additional key-value properties to be attached to the triggered event.
- properties
Davis
Anomaly Detectors Event Template Properties - Set of additional key-value properties to be attached to the triggered event.
- properties Property Map
- Set of additional key-value properties to be attached to the triggered event.
DavisAnomalyDetectorsEventTemplateProperties, DavisAnomalyDetectorsEventTemplatePropertiesArgs
DavisAnomalyDetectorsEventTemplatePropertiesProperty, DavisAnomalyDetectorsEventTemplatePropertiesPropertyArgs
DavisAnomalyDetectorsExecutionSettings, DavisAnomalyDetectorsExecutionSettingsArgs
- Actor string
- UUID of a service user. Queries will be executed on behalf of the service user.
- Delay int
- Fixed delay between executions (in seconds)
- Query
Offset int - Minute offset of sliding evaluation window for metrics with latency
- Actor string
- UUID of a service user. Queries will be executed on behalf of the service user.
- Delay int
- Fixed delay between executions (in seconds)
- Query
Offset int - Minute offset of sliding evaluation window for metrics with latency
- actor string
- UUID of a service user. Queries will be executed on behalf of the service user.
- delay number
- Fixed delay between executions (in seconds)
- query_
offset number - Minute offset of sliding evaluation window for metrics with latency
- actor String
- UUID of a service user. Queries will be executed on behalf of the service user.
- delay Integer
- Fixed delay between executions (in seconds)
- query
Offset Integer - Minute offset of sliding evaluation window for metrics with latency
- actor string
- UUID of a service user. Queries will be executed on behalf of the service user.
- delay number
- Fixed delay between executions (in seconds)
- query
Offset number - Minute offset of sliding evaluation window for metrics with latency
- actor str
- UUID of a service user. Queries will be executed on behalf of the service user.
- delay int
- Fixed delay between executions (in seconds)
- query_
offset int - Minute offset of sliding evaluation window for metrics with latency
- actor String
- UUID of a service user. Queries will be executed on behalf of the service user.
- delay Number
- Fixed delay between executions (in seconds)
- query
Offset Number - Minute offset of sliding evaluation window for metrics with latency
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatraceTerraform Provider.
published on Tuesday, Jun 9, 2026 by Pulumiverse