@scoutflo/alert-correlation 0.7.0-flat.3 → 0.7.1-victorops.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.
- package/README.md +25 -7
- package/dist/src/contracts/context.d.ts +631 -53
- package/dist/src/contracts/context.js +5 -4
- package/dist/src/contracts/context.js.map +1 -1
- package/dist/src/contracts/facts.d.ts +792 -138
- package/dist/src/contracts/facts.js +10 -3
- package/dist/src/contracts/facts.js.map +1 -1
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/contracts/index.js +1 -0
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/topology.d.ts +11 -0
- package/dist/src/contracts/victoropsTime.d.ts +87 -0
- package/dist/src/contracts/victoropsTime.js +29 -0
- package/dist/src/contracts/victoropsTime.js.map +1 -0
- package/dist/src/extractors/registry.d.ts +23 -1
- package/dist/src/extractors/registry.js +9 -0
- package/dist/src/extractors/registry.js.map +1 -1
- package/dist/src/extractors/victoropsExtractor.d.ts +3 -0
- package/dist/src/extractors/victoropsExtractor.js +69 -0
- package/dist/src/extractors/victoropsExtractor.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/matchers/providerRelationshipMatcher.js +3 -0
- package/dist/src/matchers/providerRelationshipMatcher.js.map +1 -1
- package/dist/src/matchers/victoropsMatcher.d.ts +3 -0
- package/dist/src/matchers/victoropsMatcher.js +54 -0
- package/dist/src/matchers/victoropsMatcher.js.map +1 -0
- package/dist/src/time/deriveVictorOpsDiagnosticWindow.d.ts +29 -0
- package/dist/src/time/deriveVictorOpsDiagnosticWindow.js +41 -0
- package/dist/src/time/deriveVictorOpsDiagnosticWindow.js.map +1 -0
- package/dist/src/time/normalizeAlertTime.js +3 -0
- package/dist/src/time/normalizeAlertTime.js.map +1 -1
- package/dist/src/time/normalizeVictorOpsTime.d.ts +4 -0
- package/dist/src/time/normalizeVictorOpsTime.js +30 -0
- package/dist/src/time/normalizeVictorOpsTime.js.map +1 -0
- package/dist/test/hyperdx-current-extractor.test.js +2 -0
- package/dist/test/hyperdx-current-extractor.test.js.map +1 -1
- package/dist/test/hyperdx-selector-correlation.test.js +1 -0
- package/dist/test/hyperdx-selector-correlation.test.js.map +1 -1
- package/dist/test/time.test.js +2 -2
- package/dist/test/time.test.js.map +1 -1
- package/dist/test/victorops-expanded.test.d.ts +1 -0
- package/dist/test/victorops-expanded.test.js +158 -0
- package/dist/test/victorops-expanded.test.js.map +1 -0
- package/dist/test/victorops-window.test.d.ts +1 -0
- package/dist/test/victorops-window.test.js +99 -0
- package/dist/test/victorops-window.test.js.map +1 -0
- package/dist/test/victorops.test.d.ts +1 -0
- package/dist/test/victorops.test.js +46 -0
- package/dist/test/victorops.test.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,17 +14,17 @@ This package consumes core entity, fact, and status primitives where safe. It al
|
|
|
14
14
|
|
|
15
15
|
## Version
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
The package manifest is the version and exact topology-contracts dependency authority.
|
|
18
|
+
Publish changed topology contracts first, then pin that published version here before
|
|
19
|
+
publishing alert correlation. A source checkout is not evidence of a published release.
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
structured release, and fallback score classes. Equal top scores remain
|
|
22
|
-
ambiguous and never auto-resolve.
|
|
21
|
+
Sentry matching preserves explicit integration/project, corroborated project,
|
|
22
|
+
structured release, and fallback score classes. Equal top scores remain ambiguous.
|
|
23
23
|
|
|
24
24
|
Gateway and Voyager should consume the exact published version:
|
|
25
25
|
|
|
26
26
|
```json
|
|
27
|
-
"@scoutflo/alert-correlation": "
|
|
27
|
+
"@scoutflo/alert-correlation": "<exact-published-version>"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
During local development, consumers may temporarily use a `file:` dependency pointed at `../integration-sdk/packages/alert-correlation`, then replace it with the exact npm version before release.
|
|
@@ -44,6 +44,24 @@ Important matching rules:
|
|
|
44
44
|
- Prometheus-compatible extractors include rule/query/evaluation facts such as `rule.name`, `rule.query`, `expr`, `query`, `for`, `activeAt`, `lastEvaluation`, `value`, and `alertstate`.
|
|
45
45
|
- The Sentry extractor includes issue, project/org, metadata, SDK, release, transaction, latest-event, and trace identity facts when present.
|
|
46
46
|
|
|
47
|
+
## Splunk On-Call / VictorOps
|
|
48
|
+
|
|
49
|
+
The v2 VictorOps extractor consumes only the authorized Gateway `victorops_incident_evidence`
|
|
50
|
+
v1 envelope. Provider, connection, incident, occurrence, evidence reference and observation
|
|
51
|
+
must agree. It emits native `incidentNumber`, optional `firstAlertUuid`, `lastAlertUuid`,
|
|
52
|
+
`currentPhase`, and safe exact `entityId`; the native `service` field is a weak `serviceName`
|
|
53
|
+
hint. Arbitrary labels, raw alert payloads, host aliases and message text are not harvested.
|
|
54
|
+
Unknown onset stays unknown, and `RESOLVED` never proves technical recovery.
|
|
55
|
+
|
|
56
|
+
Topology matching requires the active `service_monitored_by_victorops_alerting/v1`
|
|
57
|
+
contract, `monitoring.victorops`, the same Gateway-authorized `sourceResource.integrationId`,
|
|
58
|
+
and an existing active human-asserted manual mapping. Gateway must project its persisted
|
|
59
|
+
assertion metadata. The selector is exactly one entity ID or native service name, and
|
|
60
|
+
host-like entity IDs are permitted. Duplicate edges do not increase confidence; multiple
|
|
61
|
+
matching services remain ambiguous. Native service observations alone cannot create or
|
|
62
|
+
anchor a relationship. Gateway owns tenant authorization, source discovery, application,
|
|
63
|
+
lifecycle and explicit unavailable-evidence outcomes.
|
|
64
|
+
|
|
47
65
|
## Release Flow
|
|
48
66
|
|
|
49
67
|
Use this flow when releasing only `@scoutflo/alert-correlation`. Do not publish the root `@scoutflo/integration-sdk` package for an alert-correlation-only release.
|
|
@@ -101,7 +119,7 @@ If `npm view` returns `E404` immediately after a successful publish, wait and re
|
|
|
101
119
|
After the version is visible, update Gateway and Voyager from any local `file:` dependency to the exact published version, for example:
|
|
102
120
|
|
|
103
121
|
```json
|
|
104
|
-
"@scoutflo/alert-correlation": "
|
|
122
|
+
"@scoutflo/alert-correlation": "<exact-published-version>"
|
|
105
123
|
```
|
|
106
124
|
|
|
107
125
|
Run install and the relevant tests in each consumer repo after updating its dependency lockfile.
|