Package jenkins.metrics.api
Class MetricsAccessKey
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<MetricsAccessKey>
-
- jenkins.metrics.api.MetricsAccessKey
-
- All Implemented Interfaces:
Describable<MetricsAccessKey>
,Serializable
public class MetricsAccessKey extends AbstractDescribableImpl<MetricsAccessKey> implements Serializable
- Author:
- Stephen Connolly
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetricsAccessKey.AbstractProvider
An extension point that allows for plugins to provide their own set of access keys.static class
MetricsAccessKey.DescriptorImpl
static class
MetricsAccessKey.FixedListProviderImpl
A provider that is a simple fixed list of keys.static interface
MetricsAccessKey.Provider
An extension point that allows for plugins to provide their own set of access keys.
-
Constructor Summary
Constructors Constructor Description MetricsAccessKey(String description, Secret key, boolean canPing, boolean canThreadDump, boolean canHealthCheck, boolean canMetrics, String origins)
MetricsAccessKey(String description, String key)
MetricsAccessKey(String description, String key, boolean canPing, boolean canThreadDump, boolean canHealthCheck, boolean canMetrics, String origins)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDescription()
Secret
getKey()
String
getOrigins()
int
hashCode()
boolean
isCanHealthCheck()
boolean
isCanMetrics()
boolean
isCanPing()
boolean
isCanThreadDump()
boolean
isOriginAllowed(String origin)
String
toString()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
MetricsAccessKey
@Deprecated public MetricsAccessKey(String description, String key, boolean canPing, boolean canThreadDump, boolean canHealthCheck, boolean canMetrics, String origins)
Deprecated.
-
-
Method Detail
-
getDescription
@CheckForNull public String getDescription()
-
getKey
@NonNull public Secret getKey()
-
isCanPing
public boolean isCanPing()
-
isCanThreadDump
public boolean isCanThreadDump()
-
isCanHealthCheck
public boolean isCanHealthCheck()
-
isCanMetrics
public boolean isCanMetrics()
-
getOrigins
public String getOrigins()
-
isOriginAllowed
public boolean isOriginAllowed(String origin)
-
-