Skip to content

Make common stats object #75

@matt-raffel-kiva

Description

@matt-raffel-kiva

Once we stablize the content of the statistics report consumed in our services, we should make this type common and shared.

At this time, the structure is as below but we should be confident this is the final structure before sharing across all services.

export class ServiceReportDto {
    @IsString() serviceName: string;
    @IsString() startedAt: string;
    @IsString() currentTime: string;
    @IsArray() versions: string[];
}

Consider changing versions to resources since this field is intended to be more freeform reporting.

Likewise we might want to add some common functionality around gathering shared statistics of a service. See https://github.com/kiva/protocol-reporting/blob/dc2b99d60f3411cb94e2e68b58da6934956106bd/src/app/app.service.ts#L33 as an example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions