WebbuildersGroup\NewRelic\Control\Admin\NewRelicPerformanceReport
Synopsis
class NewRelicPerformanceReport
extends LeftAndMain
implements
Flushable
{
- // members
- private static string $url_segment = 'site-performance';
- private static integer $menu_priority = 0.9;
- private static string $menu_title = 'Site Performance';
- private static string $menu_icon = 'webbuilders-group/silverstripe-new-relic:images/new-relic.png';
- private static array $allowed_actions = ;
- private static $application_id;
- private static $api_key;
- private static integer $refresh_rate = 300;
- private static array $remove_reports = ;
- private static array $casting = ;
- private array $extraAttributes = ;
- // methods
- public void init()
- public bool getIsConfigured()
- public NewRelicPerformanceReport addExtraAttribute()
- public NewRelicPerformanceReport removeExtraAttribute()
- public string getAttributesHTML()
- public void overview_data()
- public int getRefreshRate()
- public ArrayList getReports()
- public string getAgentVersion()
- public string|null getAppName()
- public static void flush()
Hierarchy
Extends
- SilverStripe\Admin\LeftAndMain
Implements
- SilverStripe\Core\Flushable
Members
private
- $allowed_actions
- $api_key
—
string
New Relic API Key - $application_id
—
int
New Relic Application ID - $casting
- $extraAttributes
- $refresh_rate
—
int
Time in seconds to refresh the cache and client - $remove_reports
—
array
Reports removed from the section - $url_segment
Methods
public
- addExtraAttribute() — Adds an extra attribute to the wrapper
- flush() — Flushes the cached api response
- getAgentVersion() — Gets the version of the installed PHP Agent
- getAppName() — Gets the name of the application
- getAttributesHTML() — Gets the extra attributes as HTML
- getIsConfigured() — Detects whether the api key and application id is set or not
- getRefreshRate() — Gets the refresh rate from the config
- getReports() — Get the reports available in the performance report
- init()
- overview_data() — Gets the overview data from new relic
- removeExtraAttribute() — Removes an extra attribute to the wrapper