published on Tuesday, Jun 9, 2026 by Pulumiverse
published on Tuesday, Jun 9, 2026 by Pulumiverse
This resource is utilizing an older API endpoint, please use dynatrace.PgAlerting instead.
This resource requires the API token scopes Read configuration (
ReadConfig) and Write configuration (WriteConfig)
Dynatrace Documentation
Process groups - https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups
Anomaly detection API - Process groups - https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/anomaly-detection-api/anomaly-detection-api-process-groups
Export Example Usage
terraform-provider-dynatrace -export dynatrace.PgAnomaliesdownloads all existing process group detection configuration
The full documentation of the export feature is available here.
Resource Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dynatrace from "@pulumiverse/dynatrace";
const processGroup = dynatrace.getEntity({
entitySelector: "type(\"PROCESS_GROUP\")",
});
const anomaly = new dynatrace.PgAnomalies("anomaly", {
pgId: processGroup.then(processGroup => processGroup.id),
availability: {
method: "OFF",
minimumThreshold: 0,
},
});
import pulumi
import pulumi_dynatrace as dynatrace
import pulumiverse_dynatrace as dynatrace
process_group = dynatrace.get_entity(entity_selector="type(\"PROCESS_GROUP\")")
anomaly = dynatrace.PgAnomalies("anomaly",
pg_id=process_group.id,
availability={
"method": "OFF",
"minimum_threshold": 0,
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
processGroup, err := dynatrace.GetEntity(ctx, &dynatrace.GetEntityArgs{
EntitySelector: pulumi.StringRef("type(\"PROCESS_GROUP\")"),
}, nil)
if err != nil {
return err
}
_, err = dynatrace.NewPgAnomalies(ctx, "anomaly", &dynatrace.PgAnomaliesArgs{
PgId: pulumi.String(pulumi.String(processGroup.Id)),
Availability: &dynatrace.PgAnomaliesAvailabilityArgs{
Method: pulumi.String("OFF"),
MinimumThreshold: pulumi.Int(0),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.Dynatrace;
return await Deployment.RunAsync(() =>
{
var processGroup = Dynatrace.GetEntity.Invoke(new()
{
EntitySelector = "type(\"PROCESS_GROUP\")",
});
var anomaly = new Dynatrace.PgAnomalies("anomaly", new()
{
PgId = processGroup.Apply(getEntityResult => getEntityResult.Id),
Availability = new Dynatrace.Inputs.PgAnomaliesAvailabilityArgs
{
Method = "OFF",
MinimumThreshold = 0,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dynatrace.DynatraceFunctions;
import com.pulumi.dynatrace.inputs.GetEntityArgs;
import com.pulumi.dynatrace.PgAnomalies;
import com.pulumi.dynatrace.PgAnomaliesArgs;
import com.pulumi.dynatrace.inputs.PgAnomaliesAvailabilityArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var processGroup = DynatraceFunctions.getEntity(GetEntityArgs.builder()
.entitySelector("type(\"PROCESS_GROUP\")")
.build());
var anomaly = new PgAnomalies("anomaly", PgAnomaliesArgs.builder()
.pgId(processGroup.id())
.availability(PgAnomaliesAvailabilityArgs.builder()
.method("OFF")
.minimumThreshold(0)
.build())
.build());
}
}
resources:
anomaly:
type: dynatrace:PgAnomalies
properties:
pgId: ${processGroup.id}
availability:
method: OFF
minimumThreshold: 0
variables:
processGroup:
fn::invoke:
function: dynatrace:getEntity
arguments:
entitySelector: type("PROCESS_GROUP")
pulumi {
required_providers {
dynatrace = {
source = "pulumi/dynatrace"
}
}
}
data "dynatrace_getentity" "processGroup" {
entity_selector = "type(\"PROCESS_GROUP\")"
}
resource "dynatrace_pganomalies" "anomaly" {
pg_id = data.dynatrace_getentity.processGroup.id
availability = {
method = "OFF"
minimum_threshold = 0
}
}
Create PgAnomalies Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PgAnomalies(name: string, args: PgAnomaliesArgs, opts?: CustomResourceOptions);@overload
def PgAnomalies(resource_name: str,
args: PgAnomaliesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PgAnomalies(resource_name: str,
opts: Optional[ResourceOptions] = None,
pg_id: Optional[str] = None,
availability: Optional[PgAnomaliesAvailabilityArgs] = None)func NewPgAnomalies(ctx *Context, name string, args PgAnomaliesArgs, opts ...ResourceOption) (*PgAnomalies, error)public PgAnomalies(string name, PgAnomaliesArgs args, CustomResourceOptions? opts = null)
public PgAnomalies(String name, PgAnomaliesArgs args)
public PgAnomalies(String name, PgAnomaliesArgs args, CustomResourceOptions options)
type: dynatrace:PgAnomalies
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dynatrace_pganomalies" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PgAnomaliesArgs
- 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 PgAnomaliesArgs
- 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 PgAnomaliesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PgAnomaliesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PgAnomaliesArgs
- 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 pgAnomaliesResource = new Dynatrace.PgAnomalies("pgAnomaliesResource", new()
{
PgId = "string",
Availability = new Dynatrace.Inputs.PgAnomaliesAvailabilityArgs
{
Method = "string",
MinimumThreshold = 0,
},
});
example, err := dynatrace.NewPgAnomalies(ctx, "pgAnomaliesResource", &dynatrace.PgAnomaliesArgs{
PgId: pulumi.String("string"),
Availability: &dynatrace.PgAnomaliesAvailabilityArgs{
Method: pulumi.String("string"),
MinimumThreshold: pulumi.Int(0),
},
})
resource "dynatrace_pganomalies" "pgAnomaliesResource" {
pg_id = "string"
availability = {
method = "string"
minimum_threshold = 0
}
}
var pgAnomaliesResource = new PgAnomalies("pgAnomaliesResource", PgAnomaliesArgs.builder()
.pgId("string")
.availability(PgAnomaliesAvailabilityArgs.builder()
.method("string")
.minimumThreshold(0)
.build())
.build());
pg_anomalies_resource = dynatrace.PgAnomalies("pgAnomaliesResource",
pg_id="string",
availability={
"method": "string",
"minimum_threshold": 0,
})
const pgAnomaliesResource = new dynatrace.PgAnomalies("pgAnomaliesResource", {
pgId: "string",
availability: {
method: "string",
minimumThreshold: 0,
},
});
type: dynatrace:PgAnomalies
properties:
availability:
method: string
minimumThreshold: 0
pgId: string
PgAnomalies 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 PgAnomalies resource accepts the following input properties:
- Pg
Id string - The ID of the process group
- Availability
Pulumiverse.
Dynatrace. Inputs. Pg Anomalies Availability - Configuration of the availability monitoring for the process group.
- Pg
Id string - The ID of the process group
- Availability
Pg
Anomalies Availability Args - Configuration of the availability monitoring for the process group.
- pg_
id string - The ID of the process group
- availability object
- Configuration of the availability monitoring for the process group.
- pg
Id String - The ID of the process group
- availability
Pg
Anomalies Availability - Configuration of the availability monitoring for the process group.
- pg
Id string - The ID of the process group
- availability
Pg
Anomalies Availability - Configuration of the availability monitoring for the process group.
- pg_
id str - The ID of the process group
- availability
Pg
Anomalies Availability Args - Configuration of the availability monitoring for the process group.
- pg
Id String - The ID of the process group
- availability Property Map
- Configuration of the availability monitoring for the process group.
Outputs
All input properties are implicitly available as output properties. Additionally, the PgAnomalies 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 PgAnomalies Resource
Get an existing PgAnomalies 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?: PgAnomaliesState, opts?: CustomResourceOptions): PgAnomalies@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability: Optional[PgAnomaliesAvailabilityArgs] = None,
pg_id: Optional[str] = None) -> PgAnomaliesfunc GetPgAnomalies(ctx *Context, name string, id IDInput, state *PgAnomaliesState, opts ...ResourceOption) (*PgAnomalies, error)public static PgAnomalies Get(string name, Input<string> id, PgAnomaliesState? state, CustomResourceOptions? opts = null)public static PgAnomalies get(String name, Output<String> id, PgAnomaliesState state, CustomResourceOptions options)resources: _: type: dynatrace:PgAnomalies get: id: ${id}import {
to = dynatrace_pganomalies.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.
- Availability
Pulumiverse.
Dynatrace. Inputs. Pg Anomalies Availability - Configuration of the availability monitoring for the process group.
- Pg
Id string - The ID of the process group
- Availability
Pg
Anomalies Availability Args - Configuration of the availability monitoring for the process group.
- Pg
Id string - The ID of the process group
- availability object
- Configuration of the availability monitoring for the process group.
- pg_
id string - The ID of the process group
- availability
Pg
Anomalies Availability - Configuration of the availability monitoring for the process group.
- pg
Id String - The ID of the process group
- availability
Pg
Anomalies Availability - Configuration of the availability monitoring for the process group.
- pg
Id string - The ID of the process group
- availability
Pg
Anomalies Availability Args - Configuration of the availability monitoring for the process group.
- pg_
id str - The ID of the process group
- availability Property Map
- Configuration of the availability monitoring for the process group.
- pg
Id String - The ID of the process group
Supporting Types
PgAnomaliesAvailability, PgAnomaliesAvailabilityArgs
- Method string
- How to monitor the availability of the process group: *
PROCESS_IMPACT: Alert if any process of the group becomes unavailable. *MINIMUM_THRESHOLD: Alert if the number of active processes in the group falls below the specified threshold. *OFF: Availability monitoring is disabled. - Minimum
Threshold int - Alert if the number of active processes in the group is lower than this value.
- Method string
- How to monitor the availability of the process group: *
PROCESS_IMPACT: Alert if any process of the group becomes unavailable. *MINIMUM_THRESHOLD: Alert if the number of active processes in the group falls below the specified threshold. *OFF: Availability monitoring is disabled. - Minimum
Threshold int - Alert if the number of active processes in the group is lower than this value.
- method string
- How to monitor the availability of the process group: *
PROCESS_IMPACT: Alert if any process of the group becomes unavailable. *MINIMUM_THRESHOLD: Alert if the number of active processes in the group falls below the specified threshold. *OFF: Availability monitoring is disabled. - minimum_
threshold number - Alert if the number of active processes in the group is lower than this value.
- method String
- How to monitor the availability of the process group: *
PROCESS_IMPACT: Alert if any process of the group becomes unavailable. *MINIMUM_THRESHOLD: Alert if the number of active processes in the group falls below the specified threshold. *OFF: Availability monitoring is disabled. - minimum
Threshold Integer - Alert if the number of active processes in the group is lower than this value.
- method string
- How to monitor the availability of the process group: *
PROCESS_IMPACT: Alert if any process of the group becomes unavailable. *MINIMUM_THRESHOLD: Alert if the number of active processes in the group falls below the specified threshold. *OFF: Availability monitoring is disabled. - minimum
Threshold number - Alert if the number of active processes in the group is lower than this value.
- method str
- How to monitor the availability of the process group: *
PROCESS_IMPACT: Alert if any process of the group becomes unavailable. *MINIMUM_THRESHOLD: Alert if the number of active processes in the group falls below the specified threshold. *OFF: Availability monitoring is disabled. - minimum_
threshold int - Alert if the number of active processes in the group is lower than this value.
- method String
- How to monitor the availability of the process group: *
PROCESS_IMPACT: Alert if any process of the group becomes unavailable. *MINIMUM_THRESHOLD: Alert if the number of active processes in the group falls below the specified threshold. *OFF: Availability monitoring is disabled. - minimum
Threshold Number - Alert if the number of active processes in the group is lower than this value.
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