Class PrometheusFetchTask
java.lang.Object
com.netflix.kayenta.prometheus.orca.PrometheusFetchTask
- All Implemented Interfaces:
com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint,com.netflix.spinnaker.orca.api.pipeline.RetryableTask,com.netflix.spinnaker.orca.api.pipeline.Task,org.pf4j.ExtensionPoint
@Component
public class PrometheusFetchTask
extends Object
implements com.netflix.spinnaker.orca.api.pipeline.RetryableTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.netflix.spinnaker.orca.api.pipeline.Task
com.netflix.spinnaker.orca.api.pipeline.Task.Aliases -
Constructor Summary
ConstructorsConstructorDescriptionPrometheusFetchTask(com.fasterxml.jackson.databind.ObjectMapper kayentaObjectMapper, com.netflix.kayenta.security.AccountCredentialsRepository accountCredentialsRepository, com.netflix.kayenta.metrics.SynchronousQueryProcessor synchronousQueryProcessor) -
Method Summary
Modifier and TypeMethodDescriptioncom.netflix.spinnaker.orca.api.pipeline.TaskResultexecute(com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage) longlongMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.spinnaker.orca.api.pipeline.RetryableTask
getDynamicBackoffPeriod, getDynamicBackoffPeriod, getDynamicTimeoutMethods inherited from interface com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint
getExtensionClass, getPluginIdMethods inherited from interface com.netflix.spinnaker.orca.api.pipeline.Task
aliases, filterContextOutputs, onCancel, onCancelWithResult, onTimeout
-
Constructor Details
-
PrometheusFetchTask
@Autowired public PrometheusFetchTask(com.fasterxml.jackson.databind.ObjectMapper kayentaObjectMapper, com.netflix.kayenta.security.AccountCredentialsRepository accountCredentialsRepository, com.netflix.kayenta.metrics.SynchronousQueryProcessor synchronousQueryProcessor)
-
-
Method Details
-
getBackoffPeriod
public long getBackoffPeriod()- Specified by:
getBackoffPeriodin interfacecom.netflix.spinnaker.orca.api.pipeline.RetryableTask
-
getTimeout
public long getTimeout()- Specified by:
getTimeoutin interfacecom.netflix.spinnaker.orca.api.pipeline.RetryableTask
-
execute
@Nonnull public com.netflix.spinnaker.orca.api.pipeline.TaskResult execute(@Nonnull com.netflix.spinnaker.orca.api.pipeline.models.StageExecution stage) - Specified by:
executein interfacecom.netflix.spinnaker.orca.api.pipeline.Task
-