I want to create an index pattern on Kibana through the python API also set the default timeFieldName to @timestamp. However, I am a little confused in regards to the API documentation provided by Elasticsearch-py.
To elaborate, I want to have a Jenkins job that checks whether certain index patterns are available (I do this using the Index exists API). If a certain index pattern does not exist, I want to create it programmatically using the Index create API. I also want to set the timeFieldName for the index pattern to the default @timestamp field. This is where I'm a little confused.
May I know where I should specify the index pattern fields as mentioned in the elastic guide API documentation? I could just translate the CURL command into python and issue the API call that way, but I figured that there would be a proper way to manage this through the python API.