fix(loki-syntax): remove outdated documentation

This commit is contained in:
Matias Chomicki
2022-10-05 17:48:00 +02:00
parent e82b5022d2
commit e469dafc79
+13 -18
View File
@@ -54,18 +54,18 @@ export const PIPE_PARSERS: CompletionItem[] = [
{
label: 'json',
insertText: 'json',
documentation: 'Extracting labels from the log line using json parser. Only available in Loki 2.0+.',
documentation: 'Extracting labels from the log line using json parser.',
},
{
label: 'regexp',
insertText: 'regexp ""',
documentation: 'Extracting labels from the log line using regexp parser. Only available in Loki 2.0+.',
documentation: 'Extracting labels from the log line using regexp parser.',
move: -1,
},
{
label: 'logfmt',
insertText: 'logfmt',
documentation: 'Extracting labels from the log line using logfmt parser. Only available in Loki 2.0+.',
documentation: 'Extracting labels from the log line using logfmt parser.',
},
{
label: 'pattern',
@@ -86,20 +86,17 @@ export const PIPE_OPERATORS: CompletionItem[] = [
label: 'unwrap',
insertText: 'unwrap',
detail: 'unwrap identifier',
documentation:
'Take labels and use the values as sample data for metric aggregations. Only available in Loki 2.0+.',
documentation: 'Take labels and use the values as sample data for metric aggregations.',
},
{
label: 'label_format',
insertText: 'label_format',
documentation:
'Use to rename, modify or add labels. For example, | label_format foo=bar . Only available in Loki 2.0+.',
documentation: 'Use to rename, modify or add labels. For example, | label_format foo=bar .',
},
{
label: 'line_format',
insertText: 'line_format',
documentation:
'Rewrites log line content. For example, | line_format "{{.query}} {{.duration}}" . Only available in Loki 2.0+.',
documentation: 'Rewrites log line content. For example, | line_format "{{.query}} {{.duration}}" .',
},
];
@@ -108,7 +105,7 @@ export const RANGE_VEC_FUNCTIONS = [
insertText: 'avg_over_time',
label: 'avg_over_time',
detail: 'avg_over_time(range-vector)',
documentation: 'The average of all values in the specified interval. Only available in Loki 2.0+.',
documentation: 'The average of all values in the specified interval.',
},
{
insertText: 'bytes_over_time',
@@ -138,7 +135,7 @@ export const RANGE_VEC_FUNCTIONS = [
insertText: 'sum_over_time',
label: 'sum_over_time',
detail: 'sum_over_time(range-vector)',
documentation: 'The sum of all values in the specified interval. Only available in Loki 2.0+.',
documentation: 'The sum of all values in the specified interval.',
},
{
insertText: 'count_over_time',
@@ -150,19 +147,19 @@ export const RANGE_VEC_FUNCTIONS = [
insertText: 'max_over_time',
label: 'max_over_time',
detail: 'max_over_time(range-vector)',
documentation: 'The maximum of all values in the specified interval. Only available in Loki 2.0+.',
documentation: 'The maximum of all values in the specified interval.',
},
{
insertText: 'min_over_time',
label: 'min_over_time',
detail: 'min_over_time(range-vector)',
documentation: 'The minimum of all values in the specified interval. Only available in Loki 2.0+.',
documentation: 'The minimum of all values in the specified interval.',
},
{
insertText: 'quantile_over_time',
label: 'quantile_over_time',
detail: 'quantile_over_time(scalar, range-vector)',
documentation: 'The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval. Only available in Loki 2.0+.',
documentation: 'The φ-quantile (0 ≤ φ ≤ 1) of the values in the specified interval.',
},
{
insertText: 'rate',
@@ -174,15 +171,13 @@ export const RANGE_VEC_FUNCTIONS = [
insertText: 'stddev_over_time',
label: 'stddev_over_time',
detail: 'stddev_over_time(range-vector)',
documentation:
'The population standard deviation of the values in the specified interval. Only available in Loki 2.0+.',
documentation: 'The population standard deviation of the values in the specified interval.',
},
{
insertText: 'stdvar_over_time',
label: 'stdvar_over_time',
detail: 'stdvar_over_time(range-vector)',
documentation:
'The population standard variance of the values in the specified interval. Only available in Loki 2.0+.',
documentation: 'The population standard variance of the values in the specified interval.',
},
];