Browse Source

renamed 'Metics' to 'Metrics' (#151)

pull/156/head
Chad Jessup 6 years ago
committed by GitHub
parent
commit
73ce2a08cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Microsoft.Tye.Hosting/TyeDashboardApi.cs

4
src/Microsoft.Tye.Hosting/TyeDashboardApi.cs

@ -37,7 +37,7 @@ namespace Microsoft.Tye.Hosting
endpoints.MapGet("/api/v1/services/{name}", Service); endpoints.MapGet("/api/v1/services/{name}", Service);
endpoints.MapGet("/api/v1/logs/{name}", Logs); endpoints.MapGet("/api/v1/logs/{name}", Logs);
endpoints.MapGet("/api/v1/metrics", AllMetrics); endpoints.MapGet("/api/v1/metrics", AllMetrics);
endpoints.MapGet("/api/v1/metrics/{name}", Metics); endpoints.MapGet("/api/v1/metrics/{name}", Metrics);
} }
private Task ServiceIndex(HttpContext context) private Task ServiceIndex(HttpContext context)
@ -136,7 +136,7 @@ namespace Microsoft.Tye.Hosting
await context.Response.WriteAsync(sb.ToString()); await context.Response.WriteAsync(sb.ToString());
} }
private async Task Metics(HttpContext context) private async Task Metrics(HttpContext context)
{ {
var app = context.RequestServices.GetRequiredService<Tye.Hosting.Model.Application>(); var app = context.RequestServices.GetRequiredService<Tye.Hosting.Model.Application>();

Loading…
Cancel
Save