Skip to content

Commit

Permalink
🐛 Fix i18n issues (elastic#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed May 26, 2021
1 parent 934d3bb commit d07dae3
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Expand Up @@ -132,7 +132,7 @@ This calculation will be done separately for separate series defined by filters
It uses the current interval when used in Formula.
Example: Visualize the rate of bytes received over time by a memcached server:
${'`counter_rate(max(memcached.stats.read.bytes))`'}
\`counter_rate(max(memcached.stats.read.bytes))\`
`,
}),
},
Expand Down
Expand Up @@ -123,7 +123,7 @@ Calculates the cumulative sum of a metric over time, adding all previous values
This calculation will be done separately for separate series defined by filters or top values dimensions.
Example: Visualize the received bytes accumulated over time:
${'`cumulative_sum(sum(bytes))`'}
\`cumulative_sum(sum(bytes))\`
`,
}),
},
Expand Down
Expand Up @@ -121,7 +121,7 @@ Differences requires the data to be sequential. If your data is empty when using
This calculation will be done separately for separate series defined by filters or top values dimensions.
Example: Visualize the change in bytes received over time:
${'`differences(sum(bytes))`'}
\`differences(sum(bytes))\`
`,
}),
},
Expand Down
Expand Up @@ -150,7 +150,7 @@ This calculation will be done separately for separate series defined by filters
Takes a named parameter \`window\` which specifies how many last values to include in the average calculation for the current value.
Example: Smooth a line of measurements:
${'`moving_average(sum(bytes), window=5)`'}
\`moving_average(sum(bytes), window=5)\`
`,
values: {
defaultValue: WINDOW_DEFAULT_VALUE,
Expand Down
Expand Up @@ -119,10 +119,10 @@ export const cardinalityOperation: OperationDefinition<CardinalityIndexPatternCo
Calculates the number of unique values of a specified field. Works for number, string, date and boolean values.
Example: Calculate the number of different products:
${'`unique_count(product.name)`'}
\`unique_count(product.name)\`
Example: Calculate the number of different products from the "clothes" group:
${"`unique_count(product.name, kql='product.group=clothes')`"}
\`unique_count(product.name, kql='product.group=clothes')\`
`,
}),
},
Expand Down
Expand Up @@ -97,10 +97,10 @@ export const countOperation: OperationDefinition<CountIndexPatternColumn, 'field
Calculates the number of documents.
Example: Calculate the number of documents:
${'`count()`'}
\`count()\`
Example: Calculate the number of documents matching a certain filter:
${"`count(kql='price > 500')`"}
\`count(kql='price > 500')\`
`,
}),
},
Expand Down
Expand Up @@ -277,7 +277,7 @@ Returns the value of a field from the last document, ordered by the default time
This function is usefull the retrieve the latest state of an entity.
Example: Get the current status of server A:
${'`last_value(server.status, kql=\'server.name="A"\')`'}
\`last_value(server.status, kql=\'server.name="A"\')\`
`,
}),
},
Expand Down
Expand Up @@ -138,10 +138,10 @@ function buildMetricOperation<T extends MetricColumn<string>>({
Returns the {metric} of a field. This function only works for number fields.
Example: Get the {metric} of price:
${'`{metric}(price)`'}
\`{metric}(price)\`
Example: Get the {metric} of price for orders from the UK:
${"`{metric}(price, kql='location:UK')`"}
\`{metric}(price, kql='location:UK')\`
`,
values: {
metric: type,
Expand Down
Expand Up @@ -205,7 +205,7 @@ export const percentileOperation: OperationDefinition<PercentileIndexPatternColu
Returns the specified percentile of the values of a field. This is the value n percent of the values occuring in documents are smaller.
Example: Get the number of bytes larger than 95 % of values:
${'`percentile(bytes, percentile=95)`'}
\`percentile(bytes, percentile=95)\`
`,
}),
},
Expand Down

0 comments on commit d07dae3

Please sign in to comment.