PublishersConfiguration

In package com.cdsap.talaiot.configuration

class com.cdsap.talaiot.configuration.PublishersConfiguration

Main configuration for the publishers.

It offers the accessors for Groovy and KTS

publishers { influxDbPublisher { } outputPublisher { } taskDependencyGraphPublisher { } pushGatewayPublisher { } customDependencies { } }

Fields

var influxDbPublisher: InfluxDbPublisherConfiguration?

Access to the configuration of com.cdsap.talaiot.publisher.InfluxDbPublisher

var outputPublisher: OutputPublisherConfiguration?

Access to the configuration of com.cdsap.talaiot.publisher.OutputPublisher

var pushGatewayPublisher: PushGatewayPublisherConfiguration?

Access to the configuration of com.cdsap.talaiot.publisher.PushGatewayPublisher

var taskDependencyGraphPublisher: TaskDependencyGraphConfiguration?

Access to the configuration of com.cdsap.talaiot.publisher.TaskDependencyGraphPublisher

var timelinePublisher: Boolean

Flag to enable com.cdsap.talaiot.publisher.timeline.TimelinePublisher

Generates an html report with the timeline of task execution

var jsonPublisher: Boolean

Flag to enable com.cdsap.talaiot.publisher.JsonPublisher

Generates a json representation of com.cdsap.talaiot.entities.ExecutionReport

var customPublisher: Publisher?

Definition of a custom Publisher in the PublisherConfiguration. Requires implementation of Publisher.

Some users of plugin might need to use a custom publisher to push to internal analytics for example.

project:

Constructors

constructor(project: )

Main configuration for the publishers.

It offers the accessors for Groovy and KTS

publishers { influxDbPublisher { } outputPublisher { } taskDependencyGraphPublisher { } pushGatewayPublisher { } customDependencies { } }

Parameters:
  • project:

Methods

fun taskDependencyGraphPublisher(configuration: TaskDependencyGraphConfiguration.()->Unit)

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.TaskDependencyGraphPublisher

Parameters:
fun taskDependencyGraphPublisher(closure: )

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.TaskDependencyGraphPublisher

Parameters:
  • closure:

    closure for the TaskDependencyGraphConfiguration

fun influxDbPublisher(configuration: InfluxDbPublisherConfiguration.()->Unit)

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.InfluxDbPublisher

Parameters:
fun influxDbPublisher(closure: )

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.InfluxDbPublisher

Parameters:
  • closure:

    closure for the InfluxDbPublisherConfiguration

fun pushGatewayPublisher(configuration: PushGatewayPublisherConfiguration.()->Unit)

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.PushGatewayPublisher

Parameters:
fun pushGatewayPublisher(closure: )

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.PushGatewayPublisher

Parameters:
  • closure:

    closure for the PushGatewayPublisherConfiguration

fun outputPublisher(configuration: OutputPublisherConfiguration.()->Unit)

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.OutputPublisher

Parameters:
fun outputPublisher(closure: )

Configuration accessor within the PublishersConfiguration for the com.cdsap.talaiot.publisher.OutputPublisher

Parameters:
  • closure:

    closure for the OutputPublisherConfiguration

fun customPublisher(configuration: Publisher)

Configuration accessor within the PublishersConfiguration for the custom implementation for Publisher

Will override another custom publisher instance if present

Parameters:
  • configuration: Publisher

    instance of your publisher