[ES] cluster_build_flavor may be undefined (#171112)

This commit is contained in:
Alejandro Fernández Haro 2023-11-14 11:02:08 +01:00 committed by GitHub
parent 4c3b56f70a
commit da3833e513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -15,7 +15,7 @@ export interface ClusterInfo {
cluster_name: string;
cluster_uuid: string;
cluster_version: string;
cluster_build_flavor: string;
cluster_build_flavor?: string;
}
/**

View file

@ -27,7 +27,10 @@ export function registerAnalyticsContextProvider(
cluster_name: { type: 'keyword', _meta: { description: 'The Cluster Name' } },
cluster_uuid: { type: 'keyword', _meta: { description: 'The Cluster UUID' } },
cluster_version: { type: 'keyword', _meta: { description: 'The Cluster version' } },
cluster_build_flavor: { type: 'keyword', _meta: { description: 'The Cluster build flavor' } },
cluster_build_flavor: {
type: 'keyword',
_meta: { description: 'The Cluster build flavor', optional: true },
},
},
});
}