Class OVHCloudSDConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.OVHCloudSDConfig
-
- All Implemented Interfaces:
Editable<OVHCloudSDConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OVHCloudSDConfig extends Object implements Editable<OVHCloudSDConfigBuilder>, KubernetesResource
OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ovhcloud_sd_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OVHCloudSDConfig()No args constructor for use in serializationOVHCloudSDConfig(String applicationKey, SecretKeySelector applicationSecret, SecretKeySelector consumerKey, String endpoint, String refreshInterval, String service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OVHCloudSDConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApplicationKey()applicationKey defines the access key to use for OVHCloud API authentication.SecretKeySelectorgetApplicationSecret()OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API.SecretKeySelectorgetConsumerKey()OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API.StringgetEndpoint()endpoint defines a custom API endpoint to be used.StringgetRefreshInterval()refreshInterval defines the time after which the provided names are refreshed.StringgetService()service defines the service type of the targets to retrieve.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApplicationKey(String applicationKey)applicationKey defines the access key to use for OVHCloud API authentication.voidsetApplicationSecret(SecretKeySelector applicationSecret)OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API.voidsetConsumerKey(SecretKeySelector consumerKey)OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API.voidsetEndpoint(String endpoint)endpoint defines a custom API endpoint to be used.voidsetRefreshInterval(String refreshInterval)refreshInterval defines the time after which the provided names are refreshed.voidsetService(String service)service defines the service type of the targets to retrieve.OVHCloudSDConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
OVHCloudSDConfig
public OVHCloudSDConfig()
No args constructor for use in serialization
-
OVHCloudSDConfig
public OVHCloudSDConfig(String applicationKey, SecretKeySelector applicationSecret, SecretKeySelector consumerKey, String endpoint, String refreshInterval, String service)
-
-
Method Detail
-
getApplicationKey
public String getApplicationKey()
applicationKey defines the access key to use for OVHCloud API authentication. This is obtained from the OVHCloud API credentials at https://api.ovh.com.
-
setApplicationKey
public void setApplicationKey(String applicationKey)
applicationKey defines the access key to use for OVHCloud API authentication. This is obtained from the OVHCloud API credentials at https://api.ovh.com.
-
getApplicationSecret
public SecretKeySelector getApplicationSecret()
OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ovhcloud_sd_config
-
setApplicationSecret
public void setApplicationSecret(SecretKeySelector applicationSecret)
OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ovhcloud_sd_config
-
getConsumerKey
public SecretKeySelector getConsumerKey()
OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ovhcloud_sd_config
-
setConsumerKey
public void setConsumerKey(SecretKeySelector consumerKey)
OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#ovhcloud_sd_config
-
getEndpoint
public String getEndpoint()
endpoint defines a custom API endpoint to be used. When not specified, defaults to the standard OVHCloud API endpoint for the region.
-
setEndpoint
public void setEndpoint(String endpoint)
endpoint defines a custom API endpoint to be used. When not specified, defaults to the standard OVHCloud API endpoint for the region.
-
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.
-
getService
public String getService()
service defines the service type of the targets to retrieve. Must be either `VPS` or `DedicatedServer` to specify which OVHCloud resources to discover.
-
setService
public void setService(String service)
service defines the service type of the targets to retrieve. Must be either `VPS` or `DedicatedServer` to specify which OVHCloud resources to discover.
-
edit
public OVHCloudSDConfigBuilder edit()
- Specified by:
editin interfaceEditable<OVHCloudSDConfigBuilder>
-
toBuilder
public OVHCloudSDConfigBuilder toBuilder()
-
-