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
  • Constructor Details

    • GrafanaLogsBackendWithJenkinsVisualization

      @DataBoundConstructor public GrafanaLogsBackendWithJenkinsVisualization()
  • Method Details

    • getGrafanaLokiDatasourceIdentifier

      public String getGrafanaLokiDatasourceIdentifier()
    • setGrafanaLokiDatasourceIdentifier

      @DataBoundSetter public void setGrafanaLokiDatasourceIdentifier(String grafanaLokiDatasourceIdentifier)
    • newLogStorageRetriever

      @MustBeClosed public LogStorageRetriever newLogStorageRetriever(TemplateBindingsProvider templateBindingsProvider)
      Description copied from class: GrafanaLogsBackend
      Returns null if the backend is not capable of retrieving logs(ie the NoGrafanaLogsBackend
      Specified by:
      newLogStorageRetriever in class GrafanaLogsBackend
    • getLokiUrl

      public String getLokiUrl()
    • setLokiUrl

      @DataBoundSetter public void setLokiUrl(String lokiUrl)
    • isDisableSslVerifications

      public boolean isDisableSslVerifications()
    • setDisableSslVerifications

      @DataBoundSetter public void setDisableSslVerifications(boolean disableSslVerifications)
    • getLokiTenantId

      public String getLokiTenantId()
    • setLokiTenantId

      @DataBoundSetter public void setLokiTenantId(String lokiTenantId)
    • getLokiCredentialsId

      public String getLokiCredentialsId()
    • getLokiApacheHttpCredentials

      @NonNull protected static Optional<org.apache.http.auth.Credentials> getLokiApacheHttpCredentials(@Nullable String lokiCredentialsId)
      Parameters:
      lokiCredentialsId - Jenkins credentials id
    • setLokiCredentialsId

      @DataBoundSetter public void setLokiCredentialsId(String lokiCredentialsId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBindings

      public Map<String,Object> getBindings()
      Specified by:
      getBindings in interface TemplateBindingsProvider