@pipeline-builder/pipeline-data 6.2.0 → 6.2.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.
@@ -1,9 +1,9 @@
1
1
  import { type AnalyticsScope } from './reporting/analytics-queries.js';
2
2
  import type { LastDeployedCommit } from './reporting/last-deploy.js';
3
3
  import { type AttentionRuleId } from './reporting/needs-attention.js';
4
- import type { ExecutionCount, TimeSeriesEntry, DurationStats, PipelineExecution, StageFailure, StageBottleneck, ActionFailure, ErrorEntry, PluginSummary, TypeComputeDistribution, VersionCount, BuildTimeSeriesEntry, BuildDuration, BuildFailure, PluginRuntimeAggregate, PluginRuntimeFilter, PluginRuntimeStats, ReportingRetentionOptions, ReportingRetentionCounts, DoraOptions, ReportingSettings, ReportingSettingsPatch, IncidentListItem, IncidentTestResult, DoraMetrics, DoraTrendPoint, BuildHealth, IncidentInput, IncidentWrite, DeploymentOutcomeWrite, IngestCaller, IngestEvent, IngestMetric, IngestResult, IngestHealthStatus, BucketOptions } from './reporting/types.js';
4
+ import type { ExecutionCount, TimeSeriesEntry, DurationStats, PipelineExecution, StageFailure, StageBottleneck, ActionFailure, ErrorEntry, ErrorCategoryEntry, FlakyStage, FlakyStageTrendPoint, PluginSummary, TypeComputeDistribution, VersionCount, BuildTimeSeriesEntry, BuildDuration, BuildFailure, PluginRuntimeAggregate, PluginRuntimeFilter, PluginRuntimeStats, ReportingRetentionOptions, ReportingRetentionCounts, DoraOptions, ReportingSettings, ReportingSettingsPatch, IncidentListItem, IncidentTestResult, DoraMetrics, DoraTrendPoint, BuildHealth, IncidentInput, IncidentWrite, DeploymentOutcomeWrite, IngestCaller, IngestEvent, IngestMetric, IngestResult, IngestHealthStatus, BucketOptions } from './reporting/types.js';
5
5
  export type { LastDeployedCommit } from './reporting/last-deploy.js';
6
- export type { BucketOptions, BuildHealth, BuildHealthStage, DoraEnvMetrics, DoraLevel, DoraMetrics, DoraOptions, DoraTrendPoint, DeploymentOutcomeWrite, IncidentInput, IncidentListItem, IncidentState, IncidentWrite, ReportingSettings, IncidentTestResult, IngestCaller, IngestEvent, IngestHealthStatus, IngestMetric, IngestResult, PluginRuntimeAggregate, PluginRuntimeFilter, PluginRuntimeStats, ReportingRetentionCounts, ReportingRetentionOptions, ReportingRetentionSettings, ReportingSettingsPatch, } from './reporting/types.js';
6
+ export type { BucketOptions, BuildHealth, BuildHealthStage, DoraEnvMetrics, DoraLevel, DoraMetrics, DoraOptions, DoraTrendPoint, DeploymentOutcomeWrite, IncidentInput, IncidentListItem, IncidentState, IncidentWrite, ReportingSettings, IncidentTestResult, IngestCaller, IngestEvent, IngestHealthStatus, IngestMetric, IngestResult, PluginRuntimeAggregate, PluginRuntimeFilter, PluginRuntimeStats, ReportingRetentionCounts, ReportingRetentionOptions, ReportingRetentionSettings, ReportingSettingsPatch, ErrorCategoryEntry, FlakyStage, FlakyStageTrendPoint, } from './reporting/types.js';
7
7
  export declare class ReportingService {
8
8
  #private;
9
9
  /** Invalidate all cached reports for an org (call after event ingest). */
@@ -73,6 +73,25 @@ export declare class ReportingService {
73
73
  * fresh under sysadmin via `runReport`; single-org reads keep the per-org cache.
74
74
  */
75
75
  getErrors(orgId: string, from: string, to: string, limit?: number, orgIds?: string[]): Promise<ErrorEntry[]>;
76
+ /**
77
+ * The org's failures grouped by failure CATEGORY (the ingest-time classifier's
78
+ * `failure_category`), each with its most frequent error texts — the
79
+ * tenant-facing error report. Counts exactly the rows {@link getErrors} counts
80
+ * (one category per failure), org-scoped and rollup-aware like the sibling
81
+ * execution reports. There is no cross-org variant: the operator's view is
82
+ * {@link getPlatformErrors}.
83
+ */
84
+ getErrorCategories(orgId: string, from: string, to: string, limit?: number, orgIds?: string[]): Promise<ErrorCategoryEntry[]>;
85
+ /**
86
+ * Stages that FAILED and then PASSED on retry inside the same execution, per
87
+ * (pipeline, stage), with the flake rate. See ./reporting/flaky-stages.ts.
88
+ */
89
+ getFlakyStages(orgId: string, from: string, to: string, orgIds?: string[], limit?: number): Promise<FlakyStage[]>;
90
+ /** {@link getFlakyStages} bucketed over time (all flaky stages of the scope, or one). */
91
+ getFlakyStageTrend(orgId: string, interval: string, from: string, to: string, orgIds?: string[], opts?: BucketOptions & {
92
+ pipelineId?: string;
93
+ stageName?: string;
94
+ }): Promise<FlakyStageTrendPoint[]>;
76
95
  /**
77
96
  * {@link getErrors} across EVERY org — the platform operator's view.
78
97
  *