FabricClient.QueryClient.GetReplicaLoadInformationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetReplicaLoadInformationAsync(Guid, Int64) |
Get a list of metric and their load on a replica. |
GetReplicaLoadInformationAsync(Guid, Int64, TimeSpan, CancellationToken) |
Get a list of metric and their load on a replica. |
GetReplicaLoadInformationAsync(Guid, Int64)
Get a list of metric and their load on a replica.
public System.Threading.Tasks.Task<System.Fabric.Query.ReplicaLoadInformation> GetReplicaLoadInformationAsync (Guid partitionId, long replicaIdOrInstanceId);
member this.GetReplicaLoadInformationAsync : Guid * int64 -> System.Threading.Tasks.Task<System.Fabric.Query.ReplicaLoadInformation>
Public Function GetReplicaLoadInformationAsync (partitionId As Guid, replicaIdOrInstanceId As Long) As Task(Of ReplicaLoadInformation)
Parameters
- partitionId
- Guid
The partition ID.
- replicaIdOrInstanceId
- Int64
The replica ID (stateful service) or instance ID (stateless service).
Returns
A task that represents the asynchronous query operation.
The returned task contains the load information of the replica as ReplicaLoadInformation.
Exceptions
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
This operation has a timeout of 60 seconds.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
GetReplicaLoadInformationAsync(Guid, Int64, TimeSpan, CancellationToken)
Get a list of metric and their load on a replica.
public System.Threading.Tasks.Task<System.Fabric.Query.ReplicaLoadInformation> GetReplicaLoadInformationAsync (Guid partitionId, long replicaIdOrInstanceId, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetReplicaLoadInformationAsync : Guid * int64 * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ReplicaLoadInformation>
Public Function GetReplicaLoadInformationAsync (partitionId As Guid, replicaIdOrInstanceId As Long, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ReplicaLoadInformation)
Parameters
- partitionId
- Guid
The partition ID.
- replicaIdOrInstanceId
- Int64
The replica ID (stateful service) or instance ID (stateless service).
- timeout
- TimeSpan
Specifies the duration this operation has to complete before timing out.
- cancellationToken
- CancellationToken
Propagates notification that operations should be canceled.
Returns
A task that represents the asynchronous query operation.
The returned task contains the load information of the replica as ReplicaLoadInformation.
Exceptions
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Applies to
Azure SDK for .NET