Skip to content

Commit

Permalink
Set up API types
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Mar 30, 2021
1 parent b52ae2c commit 3d77232
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { Meta } from '../../../../../common/types';

export interface ApiLog {
timestamp: string; // Date ISO string
status: number;
http_method: string;
full_request_path: string;
user_agent: string;
request_body: string; // JSON string
response_body: string; // JSON string
}

export interface ApiLogsData {
results: ApiLog[];
meta: Meta;
}

0 comments on commit 3d77232

Please sign in to comment.