Coder Social home page Coder Social logo

jasonparser / pulse-event-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codacy/pulse-event-cli

0.0 1.0 0.0 70 KB

Command line interface to push events to the pulse service

Home Page: https://pulse.codacy.com

License: Apache License 2.0

Go 97.67% Dockerfile 2.33%

pulse-event-cli's Introduction

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 \
    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`

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 [email protected] 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

pulse-event-cli's People

Contributors

paulopontesm avatar prcr avatar rtfpessoa avatar jasonparser avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.