Skip to content

Commit

Permalink
missing output file
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Sep 18, 2024
1 parent 94e947c commit e31f501
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions x-pack/plugins/fleet/server/types/rest_spec/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { schema } from '@kbn/config-schema';

import { OutputSchema, UpdateOutputSchema } from '../models';
import { ListResponseSchema } from '../../routes/schema/utils';

export const GetOneOutputRequestSchema = {
params: schema.object({
Expand All @@ -21,8 +22,18 @@ export const DeleteOutputRequestSchema = {
}),
};

export const DeleteOutputResponseSchema = schema.object({
id: schema.string(),
});

export const GenerateLogstashApiKeyResponseSchema = schema.object({
api_key: schema.string(),
});

export const GetOutputsRequestSchema = {};

export const GetOutputsResponseSchema = ListResponseSchema(OutputSchema);

export const PostOutputRequestSchema = {
body: OutputSchema,
};
Expand All @@ -39,3 +50,21 @@ export const GetLatestOutputHealthRequestSchema = {
outputId: schema.string(),
}),
};

export const GetLatestOutputHealthResponseSchema = schema.object({
state: schema.string({
meta: {
description: 'state of output, HEALTHY or DEGRADED',
},
}),
message: schema.string({
meta: {
description: 'long message if unhealthy',
},
}),
timestamp: schema.string({
meta: {
description: 'timestamp of reported state',
},
}),
});

0 comments on commit e31f501

Please sign in to comment.