Table of Contents

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

ClassAOperations long

The number of billable Class A operations (e.g., writes, lists).

ClassBOperations long

The number of billable Class B operations (e.g., reads).

IngressBytes long

The number of bytes uploaded to R2.

EgressBytes long

The 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

long

ClassBOperations

The number of billable Class B operations (e.g., reads).

public long ClassBOperations { get; init; }

Property Value

long

EgressBytes

The number of bytes downloaded from R2.

public long EgressBytes { get; init; }

Property Value

long

IngressBytes

The number of bytes uploaded to R2.

public long IngressBytes { get; init; }

Property Value

long

Operators

operator +(R2Result, R2Result)

Combines two R2Result instances by summing their metrics.

public static R2Result operator +(R2Result a, R2Result b)

Parameters

a R2Result

The first result.

b R2Result

The second result.

Returns

R2Result

A new R2Result with the accumulated metrics.