2017 © Pedro Peláez
 

library librato-annotation

Send a deployment annotation to Librato

image

rcrowe/librato-annotation

Send a deployment annotation to Librato

  • Thursday, January 24, 2013
  • by rcrowe
  • Repository
  • 1 Watchers
  • 2 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Librato Annotations

This class allows you to send annotations to Librato from Phing, (*1)

I use this to mark deployments when I put my code onto production servers. I can easily see from my dashboard / graphs if the last deployment has affected performance., (*2)

Installation

I have only tested this with installation through Composer, so know guarantees whether this will work not installed through Composer., (*3)

{
    "require": {
        "rcrowe/librato-annotation": "0.1.2",
        "phing/phing": "2.4.14"
    },
    "minimum-stability": "dev"
}

Define the the Librato task in your buildfile:, (*4)

<taskdef name="librato" classname="rcrowe\Librato\AnnotationTask" />

Usage

To send an annotation to Librato you need to define your username and your API key. Your API key can be found on your Librato account page., (*5)

Setting your detatils globally:, (*6)

<property name="librato.username" value="hello@vivalacrowe.com" />
<property name="librato.password" value="12345abcdef" />

Doing it this way means you only have to do it once, and can then call Librarto multiple times. However, you can do this inline as well:, (*7)

<librato username="hello@vivalacrowe.com" password="12345abcdef" .... />

Example

<librato name="deployment" title="Deployment" desc="Deployed to live" />

If there is an error trying to send the annotation to Librarto the default is to carry on processing the Phing buildfile. You can change this behaviour with haltonerror:, (*8)

<librato name="deployment" title="Deployment" desc="Deployed to live" haltonerror="true" />

The Versions

24/01 2013

dev-master

9999999-dev

Send a deployment annotation to Librato

  Sources   Download

BSD

The Requires

 

deployment phing librato

24/01 2013

v0.1.3

0.1.3.0

Send a deployment annotation to Librato

  Sources   Download

BSD

The Requires

 

deployment phing librato

01/01 2013

0.1.2

0.1.2.0

Send a deployment annotation to Librato

  Sources   Download

BSD

The Requires

 

deployment phing librato

01/01 2013

0.1.1

0.1.1.0

Send a deployment annotation to Librato

  Sources   Download

BSD

The Requires

 

deployment phing librato

01/01 2013

0.1.0

0.1.0.0

Send a deployment annotation to Librato

  Sources   Download

BSD

The Requires

 

deployment phing librato