setCIEventsSchemaConfiguration

On this page
Back to index

Summary

Change the CI events schema configuration.
eventName
Stringrequired
Name of the event.
version
Integerrequired
Version of the event schema.
destination
Stringoptional
Destination of the event.
Possible values: "CD", "DOIS"
destinationMappings
Array<DestinationMapping>optional
Mapping destination types to JSON text with the mapping fields.
eventSchema
Stringoptional
JSON text for the event schema. Required if the event does not already have a schema registered.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.setCIEventsSchemaConfiguration( eventName: "test-eventName", version: "test-version" /* optional arguments */ )