Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const Name = "scheduled_task"
View Source
const SCHEDULED_TASK_PROGRAM_ID = "Schedule.Service.1"
View Source
const S_FALSE = 0x00000001
S_FALSE is returned by CoInitialize if it was already called on this thread.
Variables ¶
View Source
var ConfigDefaults = Config{ TaskExclude: types.RegExpEmpty, TaskInclude: types.RegExpAny, }
View Source
var TASK_STATES = []string{"disabled", "queued", "ready", "running", "unknown"}
Functions ¶
This section is empty.
Types ¶
type Collector ¶ added in v0.27.0
type Collector struct {
// contains filtered or unexported fields
}
func NewWithFlags ¶
func NewWithFlags(app *kingpin.Application) *Collector
func (*Collector) Collect ¶ added in v0.27.0
func (c *Collector) Collect(_ *types.ScrapeContext, ch chan<- prometheus.Metric) error
func (*Collector) GetPerfCounter ¶ added in v0.27.0
type ScheduledTask ¶
type ScheduledTasks ¶
type ScheduledTasks []ScheduledTask
type TaskResult ¶
type TaskResult uint
const ( SCHED_S_SUCCESS TaskResult = 0x0 SCHED_S_TASK_HAS_NOT_RUN TaskResult = 0x00041303 )
type TaskState ¶
type TaskState uint
TaskState ... https://docs.microsoft.com/en-us/windows/desktop/api/taskschd/ne-taskschd-task_state
Click to show internal directories.
Click to hide internal directories.