Skip to main content

Type Alias: GatewayInferenceInputCustomLog

type GatewayInferenceInputCustomLog = {
request: {
url: string;
method?: string;
headers?: {
[key: string]: string;
};
body: {
[key: string]: GatewayJsonValue;
};
};
response: {
status?: number;
headers?: {
[key: string]: string;
};
body: {
[key: string]: GatewayJsonValue;
};
response_time?: number;
};
metadata?: {
[key: string]: GatewayJsonValue | undefined;
trace_id?: string;
span_id?: string;
span_name?: string;
additionalProperties?: string;
};
};

Defined in: src/models/ai-gateway-inference.ts:7756

Portkey CustomLog; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputCustomLogSchema.parse(value);`

Properties​

request​

request: {
url: string;
method?: string;
headers?: {
[key: string]: string;
};
body: {
[key: string]: GatewayJsonValue;
};
};

Defined in: src/models/ai-gateway-inference.ts:7757

url​

url: string;

method?​

optional method?: string;

headers?​

optional headers?: {
[key: string]: string;
};
Index Signature​
[key: string]: string

body​

body: {
[key: string]: GatewayJsonValue;
};
Index Signature​
[key: string]: GatewayJsonValue

response​

response: {
status?: number;
headers?: {
[key: string]: string;
};
body: {
[key: string]: GatewayJsonValue;
};
response_time?: number;
};

Defined in: src/models/ai-gateway-inference.ts:7763

status?​

optional status?: number;

headers?​

optional headers?: {
[key: string]: string;
};
Index Signature​
[key: string]: string

body​

body: {
[key: string]: GatewayJsonValue;
};
Index Signature​
[key: string]: GatewayJsonValue

response_time?​

optional response_time?: number;

metadata?​

optional metadata?: {
[key: string]: GatewayJsonValue | undefined;
trace_id?: string;
span_id?: string;
span_name?: string;
additionalProperties?: string;
};

Defined in: src/models/ai-gateway-inference.ts:7769

Index Signature​

[key: string]: GatewayJsonValue | undefined

trace_id?​

optional trace_id?: string;

span_id?​

optional span_id?: string;

span_name?​

optional span_name?: string;

additionalProperties?​

optional additionalProperties?: string;