Tasks processing description¶
- class luna_backport4.app.handlers.tasks_create_task_handler.ClusteringTaskHandler(request)[source]
Handler for work with clustering task. See spec_clustering.
Resource: “/{api_version}/tasks/clustering”
- async prepareRequestPost()[source]
Create clustering proxy request in platform5 format.
Update events filters.
- Returns:
request in platform5 format
- class luna_backport4.app.handlers.tasks_create_task_handler.CrossMatchingTaskHandler(request)[source]
Handler for work with cross match task. See spec_cross_match.
Resource: “/{api_version}/tasks/cross_match”
- async prepareRequestPost()[source]
Create cross matching proxy request in platform5 format.
Update events filters.
- Returns:
request in platform5 format
- Return type:
ProxyRequest
- class luna_backport4.app.handlers.tasks_create_task_handler.GCTaskHandler(request)[source]
Handler for work with gc task.
Resource: “/{api_version}/tasks/gc”
- async prepareRequestPost()[source]
Prepare proxy request for method post :returns: proxy request
- class luna_backport4.app.handlers.tasks_create_task_handler.LinkerTaskHandler(request)[source]
Handler for work with linker task. See spec_linker.
Resource: “/{api_version}/tasks/linker”
- async prepareRequestPost()[source]
Create linker proxy request in platform5 format.
Update events filters.
- Returns:
request in platform5 format
- class luna_backport4.app.handlers.tasks_create_task_handler.ROCTaskHandler(request)[source]
Handler for work with roc task. See spec_roc.
Resource: “/{api_version}/tasks/roc”
- class luna_backport4.app.handlers.tasks_create_task_handler.ReporterTaskHandler(request)[source]
Handler for work with reporter task.See spec_reporter.
Resource: “/{api_version}/tasks/reporter”
- async prepareRequestPost()[source]
Create reporter proxy request in platform5 format.
Update report columns.
- Returns:
request in platform5 format
- luna_backport4.app.handlers.tasks_create_task_handler.updateEventFilters(inputFilters)[source]
Update event filters, replace top_matching filters :param inputFilters: input events filters
Handler to work with a tasks. See spec_tasks
- class luna_backport4.app.handlers.tasks_handler.TaskHandler(request)[source]
Handler for work with task.
Resource: “/{api_version}/tasks/{taskId}”
- async postProcessingGet(response)[source]
Remove account_id and descriptor type from response
- Parameters:
response – response from api
- Returns:
response in platform4 format
- Return type:
HTTPResponse
- class luna_backport4.app.handlers.tasks_handler.TaskResultHandler(request)[source]
Handler for work with task.
Resource: “/{api_version}/tasks/{taskId}/result”
- async get(taskId)[source]
Get task result. See `spec_get_task_result`_.
- Parameters:
taskId – task id
- class luna_backport4.app.handlers.tasks_handler.TaskSubtaskHandler(request)[source]
Handler for work with task.
Resource: “/{api_version}/tasks/{taskId}/subtasks”
- async postProcessingGet(response)[source]
Remove descriptor type from response
- Parameters:
response – response from api
- Returns:
response in platform4 format
- Return type:
HTTPResponse
- class luna_backport4.app.handlers.tasks_handler.TasksCountHandler(request)[source]
Handler for work with task count.
Resource: “/{api_version}/tasks/count”
- class luna_backport4.app.handlers.tasks_handler.TasksHandler(request)[source]
Handler for work with tasks.
Resource: “/{api_version}/tasks”
- async postProcessingGet(response)[source]
Remove account_id and descriptor type from response
- Parameters:
response – response from api
- Returns:
response in platform4 format
- Return type:
HTTPResponse
- luna_backport4.app.handlers.tasks_handler.updateReporterColumns(reporterColumns)[source]
Update event columns for report task :param reporterColumns: list of reporter columns
- Return type:
None
- luna_backport4.app.handlers.tasks_handler.updateTaskContent(inputTaskContent, taskType=None)[source]
Update task content :param inputTaskContent: input task content :param taskType: task type
- Return type:
None
- luna_backport4.app.handlers.tasks_handler.updateTaskFilters(inputFilters)[source]
Update task filters, replace top_matching filters :param inputFilters: input events filters
- Return type:
None
See Luna Tasks developer manual for more information.