type: "io.kestra.plugin.cassandra.standard.Trigger"
Wait for a query to return results on a Cassandra database.
Examples
Wait for a CQL query to return results, and then iterate through rows.
id: cassandra_trigger
namespace: io.kestra.tests
tasks:
- id: each
type: io.kestra.core.tasks.flows.ForEach
values: "{{ trigger.rows }}"
tasks:
- id: return
type: io.kestra.core.tasks.debugs.Return
format: "{{ json(taskrun.value) }}"
triggers:
- id: watch
type: io.kestra.plugin.cassandra.standard.Trigger
interval: "PT5M"
session:
endpoints:
- hostname: localhost
username: cassandra_user
password: cassandra_passwd
cql: "SELECT * FROM CQL_KEYSPACE.CQL_TABLE"
fetch: true
Properties
cql
- Type: string
- Dynamic: ❌
- Required: ✔️
CQL query.
session
- Type: CassandraDbSession
- Dynamic: ❌
- Required: ✔️
The session connection properties
conditions
- Type: array
- SubType: Condition
- Dynamic: ❌
- Required: ❌
List of conditions in order to limit the flow trigger.
fetch
- Type: boolean
- Dynamic: ❌
- Required: ❌
- Default:
false
Whether to fetch the data from the query result to the task output.
fetchOne
- Type: boolean
- Dynamic: ❌
- Required: ❌
- Default:
false
Whether to fetch only one data row from the query result to the task output.
interval
- Type: string
- Dynamic: ❌
- Required: ❌
- Default:
60
- Format:
duration
Interval between polling.
The interval between 2 different polls of schedule, this can avoid to overload the remote system with too many calls. For most of the triggers that depend on external systems, a minimal interval must be at least PT30S. See ISO_8601 Durations for more information of available interval values.
stopAfter
- Type: array
- SubType: string
- Dynamic: ❌
- Required: ❌
List of execution states after which a trigger should be stopped (a.k.a. disabled).
store
- Type: boolean
- Dynamic: ❌
- Required: ❌
- Default:
false
Whether to store the data from the query result into an ion serialized data file.
timeZoneId
- Type: string
- Dynamic: ❌
- Required: ❌
Outputs
bytes
- Type: integer
- Required: ❌
row
- Type: object
- Required: ❌
rows
- Type: array
- SubType: object
- Required: ❌
size
- Type: integer
- Required: ❌
uri
- Type: string
- Required: ❌
- Format:
uri
Definitions
io.kestra.plugin.cassandra.standard.CassandraDbSession-SecureConnection
keystorePassword
- Type: string
- Dynamic: ✔️
- Required: ❌
keystorePath
- Type: string
- Dynamic: ✔️
- Required: ❌
truststorePassword
- Type: string
- Dynamic: ✔️
- Required: ❌
truststorePath
- Type: string
- Dynamic: ✔️
- Required: ❌
io.kestra.plugin.cassandra.standard.CassandraDbSession-Endpoint
hostname
- Type: string
- Dynamic: ✔️
- Required: ✔️
- Min length:
1
port
- Type: integer
- Dynamic: ❌
- Required: ✔️
- Default:
9042
serverName
- Type: string
- Dynamic: ✔️
- Required: ❌
io.kestra.plugin.cassandra.standard.CassandraDbSession
applicationName
- Type: string
- Dynamic: ✔️
- Required: ❌
endpoints
- Type: array
- SubType: CassandraDbSession-Endpoint
- Dynamic: ✔️
- Required: ❌
localDatacenter
- Type: string
- Dynamic: ✔️
- Required: ❌
password
- Type: string
- Dynamic: ✔️
- Required: ❌
secureConnection
- Type: CassandraDbSession-SecureConnection
- Dynamic: ✔️
- Required: ❌
username
- Type: string
- Dynamic: ✔️
- Required: ❌