Skip to content

ExperimentCanaryResponse

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Response for GET /api/experiments/{name}/canary — the rule AND its current evaluation together.

public sealed record ExperimentCanaryResponse : IEquatable<ExperimentCanaryResponse>

objectExperimentCanaryResponse

IEquatable<ExperimentCanaryResponse>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

ExperimentCanaryResponse.Evaluation is not PERSISTENT: it is computed LIVE by CanaryEvaluator on every call (see the CanaryEvaluation class documentation).

public ExperimentCanaryResponse()

Current evaluation of the rule. null if Policy is null.

public CanaryEvaluation? Evaluation { get; init; }

CanaryEvaluation?

The defined canary rule. null if none has been defined.

public CanaryPolicy? Policy { get; init; }

CanaryPolicy?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(ExperimentCanaryResponse? other)

other ExperimentCanaryResponse?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(ExperimentCanaryResponse?, ExperimentCanaryResponse?)

Section titled “ operator ==(ExperimentCanaryResponse?, ExperimentCanaryResponse?)”
public static bool operator ==(ExperimentCanaryResponse? left, ExperimentCanaryResponse? right)

left ExperimentCanaryResponse?

right ExperimentCanaryResponse?

bool

operator !=(ExperimentCanaryResponse?, ExperimentCanaryResponse?)

Section titled “ operator !=(ExperimentCanaryResponse?, ExperimentCanaryResponse?)”
public static bool operator !=(ExperimentCanaryResponse? left, ExperimentCanaryResponse? right)

left ExperimentCanaryResponse?

right ExperimentCanaryResponse?

bool