Dorametrix creates and gets events in our expected DORA metrics format using a repository.

interface Dorametrix {
    getChangeFailureRate(incidentCount: number, deploymentCount: number): string;
    getDeploymentFrequency(deploymentCount: number, fromTimestamp: string, toTimestamp: string): string;
    getLastDeployment(lastDeployment: Deployment): DeploymentResponse;
    getLeadTimeForChanges(changes: Change[], deployments: Deployment[]): string;
    getTimeToRestoreServices(incidents: Incident[]): string;
}

Methods

  • Parameters

    • incidentCount: number
    • deploymentCount: number

    Returns string

    Get a change failure rate as an averaged number for a period of time.

  • Parameters

    • deploymentCount: number
    • fromTimestamp: string
    • toTimestamp: string

    Returns string

    Get the averaged deployment frequency for a period of time.

  • Parameters

    Returns string

    Get the averaged lead time for a change getting into production (deployment).

  • Parameters

    Returns string

    Get the time to restore service as an averaged value.