Class ConsumedCapacity
- Namespace
- DynaSharp
- Assembly
- DynaSharp.dll
The capacity units an operation consumed, reported when the request asked for it with Total or Indexes.
public sealed record ConsumedCapacity : IEquatable<ConsumedCapacity>
- Inheritance
-
ConsumedCapacity
- Implements
- Inherited Members
Remarks
For on-demand tables these are request units; for provisioned tables, capacity units. The read and write split is only present when DynamoDB reports it.
Constructors
ConsumedCapacity()
public ConsumedCapacity()
Properties
CapacityUnits
Gets the total capacity units consumed. Non-null in the capacity DynamoDB reports; null only if the response omits it.
public double? CapacityUnits { get; init; }
Property Value
GlobalSecondaryIndexes
Gets the capacity consumed per global secondary index. Only with Indexes.
public IReadOnlyDictionary<string, CapacityDetail>? GlobalSecondaryIndexes { get; init; }
Property Value
LocalSecondaryIndexes
Gets the capacity consumed per local secondary index. Only with Indexes.
public IReadOnlyDictionary<string, CapacityDetail>? LocalSecondaryIndexes { get; init; }
Property Value
ReadCapacityUnits
Gets the read capacity units consumed. null when DynamoDB does not report it separately.
public double? ReadCapacityUnits { get; init; }
Property Value
Table
Gets the capacity consumed on the table itself. Only with Indexes.
public CapacityDetail? Table { get; init; }
Property Value
TableName
Gets the table the capacity was consumed on. Non-null in the capacity DynamoDB reports; null only if the response omits it.
public string? TableName { get; init; }
Property Value
WriteCapacityUnits
Gets the write capacity units consumed. null when DynamoDB does not report it separately.
public double? WriteCapacityUnits { get; init; }
Property Value
Methods
Equals(ConsumedCapacity?)
public bool Equals(ConsumedCapacity? other)
Parameters
otherConsumedCapacity
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ConsumedCapacity?, ConsumedCapacity?)
public static bool operator ==(ConsumedCapacity? left, ConsumedCapacity? right)
Parameters
leftConsumedCapacityrightConsumedCapacity
Returns
operator !=(ConsumedCapacity?, ConsumedCapacity?)
public static bool operator !=(ConsumedCapacity? left, ConsumedCapacity? right)
Parameters
leftConsumedCapacityrightConsumedCapacity