Wraps another metric and only invokes it for requests that match a configured path and/or HTTP method, letting a general-purpose metric such as a status code or request count be scoped to a specific endpoint. A match can be on path prefix, path suffix, path substring, HTTP method, or a combination of these; when only a method is configured with no path constraints, matching the method alone is enough.

Group: IDP Rules

Implements: IDPMetric


Properties

PropertyReturnsDescription
statusStringDelegates to the wrapped metric's status, since this class holds no counting state of its own.
titleStringHuman-readable summary of this metric's match criteria (path prefixes, suffixes, contains and method) and the title of the wrapped metric.

Methods

getTitle()

Returns: String

Human-readable summary of this metric's match criteria (path prefixes, suffixes, contains and method) and the title of the wrapped metric.

getStatus()

Returns: String

Delegates to the wrapped metric's status, since this class holds no counting state of its own.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.