Download the PHP package jonnx/datadog-client without Composer

On this page you can find all versions of the php package jonnx/datadog-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package datadog-client

Datadog PHP Client

Lightweight php-only datadog client

This is a simple php client for datadog which does not require setting up the DataDog Agent This library supports sending metric data or events at the moment, as those should be the most common use cases. Feel free to extend it to your own needs or sending pull requests.

Installation

This library can be installed using composer

Getting Started

To start sending requests to Datadog you need to provider your personal API key first. You find that key in Datadog API Settings.

Sending Events

Events can be sent directly to Datadog using the provided Event class:

Additional properties can be set the usual way:

There is also a shortcut method which handles all that stuff for you:

Event Properties

dateHappened

Type: integer

Timestamp of the event. Defaults to current timestamp.

priority

Type: Event::PRIORITY_

Event priority. Datadog supports LOW and NORMAL

alertType

Type: Event::TYPE_

Event alert_type. Datadog supports INFO, WARNING, ERROR and SUCCESS

aggregationKey

Type: string

Arbitary string used to group events

Sending Metrics

Datadog requires metric data to be encapsulated into a series. One series contains one or more metric objects, which itself contains one or more measurement points.

If you want to send just one metric at a time, you can use the Client::sendMetric method:

Again, there is a shortcut method which can handle that for you:

Metric Properties

name

Type: string

Name of the metric. Can contain underscored or dots for easier grouping, e.g. web.exception.404

type

Type: Metric::TYPE_

Type of the metric. Datadog supports gauge or counter

host

Type: string

Hostname of the source machine

points

Type: array

Array of data points.

A point consists of an optional timestamp and a numeric value. If no timestamp is specified, the current timestamp will be used. Order matters. If a timestamp is specified, it should be the first value.

Examples:

Origin of this package

This is a re-upload of the original repository removed by the orignal author Matthias Bayer. Class names and paths have been updated to submit this project to packagist. This ensures it can easily be installed using composer out of the box.

Source: https://twitter.com/JonasWeigert/status/1590894486397538306


All versions of datadog-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jonnx/datadog-client contains the following files

Loading the files please wait ....