|
|
|
|
@@ -71,6 +71,9 @@ import io.opentelemetry.context.propagation.ContextPropagators;
|
|
|
|
|
import io.opentelemetry.context.propagation.TextMapPropagator;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
|
|
import io.swagger.v3.oas.annotations.extensions.Extension;
|
|
|
|
|
import io.swagger.v3.oas.annotations.extensions.ExtensionProperty;
|
|
|
|
|
import io.swagger.v3.oas.annotations.enums.ParameterIn;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Content;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.ExampleObject;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
@@ -206,7 +209,7 @@ public class ExecutionController {
|
|
|
|
|
@Parameter(description = "The current page") @QueryValue(defaultValue = "1") @Min(1) int page,
|
|
|
|
|
@Parameter(description = "The current page size") @QueryValue(defaultValue = "10") @Min(1) int size,
|
|
|
|
|
@Parameter(description = "The sort of current page") @Nullable @QueryValue List<String> sort,
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
//Deprecated params
|
|
|
|
|
@Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@@ -355,9 +358,9 @@ public class ExecutionController {
|
|
|
|
|
@ApiResponse(responseCode = "204", description = "On success")
|
|
|
|
|
public HttpResponse<Void> deleteExecution(
|
|
|
|
|
@Parameter(description = "The execution id") @PathVariable String executionId,
|
|
|
|
|
@Parameter(description = "Whether to delete execution logs") @QueryValue(defaultValue = "true") Boolean deleteLogs,
|
|
|
|
|
@Parameter(description = "Whether to delete execution metrics") @QueryValue(defaultValue = "true") Boolean deleteMetrics,
|
|
|
|
|
@Parameter(description = "Whether to delete execution files in the internal storage") @QueryValue(defaultValue = "true") Boolean deleteStorage
|
|
|
|
|
@Parameter(description = "Whether to delete execution logs", required = false) @QueryValue(defaultValue = "true") Boolean deleteLogs,
|
|
|
|
|
@Parameter(description = "Whether to delete execution metrics", required = false) @QueryValue(defaultValue = "true") Boolean deleteMetrics,
|
|
|
|
|
@Parameter(description = "Whether to delete execution files in the internal storage", required = false) @QueryValue(defaultValue = "true") Boolean deleteStorage
|
|
|
|
|
) throws IOException {
|
|
|
|
|
Optional<Execution> execution = executionRepository.findById(tenantService.resolveTenant(), executionId);
|
|
|
|
|
if (execution.isPresent()) {
|
|
|
|
|
@@ -376,9 +379,9 @@ public class ExecutionController {
|
|
|
|
|
public MutableHttpResponse<?> deleteExecutionsByIds(
|
|
|
|
|
@RequestBody(description = "The execution id") @Body List<String> executionsId,
|
|
|
|
|
@Parameter(description = "Whether to delete non-terminated executions") @Nullable @QueryValue(defaultValue = "false") Boolean includeNonTerminated,
|
|
|
|
|
@Parameter(description = "Whether to delete execution logs") @QueryValue(defaultValue = "true") Boolean deleteLogs,
|
|
|
|
|
@Parameter(description = "Whether to delete execution metrics") @QueryValue(defaultValue = "true") Boolean deleteMetrics,
|
|
|
|
|
@Parameter(description = "Whether to delete execution files in the internal storage") @QueryValue(defaultValue = "true") Boolean deleteStorage
|
|
|
|
|
@Parameter(description = "Whether to delete execution logs", required = false) @QueryValue(defaultValue = "true") Boolean deleteLogs,
|
|
|
|
|
@Parameter(description = "Whether to delete execution metrics", required = false) @QueryValue(defaultValue = "true") Boolean deleteMetrics,
|
|
|
|
|
@Parameter(description = "Whether to delete execution files in the internal storage", required = false) @QueryValue(defaultValue = "true") Boolean deleteStorage
|
|
|
|
|
) throws IOException {
|
|
|
|
|
List<Execution> executions = new ArrayList<>();
|
|
|
|
|
Set<ManualConstraintViolation<String>> invalids = new HashSet<>();
|
|
|
|
|
@@ -417,27 +420,27 @@ public class ExecutionController {
|
|
|
|
|
@ExecuteOn(TaskExecutors.IO)
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Delete executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> deleteExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
|
|
|
|
|
@Parameter(description = "Whether to delete non-terminated executions") @Nullable @QueryValue(defaultValue = "false") Boolean includeNonTerminated,
|
|
|
|
|
@Parameter(description = "Whether to delete execution logs") @QueryValue(defaultValue = "true") Boolean deleteLogs,
|
|
|
|
|
@Parameter(description = "Whether to delete execution metrics") @QueryValue(defaultValue = "true") Boolean deleteMetrics,
|
|
|
|
|
@Parameter(description = "Whether to delete execution files in the internal storage") @QueryValue(defaultValue = "true") Boolean deleteStorage
|
|
|
|
|
@Parameter(description = "Whether to delete execution logs", required = false) @QueryValue(defaultValue = "true") Boolean deleteLogs,
|
|
|
|
|
@Parameter(description = "Whether to delete execution metrics", required = false) @QueryValue(defaultValue = "true") Boolean deleteMetrics,
|
|
|
|
|
@Parameter(description = "Whether to delete execution files in the internal storage", required = false) @QueryValue(defaultValue = "true") Boolean deleteStorage
|
|
|
|
|
) throws IOException {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
filters,
|
|
|
|
|
@@ -690,7 +693,16 @@ public class ExecutionController {
|
|
|
|
|
|
|
|
|
|
@ExecuteOn(TaskExecutors.IO)
|
|
|
|
|
@Post(uri = "/{namespace}/{id}", consumes = MediaType.MULTIPART_FORM_DATA)
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Create a new execution for a flow")
|
|
|
|
|
@Operation(
|
|
|
|
|
tags = {"Executions"},
|
|
|
|
|
summary = "Create a new execution for a flow",
|
|
|
|
|
extensions = @Extension(
|
|
|
|
|
name = "x-sdk-customization",
|
|
|
|
|
properties = {
|
|
|
|
|
@ExtensionProperty(name = "x-multipart", value = "true")
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
@ApiResponse(responseCode = "409", description = "if the flow is disabled")
|
|
|
|
|
@ApiResponse(responseCode = "200", description = "On execution created", content = {@Content(schema = @Schema(implementation = ExecutionResponse.class))})
|
|
|
|
|
@SingleResult
|
|
|
|
|
@@ -1020,22 +1032,22 @@ public class ExecutionController {
|
|
|
|
|
@Post(uri = "/restart/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Restart executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> restartExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
) throws Exception {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
filters,
|
|
|
|
|
@@ -1080,13 +1092,32 @@ public class ExecutionController {
|
|
|
|
|
|
|
|
|
|
@ExecuteOn(TaskExecutors.IO)
|
|
|
|
|
@Post(uri = "/{executionId}/replay-with-inputs", consumes = MediaType.MULTIPART_FORM_DATA)
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Create a new execution from an old one and start it from a specified task run id")
|
|
|
|
|
@Operation(
|
|
|
|
|
tags = {"Executions"},
|
|
|
|
|
summary = "Create a new execution from an old one and start it from a specified task run id",
|
|
|
|
|
extensions = @Extension(
|
|
|
|
|
name = "x-sdk-customization",
|
|
|
|
|
properties = {
|
|
|
|
|
@ExtensionProperty(name = "x-multipart", value = "true")
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
public Mono<Execution> replayExecutionWithinputs(
|
|
|
|
|
@Parameter(description = "the original execution id to clone") @PathVariable String executionId,
|
|
|
|
|
@Parameter(description = "The taskrun id") @Nullable @QueryValue String taskRunId,
|
|
|
|
|
@Parameter(description = "The flow revision to use for new execution") @Nullable @QueryValue Integer revision,
|
|
|
|
|
@Parameter(description = "Set a list of breakpoints at specific tasks 'id.value', separated by a coma.") @QueryValue Optional<String> breakpoints,
|
|
|
|
|
@RequestBody(description = "The inputs") @Body MultipartBody inputs
|
|
|
|
|
@RequestBody(
|
|
|
|
|
description = "The inputs (multipart map)",
|
|
|
|
|
content = @Content(
|
|
|
|
|
mediaType = MediaType.MULTIPART_FORM_DATA,
|
|
|
|
|
schema = @Schema(
|
|
|
|
|
type = "object",
|
|
|
|
|
additionalProperties = Schema.AdditionalPropertiesValue.TRUE,
|
|
|
|
|
additionalPropertiesSchema = Object.class
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
) @Body MultipartBody inputs
|
|
|
|
|
) {
|
|
|
|
|
Optional<Execution> execution = executionRepository.findById(tenantService.resolveTenant(), executionId);
|
|
|
|
|
if (execution.isEmpty()) {
|
|
|
|
|
@@ -1263,22 +1294,22 @@ public class ExecutionController {
|
|
|
|
|
@ApiResponse(responseCode = "200", description = "On success", content = {@Content(schema = @Schema(implementation = BulkResponse.class))})
|
|
|
|
|
@ApiResponse(responseCode = "422", description = "Changed state with errors", content = {@Content(schema = @Schema(implementation = BulkErrorResponse.class))})
|
|
|
|
|
public HttpResponse<?> updateExecutionsStatusByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
@Parameter(description = "The new state of the executions") @NotNull @QueryValue State.Type newStatus
|
|
|
|
|
) throws QueueException {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
@@ -1541,22 +1572,22 @@ public class ExecutionController {
|
|
|
|
|
@Post(uri = "/resume/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Resume executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> resumeExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
) throws Exception {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
filters,
|
|
|
|
|
@@ -1650,22 +1681,22 @@ public class ExecutionController {
|
|
|
|
|
@Post(uri = "/pause/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Pause executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> pauseExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
) throws Exception {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
filters,
|
|
|
|
|
@@ -1694,22 +1725,22 @@ public class ExecutionController {
|
|
|
|
|
@Delete(uri = "/kill/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Kill executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> killExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
) throws QueueException {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
filters,
|
|
|
|
|
@@ -1738,22 +1769,22 @@ public class ExecutionController {
|
|
|
|
|
@Post(uri = "/replay/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Create new executions from old ones filter by query parameters. Keep the flow revision")
|
|
|
|
|
public HttpResponse<?> replayExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
|
|
|
|
|
@Parameter(description = "If latest revision should be used") @Nullable @QueryValue(defaultValue = "false") Boolean latestRevision
|
|
|
|
|
) throws Exception {
|
|
|
|
|
@@ -1829,7 +1860,17 @@ public class ExecutionController {
|
|
|
|
|
|
|
|
|
|
@ExecuteOn(TaskExecutors.IO)
|
|
|
|
|
@Get(uri = "/{executionId}/follow", produces = MediaType.TEXT_EVENT_STREAM)
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Follow an execution")
|
|
|
|
|
@Operation(
|
|
|
|
|
tags = {"Executions"},
|
|
|
|
|
summary = "Follow an execution",
|
|
|
|
|
extensions = @Extension(
|
|
|
|
|
name = "x-sdk-customization",
|
|
|
|
|
properties = {
|
|
|
|
|
@ExtensionProperty(name = "x-replace-follow-execution", value = "true"),
|
|
|
|
|
@ExtensionProperty(name = "x-skipped", value = "true")
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
public Flux<Event<Execution>> followExecution(
|
|
|
|
|
@Parameter(description = "The execution id") @PathVariable String executionId
|
|
|
|
|
) {
|
|
|
|
|
@@ -2046,22 +2087,22 @@ public class ExecutionController {
|
|
|
|
|
@Post(uri = "/labels/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Set label on executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> setLabelsOnTerminatedExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
|
|
|
|
|
@RequestBody(description = "The labels to add to the execution") @Body @NotNull @Valid List<Label> setLabels
|
|
|
|
|
) {
|
|
|
|
|
@@ -2163,22 +2204,22 @@ public class ExecutionController {
|
|
|
|
|
@Post(uri = "/unqueue/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Unqueue executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> unqueueExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter,
|
|
|
|
|
@Parameter(description = "The new state of the unqueued executions") @Nullable @QueryValue State.Type newState
|
|
|
|
|
) throws Exception {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
@@ -2277,22 +2318,22 @@ public class ExecutionController {
|
|
|
|
|
@Post(uri = "/force-run/by-query")
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Force run executions filter by query parameters")
|
|
|
|
|
public HttpResponse<?> forceRunExecutionsByQuery(
|
|
|
|
|
@Parameter(description = "Filters") @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
@Parameter(description = "Filters", in = ParameterIn.QUERY) @QueryFilterFormat List<QueryFilter> filters,
|
|
|
|
|
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter") @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include") @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix") @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter") @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime") @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", examples = {
|
|
|
|
|
@Deprecated @Parameter(description = "A string filter", deprecated = true) @Nullable @QueryValue(value = "q") String query,
|
|
|
|
|
@Deprecated @Parameter(description = "The scope of the executions to include", deprecated = true) @Nullable @QueryValue(value = "scope") List<FlowScope> scope,
|
|
|
|
|
@Deprecated @Parameter(description = "A namespace filter prefix", deprecated = true) @Nullable @QueryValue String namespace,
|
|
|
|
|
@Deprecated @Parameter(description = "A flow id filter", deprecated = true) @Nullable @QueryValue String flowId,
|
|
|
|
|
@Deprecated @Parameter(description = "The start datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime startDate,
|
|
|
|
|
@Deprecated @Parameter(description = "The end datetime", deprecated = true) @Nullable @Format("yyyy-MM-dd'T'HH:mm[:ss][.SSS][XXX]") @QueryValue ZonedDateTime endDate,
|
|
|
|
|
@Deprecated @Parameter(description = "A time range filter relative to the current time", deprecated = true, examples = {
|
|
|
|
|
@ExampleObject(name = "Filter last 5 minutes", value = "PT5M"),
|
|
|
|
|
@ExampleObject(name = "Filter last 24 hours", value = "P1D")
|
|
|
|
|
}) @Nullable @QueryValue Duration timeRange,
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter") @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'") @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id") @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter") @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
@Deprecated @Parameter(description = "A state filter", deprecated = true) @Nullable @QueryValue List<State.Type> state,
|
|
|
|
|
@Deprecated @Parameter(description = "A labels filter as a list of 'key:value'", deprecated = true) @Nullable @QueryValue @Format("MULTI") List<String> labels,
|
|
|
|
|
@Deprecated @Parameter(description = "The trigger execution id", deprecated = true) @Nullable @QueryValue String triggerExecutionId,
|
|
|
|
|
@Deprecated @Parameter(description = "A execution child filter", deprecated = true) @Nullable @QueryValue ExecutionRepositoryInterface.ChildFilter childFilter
|
|
|
|
|
) throws Exception {
|
|
|
|
|
filters = RequestUtils.getFiltersOrDefaultToLegacyMapping(
|
|
|
|
|
filters,
|
|
|
|
|
@@ -2367,7 +2408,17 @@ public class ExecutionController {
|
|
|
|
|
|
|
|
|
|
@ExecuteOn(TaskExecutors.IO)
|
|
|
|
|
@Get(uri = "/{executionId}/follow-dependencies", produces = MediaType.TEXT_EVENT_STREAM)
|
|
|
|
|
@Operation(tags = {"Executions"}, summary = "Follow all execution dependencies executions")
|
|
|
|
|
@Operation(
|
|
|
|
|
tags = {"Executions"},
|
|
|
|
|
summary = "Follow all execution dependencies executions",
|
|
|
|
|
extensions = @Extension(
|
|
|
|
|
name = "x-sdk-customization",
|
|
|
|
|
properties = {
|
|
|
|
|
@ExtensionProperty(name = "x-replace-follow-dependencies-execution", value = "true"),
|
|
|
|
|
@ExtensionProperty(name = "x-skipped", value = "true")
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
public Flux<Event<ExecutionStatusEvent>> followDependenciesExecutions(
|
|
|
|
|
@Parameter(description = "The execution id") @PathVariable String executionId,
|
|
|
|
|
@Parameter(description = "If true, list only destination dependencies, otherwise list also source dependencies") @QueryValue(defaultValue = "false") boolean destinationOnly,
|
|
|
|
|
|