Table of Contents

Class ItemCollectionMetrics

Namespace
DynaSharp
Assembly
DynaSharp.dll

The size estimate of an item collection that a write operation modified, reported when the request asked for it with Size.

public sealed record ItemCollectionMetrics : IEquatable<ItemCollectionMetrics>
Inheritance
ItemCollectionMetrics
Implements
Inherited Members

Remarks

An item collection is the set of all items that share a partition key value, in the table and in its local secondary indexes. DynamoDB limits it to 10 GB and rejects writes that would exceed that with an ItemCollectionSizeLimitExceededException. The metrics are only returned for tables that have a local secondary index.

Constructors

ItemCollectionMetrics()

public ItemCollectionMetrics()

Properties

ItemCollectionKey

Gets the partition key of the item collection, which is the partition key of the item that was written.

public IReadOnlyDictionary<string, AttributeValue>? ItemCollectionKey { get; init; }

Property Value

IReadOnlyDictionary<string, AttributeValue>

SizeEstimateRangeGB

Gets a lower and an upper bound, in gigabytes, for the size of the item collection: two elements. The estimate includes the items of the table and all attributes projected into the local secondary indexes. It changes over time and is not precise; use it to notice that a collection approaches the 10 GB limit.

public IReadOnlyList<double>? SizeEstimateRangeGB { get; init; }

Property Value

IReadOnlyList<double>

Methods

Equals(ItemCollectionMetrics?)

public bool Equals(ItemCollectionMetrics? other)

Parameters

other ItemCollectionMetrics

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ItemCollectionMetrics?, ItemCollectionMetrics?)

public static bool operator ==(ItemCollectionMetrics? left, ItemCollectionMetrics? right)

Parameters

left ItemCollectionMetrics
right ItemCollectionMetrics

Returns

bool

operator !=(ItemCollectionMetrics?, ItemCollectionMetrics?)

public static bool operator !=(ItemCollectionMetrics? left, ItemCollectionMetrics? right)

Parameters

left ItemCollectionMetrics
right ItemCollectionMetrics

Returns

bool