Created
March 30, 2020 11:12
-
-
Save hexfusion/6bf38b14c8f1a6362050f299bf3f7e03 to your computer and use it in GitHub Desktop.
elastic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HEAD /index | |
| GET /index/_source |
hexfusion
commented
Mar 30, 2020
Author
Author
PUT v2
{
"mappings": {
"properties": {
"items": {
"type": "nested",
"properties": {
"firstTimestamp": {
"type": "date"
},
"count": {
"type": "integer"
},
"kind": {
"type": "text"
},
"lastTimestamp": {
"type": "date"
},
"message": {
"type": "text"
},
"reason": {
"type": "text"
},
"reportingComponent": {
"type": "text"
},
"reportingInstance": {
"type": "text"
},
"source": {
"properties": {
"component": {
"type": "text"
},
"host": {
"type": "text"
}
}
},
"involvedObject": {
"properties": {
"kind": {
"type": "text"
},
"name": {
"type": "text"
},
"uuid": {
"type": "text"
}
}
},
"metadata": {
"properties": {
"creationTimestamp": {
"type": "date"
},
"name": {
"type": "text"
},
"namespace": {
"type": "text"
},
"resourceVersion": {
"type": "text"
},
"selfLink": {
"type": "text"
},
"uuid": {
"type": "text"
}
}
}
}
}
}
}
}
Author
PUT /events
{
"mappings": {
"properties": {
"apiVersion": {
"type": "text"
},
"firstTimestamp": {
"type": "date"
},
"count": {
"type": "integer"
},
"kind": {
"type": "text"
},
"lastTimestamp": {
"type": "date"
},
"message": {
"type": "text"
},
"reason": {
"type": "text"
},
"reportingComponent": {
"type": "text"
},
"reportingInstance": {
"type": "text"
},
"source": {
"properties": {
"component": {
"type": "text"
},
"host": {
"type": "text"
}
}
},
"involvedObject": {
"properties": {
"kind": {
"type": "text"
},
"name": {
"type": "text"
},
"uuid": {
"type": "text"
}
}
},
"metadata": {
"properties": {
"creationTimestamp": {
"type": "date"
},
"name": {
"type": "text"
},
"namespace": {
"type": "text"
},
"resourceVersion": {
"type": "text"
},
"selfLink": {
"type": "text"
},
"uuid": {
"type": "text"
}
}
}
}
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment