Class EndpointFailure
- Namespace
- Openshell.V1
- Assembly
- OpenShell.Sdk.dll
Bounded cause of a failed endpoint observation, including failures before any request reaches the endpoint. No field carries remote text: code and stage come from the domain's closed sets, provider and credential_key are configured names, and request_id is an opaque random ID.
public sealed class EndpointFailure : IMessage<EndpointFailure>, IEquatable<EndpointFailure>, IDeepCloneable<EndpointFailure>, IBufferMessage, IMessage
- Inheritance
-
EndpointFailure
- Implements
-
IMessage<EndpointFailure>IDeepCloneable<EndpointFailure>IBufferMessageIMessage
- Inherited Members
Constructors
EndpointFailure()
public EndpointFailure()
EndpointFailure(EndpointFailure)
public EndpointFailure(EndpointFailure other)
Parameters
otherEndpointFailure
Fields
CodeFieldNumber
Field number for the "code" field.
public const int CodeFieldNumber = 2
Field Value
CredentialKeyFieldNumber
Field number for the "credential_key" field.
public const int CredentialKeyFieldNumber = 5
Field Value
DomainFieldNumber
Field number for the "domain" field.
public const int DomainFieldNumber = 1
Field Value
ProviderFieldNumber
Field number for the "provider" field.
public const int ProviderFieldNumber = 4
Field Value
RecoveryActionFieldNumber
Field number for the "recovery_action" field.
public const int RecoveryActionFieldNumber = 3
Field Value
RequestIdFieldNumber
Field number for the "request_id" field.
public const int RequestIdFieldNumber = 8
Field Value
StageFieldNumber
Field number for the "stage" field.
public const int StageFieldNumber = 6
Field Value
UpstreamHttpStatusFieldNumber
Field number for the "upstream_http_status" field.
public const int UpstreamHttpStatusFieldNumber = 7
Field Value
Properties
Code
Stable lower_snake_case code from the domain's closed set, such as provider_authorization_required.
public string Code { get; set; }
Property Value
CredentialKey
Credential name within the provider. Never a credential value.
public string CredentialKey { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Domain
public EndpointFailureDomain Domain { get; set; }
Property Value
HasUpstreamHttpStatus
Gets whether the "upstream_http_status" field is set
public bool HasUpstreamHttpStatus { get; }
Property Value
Parser
public static MessageParser<EndpointFailure> Parser { get; }
Property Value
- MessageParser<EndpointFailure>
Provider
Provider whose credential failed. Empty when the failure happened before a credential was selected.
public string Provider { get; set; }
Property Value
RecoveryAction
Who can resolve the failure; always the action documented for the code.
public ProviderCredentialRefreshRecoveryAction RecoveryAction { get; set; }
Property Value
RequestId
Supervisor-minted UUID of the refused exchange. The workload receives the same value in the x-openshell-request-id response header.
public string RequestId { get; set; }
Property Value
Stage
Step that observed the failure, from the domain's closed set.
public string Stage { get; set; }
Property Value
UpstreamHttpStatus
HTTP status a token service returned, when one was received.
public uint UpstreamHttpStatus { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearUpstreamHttpStatus()
Clears the value of the "upstream_http_status" field
public void ClearUpstreamHttpStatus()
Clone()
Creates a deep clone of this object.
public EndpointFailure Clone()
Returns
- EndpointFailure
A deep clone of this object.
Equals(EndpointFailure)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(EndpointFailure other)
Parameters
otherEndpointFailureAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(EndpointFailure)
Merges the given message into this one.
public void MergeFrom(EndpointFailure other)
Parameters
otherEndpointFailure
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.