Commit 83a6fbf
fix: use oci.resourceName for OCIMYSQLDATABASE entity synthesis
The synthesis rule incorrectly referenced oci.resourceDisplayName which
does not exist in the actual metric payload from oci-metric-streams.
This caused entity synthesis to fail silently, resulting in entities
with type NA in the GUID that never appear in the catalog.
Changes:
- definition.stg.yml: name field changed to oci.resourceName (matching
other OCI entity definitions like autonomousdatabase and postgresql)
- definition.stg.yml: goldenTags updated to only reference attributes
that actually exist in metric data (oci.compartmentId, oci.region,
oci.accountName)
- tests/Metric.stg.json: updated to match real metric payload structure
from oci-metric-streams collector
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6b8abe9 commit 83a6fbf
2 files changed
Lines changed: 14 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
| 6 | + | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
| |||
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | | - | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| |||
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
8 | 4 | | |
9 | 5 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
0 commit comments