Class OpenStackSDConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.OpenStackSDConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OpenStackSDConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OpenStackSDConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<OpenStackSDConfigBuilder>, io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.SecretKeySelector applicationCredentialSecret, String availability, String domainID, String domainName, String identityEndpoint, io.fabric8.kubernetes.api.model.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()Whether the service discovery should list all instances for all projects.StringgetApplicationCredentialId()ApplicationCredentialIDStringgetApplicationCredentialName()The ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate.io.fabric8.kubernetes.api.model.SecretKeySelectorgetApplicationCredentialSecret()OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.StringgetAvailability()Availability of the endpoint to connect to.StringgetDomainID()DomainIDStringgetDomainName()At most one of domainId and domainName must be provided if using username with Identity V3.StringgetIdentityEndpoint()IdentityEndpoint specifies the HTTP endpoint that is required to work with the Identity API of the appropriate version.io.fabric8.kubernetes.api.model.SecretKeySelectorgetPassword()OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.IntegergetPort()The port to scrape metrics from.StringgetProjectID()ProjectIDStringgetProjectName()The ProjectId and ProjectName fields are optional for the Identity V2 API.StringgetRefreshInterval()Refresh interval to re-read the instance list.StringgetRegion()The OpenStack Region.StringgetRole()The OpenStack role of entities that should be discovered.SafeTLSConfiggetTlsConfig()OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.StringgetUserid()UserIDStringgetUsername()Username is required if using Identity V2 API.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllTenants(Boolean allTenants)Whether the service discovery should list all instances for all projects.voidsetApplicationCredentialId(String applicationCredentialId)ApplicationCredentialIDvoidsetApplicationCredentialName(String applicationCredentialName)The ApplicationCredentialID or ApplicationCredentialName fields are required if using an application credential to authenticate.voidsetApplicationCredentialSecret(io.fabric8.kubernetes.api.model.SecretKeySelector applicationCredentialSecret)OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.voidsetAvailability(String availability)Availability of the endpoint to connect to.voidsetDomainID(String domainID)DomainIDvoidsetDomainName(String domainName)At most one of domainId and domainName must be provided if using username with Identity V3.voidsetIdentityEndpoint(String identityEndpoint)IdentityEndpoint specifies the HTTP endpoint that is required to work with the Identity API of the appropriate version.voidsetPassword(io.fabric8.kubernetes.api.model.SecretKeySelector password)OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.voidsetPort(Integer port)The port to scrape metrics from.voidsetProjectID(String projectID)ProjectIDvoidsetProjectName(String projectName)The ProjectId and ProjectName fields are optional for the Identity V2 API.voidsetRefreshInterval(String refreshInterval)Refresh interval to re-read the instance list.voidsetRegion(String region)The OpenStack Region.voidsetRole(String role)The OpenStack role of entities that should be discovered.voidsetTlsConfig(SafeTLSConfig tlsConfig)OpenStackSDConfig allow retrieving scrape targets from OpenStack Nova instances.voidsetUserid(String userid)UserIDvoidsetUsername(String username)Username is 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, io.fabric8.kubernetes.api.model.SecretKeySelector applicationCredentialSecret, String availability, String domainID, String domainName, String identityEndpoint, io.fabric8.kubernetes.api.model.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()
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)
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
-
setApplicationCredentialId
public void setApplicationCredentialId(String applicationCredentialId)
ApplicationCredentialID
-
getApplicationCredentialName
public String getApplicationCredentialName()
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)
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 io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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 of the endpoint to connect to.
-
setAvailability
public void setAvailability(String availability)
Availability of the endpoint to connect to.
-
getDomainID
public String getDomainID()
DomainID
-
setDomainID
public void setDomainID(String domainID)
DomainID
-
getDomainName
public String getDomainName()
At most one of domainId and domainName must be provided if using username with Identity V3. Otherwise, either are optional.
-
setDomainName
public void setDomainName(String domainName)
At most one of domainId and domainName must be provided if using username with Identity V3. Otherwise, either are optional.
-
getIdentityEndpoint
public String getIdentityEndpoint()
IdentityEndpoint specifies the HTTP endpoint that is required to work with the Identity API of the appropriate version.
-
setIdentityEndpoint
public void setIdentityEndpoint(String identityEndpoint)
IdentityEndpoint specifies the HTTP endpoint that is required to work with the Identity API of the appropriate version.
-
getPassword
public io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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()
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)
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
-
setProjectID
public void setProjectID(String projectID)
ProjectID
-
getProjectName
public String getProjectName()
The ProjectId and ProjectName fields are optional 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)
The ProjectId and ProjectName fields are optional 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()
Refresh interval to re-read the instance list.
-
setRefreshInterval
public void setRefreshInterval(String refreshInterval)
Refresh interval to re-read the instance list.
-
getRegion
public String getRegion()
The OpenStack Region.
-
setRegion
public void setRegion(String region)
The OpenStack Region.
-
getRole
public String getRole()
The OpenStack role of entities that should be discovered.Note: The `LoadBalancer` role requires Prometheus >= v3.2.0.
-
setRole
public void setRole(String role)
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
-
setUserid
public void setUserid(String userid)
UserID
-
getUsername
public String getUsername()
Username is 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 is 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 interfaceio.fabric8.kubernetes.api.builder.Editable<OpenStackSDConfigBuilder>
-
toBuilder
public OpenStackSDConfigBuilder toBuilder()
-
-