Alerting: Fix auto-completion snippets for KV properties (#73394)

This commit is contained in:
jvmdc 2023-08-24 11:23:08 +02:00 committed by GitHub
parent bbef000202
commit 7bcb3597fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,11 +28,11 @@ Annotations:
{{ end }}
`;
export const groupLabelsLoopSnippet = getKeyValueTemplate('GroupLabels');
export const commonLabelsLoopSnippet = getKeyValueTemplate('CommonLabels');
export const commonAnnotationsLoopSnippet = getKeyValueTemplate('CommonAnnotations');
export const labelsLoopSnippet = getKeyValueTemplate('Labels');
export const annotationsLoopSnippet = getKeyValueTemplate('Annotations');
export const groupLabelsLoopSnippet = getKeyValueTemplate('GroupLabels.SortedPairs');
export const commonLabelsLoopSnippet = getKeyValueTemplate('CommonLabels.SortedPairs');
export const commonAnnotationsLoopSnippet = getKeyValueTemplate('CommonAnnotations.SortedPairs');
export const labelsLoopSnippet = getKeyValueTemplate('Labels.SortedPairs');
export const annotationsLoopSnippet = getKeyValueTemplate('Annotations.SortedPairs');
function getKeyValueTemplate(arrayName: string) {
return `