Class FileSDConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.FileSDConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<FileSDConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class FileSDConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<FileSDConfigBuilder>, io.fabric8.kubernetes.api.model.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()List of files to be used for file discovery.StringgetRefreshInterval()RefreshInterval configures the refresh interval at which Prometheus will reload the content of the files.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetFiles(List<String> files)List of files to be used for file discovery.voidsetRefreshInterval(String refreshInterval)RefreshInterval configures the refresh interval at which Prometheus will reload the content of the files.FileSDConfigBuildertoBuilder()
-
-
-
Method Detail
-
getFiles
public List<String> getFiles()
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)
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 configures the refresh interval at which Prometheus will reload the content of the files.
-
setRefreshInterval
public void setRefreshInterval(String refreshInterval)
RefreshInterval configures the refresh interval at which Prometheus will reload the content of the files.
-
edit
public FileSDConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<FileSDConfigBuilder>
-
toBuilder
public FileSDConfigBuilder toBuilder()
-
-