Share via


IDiagnosticsDataservice.GetAggregatedDiagnosticsData method

Get the aggregated value for the data specificed by name in all the scopes. The type of the value of the data must be long or double.

Namespace:  Microsoft.SharePoint.Diagnostics
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ServiceKnownTypeAttribute(GetType(Double))> _
<ServiceKnownTypeAttribute(GetType(Long))> _
<OperationContractAttribute> _
<WebGetAttribute(UriTemplate := "{CorrelationId}/{Name}/Aggregate",  _
    ResponseFormat := WebMessageFormat.Json)> _
Function GetAggregatedDiagnosticsData ( _
    correlationId As String, _
    name As String _
) As Object
'Usage
Dim instance As IDiagnosticsDataservice
Dim correlationId As String
Dim name As String
Dim returnValue As Object

returnValue = instance.GetAggregatedDiagnosticsData(correlationId, _
    name)
[ServiceKnownTypeAttribute(typeof(double))]
[ServiceKnownTypeAttribute(typeof(long))]
[OperationContractAttribute]
[WebGetAttribute(UriTemplate = "{CorrelationId}/{Name}/Aggregate", 
    ResponseFormat = WebMessageFormat.Json)]
Object GetAggregatedDiagnosticsData(
    string correlationId,
    string name
)

Parameters

Return value

Type: System.Object
The aggregated value. It is either a long value or a double value

Examples

Request: https://server/_vti_bin/diagnosticsdata.svc/b0304019-28fa-4fc3-b8cf-e088aa4c003a/sprequest.count/aggregate

See also

Reference

IDiagnosticsDataservice interface

IDiagnosticsDataservice members

Microsoft.SharePoint.Diagnostics namespace