@scoutflo/alert-correlation 0.7.2-datadog.0 → 0.7.2-datadog.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +29 -0
  2. package/dist/src/contracts/context.d.ts +744 -0
  3. package/dist/src/contracts/context.js +6 -1
  4. package/dist/src/contracts/context.js.map +1 -1
  5. package/dist/src/contracts/datadogMonitorQuery.d.ts +322 -0
  6. package/dist/src/contracts/datadogMonitorQuery.js +79 -0
  7. package/dist/src/contracts/datadogMonitorQuery.js.map +1 -0
  8. package/dist/src/contracts/facts.d.ts +389 -0
  9. package/dist/src/contracts/facts.js +20 -3
  10. package/dist/src/contracts/facts.js.map +1 -1
  11. package/dist/src/contracts/index.d.ts +1 -0
  12. package/dist/src/contracts/index.js +1 -0
  13. package/dist/src/contracts/index.js.map +1 -1
  14. package/dist/src/extractors/datadogExtractor.js +15 -0
  15. package/dist/src/extractors/datadogExtractor.js.map +1 -1
  16. package/dist/src/extractors/registry.d.ts +31 -0
  17. package/dist/src/extractors/registry.js +4 -0
  18. package/dist/src/extractors/registry.js.map +1 -1
  19. package/dist/src/extractors/types.d.ts +2 -1
  20. package/dist/src/index.d.ts +3 -0
  21. package/dist/src/index.js +3 -0
  22. package/dist/src/index.js.map +1 -1
  23. package/dist/src/matchers/datadogMonitorQueryMatcher.d.ts +4 -0
  24. package/dist/src/matchers/datadogMonitorQueryMatcher.js +55 -0
  25. package/dist/src/matchers/datadogMonitorQueryMatcher.js.map +1 -0
  26. package/dist/src/resolveAlertCorrelation.d.ts +3 -1
  27. package/dist/src/resolveAlertCorrelation.js +9 -4
  28. package/dist/src/resolveAlertCorrelation.js.map +1 -1
  29. package/dist/src/time/normalizeDatadogMonitorQueryTime.d.ts +6 -0
  30. package/dist/src/time/normalizeDatadogMonitorQueryTime.js +69 -0
  31. package/dist/src/time/normalizeDatadogMonitorQueryTime.js.map +1 -0
  32. package/dist/test/datadog-monitor-query.test.d.ts +1 -0
  33. package/dist/test/datadog-monitor-query.test.js +332 -0
  34. package/dist/test/datadog-monitor-query.test.js.map +1 -0
  35. package/package.json +1 -1
package/README.md CHANGED
@@ -82,6 +82,35 @@ generic matching; a conflicting provider candidate remains ambiguous. The
82
82
  result identifies current routing, not historical workload ownership or an APM
83
83
  service alias, and creates no topology relationships.
84
84
 
85
+ ### Datadog fixed monitor queries
86
+
87
+ `currentDatadogMonitorQuery` is a separate internal enrichment issued by Gateway
88
+ after revalidating the ordinary monitor's stored capture, source and current
89
+ native query. The `datadog:<monitorId>` occurrence and closed persisted monitor
90
+ marker remain unchanged. A digest or parsed object is not authorization; these
91
+ fields must never come from public request JSON or arbitrary evidence payloads.
92
+
93
+ The extractor binds the enrichment to the exact original evidence and emits
94
+ only its literal cluster, namespace and Deployment scope. Its time provenance
95
+ keeps the original observation and unknown incident bounds, with a separate
96
+ current query check. It does not infer an APM service, affected service, onset,
97
+ historical ownership or incident cause from the configured query.
98
+
99
+ `datadogMonitorQueryTarget` is a distinct current UID/`DEPLOYED_AS` attestation.
100
+ Both query and target checks must be less than five minutes old, and the target
101
+ check cannot precede the query check. Missing or invalid requested proof stays
102
+ unresolved even when generic provider matching finds a candidate; conflicting
103
+ provider targets remain ambiguous. A monitor with an unsupported query grammar
104
+ continues through the existing ordinary-monitor flow without this enrichment.
105
+ Native group contracts and keys are unchanged.
106
+
107
+ Gateway responses carry the internal enrichment both at top level and in
108
+ `facts.currentDatadogMonitorQuery`, with an optional top-level target. Consumers
109
+ must compare those copies, bind them to the original occurrence, and revalidate
110
+ current source/query/routing authority on renewal. The hosted **Alert correlation
111
+ contracts** workflow builds the shared packages and runs the complete package
112
+ test suite against locked dependencies.
113
+
85
114
  Use this flow when releasing only `@scoutflo/alert-correlation`. Do not publish the root `@scoutflo/integration-sdk` package for an alert-correlation-only release.
86
115
 
87
116
  ### 1. Local Preflight