PartitionKeyStatistics Class

Definition

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

[Newtonsoft.Json.JsonObject(Newtonsoft.Json.MemberSerialization.OptIn)]
public sealed class PartitionKeyStatistics
[<Newtonsoft.Json.JsonObject(Newtonsoft.Json.MemberSerialization.OptIn)>]
type PartitionKeyStatistics = class
Public NotInheritable 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

PartitionKeyStatistics()

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