[Logs Shared] Update deprecated Kibana usages (#200973)

## 📓 Summary

The `logs_shared` plugin was still relying on internal [deprecated
kibana
APIs](https://docs.elastic.dev/kibana-dev-docs/api-meta/deprecated-api-list-by-plugin#logsshared).
These changes update the usage with the related recommendation.

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
This commit is contained in:
Marco Antonio Ghiani 2024-11-21 10:20:09 +01:00 committed by GitHub
parent dde84ef67c
commit 7b4f59d978
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -106,7 +106,7 @@ const resolveDataViewReference = async (
});
return {
indices: dataView.title,
indices: dataView.getIndexPattern(),
timestampField: dataView.timeFieldName ?? TIMESTAMP_FIELD,
tiebreakerField: TIEBREAKER_FIELD,
messageField: ['message'],

View file

@ -40,5 +40,4 @@ export const logViewSavedObjectType: SavedObjectsType = {
},
},
},
migrations: {},
};