Discover modules > github.com/perses/shared/cue > common
v0.54.0-beta.8
#baseAction: ¶
name: string ¶
icon?: string ¶
confirmMessage?: string ¶
enabled: bool | *true ¶
bodyTemplate?: string ¶
batchMode: "batch" | *"individual" ¶
#calculation: #calculationAggregation ¶
#calculationAggregation: "first" | *"last" | "first-number" | "last-number" | "mean" | "sum" | "min" | "max" ¶
#calculationComparison: "abs" | "relative" ¶
#datasourceSelector: ¶
datasource?: =~#variableSyntaxRegex | { kind: _kind name?: string } ¶
#eventAction: ¶
name: string ¶
icon?: string ¶
confirmMessage?: string ¶
enabled: bool | *true ¶
bodyTemplate?: string ¶
batchMode: "batch" | *"individual" ¶
type: "event" ¶
eventName: string ¶
#format: #simpleFormat | #floatFormat | #shortenableFormat ¶
#joinByColumnValueTransform: ¶
kind: "JoinByColumnValue" ¶
spec: ¶
columns: [...string] ¶
disabled?: bool ¶
#legend: ¶
position: "bottom" | "right" ¶
mode?: "list" | "table" ¶
size?: "small" | "medium" ¶
#legendWithValues: ¶
position: "bottom" | "right" ¶
mode?: "list" | "table" ¶
size?: "small" | "medium" ¶
values?: [...#calculation] ¶
#mergeColumnsTransform: ¶
kind: "MergeColumns" ¶
spec: ¶
columns: [...string] ¶
name: strings.MinRunes(1) ¶
disabled?: bool ¶
#mergeIndexedColumnsTransform: ¶
kind: "MergeIndexedColumns" ¶
spec: ¶
column: strings.MinRunes(1) ¶
disabled?: bool ¶
#mergeSeries: ¶
kind: "MergeSeries" ¶
spec: ¶
disabled?: bool ¶
#extractColumnFieldsTransform: ¶
kind: "ExtractColumnFields" ¶
spec: ¶
column: string ¶
format: "JSON" | "Regex" | "SplitByDelimiter" | "KeyValuePairs" ¶
matcher?: string ¶
#metricLabel: string ¶
#selection: ¶
enabled?: bool | *false ¶
#simpleFormat: ¶
unit?: #dateFormat.unit ¶
#floatFormat: ¶
unit?: #timeFormat.unit | #percentFormat.unit | #currencyFormat.unit | #temperatureFormat.unit ¶
decimalPlaces?: number ¶
#shortenableFormat: ¶
unit?: #decimalFormat.unit | #bitsFormat.unit | #bytesFormat.unit | #throughputFormat.unit ¶
decimalPlaces?: number ¶
shortValues?: bool ¶
#stepOption: ¶
value: number ¶
color?: string ¶
name?: string ¶
#thresholds: ¶
mode?: "percent" | "absolute" ¶
defaultColor?: string ¶
steps?: [...#stepOption] ¶
#timeFormat: ¶
unit:
click to see definition
"nanoseconds" | "microseconds" | "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years"
¶
decimalPlaces?: number ¶
#percentFormat: ¶
unit: "percent" | "percent-decimal" ¶
decimalPlaces?: number ¶
#decimalFormat: ¶
unit: "decimal" ¶
decimalPlaces?: number ¶
shortValues?: bool ¶
#bitsFormat: ¶
unit: "bits" | "decbits" ¶
decimalPlaces?: number ¶
shortValues?: bool ¶
#bytesFormat: ¶
unit: "bytes" | "decbytes" ¶
decimalPlaces?: number ¶
shortValues?: bool ¶
#throughputFormat: ¶
unit:
click to see definition
"bits/sec" | "decbits/sec" | "bytes/sec" | "decbytes/sec" | "counts/sec" | "events/sec" | "messages/sec" | "ops/sec" | "packets/sec" | "reads/sec" | "records/sec" | "requests/sec" | "rows/sec" | "writes/sec"
¶
decimalPlaces?: number ¶
shortValues?: bool ¶
#currencyFormat: ¶
unit: "aud" | "cad" | "chf" | "cny" | "eur" | "gbp" | "hkd" | "inr" | "jpy" | "krw" | "nok" | "nzd" | "sek" | "sgd" | "usd" ¶
decimalPlaces?: number ¶
#temperatureFormat: ¶
unit: "celsius" | "fahrenheit" ¶
decimalPlaces?: number ¶
#dateFormat: ¶
unit:
click to see definition
"datetime-iso" | "datetime-us" | "datetime-local" | "date-iso" | "date-us" | "date-local" | "time-local" | "time-iso" | "time-us" | "relative-time" | "unix-timestamp" | "unix-timestamp-ms"
¶
#transform:
click to see definition
#joinByColumnValueTransform | #mergeColumnsTransform | #mergeIndexedColumnsTransform | #mergeSeries | #extractColumnFieldsTransform
¶
#url: =~"^https?://[^\\s/$.?#].[^\\s]*$" ¶
#valueCondition: ¶
kind: "Value" ¶
spec: ¶
value: strings.MinRunes(1) ¶
result: ¶
value: string ¶
color?: =~"^#(?:[0-9a-fA-F]{3}){1,2}$" ¶
#rangeCondition: ¶
kind: "Range" ¶
spec: ¶
from?: number ¶
to?: number ¶
result: ¶
value: string ¶
color?: =~"^#(?:[0-9a-fA-F]{3}){1,2}$" ¶
#regexCondition: ¶
kind: "Regex" ¶
spec: ¶
pattern: strings.MinRunes(1) ¶
result: ¶
value: string ¶
color?: =~"^#(?:[0-9a-fA-F]{3}){1,2}$" ¶
#miscCondition: ¶
kind: "Misc" ¶
spec: ¶
value: "empty" | "null" | "NaN" | "true" | "false" ¶
result: ¶
value: string ¶
color?: =~"^#(?:[0-9a-fA-F]{3}){1,2}$" ¶
#mappingResult: ¶
value: string ¶
color?: =~"^#(?:[0-9a-fA-F]{3}){1,2}$" ¶
#mappings: #valueCondition | #rangeCondition | #regexCondition | #miscCondition ¶
#variableSyntaxRegex: "^\\$\\w+$" ¶
#webhookAction: ¶
name: string ¶
icon?: string ¶
confirmMessage?: string ¶
enabled: bool | *true ¶
bodyTemplate?: string ¶
batchMode: "batch" | *"individual" ¶
type: "webhook" ¶
url: string ¶
method: "GET" | *"POST" | "PUT" | "PATCH" | "DELETE" ¶
contentType: *"none" | "json" | "text" ¶
headers?: [string]: string ¶
#itemAction: #eventAction | #webhookAction ¶
#actions: ¶
enabled: bool | *true ¶
actionsList: [...#itemAction] ¶
displayInHeader?: bool ¶
displayWithItem?: bool ¶

Source files

  • actions.cue
  • calculation.cue
  • datasource.cue
  • format.cue
  • legend.cue
  • mappings.cue
  • metricLabel.cue
  • selection.cue
  • threshold.cue
  • transform.cue
  • url.cue
  • variable.cue

Directories

  • migrate
  • proxy