ManagementGroup.SubmitMonitoringTask Method

Definition

Submits a task that is targeted to a collection of monitoring objects and returns a GUID that is used to get results manually.

Overloads

SubmitMonitoringTask<T>(ICollection<T>, MonitoringTask, TaskConfiguration)
Obsolete.

Submits a task targeted to a collection of monitoring objects and returns a batch id for getting results manually

SubmitMonitoringTask<T>(ICollection<T>, MonitoringTask, TaskConfiguration, MonitoringTaskStatusChangeCallback)
Obsolete.

Submits a task targeted to a collection of monitoring objects and returns a batch id under which the tasks were executed.

Caller will be called back on the specified callback when any of task results change for the batch, with the new results.

SubmitMonitoringTask<T>(ICollection<T>, MonitoringTask, TaskConfiguration)

Caution

Please use TaskRuntime.SubmitMonitoringTask<T>()

Submits a task targeted to a collection of monitoring objects and returns a batch id for getting results manually

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject Guid SubmitMonitoringTask(System::Collections::Generic::ICollection<T> ^ targets, Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration);
[System.Obsolete("Please use TaskRuntime.SubmitMonitoringTask<T>()")]
public Guid SubmitMonitoringTask<T> (System.Collections.Generic.ICollection<T> targets, Microsoft.EnterpriseManagement.Runtime.MonitoringTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.SubmitMonitoringTask : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> * Microsoft.EnterpriseManagement.Runtime.MonitoringTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration -> Guid (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function SubmitMonitoringTask(Of T As PartialMonitoringObject) (targets As ICollection(Of T), task As MonitoringTask, configuration As TaskConfiguration) As Guid

Type Parameters

T

Must be of type PartialMonitoringObject.

Parameters

targets
ICollection<T>

The entities to target.

task
MonitoringTask

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

Returns

The batch id of the submitted task(s).

Attributes

Exceptions

targets or task is null

targets is empty

Applies to

SubmitMonitoringTask<T>(ICollection<T>, MonitoringTask, TaskConfiguration, MonitoringTaskStatusChangeCallback)

Caution

Please use TaskRuntime.SubmitMonitoringTask<T>()

Submits a task targeted to a collection of monitoring objects and returns a batch id under which the tasks were executed.

Caller will be called back on the specified callback when any of task results change for the batch, with the new results.

public:
generic <typename T>
 where T : Microsoft::EnterpriseManagement::Monitoring::PartialMonitoringObject Guid SubmitMonitoringTask(System::Collections::Generic::ICollection<T> ^ targets, Microsoft::EnterpriseManagement::Runtime::MonitoringTask ^ task, Microsoft::EnterpriseManagement::Runtime::TaskConfiguration ^ configuration, Microsoft::EnterpriseManagement::Monitoring::MonitoringTaskStatusChangeCallback ^ callback);
[System.Obsolete("Please use TaskRuntime.SubmitMonitoringTask<T>()")]
public Guid SubmitMonitoringTask<T> (System.Collections.Generic.ICollection<T> targets, Microsoft.EnterpriseManagement.Runtime.MonitoringTask task, Microsoft.EnterpriseManagement.Runtime.TaskConfiguration configuration, Microsoft.EnterpriseManagement.Monitoring.MonitoringTaskStatusChangeCallback callback) where T : Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject;
member this.SubmitMonitoringTask : System.Collections.Generic.ICollection<'T (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)> * Microsoft.EnterpriseManagement.Runtime.MonitoringTask * Microsoft.EnterpriseManagement.Runtime.TaskConfiguration * Microsoft.EnterpriseManagement.Monitoring.MonitoringTaskStatusChangeCallback -> Guid (requires 'T :> Microsoft.EnterpriseManagement.Monitoring.PartialMonitoringObject)
Public Function SubmitMonitoringTask(Of T As PartialMonitoringObject) (targets As ICollection(Of T), task As MonitoringTask, configuration As TaskConfiguration, callback As MonitoringTaskStatusChangeCallback) As Guid

Type Parameters

T

Must be of type PartialMonitoringObject.

Parameters

targets
ICollection<T>

The entities to target.

task
MonitoringTask

The task to submit.

configuration
TaskConfiguration

The configuration of the task.

callback
MonitoringTaskStatusChangeCallback

The optional callback to notify the client on.

Returns

The batch id of the submitted task(s).

Attributes

Exceptions

targets or task is null

targets is empty

Applies to