Package dev.cdevents

Class CDEventTypes


  • public final class CDEventTypes
    extends Object
    • Method Detail

      • createPipelineRunFinishedEvent

        public static io.cloudevents.CloudEvent createPipelineRunFinishedEvent​(String eventType,
                                                                               String id,
                                                                               URI source,
                                                                               String pipelineName,
                                                                               URI url,
                                                                               CDEventConstants.Outcome outcome,
                                                                               String errors,
                                                                               String pipelineRunData)
        Creates continuous delivery Pipeline run finished events using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        pipelineName -
        url -
        outcome -
        errors -
        pipelineRunData -
        Returns:
        the cloudEvent object with continuous delivery Pipeline run finished event extensions
      • createPipelineRunQueuedEvent

        public static io.cloudevents.CloudEvent createPipelineRunQueuedEvent​(String eventType,
                                                                             String id,
                                                                             URI source,
                                                                             String pipelineName,
                                                                             URI url,
                                                                             String pipelineRunData)
        Creates continuous delivery Pipeline run queued events using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        pipelineName -
        url -
        pipelineRunData -
        Returns:
        the cloudEvent object with continuous delivery Pipeline run queued event extensions
      • createPipelineRunStartedEvent

        public static io.cloudevents.CloudEvent createPipelineRunStartedEvent​(String eventType,
                                                                              String id,
                                                                              URI source,
                                                                              String pipelineName,
                                                                              URI url,
                                                                              String pipelineRunData)
        Creates continuous delivery Pipeline run started events using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        pipelineName -
        url -
        pipelineRunData -
        Returns:
        the cloudEvent object with continuous delivery Pipeline run started event extensions
      • createTaskRunStartedEvent

        public static io.cloudevents.CloudEvent createTaskRunStartedEvent​(String eventType,
                                                                          String id,
                                                                          URI source,
                                                                          String taskName,
                                                                          PipelineRun pipelineRun,
                                                                          URI url,
                                                                          String taskRunData)
        Creates a continuous delivery Task run started events using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        taskName -
        pipelineRun -
        url -
        taskRunData -
        Returns:
        the cloudEvent object with continuous delivery task run started event extensions
      • createTaskRunFinishedEvent

        public static io.cloudevents.CloudEvent createTaskRunFinishedEvent​(String eventType,
                                                                           String id,
                                                                           URI source,
                                                                           String taskName,
                                                                           PipelineRun pipelineRun,
                                                                           URI url,
                                                                           CDEventConstants.Outcome outcome,
                                                                           String errors,
                                                                           String taskRunData)
        Creates a continuous delivery Task run finished events using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        taskName -
        pipelineRun -
        url -
        outcome -
        errors -
        taskRunData -
        Returns:
        the cloudEvent object with continuous delivery task run finished event extensions
      • createRepositoryCreatedEvent

        public static io.cloudevents.CloudEvent createRepositoryCreatedEvent​(String eventType,
                                                                             String id,
                                                                             URI source,
                                                                             String name,
                                                                             String owner,
                                                                             URI url,
                                                                             URI viewUrl,
                                                                             String data)
        Creates a continuous delivery repository created event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        name -
        owner -
        url -
        viewUrl -
        data -
        Returns:
        the cloudEvent object with continuous delivery repository created event extensions
      • createRepositoryModifiedEvent

        public static io.cloudevents.CloudEvent createRepositoryModifiedEvent​(String eventType,
                                                                              String id,
                                                                              URI source,
                                                                              String name,
                                                                              String owner,
                                                                              URI url,
                                                                              URI viewUrl,
                                                                              String data)
        Creates a continuous delivery repository modified event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        name -
        owner -
        url -
        viewUrl -
        data -
        Returns:
        the cloudEvent object with continuous delivery repository modified event extensions
      • createRepositoryDeletedEvent

        public static io.cloudevents.CloudEvent createRepositoryDeletedEvent​(String eventType,
                                                                             String id,
                                                                             URI source,
                                                                             String name,
                                                                             String owner,
                                                                             URI url,
                                                                             URI viewUrl,
                                                                             String data)
        Creates a continuous delivery repository deleted event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        name -
        owner -
        url -
        viewUrl -
        data -
        Returns:
        the cloudEvent object with continuous delivery repository deleted event extensions
      • createBranchCreatedEvent

        public static io.cloudevents.CloudEvent createBranchCreatedEvent​(String eventType,
                                                                         String id,
                                                                         URI source,
                                                                         Repository repository,
                                                                         String data)
        Creates a continuous delivery branch created event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        repository -
        data -
        Returns:
        the cloudEvent object with continuous delivery branch created event extensions
      • createBranchDeletedEvent

        public static io.cloudevents.CloudEvent createBranchDeletedEvent​(String eventType,
                                                                         String id,
                                                                         URI source,
                                                                         Repository repository,
                                                                         String data)
        Creates a continuous delivery branch deleted event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        repository -
        data -
        Returns:
        the cloudEvent object with continuous delivery branch deleted event extensions
      • createChangeCreatedEvent

        public static io.cloudevents.CloudEvent createChangeCreatedEvent​(String eventType,
                                                                         String id,
                                                                         URI source,
                                                                         Repository repository,
                                                                         String data)
        Creates a continuous delivery change created event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        repository -
        data -
        Returns:
        the cloudEvent object with continuous delivery change created event extensions
      • createChangeReviewedEvent

        public static io.cloudevents.CloudEvent createChangeReviewedEvent​(String eventType,
                                                                          String id,
                                                                          URI source,
                                                                          Repository repository,
                                                                          String data)
        Creates a continuous delivery change reviewed event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        repository -
        data -
        Returns:
        the cloudEvent object with continuous delivery change reviewed event extensions
      • createChangeMergedEvent

        public static io.cloudevents.CloudEvent createChangeMergedEvent​(String eventType,
                                                                        String id,
                                                                        URI source,
                                                                        Repository repository,
                                                                        String data)
        Creates a continuous delivery change merged event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        repository -
        data -
        Returns:
        the cloudEvent object with continuous delivery change merged event extensions
      • createChangeAbandonedEvent

        public static io.cloudevents.CloudEvent createChangeAbandonedEvent​(String eventType,
                                                                           String id,
                                                                           URI source,
                                                                           Repository repository,
                                                                           String data)
        Creates a continuous delivery change abandoned event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        repository -
        data -
        Returns:
        the cloudEvent object with continuous delivery change abandoned event extensions
      • createChangeUpdatedEvent

        public static io.cloudevents.CloudEvent createChangeUpdatedEvent​(String eventType,
                                                                         String id,
                                                                         URI source,
                                                                         Repository repository,
                                                                         String data)
        Creates a continuous delivery change updated event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        repository -
        data -
        Returns:
        the cloudEvent object with continuous delivery change updated event extensions
      • createBuildQueuedEvent

        public static io.cloudevents.CloudEvent createBuildQueuedEvent​(String eventType,
                                                                       String id,
                                                                       URI source,
                                                                       String data)
        Creates a continuous delivery build queued event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery build queued event extensions
      • createBuildStartedEvent

        public static io.cloudevents.CloudEvent createBuildStartedEvent​(String eventType,
                                                                        String id,
                                                                        URI source,
                                                                        String data)
        Creates a continuous delivery build started event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery build started event extensions
      • createBuildFinishedEvent

        public static io.cloudevents.CloudEvent createBuildFinishedEvent​(String eventType,
                                                                         String id,
                                                                         URI source,
                                                                         URI artifactId,
                                                                         String data)
        Creates a continuous delivery build finished event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        artifactId -
        data -
        Returns:
        the cloudEvent object with continuous delivery build finished event extensions
      • createTestCaseQueuedEvent

        public static io.cloudevents.CloudEvent createTestCaseQueuedEvent​(String eventType,
                                                                          String id,
                                                                          URI source,
                                                                          String data)
        Creates a continuous delivery testcase queued event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery testcase queued event extensions
      • createTestCaseStartedEvent

        public static io.cloudevents.CloudEvent createTestCaseStartedEvent​(String eventType,
                                                                           String id,
                                                                           URI source,
                                                                           String data)
        Creates a continuous delivery testcase started event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery testcase started event extensions
      • createTestCaseFinishedEvent

        public static io.cloudevents.CloudEvent createTestCaseFinishedEvent​(String eventType,
                                                                            String id,
                                                                            URI source,
                                                                            String data)
        Creates a continuous delivery testcase finished event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery testcase finished event extensions
      • createTestSuiteStartedEvent

        public static io.cloudevents.CloudEvent createTestSuiteStartedEvent​(String eventType,
                                                                            String id,
                                                                            URI source,
                                                                            String data)
        Creates a continuous delivery test suite started event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery test suite started queued event extensions
      • createTestSuiteFinishedEvent

        public static io.cloudevents.CloudEvent createTestSuiteFinishedEvent​(String eventType,
                                                                             String id,
                                                                             URI source,
                                                                             String data)
        Creates a continuous delivery test suite finished event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery test suite finished queued event extensions
      • createArtifactPackagedEvent

        public static io.cloudevents.CloudEvent createArtifactPackagedEvent​(String eventType,
                                                                            String id,
                                                                            URI source,
                                                                            String data)
        Creates a continuous delivery artifact packaged event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery artifact packaged queued event extensions
      • createArtifactPublishedEvent

        public static io.cloudevents.CloudEvent createArtifactPublishedEvent​(String eventType,
                                                                             String id,
                                                                             URI source,
                                                                             String data)
        Creates a continuous delivery artifact published event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        data -
        Returns:
        the cloudEvent object with continuous delivery artifact published event extensions
      • createEnvironmentCreatedEvent

        public static io.cloudevents.CloudEvent createEnvironmentCreatedEvent​(String eventType,
                                                                              String id,
                                                                              URI source,
                                                                              String name,
                                                                              String url,
                                                                              String data)
        Creates a continuous delivery environment created event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        name -
        url -
        data -
        Returns:
        the cloudEvent object with continuous delivery environment created event
      • createEnvironmentModifiedEvent

        public static io.cloudevents.CloudEvent createEnvironmentModifiedEvent​(String eventType,
                                                                               String id,
                                                                               URI source,
                                                                               String name,
                                                                               String url,
                                                                               String data)
        Creates a continuous delivery environment modified event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        name -
        url -
        data -
        Returns:
        the cloudEvent object with continuous delivery environment created event
      • createEnvironmentDeletedEvent

        public static io.cloudevents.CloudEvent createEnvironmentDeletedEvent​(String eventType,
                                                                              String id,
                                                                              URI source,
                                                                              String name,
                                                                              String data)
        Creates a continuous delivery environment deleted event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        source -
        name -
        data -
        Returns:
        the cloudEvent object with continuous delivery environment deleted event
      • createServiceDeployedEvent

        public static io.cloudevents.CloudEvent createServiceDeployedEvent​(String eventType,
                                                                           String id,
                                                                           Environment environment,
                                                                           URL artifactId,
                                                                           String data)
        Creates a continuous delivery service deployed event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        environment -
        artifactId -
        data -
        Returns:
        the cloudEvent object with continuous delivery service deployed event
      • createServiceUpgradedEvent

        public static io.cloudevents.CloudEvent createServiceUpgradedEvent​(String eventType,
                                                                           String id,
                                                                           Environment environment,
                                                                           URL artifactId,
                                                                           String data)
        Creates a continuous delivery service upgraded event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        environment -
        artifactId -
        data -
        Returns:
        the cloudEvent object with continuous delivery service upgraded event
      • createServiceRolledBackEvent

        public static io.cloudevents.CloudEvent createServiceRolledBackEvent​(String eventType,
                                                                             String id,
                                                                             Environment environment,
                                                                             URL artifactId,
                                                                             String data)
        Creates a continuous delivery service rolled back event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        environment -
        artifactId -
        data -
        Returns:
        the cloudEvent object with continuous delivery service rolled back event
      • createServiceRemovedEvent

        public static io.cloudevents.CloudEvent createServiceRemovedEvent​(String eventType,
                                                                          String id,
                                                                          Environment environment,
                                                                          String data)
        Creates a continuous delivery service removed event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        environment -
        data -
        Returns:
        the cloudEvent object with continuous delivery service removed event
      • createServicePublishedEvent

        public static io.cloudevents.CloudEvent createServicePublishedEvent​(String eventType,
                                                                            String id,
                                                                            Environment environment,
                                                                            String data)
        Creates a continuous delivery service published event using CloudEventBuilder and returns CloudEvent object.
        Parameters:
        eventType -
        id -
        environment -
        data -
        Returns:
        the cloudEvent object with continuous delivery service published event