Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Id int Monitor *Monitor `orm:"rel(fk);null"` Site *Site `orm:"rel(fk)"` Name string Email string `orm:"null";` Sms string `orm:"null";` Urgency int Checked_date time.Time `orm:"type(datetime);null";` }
Create a new type for Alerts
type AlertNotification ¶
type Application ¶
type Application struct { Id int Type *ApplicationType `orm:"rel(fk)"` Site *Site `orm:"rel(fk)"` Deployment *Deployment `orm:"rel(fk)"` Created time.Time `orm:"auto_now_add;type(datetime)"` }
Create a model for the
type ApplicationType ¶
type AuthUser ¶
type AuthUser struct { Id int First string Last string Email string `orm:"unique"` Password string Reg_key string Created time.Time `orm:"auto_now_add;type(datetime)"` }
Auth user is a user.
type Contact ¶
type Contact struct { Id int User *AuthUser `orm:"rel(fk)"` First string Last string Email string `orm:"null";` Sms string `orm:"null";` }
User's contacts
type Deployment ¶
type Deployment struct { Id int Site *Site `orm:"rel(fk)"` Name string Host string Port int `orm:"default(21)"` Path string Username string Password string Created time.Time `orm:"auto_now_add;type(datetime)"` }
Create a model for deployment credentials.
type Group ¶
type Group struct { Id int User *AuthUser `orm:"rel(fk)"` Name string Contacts string `orm:"size(100)"` ContactDetails *[]Contact `orm:"-"` }
User's groups
type GroupContacts ¶
type Log ¶
type Log struct { Id int Ip string User_id int `orm:"null";` Action string Action_id int `orm:"null";` Created time.Time `orm:"auto_now_add;type(datetime)"` }
*
- Declare Models/Tables
Log table for action history
type Monitor ¶
type Monitor struct { Id int Site *Site `orm:"rel(fk)"` Name string Interval int Monitor_type *MonitorType `orm:"rel(fk)"` Checked_date time.Time `orm:"type(datetime);null";` Created time.Time `orm:"auto_now_add;type(datetime)"` }
Create a model for the monitor type.
type MonitorRun ¶
type MonitorRun struct { Id int Monitor *Monitor `orm:"rel(fk)"` Alert *Alert `orm:"rel(fk);null";` Ping int64 Page_load int64 `orm:"null";` Response_time int64 Status_code int Time_run time.Time `orm:"type(datetime)"` }
Create a model for the site statistics
type MonitorType ¶
Create a model for the types of monitors
Click to show internal directories.
Click to hide internal directories.