You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a template for metric event definitions for my organization's applications using pulumi typescript.
I've found a discrepancy on defining a metric event for the type METRIC_SELECTOR, where the value metricKey on the MetricEventsQueryDefinition type is required, even when it should not be (eg, type would be METRIC_KEY rather than METRIC_SELECTOR when it ought be required).
Error when the metricKey is set on a METRIC_SELECTOR type event:
dynatrace:index:MetricEvents (ix-test-example-Mem Usage):
error: 1 error occurred:
* Given property 'metricKey' should not be set as it does not satisfy the following precondition: type = 'METRIC_KEY'
Error when the metricKey is not set, on a METRIC_KEY type event:
dynatrace:index:MetricEvents (ix-test-example-REPLACE_ME_PROJECT_NAME Mem Usage):
error: 1 error occurred:
* Given property 'entityFilter' with value: 'null' does not comply with required NonNull of schema
Given property 'metricSelector' should not be set as it does not satisfy the following precondition: type = 'METRIC_SELECTOR'
Given property 'aggregation' with value: 'null' does not comply with required NonNull of schema```
The text was updated successfully, but these errors were encountered:
I'm creating a template for metric event definitions for my organization's applications using pulumi typescript.
I've found a discrepancy on defining a metric event for the type
METRIC_SELECTOR
, where the valuemetricKey
on theMetricEventsQueryDefinition
type is required, even when it should not be (eg,type
would beMETRIC_KEY
rather thanMETRIC_SELECTOR
when it ought be required).It's unclear to me if I'm misconfiguring the below, however I believe there should be a change to set
metricKey
as optional on this resource. I see on the corresponding terraform object that this specific key is labeled optional: https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/resources/metric_events#metric_keyError when the
metricKey
is set on aMETRIC_SELECTOR
type event:Error when the
metricKey
is not set, on aMETRIC_KEY
type event:The text was updated successfully, but these errors were encountered: