Class GrafanaLogsBackend
java.lang.Object
hudson.model.AbstractDescribableImpl<GrafanaLogsBackend>
io.jenkins.plugins.opentelemetry.backend.grafana.GrafanaLogsBackend
- All Implemented Interfaces:
ExtensionPoint,Describable<GrafanaLogsBackend>
- Direct Known Subclasses:
GrafanaLogsBackendBackendWithLogMirroringInJenkins,GrafanaLogsBackendWithJenkinsVisualization,GrafanaLogsBackendWithoutJenkinsVisualization,NoGrafanaLogsBackend
public abstract class GrafanaLogsBackend
extends AbstractDescribableImpl<GrafanaLogsBackend>
implements ExtensionPoint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Returns all the registeredGrafanaLogsBackenddescriptors.groovy.text.Templategroovy.text.Templateabstract LogStorageRetrievernewLogStorageRetriever(TemplateBindingsProvider templateBindingsProvider) Returnsnullif the backend is not capable of retrieving logs(ie theNoGrafanaLogsBackendvoidsetLokiOTelLogFormat(String lokiOTelLogFormat)
-
Field Details
-
lokiOTelLogFormat
-
-
Constructor Details
-
GrafanaLogsBackend
public GrafanaLogsBackend()
-
-
Method Details
-
newLogStorageRetriever
@CheckForNull @MustBeClosed public abstract LogStorageRetriever newLogStorageRetriever(TemplateBindingsProvider templateBindingsProvider) Returnsnullif the backend is not capable of retrieving logs(ie theNoGrafanaLogsBackend -
getBuildLogsVisualizationMessageTemplate
@NonNull public groovy.text.Template getBuildLogsVisualizationMessageTemplate() -
getBuildLogsVisualizationUrlTemplate
@NonNull public groovy.text.Template getBuildLogsVisualizationUrlTemplate() -
getOtelConfigurationProperties
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<GrafanaLogsBackend>- Overrides:
getDescriptorin classAbstractDescribableImpl<GrafanaLogsBackend>
-
getLokiOTelLogFormat
-
setLokiOTelLogFormat
-
all
Returns all the registeredGrafanaLogsBackenddescriptors.
-