Sha256: b2adde3b4b4da34eb511fe60088e7f00e803d7fa51e85d7342c39d929a020cdf
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# Send pipeline job event returns "Request accepted for processing" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::CIVisibilityPipelinesAPI.new body = DatadogAPIClient::V2::CIAppCreatePipelineEventRequest.new({ data: DatadogAPIClient::V2::CIAppCreatePipelineEventRequestData.new({ attributes: DatadogAPIClient::V2::CIAppCreatePipelineEventRequestAttributes.new({ resource: DatadogAPIClient::V2::CIAppPipelineEventJob.new({ level: DatadogAPIClient::V2::CIAppPipelineEventJobLevel::JOB, id: "cf9456de-8b9e-4c27-aa79-27b1e78c1a33", name: "Build image", pipeline_unique_id: "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", pipeline_name: "Deploy to AWS", start: (Time.now + -120), _end: (Time.now + -30), status: DatadogAPIClient::V2::CIAppPipelineEventJobStatus::ERROR, url: "https://my-ci-provider.example/jobs/my-jobs/run/1", }), }), type: DatadogAPIClient::V2::CIAppCreatePipelineEventRequestDataType::CIPIPELINE_RESOURCE_REQUEST, }), }) p api_instance.create_ci_app_pipeline_event(body)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.29.1 | examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_129899466.rb |