Working with Pipeline
The guide covers the important lifecycle operations for managing pipelines. Learn how to add ,edit or delete a pipeline.
The UI's Add Pipeline button allows pipeline addition. ADOC recommends adding the pipeline via SDK. This improves pipeline access and monitoring.
To add a pipeline perform the following action:
Actions after adding the pipeline:
Add a Pipeline via SDK
The ADOC UI monitors pipelines, whereas the Acceldata SDK registers new ones. Add your pipeline using these steps.
Environment Configuration: First prepare your development environment with the required components.
- Install the SDK: Install
acceldata-sdk
for Python oradoc-java-sdk
for Java using pip. - Generate API Keys: Your
accessKey
andsecretKey
can be generated from Admin > API Keys in the ADOC UI. These are needed for request authentication. - Start the Client: Create an SDK client using your ADOC URL and API keys.
- Install the SDK: Install
Define the Pipeline Object: Next, specify the pipeline object's core attributes.
- Instantiate Object: Create a Python
CreatePipeline
object or useCreatePipeline.builder()
in Java. - Required fields: Provide a pipeline uid and name.
- Optional fields: Use context to provide a description, owner information (meta), and other annotations.
- Instantiate Object: Create a Python
Register the Pipeline: Send the object to the ADOC server : Call the
create_pipeline()
method on your initialized client, passing in the pipeline object. This action registers the new pipeline in ADOC.Run Pipeline: Finally, run the pipeline to collect observability data.
Apply create_pipeline_run()
to the previous response object.
This starts the first run instance, letting ADOC track executions, performance data, and alerts.
You can now view the created pipeline in the ADOC pipeline list.
Add a Pipeline via UI
To add pipeline via UI:
Click Add Pipeline to open a create form.
Fill the pipeline details:
- Name - User-friendly and unique pipeline name.
- UID - A permanent, unique pipeline ID. ID cannot be changed later.
- Description - (Optional) A brief explanation of the pipeline's purpose.
- Owner - (Optional) Name of pipeline owner or service account.
- Team - (Optional) The name of the team that owns the pipeline.
- Code location: (Optional) A pipeline source code repository or definition file URL.
- Context: (Optional) A key-value field for custom metadata or annotations.
- Pipeline tags: (Optional) Classify and filter pipelines with descriptive tags. Add tags by pressing Enter.
Click Save to create the pipeline.
Edit a Pipeline
To edit a pipeline:
- For the selected pipeline, click the ellipsis icon ⋮ .
- Select the pen icon 🖉.
- Make the changes. Click Save.
Delete a Pipeline
To delete a pipeline:
- For the selected pipeline, click the ellipsis icon ⋮.
- Select the bin icon 🗑.
- Click Confirm.