-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
Description
- Create a trigger named
AspNetResponseStatusthat notifies when a number of HTTP responses with matching status codes exceeds a threshold during a specified sliding window of time. - Create a strong-typed options class, e.g.
AspNetResponseStatusTriggerOptions, that has the following properties:- The
StatusCodesproperty is of typestringand specifies the HTTP status codes to match. This value can be a single code, a range of codes, or a list of single codes and/or range of codes. - The
ResponseCountproperty is of typeintand specifies the threshold count for the trigger condition to be satisfied. - The
SlidingWindowDurationproperty is of typeTimeSpanand specifies the time window in which the number of responses (as specified byResponseCount) with matching status codes must occur for the trigger condition to be satisfied. - The
IncludedPathsproperty is of typestringand specifies the list of request paths which should be monitored. If not specified, all paths are monitored (except for those specified inExcludedPaths). The elements of the list are semi-colon delimited. - The
ExcludedPathsproperty is of typestringand specifies the list of request paths which should be ignored when monitoring. The elements of the list are semi-colon delimited.
- The
- Create and register an
IValidateOptions<T>for the response status trigger options:- The
StatusCodesproperty is required. It can be a single status code (e.g.400), a range of codes (e.g.400-499), or a list of single codes and/or ranges of codes (e.g.200-299;300;400-450;500). All codes are required to be integers (there will not be any translation of status code names to status code values, or vice versa). - The
ResponseCountproperty is required. - The
SlidingWindowDurationproperty is required. It must be greater than or equal to 1 second. It cannot be infinite. - The
IncludedPathsproperty is optional. - The
ExcludedPathsproperty is optional.
- The
Contingent on #647 investigation.