PartitionKeyStatistics Class

Definition

Represents statistics of a partition key in the Azure Cosmos DB service.

C#
[Newtonsoft.Json.JsonObject(Newtonsoft.Json.MemberSerialization.OptIn)]
public sealed class PartitionKeyStatistics
Inheritance
PartitionKeyStatistics
Attributes
Newtonsoft.Json.JsonObjectAttribute

Remarks

This is reported based on a sub-sampling of partition keys within the collection and hence these are approximate. If your partition keys are below 1GB of storage, they may not show up in the reported statistics. For usage, please refer to the example in PartitionKeyRangeStatistics.

Constructors

Properties

PartitionKey

Gets the partition key in the Azure Cosmos DB service.

SizeInKB

Gets the size of the partition key in the Azure Cosmos DB service.

Methods

ToString()

Gets the stringified version of PartitionKeyStatistics object in the Azure Cosmos DB service.

Applies to

Product Versions
Azure SDK for .NET Latest