jobLibrary

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvUrl

func GetEnvUrl(env string) string

func GetToken

func GetToken(job *JobLibrary) string

Types

type AdditionCondition

type AdditionCondition struct {
	Success bool
}

type DashboardMatricKey

type DashboardMatricKey struct {
	DimensionName   string `default`
	Matric          string `Monitor`
	CustomNamespace string `default` // if use this will ignore DimensionName and MatricName
}

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 JobExecuteInfo struct {
	Success bool
	Error   string
}

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)

type Notification

type Notification struct {
	Line string
	Sms  string
	Call string
	Mail string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL