Class R2Result
- Namespace
- Cloudflare.NET.R2.Models
- Assembly
- Cloudflare.NET.R2.dll
Represents the immutable, accumulated metrics of one or more R2 operations.
public record R2Result : IEquatable<R2Result>
- Inheritance
-
R2Result
- Implements
- Inherited Members
Constructors
R2Result(long, long, long, long)
Represents the immutable, accumulated metrics of one or more R2 operations.
public R2Result(long ClassAOperations = 0, long ClassBOperations = 0, long IngressBytes = 0, long EgressBytes = 0)
Parameters
ClassAOperationslongThe number of billable Class A operations (e.g., writes, lists).
ClassBOperationslongThe number of billable Class B operations (e.g., reads).
IngressByteslongThe number of bytes uploaded to R2.
EgressByteslongThe number of bytes downloaded from R2.
Properties
ClassAOperations
The number of billable Class A operations (e.g., writes, lists).
public long ClassAOperations { get; init; }
Property Value
ClassBOperations
The number of billable Class B operations (e.g., reads).
public long ClassBOperations { get; init; }
Property Value
EgressBytes
The number of bytes downloaded from R2.
public long EgressBytes { get; init; }
Property Value
IngressBytes
The number of bytes uploaded to R2.
public long IngressBytes { get; init; }
Property Value
Operators
operator +(R2Result, R2Result)
Combines two R2Result instances by summing their metrics.
public static R2Result operator +(R2Result a, R2Result b)
Parameters
Returns
- R2Result
A new R2Result with the accumulated metrics.