Table of Contents

Interface IApiCallDetails

Namespace
Elasticsearch.Net
Assembly
Elasticsearch.Net.dll
public interface IApiCallDetails

Properties

AuditTrail

An audit trail of requests made to nodes within the cluster

List<Audit> AuditTrail { get; set; }

Property Value

List<Audit>

DebugInformation

A lazy human readable string representation of what happened during this request for both successful and failed requests.

string DebugInformation { get; }

Property Value

string

DeprecationWarnings

A collection of deprecation warnings returned from Elasticsearch.

Used to signal that the request uses an API feature that is marked as deprecated

IEnumerable<string> DeprecationWarnings { get; }

Property Value

IEnumerable<string>

HttpMethod

The HTTP method used by the request

HttpMethod HttpMethod { get; }

Property Value

HttpMethod

HttpStatusCode

The HTTP status code as returned by Elasticsearch

int? HttpStatusCode { get; }

Property Value

int?

OriginalException

If Success is false, this will hold the original exception. This will be the orginating CLR exception in most cases.

Exception OriginalException { get; }

Property Value

Exception

RequestBodyInBytes

The request body bytes.

NOTE: Only set when disable direct streaming is set for the request

byte[] RequestBodyInBytes { get; }

Property Value

byte[]

ResponseBodyInBytes

The response body bytes.

NOTE: Only set when disable direct streaming is set for the request

byte[] ResponseBodyInBytes { get; }

Property Value

byte[]

ResponseMimeType

The response mime type

string ResponseMimeType { get; }

Property Value

string

Success

The response status code is in the 200 range or is in the allowed list of status codes set on the request.

bool Success { get; }

Property Value

bool

SuccessOrKnownError

The response is successful or has a response code between 400-599, the call should not be retried. Only on 502,503 and 504 will this return false;

bool SuccessOrKnownError { get; }

Property Value

bool

Uri

The url as requested

Uri Uri { get; }

Property Value

Uri