@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
@@ -4,6 +4,7 @@ import type { AlertEvidencePresentation, AlertEvidenceSnapshot, AlertOccurrenceR
4
4
  import type { AlertRef } from './alertRef';
5
5
  import type { AlertCorrelationDecision } from './decision';
6
6
  import type { AlertCorrelationFacts, AlertTimeWindow } from './facts';
7
+ import { type DatadogCurrentMonitorQueryScope, type DatadogMonitorQueryTarget } from './datadogMonitorQuery';
7
8
  export declare const alertCorrelationDiagnosticsSchema: z.ZodObject<{
8
9
  providerDetailFetched: z.ZodBoolean;
9
10
  evidenceSource: z.ZodString;
@@ -757,6 +758,90 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
757
758
  originalIncidentEnd: "unknown";
758
759
  receivedAt: string;
759
760
  };
761
+ }>, z.ZodEffects<z.ZodObject<{
762
+ capturedAt: z.ZodString;
763
+ observedAt: z.ZodString;
764
+ startsAt: z.ZodNull;
765
+ endsAt: z.ZodNull;
766
+ isOpenEnded: z.ZodBoolean;
767
+ provenance: z.ZodObject<{
768
+ kind: z.ZodLiteral<"datadog_current_monitor_query_scope">;
769
+ observedAt: z.ZodString;
770
+ checkedAt: z.ZodString;
771
+ scopeBasis: z.ZodLiteral<"current_monitor_configuration">;
772
+ originalIncidentStart: z.ZodLiteral<"unknown">;
773
+ originalIncidentEnd: z.ZodLiteral<"unknown">;
774
+ }, "strict", z.ZodTypeAny, {
775
+ kind: "datadog_current_monitor_query_scope";
776
+ observedAt: string;
777
+ originalIncidentStart: "unknown";
778
+ originalIncidentEnd: "unknown";
779
+ checkedAt: string;
780
+ scopeBasis: "current_monitor_configuration";
781
+ }, {
782
+ kind: "datadog_current_monitor_query_scope";
783
+ observedAt: string;
784
+ originalIncidentStart: "unknown";
785
+ originalIncidentEnd: "unknown";
786
+ checkedAt: string;
787
+ scopeBasis: "current_monitor_configuration";
788
+ }>;
789
+ }, "strict", z.ZodTypeAny, {
790
+ observedAt: string;
791
+ capturedAt: string;
792
+ startsAt: null;
793
+ endsAt: null;
794
+ isOpenEnded: boolean;
795
+ provenance: {
796
+ kind: "datadog_current_monitor_query_scope";
797
+ observedAt: string;
798
+ originalIncidentStart: "unknown";
799
+ originalIncidentEnd: "unknown";
800
+ checkedAt: string;
801
+ scopeBasis: "current_monitor_configuration";
802
+ };
803
+ }, {
804
+ observedAt: string;
805
+ capturedAt: string;
806
+ startsAt: null;
807
+ endsAt: null;
808
+ isOpenEnded: boolean;
809
+ provenance: {
810
+ kind: "datadog_current_monitor_query_scope";
811
+ observedAt: string;
812
+ originalIncidentStart: "unknown";
813
+ originalIncidentEnd: "unknown";
814
+ checkedAt: string;
815
+ scopeBasis: "current_monitor_configuration";
816
+ };
817
+ }>, {
818
+ observedAt: string;
819
+ capturedAt: string;
820
+ startsAt: null;
821
+ endsAt: null;
822
+ isOpenEnded: boolean;
823
+ provenance: {
824
+ kind: "datadog_current_monitor_query_scope";
825
+ observedAt: string;
826
+ originalIncidentStart: "unknown";
827
+ originalIncidentEnd: "unknown";
828
+ checkedAt: string;
829
+ scopeBasis: "current_monitor_configuration";
830
+ };
831
+ }, {
832
+ observedAt: string;
833
+ capturedAt: string;
834
+ startsAt: null;
835
+ endsAt: null;
836
+ isOpenEnded: boolean;
837
+ provenance: {
838
+ kind: "datadog_current_monitor_query_scope";
839
+ observedAt: string;
840
+ originalIncidentStart: "unknown";
841
+ originalIncidentEnd: "unknown";
842
+ checkedAt: string;
843
+ scopeBasis: "current_monitor_configuration";
844
+ };
760
845
  }>]>;
761
846
  presentation: z.ZodObject<{
762
847
  title: z.ZodOptional<z.ZodString>;
@@ -1109,6 +1194,90 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
1109
1194
  originalIncidentEnd: "unknown";
1110
1195
  receivedAt: string;
1111
1196
  };
1197
+ }>, z.ZodEffects<z.ZodObject<{
1198
+ capturedAt: z.ZodString;
1199
+ observedAt: z.ZodString;
1200
+ startsAt: z.ZodNull;
1201
+ endsAt: z.ZodNull;
1202
+ isOpenEnded: z.ZodBoolean;
1203
+ provenance: z.ZodObject<{
1204
+ kind: z.ZodLiteral<"datadog_current_monitor_query_scope">;
1205
+ observedAt: z.ZodString;
1206
+ checkedAt: z.ZodString;
1207
+ scopeBasis: z.ZodLiteral<"current_monitor_configuration">;
1208
+ originalIncidentStart: z.ZodLiteral<"unknown">;
1209
+ originalIncidentEnd: z.ZodLiteral<"unknown">;
1210
+ }, "strict", z.ZodTypeAny, {
1211
+ kind: "datadog_current_monitor_query_scope";
1212
+ observedAt: string;
1213
+ originalIncidentStart: "unknown";
1214
+ originalIncidentEnd: "unknown";
1215
+ checkedAt: string;
1216
+ scopeBasis: "current_monitor_configuration";
1217
+ }, {
1218
+ kind: "datadog_current_monitor_query_scope";
1219
+ observedAt: string;
1220
+ originalIncidentStart: "unknown";
1221
+ originalIncidentEnd: "unknown";
1222
+ checkedAt: string;
1223
+ scopeBasis: "current_monitor_configuration";
1224
+ }>;
1225
+ }, "strict", z.ZodTypeAny, {
1226
+ observedAt: string;
1227
+ capturedAt: string;
1228
+ startsAt: null;
1229
+ endsAt: null;
1230
+ isOpenEnded: boolean;
1231
+ provenance: {
1232
+ kind: "datadog_current_monitor_query_scope";
1233
+ observedAt: string;
1234
+ originalIncidentStart: "unknown";
1235
+ originalIncidentEnd: "unknown";
1236
+ checkedAt: string;
1237
+ scopeBasis: "current_monitor_configuration";
1238
+ };
1239
+ }, {
1240
+ observedAt: string;
1241
+ capturedAt: string;
1242
+ startsAt: null;
1243
+ endsAt: null;
1244
+ isOpenEnded: boolean;
1245
+ provenance: {
1246
+ kind: "datadog_current_monitor_query_scope";
1247
+ observedAt: string;
1248
+ originalIncidentStart: "unknown";
1249
+ originalIncidentEnd: "unknown";
1250
+ checkedAt: string;
1251
+ scopeBasis: "current_monitor_configuration";
1252
+ };
1253
+ }>, {
1254
+ observedAt: string;
1255
+ capturedAt: string;
1256
+ startsAt: null;
1257
+ endsAt: null;
1258
+ isOpenEnded: boolean;
1259
+ provenance: {
1260
+ kind: "datadog_current_monitor_query_scope";
1261
+ observedAt: string;
1262
+ originalIncidentStart: "unknown";
1263
+ originalIncidentEnd: "unknown";
1264
+ checkedAt: string;
1265
+ scopeBasis: "current_monitor_configuration";
1266
+ };
1267
+ }, {
1268
+ observedAt: string;
1269
+ capturedAt: string;
1270
+ startsAt: null;
1271
+ endsAt: null;
1272
+ isOpenEnded: boolean;
1273
+ provenance: {
1274
+ kind: "datadog_current_monitor_query_scope";
1275
+ observedAt: string;
1276
+ originalIncidentStart: "unknown";
1277
+ originalIncidentEnd: "unknown";
1278
+ checkedAt: string;
1279
+ scopeBasis: "current_monitor_configuration";
1280
+ };
1112
1281
  }>]>;
1113
1282
  labels: z.ZodArray<z.ZodObject<{
1114
1283
  key: z.ZodString;
@@ -1417,6 +1586,103 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
1417
1586
  providerLastTriggeredAt?: string | undefined;
1418
1587
  providerLastResolvedAt?: string | undefined;
1419
1588
  }>>;
1589
+ currentDatadogMonitorQuery: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1590
+ checkedAt: z.ZodString;
1591
+ integrationId: z.ZodString;
1592
+ monitorId: z.ZodString;
1593
+ occurrenceId: z.ZodString;
1594
+ evidenceRef: z.ZodString;
1595
+ classificationFingerprint: z.ZodString;
1596
+ queryFingerprint: z.ZodString;
1597
+ scope: z.ZodEffects<z.ZodObject<{
1598
+ clusterName: z.ZodString;
1599
+ namespace: z.ZodString;
1600
+ deployment: z.ZodString;
1601
+ }, "strict", z.ZodTypeAny, {
1602
+ clusterName: string;
1603
+ namespace: string;
1604
+ deployment: string;
1605
+ }, {
1606
+ clusterName: string;
1607
+ namespace: string;
1608
+ deployment: string;
1609
+ }>, {
1610
+ clusterName: string;
1611
+ namespace: string;
1612
+ deployment: string;
1613
+ }, {
1614
+ clusterName: string;
1615
+ namespace: string;
1616
+ deployment: string;
1617
+ }>;
1618
+ observedAt: z.ZodString;
1619
+ schemaVersion: z.ZodLiteral<"scoutflo.datadog.current-monitor-query.v1">;
1620
+ profile: z.ZodLiteral<"metric_query_kubernetes_deployment_v1">;
1621
+ }, "strict", z.ZodTypeAny, {
1622
+ integrationId: string;
1623
+ observedAt: string;
1624
+ monitorId: string;
1625
+ scope: {
1626
+ clusterName: string;
1627
+ namespace: string;
1628
+ deployment: string;
1629
+ };
1630
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
1631
+ occurrenceId: string;
1632
+ evidenceRef: string;
1633
+ checkedAt: string;
1634
+ profile: "metric_query_kubernetes_deployment_v1";
1635
+ classificationFingerprint: string;
1636
+ queryFingerprint: string;
1637
+ }, {
1638
+ integrationId: string;
1639
+ observedAt: string;
1640
+ monitorId: string;
1641
+ scope: {
1642
+ clusterName: string;
1643
+ namespace: string;
1644
+ deployment: string;
1645
+ };
1646
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
1647
+ occurrenceId: string;
1648
+ evidenceRef: string;
1649
+ checkedAt: string;
1650
+ profile: "metric_query_kubernetes_deployment_v1";
1651
+ classificationFingerprint: string;
1652
+ queryFingerprint: string;
1653
+ }>, {
1654
+ integrationId: string;
1655
+ observedAt: string;
1656
+ monitorId: string;
1657
+ scope: {
1658
+ clusterName: string;
1659
+ namespace: string;
1660
+ deployment: string;
1661
+ };
1662
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
1663
+ occurrenceId: string;
1664
+ evidenceRef: string;
1665
+ checkedAt: string;
1666
+ profile: "metric_query_kubernetes_deployment_v1";
1667
+ classificationFingerprint: string;
1668
+ queryFingerprint: string;
1669
+ }, {
1670
+ integrationId: string;
1671
+ observedAt: string;
1672
+ monitorId: string;
1673
+ scope: {
1674
+ clusterName: string;
1675
+ namespace: string;
1676
+ deployment: string;
1677
+ };
1678
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
1679
+ occurrenceId: string;
1680
+ evidenceRef: string;
1681
+ checkedAt: string;
1682
+ profile: "metric_query_kubernetes_deployment_v1";
1683
+ classificationFingerprint: string;
1684
+ queryFingerprint: string;
1685
+ }>>;
1420
1686
  severity: z.ZodOptional<z.ZodObject<{
1421
1687
  key: z.ZodString;
1422
1688
  value: z.ZodString;
@@ -1552,6 +1818,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
1552
1818
  };
1553
1819
  observedAt?: string | undefined;
1554
1820
  endsAt?: string | undefined;
1821
+ } | {
1822
+ observedAt: string;
1823
+ capturedAt: string;
1824
+ startsAt: null;
1825
+ endsAt: null;
1826
+ isOpenEnded: boolean;
1827
+ provenance: {
1828
+ kind: "datadog_current_monitor_query_scope";
1829
+ observedAt: string;
1830
+ originalIncidentStart: "unknown";
1831
+ originalIncidentEnd: "unknown";
1832
+ checkedAt: string;
1833
+ scopeBasis: "current_monitor_configuration";
1834
+ };
1555
1835
  } | {
1556
1836
  capturedAt: string;
1557
1837
  startsAt: string;
@@ -1675,6 +1955,23 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
1675
1955
  providerLastTriggeredAt?: string | undefined;
1676
1956
  providerLastResolvedAt?: string | undefined;
1677
1957
  } | undefined;
1958
+ currentDatadogMonitorQuery?: {
1959
+ integrationId: string;
1960
+ observedAt: string;
1961
+ monitorId: string;
1962
+ scope: {
1963
+ clusterName: string;
1964
+ namespace: string;
1965
+ deployment: string;
1966
+ };
1967
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
1968
+ occurrenceId: string;
1969
+ evidenceRef: string;
1970
+ checkedAt: string;
1971
+ profile: "metric_query_kubernetes_deployment_v1";
1972
+ classificationFingerprint: string;
1973
+ queryFingerprint: string;
1974
+ } | undefined;
1678
1975
  }, {
1679
1976
  integrationId: string;
1680
1977
  provider: string;
@@ -1734,6 +2031,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
1734
2031
  };
1735
2032
  observedAt?: string | undefined;
1736
2033
  endsAt?: string | undefined;
2034
+ } | {
2035
+ observedAt: string;
2036
+ capturedAt: string;
2037
+ startsAt: null;
2038
+ endsAt: null;
2039
+ isOpenEnded: boolean;
2040
+ provenance: {
2041
+ kind: "datadog_current_monitor_query_scope";
2042
+ observedAt: string;
2043
+ originalIncidentStart: "unknown";
2044
+ originalIncidentEnd: "unknown";
2045
+ checkedAt: string;
2046
+ scopeBasis: "current_monitor_configuration";
2047
+ };
1737
2048
  } | {
1738
2049
  capturedAt: string;
1739
2050
  startsAt: string;
@@ -1857,6 +2168,23 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
1857
2168
  providerLastTriggeredAt?: string | undefined;
1858
2169
  providerLastResolvedAt?: string | undefined;
1859
2170
  } | undefined;
2171
+ currentDatadogMonitorQuery?: {
2172
+ integrationId: string;
2173
+ observedAt: string;
2174
+ monitorId: string;
2175
+ scope: {
2176
+ clusterName: string;
2177
+ namespace: string;
2178
+ deployment: string;
2179
+ };
2180
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
2181
+ occurrenceId: string;
2182
+ evidenceRef: string;
2183
+ checkedAt: string;
2184
+ profile: "metric_query_kubernetes_deployment_v1";
2185
+ classificationFingerprint: string;
2186
+ queryFingerprint: string;
2187
+ } | undefined;
1860
2188
  }>, {
1861
2189
  integrationId: string;
1862
2190
  provider: string;
@@ -1916,6 +2244,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
1916
2244
  };
1917
2245
  observedAt?: string | undefined;
1918
2246
  endsAt?: string | undefined;
2247
+ } | {
2248
+ observedAt: string;
2249
+ capturedAt: string;
2250
+ startsAt: null;
2251
+ endsAt: null;
2252
+ isOpenEnded: boolean;
2253
+ provenance: {
2254
+ kind: "datadog_current_monitor_query_scope";
2255
+ observedAt: string;
2256
+ originalIncidentStart: "unknown";
2257
+ originalIncidentEnd: "unknown";
2258
+ checkedAt: string;
2259
+ scopeBasis: "current_monitor_configuration";
2260
+ };
1919
2261
  } | {
1920
2262
  capturedAt: string;
1921
2263
  startsAt: string;
@@ -2039,6 +2381,23 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
2039
2381
  providerLastTriggeredAt?: string | undefined;
2040
2382
  providerLastResolvedAt?: string | undefined;
2041
2383
  } | undefined;
2384
+ currentDatadogMonitorQuery?: {
2385
+ integrationId: string;
2386
+ observedAt: string;
2387
+ monitorId: string;
2388
+ scope: {
2389
+ clusterName: string;
2390
+ namespace: string;
2391
+ deployment: string;
2392
+ };
2393
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
2394
+ occurrenceId: string;
2395
+ evidenceRef: string;
2396
+ checkedAt: string;
2397
+ profile: "metric_query_kubernetes_deployment_v1";
2398
+ classificationFingerprint: string;
2399
+ queryFingerprint: string;
2400
+ } | undefined;
2042
2401
  }, {
2043
2402
  integrationId: string;
2044
2403
  provider: string;
@@ -2098,6 +2457,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
2098
2457
  };
2099
2458
  observedAt?: string | undefined;
2100
2459
  endsAt?: string | undefined;
2460
+ } | {
2461
+ observedAt: string;
2462
+ capturedAt: string;
2463
+ startsAt: null;
2464
+ endsAt: null;
2465
+ isOpenEnded: boolean;
2466
+ provenance: {
2467
+ kind: "datadog_current_monitor_query_scope";
2468
+ observedAt: string;
2469
+ originalIncidentStart: "unknown";
2470
+ originalIncidentEnd: "unknown";
2471
+ checkedAt: string;
2472
+ scopeBasis: "current_monitor_configuration";
2473
+ };
2101
2474
  } | {
2102
2475
  capturedAt: string;
2103
2476
  startsAt: string;
@@ -2221,7 +2594,204 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
2221
2594
  providerLastTriggeredAt?: string | undefined;
2222
2595
  providerLastResolvedAt?: string | undefined;
2223
2596
  } | undefined;
2597
+ currentDatadogMonitorQuery?: {
2598
+ integrationId: string;
2599
+ observedAt: string;
2600
+ monitorId: string;
2601
+ scope: {
2602
+ clusterName: string;
2603
+ namespace: string;
2604
+ deployment: string;
2605
+ };
2606
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
2607
+ occurrenceId: string;
2608
+ evidenceRef: string;
2609
+ checkedAt: string;
2610
+ profile: "metric_query_kubernetes_deployment_v1";
2611
+ classificationFingerprint: string;
2612
+ queryFingerprint: string;
2613
+ } | undefined;
2224
2614
  }>;
2615
+ currentDatadogMonitorQuery: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2616
+ checkedAt: z.ZodString;
2617
+ integrationId: z.ZodString;
2618
+ monitorId: z.ZodString;
2619
+ occurrenceId: z.ZodString;
2620
+ evidenceRef: z.ZodString;
2621
+ classificationFingerprint: z.ZodString;
2622
+ queryFingerprint: z.ZodString;
2623
+ scope: z.ZodEffects<z.ZodObject<{
2624
+ clusterName: z.ZodString;
2625
+ namespace: z.ZodString;
2626
+ deployment: z.ZodString;
2627
+ }, "strict", z.ZodTypeAny, {
2628
+ clusterName: string;
2629
+ namespace: string;
2630
+ deployment: string;
2631
+ }, {
2632
+ clusterName: string;
2633
+ namespace: string;
2634
+ deployment: string;
2635
+ }>, {
2636
+ clusterName: string;
2637
+ namespace: string;
2638
+ deployment: string;
2639
+ }, {
2640
+ clusterName: string;
2641
+ namespace: string;
2642
+ deployment: string;
2643
+ }>;
2644
+ observedAt: z.ZodString;
2645
+ schemaVersion: z.ZodLiteral<"scoutflo.datadog.current-monitor-query.v1">;
2646
+ profile: z.ZodLiteral<"metric_query_kubernetes_deployment_v1">;
2647
+ }, "strict", z.ZodTypeAny, {
2648
+ integrationId: string;
2649
+ observedAt: string;
2650
+ monitorId: string;
2651
+ scope: {
2652
+ clusterName: string;
2653
+ namespace: string;
2654
+ deployment: string;
2655
+ };
2656
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
2657
+ occurrenceId: string;
2658
+ evidenceRef: string;
2659
+ checkedAt: string;
2660
+ profile: "metric_query_kubernetes_deployment_v1";
2661
+ classificationFingerprint: string;
2662
+ queryFingerprint: string;
2663
+ }, {
2664
+ integrationId: string;
2665
+ observedAt: string;
2666
+ monitorId: string;
2667
+ scope: {
2668
+ clusterName: string;
2669
+ namespace: string;
2670
+ deployment: string;
2671
+ };
2672
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
2673
+ occurrenceId: string;
2674
+ evidenceRef: string;
2675
+ checkedAt: string;
2676
+ profile: "metric_query_kubernetes_deployment_v1";
2677
+ classificationFingerprint: string;
2678
+ queryFingerprint: string;
2679
+ }>, {
2680
+ integrationId: string;
2681
+ observedAt: string;
2682
+ monitorId: string;
2683
+ scope: {
2684
+ clusterName: string;
2685
+ namespace: string;
2686
+ deployment: string;
2687
+ };
2688
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
2689
+ occurrenceId: string;
2690
+ evidenceRef: string;
2691
+ checkedAt: string;
2692
+ profile: "metric_query_kubernetes_deployment_v1";
2693
+ classificationFingerprint: string;
2694
+ queryFingerprint: string;
2695
+ }, {
2696
+ integrationId: string;
2697
+ observedAt: string;
2698
+ monitorId: string;
2699
+ scope: {
2700
+ clusterName: string;
2701
+ namespace: string;
2702
+ deployment: string;
2703
+ };
2704
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
2705
+ occurrenceId: string;
2706
+ evidenceRef: string;
2707
+ checkedAt: string;
2708
+ profile: "metric_query_kubernetes_deployment_v1";
2709
+ classificationFingerprint: string;
2710
+ queryFingerprint: string;
2711
+ }>>;
2712
+ datadogMonitorQueryTarget: z.ZodOptional<z.ZodObject<{
2713
+ topologyVersionId: z.ZodString;
2714
+ serviceId: z.ZodString;
2715
+ serviceName: z.ZodString;
2716
+ resourceId: z.ZodString;
2717
+ deployedAsRelationshipId: z.ZodString;
2718
+ clusterId: z.ZodString;
2719
+ deploymentUid: z.ZodString;
2720
+ checkedAt: z.ZodString;
2721
+ integrationId: z.ZodString;
2722
+ monitorId: z.ZodString;
2723
+ occurrenceId: z.ZodString;
2724
+ evidenceRef: z.ZodString;
2725
+ classificationFingerprint: z.ZodString;
2726
+ queryFingerprint: z.ZodString;
2727
+ scope: z.ZodEffects<z.ZodObject<{
2728
+ clusterName: z.ZodString;
2729
+ namespace: z.ZodString;
2730
+ deployment: z.ZodString;
2731
+ }, "strict", z.ZodTypeAny, {
2732
+ clusterName: string;
2733
+ namespace: string;
2734
+ deployment: string;
2735
+ }, {
2736
+ clusterName: string;
2737
+ namespace: string;
2738
+ deployment: string;
2739
+ }>, {
2740
+ clusterName: string;
2741
+ namespace: string;
2742
+ deployment: string;
2743
+ }, {
2744
+ clusterName: string;
2745
+ namespace: string;
2746
+ deployment: string;
2747
+ }>;
2748
+ observedAt: z.ZodString;
2749
+ kind: z.ZodLiteral<"datadog_kubernetes_monitor_query">;
2750
+ }, "strict", z.ZodTypeAny, {
2751
+ integrationId: string;
2752
+ kind: "datadog_kubernetes_monitor_query";
2753
+ observedAt: string;
2754
+ monitorId: string;
2755
+ scope: {
2756
+ clusterName: string;
2757
+ namespace: string;
2758
+ deployment: string;
2759
+ };
2760
+ occurrenceId: string;
2761
+ evidenceRef: string;
2762
+ topologyVersionId: string;
2763
+ serviceId: string;
2764
+ serviceName: string;
2765
+ resourceId: string;
2766
+ deployedAsRelationshipId: string;
2767
+ clusterId: string;
2768
+ deploymentUid: string;
2769
+ checkedAt: string;
2770
+ classificationFingerprint: string;
2771
+ queryFingerprint: string;
2772
+ }, {
2773
+ integrationId: string;
2774
+ kind: "datadog_kubernetes_monitor_query";
2775
+ observedAt: string;
2776
+ monitorId: string;
2777
+ scope: {
2778
+ clusterName: string;
2779
+ namespace: string;
2780
+ deployment: string;
2781
+ };
2782
+ occurrenceId: string;
2783
+ evidenceRef: string;
2784
+ topologyVersionId: string;
2785
+ serviceId: string;
2786
+ serviceName: string;
2787
+ resourceId: string;
2788
+ deployedAsRelationshipId: string;
2789
+ clusterId: string;
2790
+ deploymentUid: string;
2791
+ checkedAt: string;
2792
+ classificationFingerprint: string;
2793
+ queryFingerprint: string;
2794
+ }>>;
2225
2795
  resolution: z.ZodObject<{
2226
2796
  status: z.ZodEnum<["resolved", "ambiguous", "degraded", "unresolved", "evidence_available_topology_missing", "insufficient_evidence"]>;
2227
2797
  target: z.ZodNullable<z.ZodObject<{
@@ -9437,6 +10007,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
9437
10007
  };
9438
10008
  observedAt?: string | undefined;
9439
10009
  endsAt?: string | undefined;
10010
+ } | {
10011
+ observedAt: string;
10012
+ capturedAt: string;
10013
+ startsAt: null;
10014
+ endsAt: null;
10015
+ isOpenEnded: boolean;
10016
+ provenance: {
10017
+ kind: "datadog_current_monitor_query_scope";
10018
+ observedAt: string;
10019
+ originalIncidentStart: "unknown";
10020
+ originalIncidentEnd: "unknown";
10021
+ checkedAt: string;
10022
+ scopeBasis: "current_monitor_configuration";
10023
+ };
9440
10024
  } | {
9441
10025
  capturedAt: string;
9442
10026
  startsAt: string;
@@ -9590,6 +10174,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
9590
10174
  };
9591
10175
  observedAt?: string | undefined;
9592
10176
  endsAt?: string | undefined;
10177
+ } | {
10178
+ observedAt: string;
10179
+ capturedAt: string;
10180
+ startsAt: null;
10181
+ endsAt: null;
10182
+ isOpenEnded: boolean;
10183
+ provenance: {
10184
+ kind: "datadog_current_monitor_query_scope";
10185
+ observedAt: string;
10186
+ originalIncidentStart: "unknown";
10187
+ originalIncidentEnd: "unknown";
10188
+ checkedAt: string;
10189
+ scopeBasis: "current_monitor_configuration";
10190
+ };
9593
10191
  } | {
9594
10192
  capturedAt: string;
9595
10193
  startsAt: string;
@@ -9713,6 +10311,23 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
9713
10311
  providerLastTriggeredAt?: string | undefined;
9714
10312
  providerLastResolvedAt?: string | undefined;
9715
10313
  } | undefined;
10314
+ currentDatadogMonitorQuery?: {
10315
+ integrationId: string;
10316
+ observedAt: string;
10317
+ monitorId: string;
10318
+ scope: {
10319
+ clusterName: string;
10320
+ namespace: string;
10321
+ deployment: string;
10322
+ };
10323
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
10324
+ occurrenceId: string;
10325
+ evidenceRef: string;
10326
+ checkedAt: string;
10327
+ profile: "metric_query_kubernetes_deployment_v1";
10328
+ classificationFingerprint: string;
10329
+ queryFingerprint: string;
10330
+ } | undefined;
9716
10331
  };
9717
10332
  resolution: {
9718
10333
  status: "resolved" | "ambiguous" | "degraded" | "unresolved" | "evidence_available_topology_missing" | "insufficient_evidence";
@@ -10285,6 +10900,46 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
10285
10900
  } & {
10286
10901
  [k: string]: unknown;
10287
10902
  };
10903
+ currentDatadogMonitorQuery?: {
10904
+ integrationId: string;
10905
+ observedAt: string;
10906
+ monitorId: string;
10907
+ scope: {
10908
+ clusterName: string;
10909
+ namespace: string;
10910
+ deployment: string;
10911
+ };
10912
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
10913
+ occurrenceId: string;
10914
+ evidenceRef: string;
10915
+ checkedAt: string;
10916
+ profile: "metric_query_kubernetes_deployment_v1";
10917
+ classificationFingerprint: string;
10918
+ queryFingerprint: string;
10919
+ } | undefined;
10920
+ datadogMonitorQueryTarget?: {
10921
+ integrationId: string;
10922
+ kind: "datadog_kubernetes_monitor_query";
10923
+ observedAt: string;
10924
+ monitorId: string;
10925
+ scope: {
10926
+ clusterName: string;
10927
+ namespace: string;
10928
+ deployment: string;
10929
+ };
10930
+ occurrenceId: string;
10931
+ evidenceRef: string;
10932
+ topologyVersionId: string;
10933
+ serviceId: string;
10934
+ serviceName: string;
10935
+ resourceId: string;
10936
+ deployedAsRelationshipId: string;
10937
+ clusterId: string;
10938
+ deploymentUid: string;
10939
+ checkedAt: string;
10940
+ classificationFingerprint: string;
10941
+ queryFingerprint: string;
10942
+ } | undefined;
10288
10943
  }, {
10289
10944
  presentation: {
10290
10945
  status?: string | undefined;
@@ -10331,6 +10986,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
10331
10986
  };
10332
10987
  observedAt?: string | undefined;
10333
10988
  endsAt?: string | undefined;
10989
+ } | {
10990
+ observedAt: string;
10991
+ capturedAt: string;
10992
+ startsAt: null;
10993
+ endsAt: null;
10994
+ isOpenEnded: boolean;
10995
+ provenance: {
10996
+ kind: "datadog_current_monitor_query_scope";
10997
+ observedAt: string;
10998
+ originalIncidentStart: "unknown";
10999
+ originalIncidentEnd: "unknown";
11000
+ checkedAt: string;
11001
+ scopeBasis: "current_monitor_configuration";
11002
+ };
10334
11003
  } | {
10335
11004
  capturedAt: string;
10336
11005
  startsAt: string;
@@ -10484,6 +11153,20 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
10484
11153
  };
10485
11154
  observedAt?: string | undefined;
10486
11155
  endsAt?: string | undefined;
11156
+ } | {
11157
+ observedAt: string;
11158
+ capturedAt: string;
11159
+ startsAt: null;
11160
+ endsAt: null;
11161
+ isOpenEnded: boolean;
11162
+ provenance: {
11163
+ kind: "datadog_current_monitor_query_scope";
11164
+ observedAt: string;
11165
+ originalIncidentStart: "unknown";
11166
+ originalIncidentEnd: "unknown";
11167
+ checkedAt: string;
11168
+ scopeBasis: "current_monitor_configuration";
11169
+ };
10487
11170
  } | {
10488
11171
  capturedAt: string;
10489
11172
  startsAt: string;
@@ -10607,6 +11290,23 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
10607
11290
  providerLastTriggeredAt?: string | undefined;
10608
11291
  providerLastResolvedAt?: string | undefined;
10609
11292
  } | undefined;
11293
+ currentDatadogMonitorQuery?: {
11294
+ integrationId: string;
11295
+ observedAt: string;
11296
+ monitorId: string;
11297
+ scope: {
11298
+ clusterName: string;
11299
+ namespace: string;
11300
+ deployment: string;
11301
+ };
11302
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
11303
+ occurrenceId: string;
11304
+ evidenceRef: string;
11305
+ checkedAt: string;
11306
+ profile: "metric_query_kubernetes_deployment_v1";
11307
+ classificationFingerprint: string;
11308
+ queryFingerprint: string;
11309
+ } | undefined;
10610
11310
  };
10611
11311
  resolution: {
10612
11312
  status: "resolved" | "ambiguous" | "degraded" | "unresolved" | "evidence_available_topology_missing" | "insufficient_evidence";
@@ -10662,6 +11362,46 @@ export declare const alertInvestigationContextSchema: z.ZodObject<{
10662
11362
  } & {
10663
11363
  [k: string]: unknown;
10664
11364
  };
11365
+ currentDatadogMonitorQuery?: {
11366
+ integrationId: string;
11367
+ observedAt: string;
11368
+ monitorId: string;
11369
+ scope: {
11370
+ clusterName: string;
11371
+ namespace: string;
11372
+ deployment: string;
11373
+ };
11374
+ schemaVersion: "scoutflo.datadog.current-monitor-query.v1";
11375
+ occurrenceId: string;
11376
+ evidenceRef: string;
11377
+ checkedAt: string;
11378
+ profile: "metric_query_kubernetes_deployment_v1";
11379
+ classificationFingerprint: string;
11380
+ queryFingerprint: string;
11381
+ } | undefined;
11382
+ datadogMonitorQueryTarget?: {
11383
+ integrationId: string;
11384
+ kind: "datadog_kubernetes_monitor_query";
11385
+ observedAt: string;
11386
+ monitorId: string;
11387
+ scope: {
11388
+ clusterName: string;
11389
+ namespace: string;
11390
+ deployment: string;
11391
+ };
11392
+ occurrenceId: string;
11393
+ evidenceRef: string;
11394
+ topologyVersionId: string;
11395
+ serviceId: string;
11396
+ serviceName: string;
11397
+ resourceId: string;
11398
+ deployedAsRelationshipId: string;
11399
+ clusterId: string;
11400
+ deploymentUid: string;
11401
+ checkedAt: string;
11402
+ classificationFingerprint: string;
11403
+ queryFingerprint: string;
11404
+ } | undefined;
10665
11405
  topologyContext?: unknown;
10666
11406
  }>;
10667
11407
  export interface AlertInvestigationContext {
@@ -10670,6 +11410,8 @@ export interface AlertInvestigationContext {
10670
11410
  time: AlertTimeWindow;
10671
11411
  presentation: AlertEvidencePresentation;
10672
11412
  facts: AlertCorrelationFacts;
11413
+ currentDatadogMonitorQuery?: DatadogCurrentMonitorQueryScope;
11414
+ datadogMonitorQueryTarget?: DatadogMonitorQueryTarget;
10673
11415
  resolution: AlertCorrelationDecision;
10674
11416
  topologyContext: GatewayTopologyContext;
10675
11417
  bindingHints: unknown[];
@@ -10792,6 +11534,8 @@ export type GatewayAlertInvestigationContextResponse = {
10792
11534
  summary?: AlertEvidencePresentation;
10793
11535
  facts?: unknown;
10794
11536
  resolution: GatewayAlertInvestigationResolution;
11537
+ currentDatadogMonitorQuery?: DatadogCurrentMonitorQueryScope;
11538
+ datadogMonitorQueryTarget?: DatadogMonitorQueryTarget;
10795
11539
  bindingHints?: unknown[] | TopologyBindingHints;
10796
11540
  diagnostics?: GatewayAlertCorrelationDiagnostics;
10797
11541
  reasonCodes?: string[];