Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Add unit to aspect metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Aug 1, 2019
1 parent 238138d commit 5f00991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,16 @@ export const configuration: Configuration = configure(async sdm => {
registerCategories(TypeScriptVersion, "Node.js");
registerReportDetails(TypeScriptVersion, {
name: "TypeScript versions",
shortName: "versions",
shortName: "version",
unit: "version",
url: "fingerprint/typescript-version/typescript-version?byOrg=true",
description: "TypeScript versions in use across all repositories in your workspace, " +
"broken out by version and repositories that use each version.",
});
registerCategories(NpmDeps, "Node.js");
registerReportDetails(NpmDeps, {
shortName: "dependencies",
shortName: "dependency",
unit: "version",
url: "drift?type=npm-project-deps",
description: "Node direct dependencies in use across all repositories in your workspace, " +
"grouped by Drift Level.",
Expand All @@ -124,7 +126,8 @@ export const configuration: Configuration = configure(async sdm => {
registerCategories(SpringBootVersion, "Java");
registerCategories(DirectMavenDependencies, "Java");
registerReportDetails(DirectMavenDependencies, {
shortName: "dependencies",
shortName: "dependency",
unit: "version",
url: "drift?type=maven-direct-dep",
description: "Maven direct dependencies in use across all repositories in your workspace, " +
"grouped by Drift Level.",
Expand All @@ -137,13 +140,15 @@ export const configuration: Configuration = configure(async sdm => {
registerReportDetails(DockerFrom, {
name: "Docker base images",
shortName: "images",
unit: "tag",
url: "fingerprint/docker-base-image/*?byOrg=true&presence=false&progress=false&otherLabel=false&trim=false",
description: "Docker base images in use across all repositories in your workspace, " +
"broken out by image label and repositories where used.",
});
registerCategories(DockerPorts, "Docker");
registerReportDetails(DockerPorts, {
shortName: "ports",
unit: "port",
url: "fingerprint/docker-ports/*?byOrg=true&presence=false&progress=false&otherLabel=false&trim=false",
description: "Ports exposed in Docker configuration in use across all repositories in your workspace, " +
"broken out by port number and repositories where used.",
Expand Down
1 change: 1 addition & 0 deletions lib/customize/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface ReportDetails {
shortName?: string;
type?: string;
description?: string;
unit?: string;
url?: string;
}

Expand Down

0 comments on commit 5f00991

Please sign in to comment.