Class MetricsEndpointMiddleware
Inheritance
System.Object
MetricsEndpointMiddleware
Assembly: Steeltoe.Management.EndpointCore.dll
Syntax
public class MetricsEndpointMiddleware : EndpointMiddleware<IMetricsResponse, MetricsRequest>
Constructors
|
Edit this page
View Source
MetricsEndpointMiddleware(RequestDelegate, MetricsEndpoint, IManagementOptions, ILogger<MetricsEndpointMiddleware>)
Declaration
public MetricsEndpointMiddleware(RequestDelegate next, MetricsEndpoint endpoint, IManagementOptions mgmtOptions, ILogger<MetricsEndpointMiddleware> logger = null)
Parameters
Methods
|
Edit this page
View Source
GetMetricName(HttpRequest)
Declaration
protected string GetMetricName(HttpRequest request)
Parameters
Type |
Name |
Description |
HttpRequest |
request |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
HandleMetricsRequestAsync(HttpContext)
Declaration
protected async Task HandleMetricsRequestAsync(HttpContext context)
Parameters
Type |
Name |
Description |
HttpContext |
context |
|
Returns
|
Edit this page
View Source
HandleRequest(MetricsRequest)
Declaration
public override string HandleRequest(MetricsRequest arg)
Parameters
Returns
Type |
Description |
System.String |
|
Overrides
Steeltoe.Management.Endpoint.Middleware.EndpointMiddleware<Steeltoe.Management.Endpoint.Metrics.IMetricsResponse, Steeltoe.Management.Endpoint.Metrics.MetricsRequest>.HandleRequest(Steeltoe.Management.Endpoint.Metrics.MetricsRequest)
|
Edit this page
View Source
Invoke(HttpContext)
Declaration
public Task Invoke(HttpContext context)
Parameters
Type |
Name |
Description |
HttpContext |
context |
|
Returns
|
Edit this page
View Source
ParseTag(String)
Declaration
protected KeyValuePair<string, string>? ParseTag(string kvp)
Parameters
Type |
Name |
Description |
System.String |
kvp |
|
Returns
Type |
Description |
System.Nullable<KeyValuePair<System.String, System.String>> |
|
|
Edit this page
View Source
Declaration
protected List<KeyValuePair<string, string>> ParseTags(IQueryCollection query)
Parameters
Type |
Name |
Description |
IQueryCollection |
query |
|
Returns
Type |
Description |
List<KeyValuePair<System.String, System.String>> |
|