1. Packages
  2. Dynatrace
  3. API Docs
  4. UnifiedServicesMetrics
Dynatrace v0.27.0 published on Friday, Mar 21, 2025 by Pulumiverse

dynatrace.UnifiedServicesMetrics

Explore with Pulumi AI

Create UnifiedServicesMetrics Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new UnifiedServicesMetrics(name: string, args: UnifiedServicesMetricsArgs, opts?: CustomResourceOptions);
@overload
def UnifiedServicesMetrics(resource_name: str,
                           args: UnifiedServicesMetricsArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def UnifiedServicesMetrics(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           enable_endpoint_metrics: Optional[bool] = None,
                           service_id: Optional[str] = None)
func NewUnifiedServicesMetrics(ctx *Context, name string, args UnifiedServicesMetricsArgs, opts ...ResourceOption) (*UnifiedServicesMetrics, error)
public UnifiedServicesMetrics(string name, UnifiedServicesMetricsArgs args, CustomResourceOptions? opts = null)
public UnifiedServicesMetrics(String name, UnifiedServicesMetricsArgs args)
public UnifiedServicesMetrics(String name, UnifiedServicesMetricsArgs args, CustomResourceOptions options)
type: dynatrace:UnifiedServicesMetrics
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. UnifiedServicesMetricsArgs
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. UnifiedServicesMetricsArgs
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. UnifiedServicesMetricsArgs
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. UnifiedServicesMetricsArgs
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. UnifiedServicesMetricsArgs
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 unifiedServicesMetricsResource = new Dynatrace.UnifiedServicesMetrics("unifiedServicesMetricsResource", new()
{
    EnableEndpointMetrics = false,
    ServiceId = "string",
});
Copy
example, err := dynatrace.NewUnifiedServicesMetrics(ctx, "unifiedServicesMetricsResource", &dynatrace.UnifiedServicesMetricsArgs{
	EnableEndpointMetrics: pulumi.Bool(false),
	ServiceId:             pulumi.String("string"),
})
Copy
var unifiedServicesMetricsResource = new UnifiedServicesMetrics("unifiedServicesMetricsResource", UnifiedServicesMetricsArgs.builder()
    .enableEndpointMetrics(false)
    .serviceId("string")
    .build());
Copy
unified_services_metrics_resource = dynatrace.UnifiedServicesMetrics("unifiedServicesMetricsResource",
    enable_endpoint_metrics=False,
    service_id="string")
Copy
const unifiedServicesMetricsResource = new dynatrace.UnifiedServicesMetrics("unifiedServicesMetricsResource", {
    enableEndpointMetrics: false,
    serviceId: "string",
});
Copy
type: dynatrace:UnifiedServicesMetrics
properties:
    enableEndpointMetrics: false
    serviceId: string
Copy

UnifiedServicesMetrics 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 UnifiedServicesMetrics resource accepts the following input properties:

EnableEndpointMetrics This property is required. bool
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
ServiceId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
EnableEndpointMetrics This property is required. bool
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
ServiceId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enableEndpointMetrics This property is required. Boolean
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
serviceId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enableEndpointMetrics This property is required. boolean
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
serviceId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enable_endpoint_metrics This property is required. bool
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
service_id Changes to this property will trigger replacement. str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enableEndpointMetrics This property is required. Boolean
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
serviceId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.

Outputs

All input properties are implicitly available as output properties. Additionally, the UnifiedServicesMetrics 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 UnifiedServicesMetrics Resource

Get an existing UnifiedServicesMetrics 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?: UnifiedServicesMetricsState, opts?: CustomResourceOptions): UnifiedServicesMetrics
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enable_endpoint_metrics: Optional[bool] = None,
        service_id: Optional[str] = None) -> UnifiedServicesMetrics
func GetUnifiedServicesMetrics(ctx *Context, name string, id IDInput, state *UnifiedServicesMetricsState, opts ...ResourceOption) (*UnifiedServicesMetrics, error)
public static UnifiedServicesMetrics Get(string name, Input<string> id, UnifiedServicesMetricsState? state, CustomResourceOptions? opts = null)
public static UnifiedServicesMetrics get(String name, Output<String> id, UnifiedServicesMetricsState state, CustomResourceOptions options)
resources:  _:    type: dynatrace:UnifiedServicesMetrics    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.
The following state arguments are supported:
EnableEndpointMetrics bool
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
ServiceId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
EnableEndpointMetrics bool
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
ServiceId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enableEndpointMetrics Boolean
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
serviceId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enableEndpointMetrics boolean
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
serviceId Changes to this property will trigger replacement. string
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enable_endpoint_metrics bool
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
service_id Changes to this property will trigger replacement. str
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
enableEndpointMetrics Boolean
Should metrics be written for endpoints? Please be aware that this setting has billing implications. Check out this documentation for further details.
serviceId Changes to this property will trigger replacement. String
The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.

Package Details

Repository
dynatrace pulumiverse/pulumi-dynatrace
License
Apache-2.0
Notes
This Pulumi package is based on the dynatrace Terraform Provider.