1// Copyright The Perses Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package common
15
16import (
17 "strings"
18)
19
20#joinByColumnValueTransform: {
21 kind: "JoinByColumnValue"
22 spec: {
23 columns: [...string]
24 disabled?: bool
25 }
26}
27
28#mergeColumnsTransform: {
29 kind: "MergeColumns"
30 spec: {
31 columns: [...string]
32 name: strings.MinRunes(1)
33 disabled?: bool
34 }
35}
36
37#mergeIndexedColumnsTransform: {
38 kind: "MergeIndexedColumns"
39 spec: {
40 column: strings.MinRunes(1)
41 disabled?: bool
42 }
43}
44
45#mergeSeries: {
46 kind: "MergeSeries"
47 spec: {
48 disabled?: bool
49 }
50}
51
52#extractColumnFieldsTransform: {
53 kind: "ExtractColumnFields"
54 spec: {
55 column: string
56 format: "JSON" | "Regex" | "SplitByDelimiter" | "KeyValuePairs"
57 matcher?: string
58 }
59}
60
61#transform: #joinByColumnValueTransform | #mergeColumnsTransform | #mergeIndexedColumnsTransform | #mergeSeries | #extractColumnFieldsTransform