Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse
dynatrace.LogMetrics
Explore with Pulumi AI
Create LogMetrics Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogMetrics(name: string, args: LogMetricsArgs, opts?: CustomResourceOptions);
@overload
def LogMetrics(resource_name: str,
args: LogMetricsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogMetrics(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
key: Optional[str] = None,
measure: Optional[str] = None,
query: Optional[str] = None,
dimensions: Optional[Sequence[str]] = None,
measure_attribute: Optional[str] = None)
func NewLogMetrics(ctx *Context, name string, args LogMetricsArgs, opts ...ResourceOption) (*LogMetrics, error)
public LogMetrics(string name, LogMetricsArgs args, CustomResourceOptions? opts = null)
public LogMetrics(String name, LogMetricsArgs args)
public LogMetrics(String name, LogMetricsArgs args, CustomResourceOptions options)
type: dynatrace:LogMetrics
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 LogMetricsArgs
- 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 LogMetricsArgs
- 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 LogMetricsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogMetricsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogMetricsArgs
- 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 logMetricsResource = new Dynatrace.LogMetrics("logMetricsResource", new()
{
Enabled = false,
Key = "string",
Measure = "string",
Query = "string",
Dimensions = new[]
{
"string",
},
MeasureAttribute = "string",
});
example, err := dynatrace.NewLogMetrics(ctx, "logMetricsResource", &dynatrace.LogMetricsArgs{
Enabled: pulumi.Bool(false),
Key: pulumi.String("string"),
Measure: pulumi.String("string"),
Query: pulumi.String("string"),
Dimensions: pulumi.StringArray{
pulumi.String("string"),
},
MeasureAttribute: pulumi.String("string"),
})
var logMetricsResource = new LogMetrics("logMetricsResource", LogMetricsArgs.builder()
.enabled(false)
.key("string")
.measure("string")
.query("string")
.dimensions("string")
.measureAttribute("string")
.build());
log_metrics_resource = dynatrace.LogMetrics("logMetricsResource",
enabled=False,
key="string",
measure="string",
query="string",
dimensions=["string"],
measure_attribute="string")
const logMetricsResource = new dynatrace.LogMetrics("logMetricsResource", {
enabled: false,
key: "string",
measure: "string",
query: "string",
dimensions: ["string"],
measureAttribute: "string",
});
type: dynatrace:LogMetrics
properties:
dimensions:
- string
enabled: false
key: string
measure: string
measureAttribute: string
query: string
LogMetrics 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 LogMetrics resource accepts the following input properties:
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Key string
- Metric key
- Measure string
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- Query string
- Matcher
- Dimensions List<string>
- To enable splitting on your metric, add desired dimensions.
- Measure
Attribute string - Attribute
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Key string
- Metric key
- Measure string
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- Query string
- Matcher
- Dimensions []string
- To enable splitting on your metric, add desired dimensions.
- Measure
Attribute string - Attribute
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - key String
- Metric key
- measure String
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- query String
- Matcher
- dimensions List<String>
- To enable splitting on your metric, add desired dimensions.
- measure
Attribute String - Attribute
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - key string
- Metric key
- measure string
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- query string
- Matcher
- dimensions string[]
- To enable splitting on your metric, add desired dimensions.
- measure
Attribute string - Attribute
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - key str
- Metric key
- measure str
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- query str
- Matcher
- dimensions Sequence[str]
- To enable splitting on your metric, add desired dimensions.
- measure_
attribute str - Attribute
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - key String
- Metric key
- measure String
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- query String
- Matcher
- dimensions List<String>
- To enable splitting on your metric, add desired dimensions.
- measure
Attribute String - Attribute
Outputs
All input properties are implicitly available as output properties. Additionally, the LogMetrics 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 LogMetrics Resource
Get an existing LogMetrics 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?: LogMetricsState, opts?: CustomResourceOptions): LogMetrics
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dimensions: Optional[Sequence[str]] = None,
enabled: Optional[bool] = None,
key: Optional[str] = None,
measure: Optional[str] = None,
measure_attribute: Optional[str] = None,
query: Optional[str] = None) -> LogMetrics
func GetLogMetrics(ctx *Context, name string, id IDInput, state *LogMetricsState, opts ...ResourceOption) (*LogMetrics, error)
public static LogMetrics Get(string name, Input<string> id, LogMetricsState? state, CustomResourceOptions? opts = null)
public static LogMetrics get(String name, Output<String> id, LogMetricsState 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.
- Dimensions List<string>
- To enable splitting on your metric, add desired dimensions.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Key string
- Metric key
- Measure string
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- Measure
Attribute string - Attribute
- Query string
- Matcher
- Dimensions []string
- To enable splitting on your metric, add desired dimensions.
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Key string
- Metric key
- Measure string
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- Measure
Attribute string - Attribute
- Query string
- Matcher
- dimensions List<String>
- To enable splitting on your metric, add desired dimensions.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - key String
- Metric key
- measure String
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- measure
Attribute String - Attribute
- query String
- Matcher
- dimensions string[]
- To enable splitting on your metric, add desired dimensions.
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - key string
- Metric key
- measure string
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- measure
Attribute string - Attribute
- query string
- Matcher
- dimensions Sequence[str]
- To enable splitting on your metric, add desired dimensions.
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - key str
- Metric key
- measure str
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- measure_
attribute str - Attribute
- query str
- Matcher
- dimensions List<String>
- To enable splitting on your metric, add desired dimensions.
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - key String
- Metric key
- measure String
- Possible Values:
OCCURRENCE
,ATTRIBUTE
- measure
Attribute String - Attribute
- query String
- Matcher
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.