public abstract class CortexMetricsConfigProvider extends Object
Constructor and Description |
---|
CortexMetricsConfigProvider() |
Modifier and Type | Method and Description |
---|---|
abstract Secret |
getBearerToken(Item item)
Return the bearer token in plain text.
|
static Secret |
getConfiguredBearerToken(Item item)
Retrieves the first configured bearer token, either on a parent folder or in global configuration.
|
static String |
getConfiguredNamespace(Item item)
Retrieves the first configured namespace, either on a parent folder or in global configuration.
|
static String |
getConfiguredUrl(Item item)
Retrieves the first configured Cortex URL, either on a parent folder or in global configuration.
|
abstract String |
getNamespace(Item item)
Return the namespace for metric names.
|
abstract String |
getUrl(Item item)
Return the Cortex URL.
|
public abstract String getUrl(Item item)
item
- the current itempublic abstract Secret getBearerToken(Item item)
item
- the current itempublic abstract String getNamespace(Item item)
item
- the current itempublic static String getConfiguredUrl(Item item)
item
- the current itempublic static Secret getConfiguredBearerToken(Item item)
item
- the current itemCopyright © 2016–2021. All rights reserved.