Class GrafanaLogsBackendWithJenkinsVisualization
java.lang.Object
hudson.model.AbstractDescribableImpl<GrafanaLogsBackend>
io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackendWithJenkinsVisualization
- All Implemented Interfaces:
ExtensionPoint
,Describable<GrafanaLogsBackend>
,TemplateBindingsProvider
public class GrafanaLogsBackendWithJenkinsVisualization
extends GrafanaLogsBackend
implements TemplateBindingsProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
GrafanaLogsBackend.LokiOTelLogFormat
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
lokiOTelLogFormat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected static Optional<org.apache.http.auth.Credentials>
getLokiApacheHttpCredentials
(String lokiCredentialsId) int
hashCode()
boolean
newLogStorageRetriever
(TemplateBindingsProvider templateBindingsProvider) Returnsnull
if the backend is not capable of retrieving logs(ie theNoGrafanaLogsBackend
void
setDisableSslVerifications
(boolean disableSslVerifications) void
setGrafanaLokiDatasourceIdentifier
(String grafanaLokiDatasourceIdentifier) void
setLokiCredentialsId
(String lokiCredentialsId) void
setLokiTenantId
(String lokiTenantId) void
setLokiUrl
(String lokiUrl) toString()
Methods inherited from class io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
all, getBuildLogsVisualizationMessageTemplate, getBuildLogsVisualizationUrlTemplate, getDescriptor, getLokiOTelLogFormat, getOtelConfigurationProperties, setLokiOTelLogFormat
-
Constructor Details
-
GrafanaLogsBackendWithJenkinsVisualization
@DataBoundConstructor public GrafanaLogsBackendWithJenkinsVisualization()
-
-
Method Details
-
getGrafanaLokiDatasourceIdentifier
-
setGrafanaLokiDatasourceIdentifier
@DataBoundSetter public void setGrafanaLokiDatasourceIdentifier(String grafanaLokiDatasourceIdentifier) -
newLogStorageRetriever
@MustBeClosed public LogStorageRetriever newLogStorageRetriever(TemplateBindingsProvider templateBindingsProvider) Description copied from class:GrafanaLogsBackend
Returnsnull
if the backend is not capable of retrieving logs(ie theNoGrafanaLogsBackend
- Specified by:
newLogStorageRetriever
in classGrafanaLogsBackend
-
getLokiUrl
-
setLokiUrl
-
isDisableSslVerifications
public boolean isDisableSslVerifications() -
setDisableSslVerifications
@DataBoundSetter public void setDisableSslVerifications(boolean disableSslVerifications) -
getLokiTenantId
-
setLokiTenantId
-
getLokiCredentialsId
-
getLokiApacheHttpCredentials
@NonNull protected static Optional<org.apache.http.auth.Credentials> getLokiApacheHttpCredentials(@Nullable String lokiCredentialsId) - Parameters:
lokiCredentialsId
- Jenkins credentials id
-
setLokiCredentialsId
-
equals
-
hashCode
public int hashCode() -
toString
-
getBindings
- Specified by:
getBindings
in interfaceTemplateBindingsProvider
-