Package jenkins.telemetry.impl
Class StaplerDispatches
- java.lang.Object
-
- jenkins.telemetry.Telemetry
-
- jenkins.telemetry.impl.StaplerDispatches
-
- All Implemented Interfaces:
ExtensionPoint
@Extension @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class StaplerDispatches extends Telemetry
Telemetry implementation gathering information about Stapler dispatch routes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStaplerDispatches.StaplerTrace-
Nested classes/interfaces inherited from class jenkins.telemetry.Telemetry
Telemetry.TelemetryReporter
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description StaplerDispatches()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.json.JSONObjectcreateContent()Returns the content to be sent to the telemetry service.StringgetDisplayName()User friendly display name for this telemetry collector, ideally localized.LocalDategetEnd()End date for the collection.LocalDategetStart()Start date for the collection.-
Methods inherited from class jenkins.telemetry.Telemetry
all, buildComponentInformation, getId, isActivePeriod, isDisabled
-
-
-
-
Method Detail
-
getStart
@NonNull public LocalDate getStart()
Description copied from class:TelemetryStart date for the collection. Will be checked in Jenkins to not collect outside the defined time span. This does not have to be precise enough for time zones to be a consideration.
-
getEnd
@NonNull public LocalDate getEnd()
Description copied from class:TelemetryEnd date for the collection. Will be checked in Jenkins to not collect outside the defined time span. This does not have to be precise enough for time zones to be a consideration.
-
getDisplayName
@NonNull public String getDisplayName()
Description copied from class:TelemetryUser friendly display name for this telemetry collector, ideally localized.- Specified by:
getDisplayNamein classTelemetry- Returns:
- display name, never null or empty
-
createContent
public net.sf.json.JSONObject createContent()
Description copied from class:TelemetryReturns the content to be sent to the telemetry service. This method is called periodically, once per content submission.- Specified by:
createContentin classTelemetry- Returns:
- The JSON payload, or null if no content should be submitted.
-
-