Class FileSDConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.FileSDConfig
-
- All Implemented Interfaces:
Editable<FileSDConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class FileSDConfig extends Object implements Editable<FileSDConfigBuilder>, KubernetesResource
FileSDConfig defines a Prometheus file service discovery configuration See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileSDConfig()No args constructor for use in serializationFileSDConfig(List<String> files, String refreshInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSDConfigBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getFiles()files defines the list of files to be used for file discovery.StringgetRefreshInterval()refreshInterval defines the time after which the provided names are refreshed.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetFiles(List<String> files)files defines the list of files to be used for file discovery.voidsetRefreshInterval(String refreshInterval)refreshInterval defines the time after which the provided names are refreshed.FileSDConfigBuildertoBuilder()
-
-
-
Method Detail
-
getFiles
public List<String> getFiles()
files defines the list of files to be used for file discovery. Recommendation: use absolute paths. While relative paths work, the prometheus-operator project makes no guarantees about the working directory where the configuration file is stored. Files must be mounted using Prometheus.ConfigMaps or Prometheus.Secrets.
-
setFiles
public void setFiles(List<String> files)
files defines the list of files to be used for file discovery. Recommendation: use absolute paths. While relative paths work, the prometheus-operator project makes no guarantees about the working directory where the configuration file is stored. Files must be mounted using Prometheus.ConfigMaps or Prometheus.Secrets.
-
getRefreshInterval
public String getRefreshInterval()
refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
-
setRefreshInterval
public void setRefreshInterval(String refreshInterval)
refreshInterval defines the time after which the provided names are refreshed. If not set, Prometheus uses its default value.
-
edit
public FileSDConfigBuilder edit()
- Specified by:
editin interfaceEditable<FileSDConfigBuilder>
-
toBuilder
public FileSDConfigBuilder toBuilder()
-
-