定制 ersoy-insider/newrelic-custom-event 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ersoy-insider/newrelic-custom-event

Composer 安装命令:

composer require ersoy-insider/newrelic-custom-event

包简介

Sends custom events to newrelic insights

README 文档

README

Simple Library to send custom events to NewRelic Insights

Coverage Status Build Status StyleCI Scrutinizer Code Quality

Installation For Lumen

Require this package with Composer

$ composer require ersoy-insider/newrelic-custom-event

or composer.json

"require": {
  "ersoy-insider/newrelic-custom-event": "^1.0"
},

Configuration

Add service provider

$app->register(\ErsoyInsider\NewrelicCustomEvent\NewRelicCustomEventServiceProvider::class);

If you want to use facade, add following line

$app->withFacades(true, [
    '\ErsoyInsider\NewrelicCustomEvent\Facades\NewRelicDispatcher' => 'NewRelicDispatcher'
]);

Copy the /vendor/ersoy-insider/newrelic-custom-event/config/new-relic-custom-event.php file to your local config directory. Edit config/new-relic-custom-event.php for your NewRelic credentials.

Basic usage

app('new-relic-dispatcher')->fire($properties);

or

\NewRelicDispatcher::fire($properties);
$properties = [
    'jobName' => 'test',
    'users' => [
        ['id' => 5, 'name' => 'testasdada'],
        ['id' => 55, 'name' => 'test3'],
        ['id' => 555, 'name' => 'test2'],
        ['id' => 5555, 'name' => 'test4'],
    ],
    'test' => 'another-parameter',
    'yet-another' => 'parameter',
    'will-be' => ['discarded'] // it will be discarded
    'will-not-be' => 'discarded' // it will not be discarded
];
  • $properties is basic array consist of key values.
  • Only users key's value is allowed to array, any other key of which value is discarded because of NewRelic's policy.
  • Events will be queued for delivery to NewRelic's Insights.

统计信息

  • 总下载量: 32.37k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固