Documentation ¶
Index ¶
- func GetEnvUrl(env string) string
- func GetToken(job *JobLibrary) string
- type AdditionCondition
- type DashboardMatricKey
- type JobConfig
- type JobExecuteInfo
- type JobLibrary
- func (j *JobLibrary) CheckField() error
- func (j *JobLibrary) GetAdditionCondition() AdditionCondition
- func (j *JobLibrary) GetArchiveLogUnit() string
- func (j *JobLibrary) GetArchiveLogValue() string
- func (j *JobLibrary) GetDomain() string
- func (j *JobLibrary) GetExecuteDuration() string
- func (j *JobLibrary) GetJobActiveStatus() string
- func (j *JobLibrary) GetJobID() string
- func (j *JobLibrary) GetName() string
- func (j *JobLibrary) GetNotiFrequency() string
- func (j *JobLibrary) GetNotification() Notification
- func (j *JobLibrary) GetPeriodType() string
- func (j *JobLibrary) GetPeriodValue() string
- func (j *JobLibrary) GetScheduleTime() string
- func (j *JobLibrary) GetSkipCheck() string
- func (j *JobLibrary) GetTimeZone() string
- func (job *JobLibrary) Init(env string) *JobLibrary
- func (j *JobLibrary) PutMetricData(matricInput cloudwatch.PutMetricDataInput)
- func (j *JobLibrary) SetAdditionCondition(success bool)
- func (j *JobLibrary) SetArchiveLogUnit(archiveLogUnit string)
- func (j *JobLibrary) SetArchiveLogValue(archiveLogValue string)
- func (j *JobLibrary) SetDomain(domain string)
- func (j *JobLibrary) SetEmail(email string)
- func (j *JobLibrary) SetErrorMessage(message string)
- func (j *JobLibrary) SetExecuteDuration(executeDuration string)
- func (j *JobLibrary) SetJobID(jobID string)
- func (j *JobLibrary) SetLINENotification(token string)
- func (j *JobLibrary) SetMailNotification(mail string)
- func (j *JobLibrary) SetName(name string)
- func (j *JobLibrary) SetNotiFrequency(frequency string)
- func (j *JobLibrary) SetPassword(password string)
- func (j *JobLibrary) SetPeriodTypeDaily()
- func (j *JobLibrary) SetPeriodTypeDate()
- func (j *JobLibrary) SetPeriodTypeDateMonth()
- func (j *JobLibrary) SetPeriodTypeMin()
- func (j *JobLibrary) SetPeriodTypeOnce()
- func (j *JobLibrary) SetPeriodValue(periodValue string)
- func (j *JobLibrary) SetPhoneNotification(phoneNumber string)
- func (j *JobLibrary) SetSMSNotification(phoneNumber string)
- func (j *JobLibrary) SetScheduleTime(scheduleTime string)
- func (j *JobLibrary) SetSkipCheck(skip string)
- func (j *JobLibrary) SetSuccess(success bool)
- func (j *JobLibrary) SetTimeZone(timeZone string)
- func (j *JobLibrary) UpdateJobDashboard(value float64, dashboardKey DashboardMatricKey)
- func (j *JobLibrary) UpdateJobRunningStatus()
- func (j *JobLibrary) UpdateJobStatus(msg ...string)
- type Notification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetToken ¶
func GetToken(job *JobLibrary) string
Types ¶
type AdditionCondition ¶
type AdditionCondition struct {
Success bool
}
type DashboardMatricKey ¶
type JobConfig ¶
type JobConfig struct { Domain string JobID string Name string PeriodType string PeriodValue string ScheduleTime string ExecuteDuration string TimeZone string AdditionCondition AdditionCondition SkipCheck string Notification Notification NotiFrequency string ArchiveLogUnit string ArchiveLogValue string }
type JobExecuteInfo ¶
type JobLibrary ¶
type JobLibrary struct { JobConfig JobConfig JobExecuteInfo JobExecuteInfo JobUserPassword credentials Env string }
func (*JobLibrary) CheckField ¶
func (j *JobLibrary) CheckField() error
func (*JobLibrary) GetAdditionCondition ¶
func (j *JobLibrary) GetAdditionCondition() AdditionCondition
func (*JobLibrary) GetArchiveLogUnit ¶
func (j *JobLibrary) GetArchiveLogUnit() string
func (*JobLibrary) GetArchiveLogValue ¶
func (j *JobLibrary) GetArchiveLogValue() string
func (*JobLibrary) GetDomain ¶
func (j *JobLibrary) GetDomain() string
func (*JobLibrary) GetExecuteDuration ¶
func (j *JobLibrary) GetExecuteDuration() string
func (*JobLibrary) GetJobActiveStatus ¶
func (j *JobLibrary) GetJobActiveStatus() string
func (*JobLibrary) GetJobID ¶
func (j *JobLibrary) GetJobID() string
func (*JobLibrary) GetName ¶
func (j *JobLibrary) GetName() string
func (*JobLibrary) GetNotiFrequency ¶
func (j *JobLibrary) GetNotiFrequency() string
func (*JobLibrary) GetNotification ¶
func (j *JobLibrary) GetNotification() Notification
func (*JobLibrary) GetPeriodType ¶
func (j *JobLibrary) GetPeriodType() string
func (*JobLibrary) GetPeriodValue ¶
func (j *JobLibrary) GetPeriodValue() string
func (*JobLibrary) GetScheduleTime ¶
func (j *JobLibrary) GetScheduleTime() string
func (*JobLibrary) GetSkipCheck ¶
func (j *JobLibrary) GetSkipCheck() string
func (*JobLibrary) GetTimeZone ¶
func (j *JobLibrary) GetTimeZone() string
func (*JobLibrary) Init ¶
func (job *JobLibrary) Init(env string) *JobLibrary
func (*JobLibrary) PutMetricData ¶
func (j *JobLibrary) PutMetricData(matricInput cloudwatch.PutMetricDataInput)
func (*JobLibrary) SetAdditionCondition ¶
func (j *JobLibrary) SetAdditionCondition(success bool)
func (*JobLibrary) SetArchiveLogUnit ¶
func (j *JobLibrary) SetArchiveLogUnit(archiveLogUnit string)
func (*JobLibrary) SetArchiveLogValue ¶
func (j *JobLibrary) SetArchiveLogValue(archiveLogValue string)
func (*JobLibrary) SetDomain ¶
func (j *JobLibrary) SetDomain(domain string)
func (*JobLibrary) SetEmail ¶
func (j *JobLibrary) SetEmail(email string)
func (*JobLibrary) SetErrorMessage ¶
func (j *JobLibrary) SetErrorMessage(message string)
func (*JobLibrary) SetExecuteDuration ¶
func (j *JobLibrary) SetExecuteDuration(executeDuration string)
func (*JobLibrary) SetJobID ¶
func (j *JobLibrary) SetJobID(jobID string)
func (*JobLibrary) SetLINENotification ¶
func (j *JobLibrary) SetLINENotification(token string)
func (*JobLibrary) SetMailNotification ¶
func (j *JobLibrary) SetMailNotification(mail string)
func (*JobLibrary) SetName ¶
func (j *JobLibrary) SetName(name string)
func (*JobLibrary) SetNotiFrequency ¶
func (j *JobLibrary) SetNotiFrequency(frequency string)
func (*JobLibrary) SetPassword ¶
func (j *JobLibrary) SetPassword(password string)
func (*JobLibrary) SetPeriodTypeDaily ¶
func (j *JobLibrary) SetPeriodTypeDaily()
func (*JobLibrary) SetPeriodTypeDate ¶
func (j *JobLibrary) SetPeriodTypeDate()
func (*JobLibrary) SetPeriodTypeDateMonth ¶
func (j *JobLibrary) SetPeriodTypeDateMonth()
func (*JobLibrary) SetPeriodTypeMin ¶
func (j *JobLibrary) SetPeriodTypeMin()
func (*JobLibrary) SetPeriodTypeOnce ¶
func (j *JobLibrary) SetPeriodTypeOnce()
func (*JobLibrary) SetPeriodValue ¶
func (j *JobLibrary) SetPeriodValue(periodValue string)
func (*JobLibrary) SetPhoneNotification ¶
func (j *JobLibrary) SetPhoneNotification(phoneNumber string)
func (*JobLibrary) SetSMSNotification ¶
func (j *JobLibrary) SetSMSNotification(phoneNumber string)
func (*JobLibrary) SetScheduleTime ¶
func (j *JobLibrary) SetScheduleTime(scheduleTime string)
func (*JobLibrary) SetSkipCheck ¶
func (j *JobLibrary) SetSkipCheck(skip string)
func (*JobLibrary) SetSuccess ¶
func (j *JobLibrary) SetSuccess(success bool)
func (*JobLibrary) SetTimeZone ¶
func (j *JobLibrary) SetTimeZone(timeZone string)
func (*JobLibrary) UpdateJobDashboard ¶
func (j *JobLibrary) UpdateJobDashboard(value float64, dashboardKey DashboardMatricKey)
func (*JobLibrary) UpdateJobRunningStatus ¶
func (j *JobLibrary) UpdateJobRunningStatus()
func (*JobLibrary) UpdateJobStatus ¶
func (j *JobLibrary) UpdateJobStatus(msg ...string)
Click to show internal directories.
Click to hide internal directories.