Skip to content

Commit 12a8fe0

Browse files
authored
[cmd/mdatagen] [chore] Rename per-metric config types to include Metric infix (#14764)
Follow up to #14724. No need for chanagelog item if merged before the release Rename generated types for per-metric reaggregation config to make the category explicit and avoid future name collisions: - `{MetricName}Config` -> `{MetricName}MetricConfig` - `{MetricName}AttributeKey` -> `{MetricName}MetricAttributeKey` For example, for the `system.cpu.frequency` metric: - `SystemCPUFrequencyConfig` -> `SystemCPUFrequencyMetricConfig` - `SystemCPUFrequencyAttributeKey` -> `SystemCPUFrequencyMetricAttributeKey`
1 parent 9884a45 commit 12a8fe0

18 files changed

Lines changed: 563 additions & 563 deletions

File tree

cmd/mdatagen/internal/sampleconnector/internal/metadata/config.schema.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $defs:
55
type: object
66
properties:
77
default.metric:
8-
description: "DefaultMetricConfig provides config for the default.metric metric."
8+
description: "DefaultMetricMetricConfig provides config for the default.metric metric."
99
type: object
1010
properties:
1111
enabled:
@@ -36,14 +36,14 @@ $defs:
3636
- "slice_attr"
3737
- "map_attr"
3838
default.metric.to_be_removed:
39-
description: "DefaultMetricToBeRemovedConfig provides config for the default.metric.to_be_removed metric."
39+
description: "DefaultMetricToBeRemovedMetricConfig provides config for the default.metric.to_be_removed metric."
4040
type: object
4141
properties:
4242
enabled:
4343
type: boolean
4444
default: true
4545
metric.input_type:
46-
description: "MetricInputTypeConfig provides config for the metric.input_type metric."
46+
description: "MetricInputTypeMetricConfig provides config for the metric.input_type metric."
4747
type: object
4848
properties:
4949
enabled:
@@ -74,7 +74,7 @@ $defs:
7474
- "slice_attr"
7575
- "map_attr"
7676
optional.metric:
77-
description: "OptionalMetricConfig provides config for the optional.metric metric."
77+
description: "OptionalMetricMetricConfig provides config for the optional.metric metric."
7878
type: object
7979
properties:
8080
enabled:
@@ -101,7 +101,7 @@ $defs:
101101
- "boolean_attr"
102102
- "boolean_attr2"
103103
optional.metric.empty_unit:
104-
description: "OptionalMetricEmptyUnitConfig provides config for the optional.metric.empty_unit metric."
104+
description: "OptionalMetricEmptyUnitMetricConfig provides config for the optional.metric.empty_unit metric."
105105
type: object
106106
properties:
107107
enabled:
@@ -126,7 +126,7 @@ $defs:
126126
- "string_attr"
127127
- "boolean_attr"
128128
reaggregate.metric:
129-
description: "ReaggregateMetricConfig provides config for the reaggregate.metric metric."
129+
description: "ReaggregateMetricMetricConfig provides config for the reaggregate.metric metric."
130130
type: object
131131
properties:
132132
enabled:

cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_config.go

Lines changed: 82 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/mdatagen/internal/sampleconnector/internal/metadata/generated_config_test.go

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)