-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
EMT-287: update schema with elastic agent id #62252
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ | |
"version": "6.6.1", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: did you update this es_archive manually? or did you use some sort of a tool that just add "stuff" to it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes we have to make incremental changes to the data because the changes are relative, e.g. in this case all events for a particular endpoint should have the same elastic.agent.id. And we have to be backward compatible with other tests too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I assume you updated the file manually? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I updated manually. |
||
"agent": { | ||
"id": "11488bae-880b-4e7b-8d28-aac2aa9de816" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "C2A9093E-E289-4C0A-AA44-8C32A414FA7A" | ||
|
@@ -54,6 +59,11 @@ | |
"version": "6.0.0", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "92ac1ce0-e1f7-409e-8af6-f17e97b1fc71" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "C2A9093E-E289-4C0A-AA44-8C32A414FA7A" | ||
|
@@ -97,6 +107,11 @@ | |
"version": "6.8.0", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "023fa40c-411d-4188-a941-4147bfadd095" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "00000000-0000-0000-0000-000000000000" | ||
|
@@ -138,6 +153,11 @@ | |
"version": "6.6.1", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "11488bae-880b-4e7b-8d28-aac2aa9de816" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "C2A9093E-E289-4C0A-AA44-8C32A414FA7A" | ||
|
@@ -182,6 +202,11 @@ | |
"version": "6.0.0", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "92ac1ce0-e1f7-409e-8af6-f17e97b1fc71" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "C2A9093E-E289-4C0A-AA44-8C32A414FA7A" | ||
|
@@ -224,6 +249,11 @@ | |
"version": "6.8.0", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "023fa40c-411d-4188-a941-4147bfadd095" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "00000000-0000-0000-0000-000000000000" | ||
|
@@ -266,6 +296,11 @@ | |
"version": "6.6.1", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "11488bae-880b-4e7b-8d28-aac2aa9de816" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "00000000-0000-0000-0000-000000000000" | ||
|
@@ -309,6 +344,11 @@ | |
"version": "6.0.0", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "92ac1ce0-e1f7-409e-8af6-f17e97b1fc71" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "C2A9093E-E289-4C0A-AA44-8C32A414FA7A" | ||
|
@@ -351,6 +391,11 @@ | |
"version": "6.8.0", | ||
"name" : "Elastic Endpoint" | ||
}, | ||
"elastic": { | ||
"agent": { | ||
"id": "023fa40c-411d-4188-a941-4147bfadd095" | ||
} | ||
}, | ||
"endpoint": { | ||
"policy": { | ||
"id": "00000000-0000-0000-0000-000000000000" | ||
|
@@ -379,4 +424,4 @@ | |
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outside of the scope of this PR, but wanted to mention it:
It feels like the types/interfaces defined here and duplicated in
types.ts
should be combined so that they come from one single source.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, some of these code was changed without my notice. In my view they are two different application that knows about each other and the use cases are different. For now it is fine to leave it separate but makes for some maintenance work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this type can be refactored with the types in
types.ts
soon, doesn't need to be in this PR though.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the challenge now @marshallmain 😄. Unrelated to this PR, I just added a new generator method to the
EndpointDocGenerator
and attempted to reference a method/type fromendpoint/public/
from this file and got an ESLint error. Some of our stuff inside of the/public/
folder may need to first be moved to this top-level location.