pulse-event-cli

command module
v0.0.0-...-aa453cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Pulse Events CLI

This is a command-line interface to push events to Pulse.

Take a look at Pulse's documentation here.

Requirements

  • git >= 1.8.x

GitHub Action

You can find Pulse's Github-Action in Github's marketplace.

Usage

For a detailed list of all commands/flags use:

./pulse-event-cli --help
Push single events
Deployments
./pulse-event-cli push deployment \
    --api-key "<API-KEY>" \
    --identifier 1.0.1 \
    --timestamp 1602852032 \
    --teams mercury,jupiter \
    d7c1baaa0975a0e3577dad1c4c2368d3dd4f33b5 6ccff2820ff356b609d8a000e082af866d144cc8
Changes
./pulse-event-cli push change \
    --api-key "<API-KEY>" \
    --identifier d7c1baaa0975a0e3577dad1c4c2368d3dd4f33b5 \
    --timestamp 1602852032
Incidents
./pulse-event-cli push incident \
    --api-key "<API-KEY>" \
    --identifier d7c1baaa0975a0e3577dad1c4c2368d3dd4f33b5 \
    --timestampCreated 1602852032 \
    --timestampResolved 1602852033
Git helper
Deployments + changes

This will push the deployment and all commits from <REF> to the HEAD of the repo.

./pulse-event-cli push git deployment \
    --previous-deployment-ref="<REF>" \
    --api-key "<API-KEY>" \
    --identifier 1.0.1 \
    --timestamp `date +%s` \
    --teams mercury,jupiter
Detected environments

Currently the CLI detects CI environments where data is being sent from. We're collecting this information to improve the support on how we collect the metrics.

If your CI environment is not in this list, contact pulsesupport@codacy.com to let us know about it.

Supported environments:

  • appveyor
  • aws-codebuild
  • azure-pipelines
  • bitrise
  • buddy
  • buildkite
  • circleci
  • codefresh
  • codemagic
  • codeship
  • docker
  • drone
  • github-actions
  • gitlab-ci
  • gocd
  • google-cloud-build
  • greenhouse
  • heroku-ci
  • jenkins
  • jfrog-pipelines
  • magnum
  • semaphore
  • shippable
  • solano
  • teamcity
  • travis
  • wercker

Build

go build

Release

goreleaser --rm-dist

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL