public class CortexMetricsFolderConfig
extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
Modifier and Type | Class and Description |
---|---|
static class |
CortexMetricsFolderConfig.DescriptorImpl
Descriptor class.
|
static class |
CortexMetricsFolderConfig.FolderCortexMetricsConfigProvider
Configuration provider for folder config.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
CortexMetricsFolderConfig()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Secret |
getBearerToken()
Get the bearer token used to authenticate to Cortex.
|
String |
getNamespace()
Get the namespace for metric names (the first token in each metric sent to Cortex).
|
String |
getUrl()
Get the URL for publishing metrics to Cortex.
|
void |
setBearerToken(Secret bearerToken)
Set the bearer token used to authenticate to Cortex.
|
void |
setNamespace(String namespace)
Set the namespace for metric names.
|
void |
setUrl(String url)
Set the URL for publishing metrics to Cortex.
|
@DataBoundConstructor public CortexMetricsFolderConfig()
public String getUrl()
@DataBoundSetter public void setUrl(String url)
url
- the Cortex write URLpublic Secret getBearerToken()
@DataBoundSetter public void setBearerToken(Secret bearerToken)
bearerToken
- the bearer token for authenticationpublic String getNamespace()
@DataBoundSetter public void setNamespace(String namespace)
namespace
- the namespaceCopyright © 2016–2021. All rights reserved.