Prometheus Proxy
Toggle table of contents
3.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Prometheus Proxy
Prometheus Proxy
/
io.prometheus.common
/
Utils
Utils
object
Utils
(
source
)
Members
Types
Host
Port
Link copied to clipboard
data
class
HostPort
(
val
host
:
String
,
val
port
:
Int
)
Functions
append
Query
Params
Link copied to clipboard
fun
appendQueryParams
(
baseUrl
:
String
,
encodedQueryParams
:
String
)
:
String
decode
Params
Link copied to clipboard
fun
decodeParams
(
encodedQueryParams
:
String
)
:
String
default
Empty
Json
Object
Link copied to clipboard
internal
fun
String
.
defaultEmptyJsonObject
(
)
:
String
exception
Details
Link copied to clipboard
fun
Status
.
exceptionDetails
(
e
:
Throwable
)
:
String
get
Version
Desc
Link copied to clipboard
internal
fun
getVersionDesc
(
asJson
:
Boolean
=
false
)
:
String
parse
Host
Port
Link copied to clipboard
fun
parseHostPort
(
hostPort
:
String
,
defaultPort
:
Int
)
:
Utils.HostPort
sanitize
Url
Link copied to clipboard
fun
sanitizeUrl
(
url
:
String
)
:
String
set
Log
Level
Link copied to clipboard
fun
setLogLevel
(
context
:
String
,
logLevel
:
String
)
to
Json
Element
Link copied to clipboard
fun
String
.
toJsonElement
(
)
:
JsonElement