Class OpenStackSDConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.OpenStackSDConfig
-
- All Implemented Interfaces:
Editable<OpenStackSDConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OpenStackSDConfig extends Object implements Editable<OpenStackSDConfigBuilder>, KubernetesResource
OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenStackSDConfig()No args constructor for use in serializationOpenStackSDConfig(Boolean allTenants, String applicationCredentialId, String applicationCredentialName, SecretKeySelector applicationCredentialSecret, String availability, String domainID, String domainName, String identityEndpoint, SecretKeySelector password, Integer port, String projectID, String projectName, String refreshInterval, String region, String role, SafeTLSConfig tlsConfig, String userid, String username)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenStackSDConfigBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetAllTenants()allTenants defines whether the service discovery should list all instances for all projects.StringgetApplicationCredentialId()applicationCredentialId defines the OpenStack applicationCredentialId.StringgetApplicationCredentialName()applicationCredentialName defines the ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate.SecretKeySelectorgetApplicationCredentialSecret()OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.StringgetAvailability()availability defines the availability of the endpoint to connect to.StringgetDomainID()domainID defines The OpenStack domainID.StringgetDomainName()domainName defines at most one of domainId and domainName that must be provided if using username with Identity V3.StringgetIdentityEndpoint()identityEndpoint defines the HTTP endpoint that is required to work with the Identity API of the appropriate version.SecretKeySelectorgetPassword()OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.IntegergetPort()port defines the port to scrape metrics from.StringgetProjectID()projectID defines the OpenStack projectID.StringgetProjectName()projectName defines an optional field for the Identity V2 API.StringgetRefreshInterval()refreshInterval defines the time after which the provided names are refreshed.StringgetRegion()region defines the OpenStack Region.StringgetRole()role defines the OpenStack role of entities that should be discovered.SafeTLSConfiggetTlsConfig()OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.StringgetUserid()userid defines the OpenStack userid.StringgetUsername()username defines the username required if using Identity V2 API.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllTenants(Boolean allTenants)allTenants defines whether the service discovery should list all instances for all projects.voidsetApplicationCredentialId(String applicationCredentialId)applicationCredentialId defines the OpenStack applicationCredentialId.voidsetApplicationCredentialName(String applicationCredentialName)applicationCredentialName defines the ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate.voidsetApplicationCredentialSecret(SecretKeySelector applicationCredentialSecret)OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.voidsetAvailability(String availability)availability defines the availability of the endpoint to connect to.voidsetDomainID(String domainID)domainID defines The OpenStack domainID.voidsetDomainName(String domainName)domainName defines at most one of domainId and domainName that must be provided if using username with Identity V3.voidsetIdentityEndpoint(String identityEndpoint)identityEndpoint defines the HTTP endpoint that is required to work with the Identity API of the appropriate version.voidsetPassword(SecretKeySelector password)OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.voidsetPort(Integer port)port defines the port to scrape metrics from.voidsetProjectID(String projectID)projectID defines the OpenStack projectID.voidsetProjectName(String projectName)projectName defines an optional field for the Identity V2 API.voidsetRefreshInterval(String refreshInterval)refreshInterval defines the time after which the provided names are refreshed.voidsetRegion(String region)region defines the OpenStack Region.voidsetRole(String role)role defines the OpenStack role of entities that should be discovered.voidsetTlsConfig(SafeTLSConfig tlsConfig)OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.voidsetUserid(String userid)userid defines the OpenStack userid.voidsetUsername(String username)username defines the username required if using Identity V2 API.OpenStackSDConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
OpenStackSDConfig
public OpenStackSDConfig()
No args constructor for use in serialization
-
OpenStackSDConfig
public OpenStackSDConfig(Boolean allTenants, String applicationCredentialId, String applicationCredentialName, SecretKeySelector applicationCredentialSecret, String availability, String domainID, String domainName, String identityEndpoint, SecretKeySelector password, Integer port, String projectID, String projectName, String refreshInterval, String region, String role, SafeTLSConfig tlsConfig, String userid, String username)
-
-
Method Detail
-
getAllTenants
public Boolean getAllTenants()
allTenants defines whether the service discovery should list all instances for all projects. It is only relevant for the 'instance' role and usually requires admin permissions.
-
setAllTenants
public void setAllTenants(Boolean allTenants)
allTenants defines whether the service discovery should list all instances for all projects. It is only relevant for the 'instance' role and usually requires admin permissions.
-
getApplicationCredentialId
public String getApplicationCredentialId()
applicationCredentialId defines the OpenStack applicationCredentialId.
-
setApplicationCredentialId
public void setApplicationCredentialId(String applicationCredentialId)
applicationCredentialId defines the OpenStack applicationCredentialId.
-
getApplicationCredentialName
public String getApplicationCredentialName()
applicationCredentialName defines the ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate. Some providers allow you to create an application credential to authenticate rather than a password.
-
setApplicationCredentialName
public void setApplicationCredentialName(String applicationCredentialName)
applicationCredentialName defines the ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate. Some providers allow you to create an application credential to authenticate rather than a password.
-
getApplicationCredentialSecret
public SecretKeySelector getApplicationCredentialSecret()
OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
-
setApplicationCredentialSecret
public void setApplicationCredentialSecret(SecretKeySelector applicationCredentialSecret)
OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
-
getAvailability
public String getAvailability()
availability defines the availability of the endpoint to connect to.
-
setAvailability
public void setAvailability(String availability)
availability defines the availability of the endpoint to connect to.
-
getDomainID
public String getDomainID()
domainID defines The OpenStack domainID.
-
setDomainID
public void setDomainID(String domainID)
domainID defines The OpenStack domainID.
-
getDomainName
public String getDomainName()
domainName defines at most one of domainId and domainName that must be provided if using username with Identity V3. Otherwise, either are optional.
-
setDomainName
public void setDomainName(String domainName)
domainName defines at most one of domainId and domainName that must be provided if using username with Identity V3. Otherwise, either are optional.
-
getIdentityEndpoint
public String getIdentityEndpoint()
identityEndpoint defines the HTTP endpoint that is required to work with the Identity API of the appropriate version.
-
setIdentityEndpoint
public void setIdentityEndpoint(String identityEndpoint)
identityEndpoint defines the HTTP endpoint that is required to work with the Identity API of the appropriate version.
-
getPassword
public SecretKeySelector getPassword()
OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
-
setPassword
public void setPassword(SecretKeySelector password)
OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
-
getPort
public Integer getPort()
port defines the port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
-
setPort
public void setPort(Integer port)
port defines the port to scrape metrics from. If using the public IP address, this must instead be specified in the relabeling rule.
-
getProjectID
public String getProjectID()
projectID defines the OpenStack projectID.
-
setProjectID
public void setProjectID(String projectID)
projectID defines the OpenStack projectID.
-
getProjectName
public String getProjectName()
projectName defines an optional field for the Identity V2 API. Some providers allow you to specify a ProjectName instead of the ProjectId. Some require both. Your provider's authentication policies will determine how these fields influence authentication.
-
setProjectName
public void setProjectName(String projectName)
projectName defines an optional field for the Identity V2 API. Some providers allow you to specify a ProjectName instead of the ProjectId. Some require both. Your provider's authentication policies will determine how these fields influence authentication.
-
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.
-
getRegion
public String getRegion()
region defines the OpenStack Region.
-
setRegion
public void setRegion(String region)
region defines the OpenStack Region.
-
getRole
public String getRole()
role defines the OpenStack role of entities that should be discovered.Note: The `LoadBalancer` role requires Prometheus >= v3.2.0.
-
setRole
public void setRole(String role)
role defines the OpenStack role of entities that should be discovered.Note: The `LoadBalancer` role requires Prometheus >= v3.2.0.
-
getTlsConfig
public SafeTLSConfig getTlsConfig()
OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
-
setTlsConfig
public void setTlsConfig(SafeTLSConfig tlsConfig)
OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances. See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#openstack_sd_config
-
getUserid
public String getUserid()
userid defines the OpenStack userid.
-
setUserid
public void setUserid(String userid)
userid defines the OpenStack userid.
-
getUsername
public String getUsername()
username defines the username required if using Identity V2 API. Consult with your provider's control panel to discover your account's username. In Identity V3, either userid or a combination of username and domainId or domainName are needed
-
setUsername
public void setUsername(String username)
username defines the username required if using Identity V2 API. Consult with your provider's control panel to discover your account's username. In Identity V3, either userid or a combination of username and domainId or domainName are needed
-
edit
public OpenStackSDConfigBuilder edit()
- Specified by:
editin interfaceEditable<OpenStackSDConfigBuilder>
-
toBuilder
public OpenStackSDConfigBuilder toBuilder()
-
-