Get Pipeline Status
client.Pipelines.GetStatus(ctx, pipelineID, query) (*ManagedIngestionStatusResponse, error)
GET/api/v1/pipelines/{pipeline_id}/status
Get the ingestion status of a managed pipeline.
Returns document counts, sync progress, and the last effective timestamp. Only available for managed pipelines.
Get Pipeline Status
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/llamacloud-prod-go"
"github.com/stainless-sdks/llamacloud-prod-go/option"
)
func main() {
client := llamacloudprod.NewClient(
option.WithAPIKey("My API Key"),
)
managedIngestionStatusResponse, err := client.Pipelines.GetStatus(
context.TODO(),
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
llamacloudprod.PipelineGetStatusParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", managedIngestionStatusResponse.JobID)
}
{
"status": "NOT_STARTED",
"deployment_date": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error": [
{
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"message": "message",
"step": "MANAGED_INGESTION"
}
],
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}Returns Examples
{
"status": "NOT_STARTED",
"deployment_date": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error": [
{
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"message": "message",
"step": "MANAGED_INGESTION"
}
],
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}