Class

org.lyranthe.prometheus.client.integration.akkahttp

PrometheusMetrics

Related Doc: package akkahttp

Permalink

class PrometheusMetrics extends Metrics with PrometheusRoutes

Creates a PrometheusMetrics with a Routing directive to expose metrics and a custom DSL directive to monitor endpoints.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PrometheusMetrics
  2. PrometheusRoutes
  3. Directives
  4. FramedEntityStreamingDirectives
  5. WebSocketDirectives
  6. SecurityDirectives
  7. SchemeDirectives
  8. RouteDirectives
  9. RespondWithDirectives
  10. RangeDirectives
  11. PathDirectives
  12. ImplicitPathMatcherConstruction
  13. PathMatchers
  14. TimeoutDirectives
  15. ParameterDirectives
  16. MiscDirectives
  17. MethodDirectives
  18. MarshallingDirectives
  19. HostDirectives
  20. HeaderDirectives
  21. FutureDirectives
  22. FormFieldDirectives
  23. ToNameReceptacleEnhancements
  24. FileUploadDirectives
  25. FileAndResourceDirectives
  26. ExecutionDirectives
  27. CodingDirectives
  28. DebuggingDirectives
  29. CookieDirectives
  30. CacheConditionDirectives
  31. BasicDirectives
  32. RouteConcatenation
  33. Metrics
  34. AnyRef
  35. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PrometheusMetrics(metricsPathDirective: Directive[Unit] = Directives.path("metrics"), enableJMX: Boolean = true)(implicit registry: Registry)

    Permalink

    metricsPathDirective

    the path directive to expose the metrics (default to /metrics)

    enableJMX

    if true expose jms statistics (default to true)

    registry

    the Prometheus Client Registry service

Type Members

  1. type AsyncAuthenticator[T] = (Credentials) ⇒ Future[Option[T]]

    Permalink
    Definition Classes
    SecurityDirectives
  2. type AsyncAuthenticatorPF[T] = PartialFunction[Credentials, Future[T]]

    Permalink
    Definition Classes
    SecurityDirectives
  3. type AuthenticationResult[+T] = Either[HttpChallenge, T]

    Permalink
    Definition Classes
    SecurityDirectives
  4. type Authenticator[T] = (Credentials) ⇒ Option[T]

    Permalink
    Definition Classes
    SecurityDirectives
  5. type AuthenticatorPF[T] = PartialFunction[Credentials, T]

    Permalink
    Definition Classes
    SecurityDirectives
  6. abstract class NumberMatcher[T] extends PathMatcher1[T]

    Permalink
    Definition Classes
    PathMatchers
  7. type RequestToSourceUnmarshaller[T] = Unmarshaller[HttpRequest, Source[T, NotUsed]]

    Permalink
    Definition Classes
    FramedEntityStreamingDirectives

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val DoubleNumber: PathMatcher1[Double]

    Permalink
    Definition Classes
    PathMatchers
  5. val JavaUUID: PathMatcher1[UUID]

    Permalink
    Definition Classes
    PathMatchers
  6. val Neutral: PathMatcher0

    Permalink
    Definition Classes
    PathMatchers
  7. def Segments(min: Int, max: Int): PathMatcher1[List[String]]

    Permalink
    Definition Classes
    PathMatchers
  8. def Segments(count: Int): PathMatcher1[List[String]]

    Permalink
    Definition Classes
    PathMatchers
  9. val Segments: PathMatcher1[List[String]]

    Permalink
    Definition Classes
    PathMatchers
  10. def _defaultClassLoader: ClassLoader

    Permalink
    Attributes
    protected[akka.http]
    Definition Classes
    FileAndResourceDirectives
  11. implicit def _enhanceRouteWithConcatenation(route: Route): RouteWithConcatenation

    Permalink
    Definition Classes
    RouteConcatenation
  12. implicit def _regex2PathMatcher(regex: Regex): PathMatcher1[String]

    Permalink
    Definition Classes
    ImplicitPathMatcherConstruction
  13. implicit def _segmentStringToPathMatcher(segment: String): PathMatcher0

    Permalink
    Definition Classes
    ImplicitPathMatcherConstruction
  14. implicit def _string2NR(string: String): NameReceptacle[String]

    Permalink
    Definition Classes
    ToNameReceptacleEnhancements
  15. implicit def _stringExtractionPair2PathMatcher[T](tuple: (String, T)): PathMatcher1[T]

    Permalink
    Definition Classes
    ImplicitPathMatcherConstruction
  16. implicit def _stringNameOptionReceptacle2PathMatcher(nr: NameOptionReceptacle[String]): PathMatcher0

    Permalink
    Definition Classes
    ImplicitPathMatcherConstruction
  17. implicit def _symbol2NR(symbol: Symbol): NameReceptacle[String]

    Permalink
    Definition Classes
    ToNameReceptacleEnhancements
  18. implicit def _valueMap2PathMatcher[T](valueMap: Map[String, T]): PathMatcher1[T]

    Permalink
    Definition Classes
    ImplicitPathMatcherConstruction
  19. def as[T](implicit um: FromRequestUnmarshaller[T]): FromRequestUnmarshaller[T]

    Permalink
    Definition Classes
    MarshallingDirectives
  20. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  21. final def asSourceOf[T](support: EntityStreamingSupport)(implicit um: FromByteStringUnmarshaller[T]): RequestToSourceUnmarshaller[T]

    Permalink
    Definition Classes
    FramedEntityStreamingDirectives
  22. final def asSourceOf[T](implicit um: FromByteStringUnmarshaller[T], support: EntityStreamingSupport): RequestToSourceUnmarshaller[T]

    Permalink
    Definition Classes
    FramedEntityStreamingDirectives
  23. def authenticateBasic[T](realm: String, authenticator: Authenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  24. def authenticateBasicAsync[T](realm: String, authenticator: AsyncAuthenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  25. def authenticateBasicPF[T](realm: String, authenticator: AuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  26. def authenticateBasicPFAsync[T](realm: String, authenticator: AsyncAuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  27. def authenticateOAuth2[T](realm: String, authenticator: Authenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  28. def authenticateOAuth2Async[T](realm: String, authenticator: AsyncAuthenticator[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  29. def authenticateOAuth2PF[T](realm: String, authenticator: AuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  30. def authenticateOAuth2PFAsync[T](realm: String, authenticator: AsyncAuthenticatorPF[T]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  31. def authenticateOrRejectWithChallenge[C <: HttpCredentials, T](authenticator: (Option[C]) ⇒ Future[AuthenticationResult[T]])(implicit arg0: ClassTag[C]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  32. def authenticateOrRejectWithChallenge[T](authenticator: (Option[HttpCredentials]) ⇒ Future[AuthenticationResult[T]]): AuthenticationDirective[T]

    Permalink
    Definition Classes
    SecurityDirectives
  33. def authorize(check: (RequestContext) ⇒ Boolean): Directive0

    Permalink
    Definition Classes
    SecurityDirectives
  34. def authorize(check: ⇒ Boolean): Directive0

    Permalink
    Definition Classes
    SecurityDirectives
  35. def authorizeAsync(check: (RequestContext) ⇒ Future[Boolean]): Directive0

    Permalink
    Definition Classes
    SecurityDirectives
  36. def authorizeAsync(check: ⇒ Future[Boolean]): Directive0

    Permalink
    Definition Classes
    SecurityDirectives
  37. def cancelRejection(rejection: Rejection): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  38. def cancelRejections(cancelFilter: (Rejection) ⇒ Boolean): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  39. def cancelRejections(classes: Class[_]*): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  40. def checkSameOrigin(allowed: Default): Directive0

    Permalink
    Definition Classes
    HeaderDirectives
  41. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def complete(m: ⇒ ToResponseMarshallable): StandardRoute

    Permalink
    Definition Classes
    RouteDirectives
  43. def completeOrRecoverWith(magnet: CompleteOrRecoverWithMagnet): Directive1[Throwable]

    Permalink
    Definition Classes
    FutureDirectives
  44. def completeWith[T](marshaller: ToResponseMarshaller[T])(inner: ((T) ⇒ Unit) ⇒ Unit): Route

    Permalink
    Definition Classes
    MarshallingDirectives
  45. def concat(routes: Route*): Route

    Permalink
    Definition Classes
    RouteConcatenation
  46. def conditional(eTag: Option[EntityTag], lastModified: Option[DateTime]): Directive0

    Permalink
    Definition Classes
    CacheConditionDirectives
  47. def conditional(eTag: EntityTag, lastModified: DateTime): Directive0

    Permalink
    Definition Classes
    CacheConditionDirectives
  48. def conditional(lastModified: DateTime): Directive0

    Permalink
    Definition Classes
    CacheConditionDirectives
  49. def conditional(eTag: EntityTag): Directive0

    Permalink
    Definition Classes
    CacheConditionDirectives
  50. def cookie(name: String): Directive1[HttpCookiePair]

    Permalink
    Definition Classes
    CookieDirectives
  51. def decodeRequest: Directive0

    Permalink
    Definition Classes
    CodingDirectives
  52. def decodeRequestWith(decoders: Decoder*): Directive0

    Permalink
    Definition Classes
    CodingDirectives
  53. def decodeRequestWith(decoder: Decoder): Directive0

    Permalink
    Definition Classes
    CodingDirectives
  54. def delete: Directive0

    Permalink
    Definition Classes
    MethodDirectives
  55. def deleteCookie(name: String, domain: String, path: String): Directive0

    Permalink
    Definition Classes
    CookieDirectives
  56. def deleteCookie(first: HttpCookie, more: HttpCookie*): Directive0

    Permalink
    Definition Classes
    CookieDirectives
  57. def encodeResponse: Directive0

    Permalink
    Definition Classes
    CodingDirectives
  58. def encodeResponseWith(first: Encoder, more: Encoder*): Directive0

    Permalink
    Definition Classes
    CodingDirectives
  59. def entity[T](um: FromRequestUnmarshaller[T]): Directive1[T]

    Permalink
    Definition Classes
    MarshallingDirectives
  60. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  62. def extract[T](f: (RequestContext) ⇒ T): Directive1[T]

    Permalink
    Definition Classes
    BasicDirectives
  63. def extractActorSystem: Directive1[ActorSystem]

    Permalink
    Definition Classes
    BasicDirectives
  64. def extractClientIP: Directive1[RemoteAddress]

    Permalink
    Definition Classes
    MiscDirectives
  65. def extractCredentials: Directive1[Option[HttpCredentials]]

    Permalink
    Definition Classes
    SecurityDirectives
  66. def extractDataBytes: Directive1[Source[ByteString, Any]]

    Permalink
    Definition Classes
    BasicDirectives
  67. def extractExecutionContext: Directive1[ExecutionContextExecutor]

    Permalink
    Definition Classes
    BasicDirectives
  68. def extractHost: Directive1[String]

    Permalink
    Definition Classes
    HostDirectives
  69. def extractLog: Directive1[LoggingAdapter]

    Permalink
    Definition Classes
    BasicDirectives
  70. def extractMatchedPath: Directive1[Path]

    Permalink
    Definition Classes
    BasicDirectives
  71. def extractMaterializer: Directive1[Materializer]

    Permalink
    Definition Classes
    BasicDirectives
  72. def extractMethod: Directive1[HttpMethod]

    Permalink
    Definition Classes
    MethodDirectives
  73. def extractOfferedWsProtocols: Directive1[Seq[String]]

    Permalink
    Definition Classes
    WebSocketDirectives
  74. def extractParserSettings: Directive1[ParserSettings]

    Permalink
    Definition Classes
    BasicDirectives
  75. def extractRequest: Directive1[HttpRequest]

    Permalink
    Definition Classes
    BasicDirectives
  76. def extractRequestContext: Directive1[RequestContext]

    Permalink
    Definition Classes
    BasicDirectives
  77. def extractRequestEntity: Directive1[RequestEntity]

    Permalink
    Definition Classes
    BasicDirectives
  78. def extractScheme: Directive1[String]

    Permalink
    Definition Classes
    SchemeDirectives
  79. def extractSettings: Directive1[RoutingSettings]

    Permalink
    Definition Classes
    BasicDirectives
  80. def extractStrictEntity(timeout: FiniteDuration): Directive1[Strict]

    Permalink
    Definition Classes
    BasicDirectives
  81. def extractUnmatchedPath: Directive1[Path]

    Permalink
    Definition Classes
    BasicDirectives
  82. def extractUpgradeToWebSocket: Directive1[UpgradeToWebSocket]

    Permalink
    Definition Classes
    WebSocketDirectives
  83. def extractUri: Directive1[Uri]

    Permalink
    Definition Classes
    BasicDirectives
  84. def failWith(error: Throwable): StandardRoute

    Permalink
    Definition Classes
    RouteDirectives
  85. def fileUpload(fieldName: String): Directive1[(FileInfo, Source[ByteString, Any])]

    Permalink
    Definition Classes
    FileUploadDirectives
  86. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  87. def formField(pdm: FieldMagnet): Out

    Permalink
    Definition Classes
    FormFieldDirectives
  88. def formFieldMap: Directive1[Map[String, String]]

    Permalink
    Definition Classes
    FormFieldDirectives
  89. def formFieldMultiMap: Directive1[Map[String, List[String]]]

    Permalink
    Definition Classes
    FormFieldDirectives
  90. def formFieldSeq: Directive1[Seq[(String, String)]]

    Permalink
    Definition Classes
    FormFieldDirectives
  91. def formFields(pdm: FieldMagnet): Out

    Permalink
    Definition Classes
    FormFieldDirectives
  92. def get: Directive0

    Permalink
    Definition Classes
    MethodDirectives
  93. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  94. def getFromBrowseableDirectories(directories: String*)(implicit renderer: DirectoryRenderer, resolver: ContentTypeResolver): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  95. def getFromBrowseableDirectory(directory: String)(implicit renderer: DirectoryRenderer, resolver: ContentTypeResolver): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  96. def getFromDirectory(directoryName: String)(implicit resolver: ContentTypeResolver): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  97. def getFromFile(file: File, contentType: ContentType): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  98. def getFromFile(file: File)(implicit resolver: ContentTypeResolver): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  99. def getFromFile(fileName: String)(implicit resolver: ContentTypeResolver): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  100. def getFromResource(resourceName: String, contentType: ContentType, classLoader: ClassLoader): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  101. def getFromResource(resourceName: String)(implicit resolver: ContentTypeResolver): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  102. def getFromResourceDirectory(directoryName: String, classLoader: ClassLoader)(implicit resolver: ContentTypeResolver): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  103. def handleExceptions(handler: ExceptionHandler): Directive0

    Permalink
    Definition Classes
    ExecutionDirectives
  104. def handleRejections(handler: RejectionHandler): Directive0

    Permalink
    Definition Classes
    ExecutionDirectives
  105. def handleWebSocketMessages(handler: Flow[Message, Message, Any]): Route

    Permalink
    Definition Classes
    WebSocketDirectives
  106. def handleWebSocketMessagesForOptionalProtocol(handler: Flow[Message, Message, Any], subprotocol: Option[String]): Route

    Permalink
    Definition Classes
    WebSocketDirectives
  107. def handleWebSocketMessagesForProtocol(handler: Flow[Message, Message, Any], subprotocol: String): Route

    Permalink
    Definition Classes
    WebSocketDirectives
  108. def handleWith[A, B](f: (A) ⇒ B)(implicit um: FromRequestUnmarshaller[A], m: ToResponseMarshaller[B]): Route

    Permalink
    Definition Classes
    MarshallingDirectives
  109. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  110. def head: Directive0

    Permalink
    Definition Classes
    MethodDirectives
  111. def headerValue[T](f: (HttpHeader) ⇒ Option[T]): Directive1[T]

    Permalink
    Definition Classes
    HeaderDirectives
  112. def headerValueByName(headerName: String): Directive1[String]

    Permalink
    Definition Classes
    HeaderDirectives
  113. def headerValueByName(headerName: Symbol): Directive1[String]

    Permalink
    Definition Classes
    HeaderDirectives
  114. def headerValueByType[T](magnet: HeaderMagnet[T]): Directive1[T]

    Permalink
    Definition Classes
    HeaderDirectives
  115. def headerValuePF[T](pf: PartialFunction[HttpHeader, T]): Directive1[T]

    Permalink
    Definition Classes
    HeaderDirectives
  116. def host(regex: Regex): Directive1[String]

    Permalink
    Definition Classes
    HostDirectives
  117. def host(predicate: (String) ⇒ Boolean): Directive0

    Permalink
    Definition Classes
    HostDirectives
  118. def host(hostNames: String*): Directive0

    Permalink
    Definition Classes
    HostDirectives
  119. def ignoreTrailingSlash: Directive0

    Permalink
    Definition Classes
    PathDirectives
  120. def instanceOf[T](implicit m: ToResponseMarshaller[T]): ToResponseMarshaller[T]

    Permalink
    Definition Classes
    MarshallingDirectives
  121. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  122. def listDirectoryContents(directories: String*)(implicit renderer: DirectoryRenderer): Route

    Permalink
    Definition Classes
    FileAndResourceDirectives
  123. def logRequest(magnet: LoggingMagnet[(HttpRequest) ⇒ Unit]): Directive0

    Permalink
    Definition Classes
    DebuggingDirectives
  124. def logRequestResult(magnet: LoggingMagnet[(HttpRequest) ⇒ (RouteResult) ⇒ Unit]): Directive0

    Permalink
    Definition Classes
    DebuggingDirectives
  125. def logResult(magnet: LoggingMagnet[(RouteResult) ⇒ Unit]): Directive0

    Permalink
    Definition Classes
    DebuggingDirectives
  126. def mapInnerRoute(f: (Route) ⇒ Route): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  127. def mapRejections(f: (Seq[Rejection]) ⇒ Seq[Rejection]): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  128. def mapRequest(f: (HttpRequest) ⇒ HttpRequest): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  129. def mapRequestContext(f: (RequestContext) ⇒ RequestContext): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  130. def mapResponse(f: (HttpResponse) ⇒ HttpResponse): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  131. def mapResponseEntity(f: (ResponseEntity) ⇒ ResponseEntity): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  132. def mapResponseHeaders(f: (Seq[HttpHeader]) ⇒ Seq[HttpHeader]): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  133. def mapRouteResult(f: (RouteResult) ⇒ RouteResult): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  134. def mapRouteResultFuture(f: (Future[RouteResult]) ⇒ Future[RouteResult]): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  135. def mapRouteResultPF(f: PartialFunction[RouteResult, RouteResult]): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  136. def mapRouteResultWith(f: (RouteResult) ⇒ Future[RouteResult]): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  137. def mapRouteResultWithPF(f: PartialFunction[RouteResult, Future[RouteResult]]): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  138. def mapSettings(f: (RoutingSettings) ⇒ RoutingSettings): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  139. def mapUnmatchedPath(f: (Path) ⇒ Path): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  140. def method(httpMethod: HttpMethod): Directive0

    Permalink
    Definition Classes
    MethodDirectives
  141. val metricsPathDirective: Directive[Unit]

    Permalink

    the path directive to expose the metrics (default to /metrics)

    the path directive to expose the metrics (default to /metrics)

    Definition Classes
    PrometheusMetricsPrometheusRoutes
  142. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  143. def nothingMatcher[L](implicit arg0: Tuple[L]): PathMatcher[L]

    Permalink
    Definition Classes
    PathMatchers
  144. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  145. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  146. def onComplete[T](future: ⇒ Future[T]): Directive1[Try[T]]

    Permalink
    Definition Classes
    FutureDirectives
  147. def onCompleteWithBreaker[T](breaker: CircuitBreaker)(future: ⇒ Future[T]): Directive1[Try[T]]

    Permalink
    Definition Classes
    FutureDirectives
  148. def onSuccess(magnet: OnSuccessMagnet): Directive[Out]

    Permalink
    Definition Classes
    FutureDirectives
  149. def optionalCookie(name: String): Directive1[Option[HttpCookiePair]]

    Permalink
    Definition Classes
    CookieDirectives
  150. def optionalHeaderValue[T](f: (HttpHeader) ⇒ Option[T]): Directive1[Option[T]]

    Permalink
    Definition Classes
    HeaderDirectives
  151. def optionalHeaderValueByName(headerName: String): Directive1[Option[String]]

    Permalink
    Definition Classes
    HeaderDirectives
  152. def optionalHeaderValueByName(headerName: Symbol): Directive1[Option[String]]

    Permalink
    Definition Classes
    HeaderDirectives
  153. def optionalHeaderValueByType[T <: HttpHeader](magnet: HeaderMagnet[T]): Directive1[Option[T]]

    Permalink
    Definition Classes
    HeaderDirectives
  154. def optionalHeaderValuePF[T](pf: PartialFunction[HttpHeader, T]): Directive1[Option[T]]

    Permalink
    Definition Classes
    HeaderDirectives
  155. def options: Directive0

    Permalink
    Definition Classes
    MethodDirectives
  156. def overrideMethodWithParameter(paramName: String): Directive0

    Permalink
    Definition Classes
    MethodDirectives
  157. def parameter(pdm: ParamMagnet): Out

    Permalink
    Definition Classes
    ParameterDirectives
  158. def parameterMap: Directive1[Map[String, String]]

    Permalink
    Definition Classes
    ParameterDirectives
  159. def parameterMultiMap: Directive1[Map[String, List[String]]]

    Permalink
    Definition Classes
    ParameterDirectives
  160. def parameterSeq: Directive1[Seq[(String, String)]]

    Permalink
    Definition Classes
    ParameterDirectives
  161. def parameters(pdm: ParamMagnet): Out

    Permalink
    Definition Classes
    ParameterDirectives
  162. def pass: Directive0

    Permalink
    Definition Classes
    BasicDirectives
  163. def patch: Directive0

    Permalink
    Definition Classes
    MethodDirectives
  164. def path[L](pm: PathMatcher[L]): Directive[L]

    Permalink
    Definition Classes
    PathDirectives
  165. def pathEnd: Directive0

    Permalink
    Definition Classes
    PathDirectives
  166. def pathEndOrSingleSlash: Directive0

    Permalink
    Definition Classes
    PathDirectives
  167. def pathPrefix[L](pm: PathMatcher[L]): Directive[L]

    Permalink
    Definition Classes
    PathDirectives
  168. def pathPrefixTest[L](pm: PathMatcher[L]): Directive[L]

    Permalink
    Definition Classes
    PathDirectives
  169. def pathSingleSlash: Directive0

    Permalink
    Definition Classes
    PathDirectives
  170. def pathSuffix[L](pm: PathMatcher[L]): Directive[L]

    Permalink
    Definition Classes
    PathDirectives
  171. def pathSuffixTest[L](pm: PathMatcher[L]): Directive[L]

    Permalink
    Definition Classes
    PathDirectives
  172. def post: Directive0

    Permalink
    Definition Classes
    MethodDirectives
  173. def provide[T](value: T): Directive1[T]

    Permalink
    Definition Classes
    BasicDirectives
  174. def put: Directive0

    Permalink
    Definition Classes
    MethodDirectives
  175. def rawPathPrefix[L](pm: PathMatcher[L]): Directive[L]

    Permalink
    Definition Classes
    PathDirectives
  176. def rawPathPrefixTest[L](pm: PathMatcher[L]): Directive[L]

    Permalink
    Definition Classes
    PathDirectives
  177. def recordHttpRequestDuration(method: String, endpoint: String, statusCode: String, timer: Timer): Unit

    Permalink
  178. def recoverRejections(f: (Seq[Rejection]) ⇒ RouteResult): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  179. def recoverRejectionsWith(f: (Seq[Rejection]) ⇒ Future[RouteResult]): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  180. def redirect(uri: Uri, redirectionType: Redirection): StandardRoute

    Permalink
    Definition Classes
    RouteDirectives
  181. def redirectToNoTrailingSlashIfPresent(redirectionType: Redirection): Directive0

    Permalink
    Definition Classes
    PathDirectives
  182. def redirectToTrailingSlashIfMissing(redirectionType: Redirection): Directive0

    Permalink
    Definition Classes
    PathDirectives
  183. implicit val registry: Registry

    Permalink

    the Prometheus Client Registry service

    the Prometheus Client Registry service

    Definition Classes
    PrometheusMetricsPrometheusRoutes
  184. def reject(rejections: Rejection*): StandardRoute

    Permalink
    Definition Classes
    RouteDirectives
  185. def reject: StandardRoute

    Permalink
    Definition Classes
    RouteDirectives
  186. def rejectEmptyResponse: Directive0

    Permalink
    Definition Classes
    MiscDirectives
  187. def requestEncodedWith(encoding: HttpEncoding): Directive0

    Permalink
    Definition Classes
    CodingDirectives
  188. def requestEntityEmpty: Directive0

    Permalink
    Definition Classes
    MiscDirectives
  189. def requestEntityPresent: Directive0

    Permalink
    Definition Classes
    MiscDirectives
  190. def respondWithDefaultHeader(responseHeader: HttpHeader): Directive0

    Permalink
    Definition Classes
    RespondWithDirectives
  191. def respondWithDefaultHeaders(responseHeaders: Seq[HttpHeader]): Directive0

    Permalink
    Definition Classes
    RespondWithDirectives
  192. def respondWithDefaultHeaders(responseHeaders: HttpHeader*): Directive0

    Permalink
    Definition Classes
    RespondWithDirectives
  193. def respondWithHeader(responseHeader: HttpHeader): Directive0

    Permalink
    Definition Classes
    RespondWithDirectives
  194. def respondWithHeaders(responseHeaders: Seq[HttpHeader]): Directive0

    Permalink
    Definition Classes
    RespondWithDirectives
  195. def respondWithHeaders(responseHeaders: HttpHeader*): Directive0

    Permalink
    Definition Classes
    RespondWithDirectives
  196. def responseEncodingAccepted(encoding: HttpEncoding): Directive0

    Permalink
    Definition Classes
    CodingDirectives
  197. val routes: Route

    Permalink
    Definition Classes
    PrometheusRoutes
  198. def scheme(name: String): Directive0

    Permalink
    Definition Classes
    SchemeDirectives
  199. def selectPreferredLanguage(first: Language, more: Language*): Directive1[Language]

    Permalink
    Definition Classes
    MiscDirectives
  200. def separateOnSlashes(string: String): PathMatcher0

    Permalink
    Definition Classes
    PathMatchers
  201. def setCookie(first: HttpCookie, more: HttpCookie*): Directive0

    Permalink
    Definition Classes
    CookieDirectives
  202. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  203. def textract[L](f: (RequestContext) ⇒ L)(implicit arg0: Tuple[L]): Directive[L]

    Permalink
    Definition Classes
    BasicDirectives
  204. def toStrictEntity(timeout: FiniteDuration): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  205. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  206. def tprovide[L](values: L)(implicit arg0: Tuple[L]): Directive[L]

    Permalink
    Definition Classes
    BasicDirectives
  207. def uploadedFile(fieldName: String): Directive1[(FileInfo, File)]

    Permalink
    Definition Classes
    FileUploadDirectives
  208. def validate(check: ⇒ Boolean, errorMsg: String): Directive0

    Permalink
    Definition Classes
    MiscDirectives
  209. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  210. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  211. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  212. def withExecutionContext(ec: ExecutionContextExecutor): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  213. def withLog(log: LoggingAdapter): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  214. def withMaterializer(materializer: Materializer): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  215. def withMetrics(endpoint: Option[String] = None): Directive0

    Permalink

    WARNING: every recorded endpoint stores a new time series in database.

    WARNING: every recorded endpoint stores a new time series in database. Do not record variable path parameters (eg: /brands/123, /brands/456) or query params to avoid to dramatically increase the amount of data stored. When None is used as endpoint make sure to position the directive at a level where the matched path cannot produce unbounded sets of values.

    endpoint

    if None uses akka.http.scaladsl.server.Directives.extractMatchedPath

    Definition Classes
    PrometheusMetricsMetrics
  216. def withPrecompressedMediaTypeSupport: Directive0

    Permalink
    Definition Classes
    CodingDirectives
  217. def withRangeSupport: Directive0

    Permalink
    Definition Classes
    RangeDirectives
  218. def withRequestTimeout(timeout: Duration, handler: Option[(HttpRequest) ⇒ HttpResponse]): Directive0

    Permalink
    Definition Classes
    TimeoutDirectives
  219. def withRequestTimeout(timeout: Duration, handler: (HttpRequest) ⇒ HttpResponse): Directive0

    Permalink
    Definition Classes
    TimeoutDirectives
  220. def withRequestTimeout(timeout: Duration): Directive0

    Permalink
    Definition Classes
    TimeoutDirectives
  221. def withRequestTimeoutResponse(handler: (HttpRequest) ⇒ HttpResponse): Directive0

    Permalink
    Definition Classes
    TimeoutDirectives
  222. def withSettings(settings: RoutingSettings): Directive0

    Permalink
    Definition Classes
    BasicDirectives
  223. def withSizeLimit(maxBytes: Long): Directive0

    Permalink
    Definition Classes
    MiscDirectives
  224. def withoutRequestTimeout: Directive0

    Permalink
    Definition Classes
    TimeoutDirectives
  225. def withoutSizeLimit: Directive0

    Permalink
    Definition Classes
    MiscDirectives

Inherited from PrometheusRoutes

Inherited from Directives

Inherited from WebSocketDirectives

Inherited from SecurityDirectives

Inherited from SchemeDirectives

Inherited from RouteDirectives

Inherited from RespondWithDirectives

Inherited from RangeDirectives

Inherited from PathDirectives

Inherited from PathMatchers

Inherited from TimeoutDirectives

Inherited from ParameterDirectives

Inherited from MiscDirectives

Inherited from MethodDirectives

Inherited from MarshallingDirectives

Inherited from HostDirectives

Inherited from HeaderDirectives

Inherited from FutureDirectives

Inherited from FormFieldDirectives

Inherited from FileUploadDirectives

Inherited from FileAndResourceDirectives

Inherited from ExecutionDirectives

Inherited from CodingDirectives

Inherited from DebuggingDirectives

Inherited from CookieDirectives

Inherited from CacheConditionDirectives

Inherited from BasicDirectives

Inherited from RouteConcatenation

Inherited from Metrics

Inherited from AnyRef

Inherited from Any

Ungrouped