Метод | Описание | |
---|---|---|
charts ( array $monitor_response ) | Create charts with response time data | |
monitor_curl ( ) : boolean | Check if curl is installed. | |
monitor_endpoint ( string $UP_ACCOUNT_API_KEY ) : array | Set the API endpoint for uptime robot | |
monitor_response_data ( $monitor_response_data ) : array | Monitor Response Data Timestamps and values | |
monitor_status ( integer $status ) : string | Monitor Status Name | |
monitor_table_body ( array $monitor_data ) | Prints out the table body in the datatables with relevant info | |
monitor_type ( integer $type ) : string | Monitor Type Name | |
past_incidents ( $monitor_response ) | Past Incidents |
Метод | Описание | |
---|---|---|
log_type ( integer $type ) : string | Log Type Name |
public monitor_curl ( ) : boolean | ||
Результат | boolean | true | false Returns true if CURL is installed. | Returns false if CURL is NOT installed. |
public monitor_endpoint ( string $UP_ACCOUNT_API_KEY ) : array | ||
$UP_ACCOUNT_API_KEY | string | Your uptime robot api key |
Результат | array | $monitor_response Decoded json response from the API |
public monitor_response_data ( $monitor_response_data ) : array | ||
Результат | array | $data Array of timestamps and array of values |
public monitor_status ( integer $status ) : string | ||
$status | integer | The monitor status number value |
Результат | string | $status_name The monitor string name |
public monitor_table_body ( array $monitor_data ) | ||
$monitor_data | array | Monitor Data |
public monitor_type ( integer $type ) : string | ||
$type | integer | The monitor type number value |
Результат | string | $monitor_name The monitor string name |