Skip to content

Make common stats object #75

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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