FilterConfiguration

In package com.cdsap.talaiot.configuration

class com.cdsap.talaiot.configuration.FilterConfiguration

Configuration to specify the filters for the tasks that should be processed by the publisher. Filters included: Task Name, Module Name and Threshold duration of the execution.

Used in OutputConfiguration and InfluxDbConfiguration. Not used in TaskDependencyGraphConfiguration due to requirement to display dependency of the task build.

Example:

filter{ tasks{ includes = arrayOf("cle.") excludes = arrayOf("taskA")}modules{ includes = arrayOf("feature.") excludes = arrayOf("utils.*") } threshold }

Fields

var tasks: StringFilter?

A regex based filter to include and exclude tasks

var modules: StringFilter?

A regex based filter to include and exclude module

var threshold: ThresholdConfiguration?

A range to filter the duration of execution of the task

Constructors

constructor()

Configuration to specify the filters for the tasks that should be processed by the publisher. Filters included: Task Name, Module Name and Threshold duration of the execution.

Used in OutputConfiguration and InfluxDbConfiguration. Not used in TaskDependencyGraphConfiguration due to requirement to display dependency of the task build.

Example:

filter{ tasks{ includes = arrayOf("cle.") excludes = arrayOf("taskA")}modules{ includes = arrayOf("feature.") excludes = arrayOf("utils.*") } threshold }

Parameters:
  • No parameters

Methods

fun tasks(configuration: StringFilter.()->Unit)
Parameters:
fun tasks(closure: )
Parameters:
  • closure:
fun modules(configuration: StringFilter.()->Unit)
Parameters:
fun modules(closure: )
Parameters:
  • closure:
fun threshold(configuration: ThresholdConfiguration.()->Unit)
Parameters:
fun threshold(closure: )
Parameters:
  • closure: