PHP 클래스 monitor_robot

파일 보기 프로젝트 열기: HeadTalker/uptime-robot 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

charts() 공개 메소드

Create charts with response time data
public charts ( array $monitor_response )
$monitor_response array Monitor data

monitor_curl() 공개 메소드

Check if curl is installed.
public monitor_curl ( ) : boolean
리턴 boolean true | false Returns true if CURL is installed. | Returns false if CURL is NOT installed.

monitor_endpoint() 공개 메소드

Set the API endpoint for uptime robot
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

monitor_response_data() 공개 메소드

Monitor Response Data Timestamps and values
public monitor_response_data ( $monitor_response_data ) : array
리턴 array $data Array of timestamps and array of values

monitor_status() 공개 메소드

Monitor Status Name
public monitor_status ( integer $status ) : string
$status integer The monitor status number value
리턴 string $status_name The monitor string name

monitor_table_body() 공개 메소드

Prints out the table body in the datatables with relevant info
public monitor_table_body ( array $monitor_data )
$monitor_data array Monitor Data

monitor_type() 공개 메소드

Monitor Type Name
public monitor_type ( integer $type ) : string
$type integer The monitor type number value
리턴 string $monitor_name The monitor string name

past_incidents() 공개 메소드

Past Incidents
public past_incidents ( $monitor_response )