QueueSystem.PurgeQueueStatistics Method
Clears the statistics for jobs of the specified type in the Project Server Queuing Service.
Namespace: [QueueSystem Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/QueueSystem.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/QueueSystem.asmx?wsdl
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/PurgeQueueStatistics", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub PurgeQueueStatistics ( _
messageTypes As QueueMsgType() _
)
'Usage
Dim instance As QueueSystem
Dim messageTypes As QueueMsgType()
instance.PurgeQueueStatistics(messageTypes)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/PurgeQueueStatistics", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/QueueSystem/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void PurgeQueueStatistics(
QueueMsgType[] messageTypes
)
Parameters
- messageTypes
Type: []
Array of QueueMsgType enumeration values.
Remarks
Removes the wait time history and queue performance counter data for the types of jobs specified in messageTypes. If actual wait times are significantly different from expected wait times, or if queue performance counters appear to be incorrect, call PurgeQueueStatistics to force recalculation of expected wait times based on current data. The expected wait time for a job is approximate, based on the average wait times for jobs of similar type, on position on the queue, and on correlation priority.
Project Server Permissions
One of the following permissions is required.
Permission |
Description |
---|---|
Allows the user to manage the Project Server queue. Global permission. |
|
Allows the user to delete or move projects. Global permission. |