2017 © Pedro Peláez
 

library victoropsnotifier

REST API integration for VictorOps

image

signiant/victoropsnotifier

REST API integration for VictorOps

  • Monday, June 18, 2018
  • by dnorth98
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 73 % Grown

The README.md

victoropsnotifier

PHP module to send notification messages to VictorOps via the REST integration., (*1)

Installing

Via [Composer][1], (*2)

composer require signiant/victoropsnotifier
composer update

Usage

Example of basic usage with suplied classes

<?php
require_once 'vendor/autoload.php';

use Signiant\VictorOps\Notifier;
use Signiant\VictorOps\Messages\CustomMessage;

// Only the message level is mandatory
$voMsg = new Signiant\VictorOps\Messages\CustomMessage('INFO');

$voConfig = ['endpoint_url' => 'YOUR_VO_REST_ENDPOINT', 'routing_key' => 'YOUR_VO_ROUTING_KEY'];
$voEndpoint = new Signiant\VictorOps\Notifier($voConfig);
$voEndpoint->send(voMsg);

Customise the message

The supplied CustomMessage class details the optional parameters that can be sent as part of the request. These parameters allow you to customise the message., (*3)

  1. Entity ID
  2. Entity Display Name
  3. State Message
  4. ACK Message
  5. ACK Author
  6. Entity Is Host Setting
<?php

use Signiant\VictorOps\Messages\CustomMessage;

$voMsg = new CustomMessage('INFO');

$voMsg->stateMessage('Hello VictorOps');

$voMsg->entityId('system123');

$voMsg->entityDisplayName('HAL 9000');


The Versions

18/06 2018

dev-master

9999999-dev https://github.com/dnorth98/victoropsnotifier

REST API integration for VictorOps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dave North

victorops victorops.com

18/06 2018

0.3.0

0.3.0.0 https://github.com/dnorth98/victoropsnotifier

REST API integration for VictorOps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dave North

victorops victorops.com

18/06 2018

0.2.0

0.2.0.0 https://github.com/dnorth98/victoropsnotifier

REST API integration for VictorOps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dave North

victorops victorops.com

24/03 2015

0.1.0

0.1.0.0 https://github.com/dnorth98/victoropsnotifier

REST API integration for VictorOps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dave North

victorops victorops.com