@atomist/sdm-pack-aspect
Version:
an Atomist SDM Extension Pack for visualizing drift across an organization
24 lines • 934 B
TypeScript
import { FP } from "@atomist/sdm-pack-fingerprint";
import { ProjectAnalysisResultStore } from "../persist/ProjectAnalysisResultStore";
/**
* Retrieve all fingerprints, then compute and store fingerprint_analytics for the whole workspace
*/
export declare function computeAnalytics(persister: ProjectAnalysisResultStore, workspaceId: string): Promise<void>;
/**
* Calculate and persist entropy for one fingerprint kind
*/
export declare function computeAnalyticsForFingerprintKind(persister: ProjectAnalysisResultStore, workspaceId: string, type: string, name: string): Promise<void>;
/**
* Result of analyzing a cohort of fingerprints.
*/
export interface CohortAnalysis {
count: number;
variants: number;
entropy: number;
compliance: number;
}
/**
* Analyze a cohort of the same kind of fingerprints
*/
export declare function analyzeCohort(fps: FP[]): CohortAnalysis;
//# sourceMappingURL=analytics.d.ts.map