dynatrace.PgAlerting
Explore with Pulumi AI
Create PgAlerting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PgAlerting(name: string, args: PgAlertingArgs, opts?: CustomResourceOptions);
@overload
def PgAlerting(resource_name: str,
args: PgAlertingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PgAlerting(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
process_group: Optional[str] = None,
alerting_mode: Optional[str] = None,
minimum_instance_threshold: Optional[int] = None)
func NewPgAlerting(ctx *Context, name string, args PgAlertingArgs, opts ...ResourceOption) (*PgAlerting, error)
public PgAlerting(string name, PgAlertingArgs args, CustomResourceOptions? opts = null)
public PgAlerting(String name, PgAlertingArgs args)
public PgAlerting(String name, PgAlertingArgs args, CustomResourceOptions options)
type: dynatrace:PgAlerting
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 PgAlertingArgs
- 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 PgAlertingArgs
- 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 PgAlertingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PgAlertingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PgAlertingArgs
- 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 pgAlertingResource = new Dynatrace.PgAlerting("pgAlertingResource", new()
{
Enabled = false,
ProcessGroup = "string",
AlertingMode = "string",
MinimumInstanceThreshold = 0,
});
example, err := dynatrace.NewPgAlerting(ctx, "pgAlertingResource", &dynatrace.PgAlertingArgs{
Enabled: pulumi.Bool(false),
ProcessGroup: pulumi.String("string"),
AlertingMode: pulumi.String("string"),
MinimumInstanceThreshold: pulumi.Int(0),
})
var pgAlertingResource = new PgAlerting("pgAlertingResource", PgAlertingArgs.builder()
.enabled(false)
.processGroup("string")
.alertingMode("string")
.minimumInstanceThreshold(0)
.build());
pg_alerting_resource = dynatrace.PgAlerting("pgAlertingResource",
enabled=False,
process_group="string",
alerting_mode="string",
minimum_instance_threshold=0)
const pgAlertingResource = new dynatrace.PgAlerting("pgAlertingResource", {
enabled: false,
processGroup: "string",
alertingMode: "string",
minimumInstanceThreshold: 0,
});
type: dynatrace:PgAlerting
properties:
alertingMode: string
enabled: false
minimumInstanceThreshold: 0
processGroup: string
PgAlerting 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 PgAlerting resource accepts the following input properties:
- Enabled bool
- Enable (
true
) or disable (false
) process group availability monitoring - Process
Group string - The process group ID for availability monitoring
- Alerting
Mode string - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- Minimum
Instance intThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- Enabled bool
- Enable (
true
) or disable (false
) process group availability monitoring - Process
Group string - The process group ID for availability monitoring
- Alerting
Mode string - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- Minimum
Instance intThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- enabled Boolean
- Enable (
true
) or disable (false
) process group availability monitoring - process
Group String - The process group ID for availability monitoring
- alerting
Mode String - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- minimum
Instance IntegerThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- enabled boolean
- Enable (
true
) or disable (false
) process group availability monitoring - process
Group string - The process group ID for availability monitoring
- alerting
Mode string - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- minimum
Instance numberThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- enabled bool
- Enable (
true
) or disable (false
) process group availability monitoring - process_
group str - The process group ID for availability monitoring
- alerting_
mode str - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- minimum_
instance_ intthreshold - Open a new problem if the number of active process instances in the group is fewer than X
- enabled Boolean
- Enable (
true
) or disable (false
) process group availability monitoring - process
Group String - The process group ID for availability monitoring
- alerting
Mode String - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- minimum
Instance NumberThreshold - Open a new problem if the number of active process instances in the group is fewer than X
Outputs
All input properties are implicitly available as output properties. Additionally, the PgAlerting 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 PgAlerting Resource
Get an existing PgAlerting 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?: PgAlertingState, opts?: CustomResourceOptions): PgAlerting
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alerting_mode: Optional[str] = None,
enabled: Optional[bool] = None,
minimum_instance_threshold: Optional[int] = None,
process_group: Optional[str] = None) -> PgAlerting
func GetPgAlerting(ctx *Context, name string, id IDInput, state *PgAlertingState, opts ...ResourceOption) (*PgAlerting, error)
public static PgAlerting Get(string name, Input<string> id, PgAlertingState? state, CustomResourceOptions? opts = null)
public static PgAlerting get(String name, Output<String> id, PgAlertingState 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.
- Alerting
Mode string - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- Enabled bool
- Enable (
true
) or disable (false
) process group availability monitoring - Minimum
Instance intThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- Process
Group string - The process group ID for availability monitoring
- Alerting
Mode string - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- Enabled bool
- Enable (
true
) or disable (false
) process group availability monitoring - Minimum
Instance intThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- Process
Group string - The process group ID for availability monitoring
- alerting
Mode String - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- enabled Boolean
- Enable (
true
) or disable (false
) process group availability monitoring - minimum
Instance IntegerThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- process
Group String - The process group ID for availability monitoring
- alerting
Mode string - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- enabled boolean
- Enable (
true
) or disable (false
) process group availability monitoring - minimum
Instance numberThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- process
Group string - The process group ID for availability monitoring
- alerting_
mode str - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- enabled bool
- Enable (
true
) or disable (false
) process group availability monitoring - minimum_
instance_ intthreshold - Open a new problem if the number of active process instances in the group is fewer than X
- process_
group str - The process group ID for availability monitoring
- alerting
Mode String - Possible Values:
ON_INSTANCE_COUNT_VIOLATION
,ON_PGI_UNAVAILABILITY
- enabled Boolean
- Enable (
true
) or disable (false
) process group availability monitoring - minimum
Instance NumberThreshold - Open a new problem if the number of active process instances in the group is fewer than X
- process
Group String - The process group ID for availability monitoring
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.