Software Development Kit

cPanel & WHM's API [+] cPanel & WHM's API [-]


Modules and Plugins [+] Modules and Plugins [-]


cPanel & WHM Hooks [+] cPanel & WHM Hooks [-]


cPAddons (Site Software) [+] cPAddons (Site Software) [-]


System Administration [+] System Administration [-]


Developer Software [+] Developer Software [-]


Back to All Documentation



integrationblogcta.jpg

Stats Functions

Stats::RunAll

Stage: pre — This hookable event is run before all cPanel stats are run.

Blocking Attribute: No
Escalate Privilege Attribute: N/A
Action Code Runs As: root
Data: None

Stage: post — This hookable event is run after all cPanel stats are run.

Blocking Attribute: No
Escalate Privilege Attribute: N/A
Action Code Runs As: root
Data: None

Stats::RunUser

Stage: pre — This hookable event is run before an individual user's statistics are processed by cpanellogd.

Blocking Attribute: No
Escalate Privilege Attribute: No
Action Code Runs As: The cPanel user whose stats are being processed.
Data:
{
    'lastruntime' => "The Unix timestamp that indicates the last time stats were run for the user.",
    'user' => "The user whose stats are being processed by the system.",
    'homedir' => "The user's home directory.",
    'rLOG_CONF' => "A hash reference that indicates which analytics programs will process each of the user's domains.",
    'maindomain' => "The user's main domain.",
    'rALLDOMAINS' => "An array reference that contains all of the cPanel user's domains.",
    'logfiledesc' =>  # An array of hash references that contain an entry for each domain processed by cpanellogd.
    [
        { 
            'domain' => "The domain being processed.",
            'filename' => "The log file's filename.",
            'logfile' => "The location of the log file being processed."
        },
    ],
}


Stage: post — This hookable event is run after an individual user's statistics are processed by cpanellogd.

Blocking Attribute: No
Escalate Privilege Attribute: No
Action Code Runs As: The cPanel user whose stats were processed.
Data:
{
    'lastruntime' => "The Unix timestamp that indicates the last time stats were run for the user.",
    'user' => "The user whose stats are being processed by the system.",
    'homedir' => "The user's home directory.",
    'rLOG_CONF' => "A hash reference that indicates which analytics programs will process each of the user's domains.",
    'maindomain' => "The user's main domain.",
    'rALLDOMAINS' => "An array reference that contains all of the cPanel user's domains.",
    'logfiledesc' =>  # An array of hash references that contain an entry for each domain processed by cpanellogd.
    [
        { 
            'domain' => "The domain being processed.",
            'filename' => "The log file's filename.",
            'logfile' => "The location of the log file being processed."
        },
    ],
}

Topic revision: r4 - 29 Nov 2012 - 14:14:56 - Main.ColinShannon
SoftwareDevelopmentKit.StdStatsFunctions moved from Sandbox.StdStatsFunctions on 12 Mar 2012 - 20:46 by Main.JustinSchaefer - put it back