-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EPM] Ingest - Policy and Datasources API #48028
Comments
A few comments on https://github.com/jfsiii/kibana/commit/14b21ca9f9e727cb93e3f2a23158be5ae61c5818:
|
@mattapperson I deleted two comments and combined them into one with numbers so we can refer to them and discuss them @roncohen @ruflin @clintongormley Can you take a look at these above items and weigh in on things like
|
@mattapperson could sum up the details following todays session? (check-in interval makes sense in the policy, asset download retry settings do not)
according to your comment elsewhere, it should just be a toggle. I think it makes sense to have the URL in the MVP. It could be a simple input field under advanced that is empty by default. Agent will download from elastic.co and then try to download from Kibana if that doesn't work. If this field is set it will try to download from there instead.
I don't know what this setting does. Do you mind elaborating @mattapperson ?
that makes sense to me
I seem to recall you intend to let people move agents between in the MVP? Would be good to get explicit confirmation or rejection in the MVP doc. We keep going back and forth on it. how about if a policy is deleted, getPolicyByID will just return nothing?
Probably fine to skip for the MVP? Datasources already have IDs because we need to tag the data with ID.
You said it, let's skip for phase 1. 👍
Sounds like the MVP can be covered just by calling |
@mattapperson re: 1 After our "discuss package asset installs and Matts RFC if Fleet had done it" meeting, I understood that as long as the policy creation API returned the data structure the ingest branch originally did, the UI would have everything it needed. i.e. kibana/x-pack/legacy/plugins/ingest/server/libs/policy.ts Lines 34 to 47 in edb24f0
The current export interface Policy {
datasources?: Datasource[];
description?: string;
id: string;
name?: string;
status: Status;
} Which I take to mean the differences between them are
I don't see any reference to the retry or asset base path concerns in the |
@jfsiii and @roncohen To avoid nesting quotes too deep ill start over and just try to cover all the points by referencing the number/letter in my orig comment.
Regardless, not having an events API of some kind, IMHO would feel very very broken.
@jfsiii As for the spec for the policy, please see point 1 in this comment 😊 |
Summery from a zoom session:
|
@jfsiii @roncohen I forgot on our call, we also need a way to list policies in an API in order to populate the agent listing drop down to filter agents via the policy they are assigned too. We have this working today but only by policy ID. We need a way to get a list of policy names to make this more user friendly |
@mattapperson
|
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
@jfsiii Could you please provide in your spec what paging would look like? |
@mattapperson I hadn't considered it before now. A quick look around shows: Do you have a preference or ideal approach? You can comment here or on the PR I opened to merge the specs into our feature branch |
We normally use page & per_page approach, but it's your call 😊 |
The routes & shapes are still TBD, but we know fka Ingest will need HTTP & JS APIs for:
The initial draft of this is at
jfsiii/kibana/ingest-api-strawman
See the route names & response types in a OpenAPI viewer like ReDoc
The TS types for the responses are in
types.ts
The text was updated successfully, but these errors were encountered: