Watcher interface

Definition of the watcher type.

Extends

Properties

creationTime

Gets or sets the creation time.

description

Gets or sets the description.

etag

Gets or sets the etag of the resource.

executionFrequencyInSeconds

Gets or sets the frequency at which the watcher is invoked.

lastModifiedBy

Details of the user who last modified the watcher.

lastModifiedTime

Gets or sets the last modified time.

location

The geo-location where the resource lives

scriptName

Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.

scriptParameters

Gets or sets the parameters of the script.

scriptRunOn

Gets or sets the name of the hybrid worker group the watcher will run on.

status

Gets the current status of the watcher.

tags

Resource tags.

Inherited Properties

id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

The name of the resource

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Property Details

creationTime

Gets or sets the creation time.

creationTime?: Date

Property Value

Date

description

Gets or sets the description.

description?: string

Property Value

string

etag

Gets or sets the etag of the resource.

etag?: string

Property Value

string

executionFrequencyInSeconds

Gets or sets the frequency at which the watcher is invoked.

executionFrequencyInSeconds?: number

Property Value

number

lastModifiedBy

Details of the user who last modified the watcher.

lastModifiedBy?: string

Property Value

string

lastModifiedTime

Gets or sets the last modified time.

lastModifiedTime?: Date

Property Value

Date

location

The geo-location where the resource lives

location?: string

Property Value

string

scriptName

Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.

scriptName?: string

Property Value

string

scriptParameters

Gets or sets the parameters of the script.

scriptParameters?: Record<string, string>

Property Value

Record<string, string>

scriptRunOn

Gets or sets the name of the hybrid worker group the watcher will run on.

scriptRunOn?: string

Property Value

string

status

Gets the current status of the watcher.

status?: string

Property Value

string

tags

Resource tags.

tags?: Record<string, string>

Property Value

Record<string, string>

Inherited Property Details

id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

id?: string

Property Value

string

Inherited From ProxyResource.id

name

The name of the resource

name?: string

Property Value

string

Inherited From ProxyResource.name

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

systemData?: SystemData

Property Value

Inherited From ProxyResource.systemData

type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

type?: string

Property Value

string

Inherited From ProxyResource.type