Skip to content

Commit

Permalink
removed metrics from open-api
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <hrma017@gmail.com>
  • Loading branch information
munishchouhan committed Feb 19, 2025
1 parent ca091c8 commit 9666220
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
11 changes: 0 additions & 11 deletions typespec/models/MetricsResponse.tsp

This file was deleted.

1 change: 0 additions & 1 deletion typespec/models/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import "./ContainerResponse.tsp";
import "./BuildStatusResponse.tsp";
import "./ContainerInspectRequest.tsp";
import "./ContainerInspectResponse.tsp";
import "./MetricsResponse.tsp";
import "./WaveScanRecord.tsp";
import "./WaveBuildRecord.tsp";
import "./ValidateRegistryCredsRequest.tsp";
Expand Down
24 changes: 1 addition & 23 deletions typespec/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace wave {
@statusCode statusCode: 200;
};

@route("/container/{requestId}")
@route("/{requestId}")
@get op getContainerDetails(@path requestId: string): {
@body response: WaveContainerRecord;
@statusCode statusCode: 200;
Expand Down Expand Up @@ -89,28 +89,6 @@ namespace wave {

}

@route("/v1alpha2/metrics")
interface MetricsService {

@route("/builds")
@get op getBuildMetrics(@query date?: string, @query org?: string): {
@body response: MetricsResponse;
@statusCode statusCode: 200;
};

@route("/pulls")
@get op getPullMetrics(@query date?: string, @query org?: string): {
@body response: MetricsResponse;
@statusCode statusCode: 200;
};

@route("/fusion/pulls")
@get op getFusionPullMetrics(@query date?: string, @query org?: string): {
@body response: MetricsResponse;
@statusCode statusCode: 200;
};
}

@route("/v1alpha2/validate-creds")
@post op validateCredsV2(@body request: ValidateRegistryCredsRequest): boolean;

Expand Down

0 comments on commit 9666220

Please sign in to comment.