Class Graphite_Graph_Functions

Utility for target functions.

Functions are used to transform, combine and perform calculations on series data.

Author(s):
Copyright:   2012 Bryan Davis and contributors. All Rights Reserved.
Link:   http://readthedocs.org/docs/graphite/en/latest/functions.html
License:   Simplified BSD License

Member Variables

protected static mixed $aliases
Function name aliases.
protected static array $functions
Metric manipulation function specifications.

Each specification is shorthand for constructing a Graphite_Graph_CallSpec stored as an array. This is a tuple of: (call signature, sort order, alias flag)

Method Summary

public static Graphite_Graph_CallSpec callSpec( $name )
Get the call specification for a function.
public static string canonicalName( $name )
Find the canonical name for a function.
public static int cmp( $a , $b )
Compare two function names for sort ordering based on priority.

Methods

callSpec

static Graphite_Graph_CallSpec callSpec( string $name )

Get the call specification for a function.

Parameters:

Name Type Description
$name string Function name

canonicalName

static string canonicalName( string $name )

Find the canonical name for a function.

The value may be an alias or it may differ in case from the true function name.

Parameters:

Name Type Description
$name string Function to lookup

cmp

static int cmp( string $a , string $b )

Compare two function names for sort ordering based on priority.

Parameters:

Name Type Description
$a string First function name
$b string Second function name

Located in /src/Graphite/Graph/Functions.php [line 23]