
io.kestra.plugin.airbyte.cloud.jobs.Sync Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-airbyte Show documentation
Show all versions of plugin-airbyte Show documentation
Seamlessly integrate Airbyte connectors into your Kestra workflows.
The newest version!
package io.kestra.plugin.airbyte.cloud.jobs;
import com.airbyte.api.models.shared.JobTypeEnum;
import io.kestra.core.models.annotations.Example;
import io.kestra.core.models.annotations.Metric;
import io.kestra.core.models.annotations.Plugin;
import io.kestra.core.models.executions.metrics.Counter;
import io.kestra.core.models.executions.metrics.Timer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;
@SuperBuilder
@ToString
@EqualsAndHashCode
@Getter
@NoArgsConstructor
@Schema(
title = "Sync a job."
)
@Plugin(
examples = {
@Example(
full = true,
code = """
id: airbyte_sync
namespace: company.team
tasks:
- id: sync
type: io.kestra.plugin.airbyte.cloud.jobs.Sync
token:
connectionId: e3b1ce92-547c-436f-b1e8-23b6936c12cd
"""
)
},
metrics = {
@Metric(name = "bytes_synced", type = Counter.TYPE),
@Metric(name = "rows_synced", type = Counter.TYPE),
@Metric(name = "duration", type = Timer.TYPE)
}
)
public class Sync extends AbstractTrigger {
protected JobTypeEnum syncType() {
return JobTypeEnum.SYNC;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy