@distilled.cloud/clickhouse-cloud 0.0.0-stage → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +138 -2
- package/lib/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +34 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +1 -0
- package/lib/errors.d.ts +58 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +1 -0
- package/lib/index.d.ts +49 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +1 -0
- package/lib/protocol.d.ts +19 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +1 -0
- package/lib/retry.d.ts +35 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +1 -0
- package/lib/services/api_keys.d.ts +175 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +2 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/backup.d.ts +117 -0
- package/lib/services/backup.d.ts.map +1 -0
- package/lib/services/backup.js +2 -0
- package/lib/services/backup.js.map +1 -0
- package/lib/services/billing.d.ts +69 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +2 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/click_pipes.d.ts +1637 -0
- package/lib/services/click_pipes.d.ts.map +1 -0
- package/lib/services/click_pipes.js +31 -0
- package/lib/services/click_pipes.js.map +1 -0
- package/lib/services/index.d.ts +14 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +13 -0
- package/lib/services/organization.d.ts +336 -0
- package/lib/services/organization.d.ts.map +1 -0
- package/lib/services/organization.js +2 -0
- package/lib/services/organization.js.map +1 -0
- package/lib/services/postgres.d.ts +726 -0
- package/lib/services/postgres.d.ts.map +1 -0
- package/lib/services/postgres.js +31 -0
- package/lib/services/postgres.js.map +1 -0
- package/lib/services/prometheus.d.ts +71 -0
- package/lib/services/prometheus.d.ts.map +1 -0
- package/lib/services/prometheus.js +2 -0
- package/lib/services/prometheus.js.map +1 -0
- package/lib/services/query_api_endpoints.d.ts +189 -0
- package/lib/services/query_api_endpoints.d.ts.map +1 -0
- package/lib/services/query_api_endpoints.js +2 -0
- package/lib/services/query_api_endpoints.js.map +1 -0
- package/lib/services/role_management.d.ts +159 -0
- package/lib/services/role_management.d.ts.map +1 -0
- package/lib/services/role_management.js +2 -0
- package/lib/services/role_management.js.map +1 -0
- package/lib/services/saved_queries.d.ts +129 -0
- package/lib/services/saved_queries.d.ts.map +1 -0
- package/lib/services/saved_queries.js +2 -0
- package/lib/services/saved_queries.js.map +1 -0
- package/lib/services/service.d.ts +886 -0
- package/lib/services/service.d.ts.map +1 -0
- package/lib/services/service.js +41 -0
- package/lib/services/service.js.map +1 -0
- package/lib/services/udf.d.ts +373 -0
- package/lib/services/udf.d.ts.map +1 -0
- package/lib/services/udf.js +24 -0
- package/lib/services/udf.js.map +1 -0
- package/lib/services/user_management.d.ts +150 -0
- package/lib/services/user_management.d.ts.map +1 -0
- package/lib/services/user_management.js +2 -0
- package/lib/services/user_management.js.map +1 -0
- package/lib/services.lazy/api_keys.js +1 -0
- package/lib/services.lazy/backup.js +1 -0
- package/lib/services.lazy/billing.js +1 -0
- package/lib/services.lazy/click_pipes.js +3 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/organization.js +1 -0
- package/lib/services.lazy/postgres.js +4 -0
- package/lib/services.lazy/prometheus.js +1 -0
- package/lib/services.lazy/query_api_endpoints.js +1 -0
- package/lib/services.lazy/role_management.js +1 -0
- package/lib/services.lazy/saved_queries.js +1 -0
- package/lib/services.lazy/service.js +4 -0
- package/lib/services.lazy/udf.js +3 -0
- package/lib/services.lazy/user_management.js +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +1 -0
- package/lib/unstable-services/backup.d.ts +165 -0
- package/lib/unstable-services/backup.d.ts.map +1 -0
- package/lib/unstable-services/backup.js +2 -0
- package/lib/unstable-services/backup.js.map +1 -0
- package/lib/unstable-services/billing.d.ts +84 -0
- package/lib/unstable-services/billing.d.ts.map +1 -0
- package/lib/unstable-services/billing.js +2 -0
- package/lib/unstable-services/billing.js.map +1 -0
- package/lib/unstable-services/click_pipes.d.ts +324 -0
- package/lib/unstable-services/click_pipes.d.ts.map +1 -0
- package/lib/unstable-services/click_pipes.js +2 -0
- package/lib/unstable-services/click_pipes.js.map +1 -0
- package/lib/unstable-services/click_stack.d.ts +3538 -0
- package/lib/unstable-services/click_stack.d.ts.map +1 -0
- package/lib/unstable-services/click_stack.js +60 -0
- package/lib/unstable-services/click_stack.js.map +1 -0
- package/lib/unstable-services/index.d.ts +11 -0
- package/lib/unstable-services/index.d.ts.map +1 -0
- package/lib/unstable-services/index.js +10 -0
- package/lib/unstable-services/notifications.d.ts +166 -0
- package/lib/unstable-services/notifications.d.ts.map +1 -0
- package/lib/unstable-services/notifications.js +2 -0
- package/lib/unstable-services/notifications.js.map +1 -0
- package/lib/unstable-services/organization.d.ts +403 -0
- package/lib/unstable-services/organization.d.ts.map +1 -0
- package/lib/unstable-services/organization.js +26 -0
- package/lib/unstable-services/organization.js.map +1 -0
- package/lib/unstable-services/postgres.d.ts +415 -0
- package/lib/unstable-services/postgres.d.ts.map +1 -0
- package/lib/unstable-services/postgres.js +2 -0
- package/lib/unstable-services/postgres.js.map +1 -0
- package/lib/unstable-services/service.d.ts +244 -0
- package/lib/unstable-services/service.d.ts.map +1 -0
- package/lib/unstable-services/service.js +2 -0
- package/lib/unstable-services/service.js.map +1 -0
- package/lib/unstable-services/snapshot.d.ts +146 -0
- package/lib/unstable-services/snapshot.d.ts.map +1 -0
- package/lib/unstable-services/snapshot.js +2 -0
- package/lib/unstable-services/snapshot.js.map +1 -0
- package/lib/unstable-services/user_management.d.ts +41 -0
- package/lib/unstable-services/user_management.d.ts.map +1 -0
- package/lib/unstable-services/user_management.js +2 -0
- package/lib/unstable-services/user_management.js.map +1 -0
- package/lib/unstable-services.lazy/backup.js +1 -0
- package/lib/unstable-services.lazy/billing.js +1 -0
- package/lib/unstable-services.lazy/click_pipes.js +1 -0
- package/lib/unstable-services.lazy/click_stack.js +4 -0
- package/lib/unstable-services.lazy/index.js +3 -0
- package/lib/unstable-services.lazy/notifications.js +1 -0
- package/lib/unstable-services.lazy/organization.js +4 -0
- package/lib/unstable-services.lazy/postgres.js +1 -0
- package/lib/unstable-services.lazy/service.js +1 -0
- package/lib/unstable-services.lazy/snapshot.js +1 -0
- package/lib/unstable-services.lazy/user_management.js +1 -0
- package/package.json +94 -3
- package/src/credentials.ts +88 -0
- package/src/errors.ts +76 -0
- package/src/index.ts +53 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +76 -0
- package/src/retry.ts +53 -0
- package/src/services/api_keys.ts +466 -0
- package/src/services/backup.ts +347 -0
- package/src/services/billing.ts +170 -0
- package/src/services/click_pipes.ts +3483 -0
- package/src/services/index.ts +14 -0
- package/src/services/organization.ts +901 -0
- package/src/services/postgres.ts +1967 -0
- package/src/services/prometheus.ts +271 -0
- package/src/services/query_api_endpoints.ts +466 -0
- package/src/services/role_management.ts +436 -0
- package/src/services/saved_queries.ts +384 -0
- package/src/services/service.ts +2112 -0
- package/src/services/udf.ts +1019 -0
- package/src/services/user_management.ts +508 -0
- package/src/traits.ts +45 -0
- package/src/unstable-services/backup.ts +422 -0
- package/src/unstable-services/billing.ts +232 -0
- package/src/unstable-services/click_pipes.ts +702 -0
- package/src/unstable-services/click_stack.ts +7114 -0
- package/src/unstable-services/index.ts +11 -0
- package/src/unstable-services/notifications.ts +451 -0
- package/src/unstable-services/organization.ts +1107 -0
- package/src/unstable-services/postgres.ts +1061 -0
- package/src/unstable-services/service.ts +795 -0
- package/src/unstable-services/snapshot.ts +397 -0
- package/src/unstable-services/user_management.ts +127 -0
|
@@ -0,0 +1,3538 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
|
+
import { type ClickHouseCloudOpError, type ClickHouseCloudOpContext } from "../protocol.ts";
|
|
5
|
+
export type { ClickHouseCloudOpError, ClickHouseCloudOpContext };
|
|
6
|
+
declare const FeatureUnavailable_base: S.TaggedErrorClass<"FeatureUnavailable", {
|
|
7
|
+
readonly message: any;
|
|
8
|
+
readonly body: any;
|
|
9
|
+
readonly headers: any;
|
|
10
|
+
}> & (new (...args: any[]) => {
|
|
11
|
+
"@distilled.cloud/error/categories": {
|
|
12
|
+
AuthError: true;
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
/** The feature is not available to this organization or service: its plan does not include it, it is not enabled for the organization, or it is not set up. The message says which. */
|
|
16
|
+
export declare class FeatureUnavailable extends /*@__PURE__*/ FeatureUnavailable_base {
|
|
17
|
+
}
|
|
18
|
+
export interface ClickStackSilenceAlertRequest {
|
|
19
|
+
/** ID of the organization that owns the service. */
|
|
20
|
+
organizationId: string;
|
|
21
|
+
/** ID of the ClickStack service. */
|
|
22
|
+
serviceId: string;
|
|
23
|
+
/** ClickStack Alert ID */
|
|
24
|
+
clickStackAlertId: string;
|
|
25
|
+
/** ISO 8601 timestamp, in the future, until which the alert is silenced. */
|
|
26
|
+
mutedUntil: string;
|
|
27
|
+
}
|
|
28
|
+
/** Display type discriminator. Must be "line" for line charts. */
|
|
29
|
+
export type ClickStackAlertLineBuilderChartConfigDisplayType = "line";
|
|
30
|
+
/** Aggregation function to apply. "count" does not require a valueExpression; "quantile" requires a level field indicating the desired percentile (e.g., 0.95). */
|
|
31
|
+
export type ClickStackSelectItemAggFn = "avg" | "count" | "count_distinct" | "last_value" | "max" | "min" | "quantile" | "sum" | "any" | "none";
|
|
32
|
+
/** Query language for the where clause. */
|
|
33
|
+
export type ClickStackSelectItemWhereLanguage = "sql" | "lucene";
|
|
34
|
+
/** Metric type; only applicable when the source is a metrics source. */
|
|
35
|
+
export type ClickStackSelectItemMetricType = "sum" | "gauge" | "histogram" | "summary" | "exponential histogram";
|
|
36
|
+
/** Optional period aggregation function for Gauge metrics (e.g., compute the delta over the period). */
|
|
37
|
+
export type ClickStackSelectItemPeriodAggFn = "delta";
|
|
38
|
+
/** Output format applied to the number. */
|
|
39
|
+
export type ClickStackNumberFormatOutput = "currency" | "percent" | "byte" | "time" | "number" | "data_rate" | "throughput" | "duration";
|
|
40
|
+
/** Numeric unit for data, data rate, or throughput formats. */
|
|
41
|
+
export type ClickStackNumberFormatNumericUnit = "bytes_iec" | "bytes_si" | "bits_iec" | "bits_si" | "kibibytes" | "kilobytes" | "mebibytes" | "megabytes" | "gibibytes" | "gigabytes" | "tebibytes" | "terabytes" | "pebibytes" | "petabytes" | "packets_sec" | "bytes_sec_iec" | "bytes_sec_si" | "bits_sec_iec" | "bits_sec_si" | "kibibytes_sec" | "kibibits_sec" | "kilobytes_sec" | "kilobits_sec" | "mebibytes_sec" | "mebibits_sec" | "megabytes_sec" | "megabits_sec" | "gibibytes_sec" | "gibibits_sec" | "gigabytes_sec" | "gigabits_sec" | "tebibytes_sec" | "tebibits_sec" | "terabytes_sec" | "terabits_sec" | "pebibytes_sec" | "pebibits_sec" | "petabytes_sec" | "petabits_sec" | "cps" | "ops" | "rps" | "reads_sec" | "wps" | "iops" | "cpm" | "opm" | "rpm_reads" | "wpm";
|
|
42
|
+
export interface ClickStackNumberFormat {
|
|
43
|
+
/** Output format applied to the number. */
|
|
44
|
+
output?: ClickStackNumberFormatOutput | (string & {}) | undefined;
|
|
45
|
+
/** Number of decimal places. */
|
|
46
|
+
mantissa?: number | undefined;
|
|
47
|
+
/** Whether to use thousand separators. */
|
|
48
|
+
thousandSeparated?: boolean | undefined;
|
|
49
|
+
/** Whether to show as average. */
|
|
50
|
+
average?: boolean | undefined;
|
|
51
|
+
/** Use decimal bytes (1000) vs binary bytes (1024). */
|
|
52
|
+
decimalBytes?: boolean | undefined;
|
|
53
|
+
/** Multiplication factor. */
|
|
54
|
+
factor?: number | undefined;
|
|
55
|
+
/** Currency symbol for currency format. */
|
|
56
|
+
currencySymbol?: string | undefined;
|
|
57
|
+
/** Numeric unit for data, data rate, or throughput formats. */
|
|
58
|
+
numericUnit?: ClickStackNumberFormatNumericUnit | (string & {}) | undefined;
|
|
59
|
+
/** Custom unit label. */
|
|
60
|
+
unit?: string | undefined;
|
|
61
|
+
}
|
|
62
|
+
export interface ClickStackSelectItem {
|
|
63
|
+
/** Aggregation function to apply. "count" does not require a valueExpression; "quantile" requires a level field indicating the desired percentile (e.g., 0.95). */
|
|
64
|
+
aggFn: ClickStackSelectItemAggFn | (string & {});
|
|
65
|
+
/** Expression for the column or value to aggregate. Must be omitted when aggFn is "count"; required for all other aggFn values. */
|
|
66
|
+
valueExpression?: string | undefined;
|
|
67
|
+
/** Display alias for this select item in chart legends. */
|
|
68
|
+
alias?: string | undefined;
|
|
69
|
+
/** Percentile level; only valid when aggFn is "quantile". Allowed values: 0.5, 0.9, 0.95, 0.99. */
|
|
70
|
+
level?: number | undefined;
|
|
71
|
+
/** SQL or Lucene filter condition applied before aggregation. */
|
|
72
|
+
where?: string | undefined;
|
|
73
|
+
/** Query language for the where clause. */
|
|
74
|
+
whereLanguage?: ClickStackSelectItemWhereLanguage | (string & {}) | undefined;
|
|
75
|
+
/** Name of the metric to aggregate; only applicable when the source is a metrics source. */
|
|
76
|
+
metricName?: string | undefined;
|
|
77
|
+
/** Metric type; only applicable when the source is a metrics source. */
|
|
78
|
+
metricType?: ClickStackSelectItemMetricType | (string & {}) | undefined;
|
|
79
|
+
/** Optional period aggregation function for Gauge metrics (e.g., compute the delta over the period). */
|
|
80
|
+
periodAggFn?: ClickStackSelectItemPeriodAggFn | (string & {}) | undefined;
|
|
81
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
82
|
+
}
|
|
83
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
84
|
+
export type ClickStackAlertLineBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
85
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
86
|
+
export type ClickStackAlertLineBuilderChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
87
|
+
export interface ClickStackFormula {
|
|
88
|
+
/** Arithmetic expression over the select items by position, e.g. "A / (A + B) * 100" for a success-rate percentage. */
|
|
89
|
+
expression: string;
|
|
90
|
+
/** Display label for the formula series in chart legends and column headers. Falls back to the raw expression text when unset. */
|
|
91
|
+
alias?: string | undefined;
|
|
92
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
93
|
+
}
|
|
94
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
95
|
+
export type ClickStackAlertLineBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
96
|
+
/** Language of the chart-level "where" filter. */
|
|
97
|
+
export type ClickStackAlertLineBuilderChartConfigWhereLanguage = "sql" | "lucene";
|
|
98
|
+
export interface ClickStackAlertLineBuilderChartConfig {
|
|
99
|
+
/** Display type discriminator. Must be "line" for line charts. */
|
|
100
|
+
displayType: ClickStackAlertLineBuilderChartConfigDisplayType;
|
|
101
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
102
|
+
sourceId: string;
|
|
103
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
104
|
+
select: ClickStackAlertLineBuilderChartConfigSelectList;
|
|
105
|
+
/** Field expression to group results by (creates separate lines per group value). */
|
|
106
|
+
groupBy?: string | undefined;
|
|
107
|
+
/** Plot select[0] / select[1] as a ratio. Requires exactly two select items. */
|
|
108
|
+
asRatio?: boolean | undefined;
|
|
109
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
110
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
111
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
112
|
+
fillNulls?: boolean | undefined;
|
|
113
|
+
/** Set the y-axis lower bound to the minimum of the displayed data instead of zero, making small fluctuations between series easier to see. */
|
|
114
|
+
fitYAxisToData?: boolean | undefined;
|
|
115
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
116
|
+
lineInterpolation?: ClickStackAlertLineBuilderChartConfigLineInterpolation | (string & {}) | undefined;
|
|
117
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
118
|
+
/** Overlay the equivalent previous time period for comparison. */
|
|
119
|
+
compareToPreviousPeriod?: boolean | undefined;
|
|
120
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
121
|
+
seriesLimit?: number | undefined;
|
|
122
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
123
|
+
formulas?: ClickStackAlertLineBuilderChartConfigFormulasList | undefined;
|
|
124
|
+
/** Only meaningful with formulas. When false, only the formula series are returned; the raw operand series are hidden. */
|
|
125
|
+
showOperandSeries?: boolean | undefined;
|
|
126
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
127
|
+
name?: string | undefined;
|
|
128
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
129
|
+
where?: string | undefined;
|
|
130
|
+
/** Language of the chart-level "where" filter. */
|
|
131
|
+
whereLanguage?: ClickStackAlertLineBuilderChartConfigWhereLanguage | (string & {}) | undefined;
|
|
132
|
+
}
|
|
133
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
134
|
+
export type ClickStackAlertLineRawSqlChartConfigConfigType = "sql";
|
|
135
|
+
/** Display as a line time-series chart. */
|
|
136
|
+
export type ClickStackAlertLineRawSqlChartConfigDisplayType = "line";
|
|
137
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
138
|
+
export type ClickStackAlertLineRawSqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
139
|
+
/** Language of the chart-level "where" filter. */
|
|
140
|
+
export type ClickStackAlertLineRawSqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
141
|
+
export interface ClickStackAlertLineRawSqlChartConfig {
|
|
142
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
143
|
+
configType: ClickStackAlertLineRawSqlChartConfigConfigType;
|
|
144
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
145
|
+
connectionId: string;
|
|
146
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
147
|
+
sqlTemplate: string;
|
|
148
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
149
|
+
sourceId?: string | undefined;
|
|
150
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
151
|
+
/** Display as a line time-series chart. */
|
|
152
|
+
displayType: ClickStackAlertLineRawSqlChartConfigDisplayType;
|
|
153
|
+
/** Overlay the equivalent previous time period for comparison. */
|
|
154
|
+
compareToPreviousPeriod?: boolean | undefined;
|
|
155
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
156
|
+
fillNulls?: boolean | undefined;
|
|
157
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
158
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
159
|
+
/** Set the y-axis lower bound to the minimum of the displayed data instead of zero, making small fluctuations between series easier to see. */
|
|
160
|
+
fitYAxisToData?: boolean | undefined;
|
|
161
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
162
|
+
lineInterpolation?: ClickStackAlertLineRawSqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
163
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
164
|
+
name?: string | undefined;
|
|
165
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
166
|
+
where?: string | undefined;
|
|
167
|
+
/** Language of the chart-level "where" filter. */
|
|
168
|
+
whereLanguage?: ClickStackAlertLineRawSqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
169
|
+
}
|
|
170
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
171
|
+
export type ClickStackAlertLinePromqlChartConfigConfigType = "promql";
|
|
172
|
+
export interface ClickStackPromqlRangeExpression {
|
|
173
|
+
/** PromQL expression. Supports dashboard variables and the $__interval, $__rate_interval, and $__range macros. */
|
|
174
|
+
expression: string;
|
|
175
|
+
/** Prefixed to every series name this expression produces. */
|
|
176
|
+
alias?: string | undefined;
|
|
177
|
+
}
|
|
178
|
+
/** PromQL expressions to plot. */
|
|
179
|
+
export type ClickStackAlertLinePromqlChartConfigExpressionsList = Array<ClickStackPromqlRangeExpression>;
|
|
180
|
+
/** Display as a line time-series chart. */
|
|
181
|
+
export type ClickStackAlertLinePromqlChartConfigDisplayType = "line";
|
|
182
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
183
|
+
export type ClickStackAlertLinePromqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
184
|
+
/** Language of the chart-level "where" filter. */
|
|
185
|
+
export type ClickStackAlertLinePromqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
186
|
+
export interface ClickStackAlertLinePromqlChartConfig {
|
|
187
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
188
|
+
configType: ClickStackAlertLinePromqlChartConfigConfigType;
|
|
189
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
190
|
+
sourceId: string;
|
|
191
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
192
|
+
granularity?: string | undefined;
|
|
193
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
194
|
+
/** PromQL expressions to plot. */
|
|
195
|
+
expressions: ClickStackAlertLinePromqlChartConfigExpressionsList;
|
|
196
|
+
/** Template for series names, using the series' Prometheus labels in double braces. */
|
|
197
|
+
legendTemplate?: string | undefined;
|
|
198
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
199
|
+
fillNulls?: boolean | undefined;
|
|
200
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
201
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
202
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
203
|
+
seriesLimit?: number | undefined;
|
|
204
|
+
/** Display as a line time-series chart. */
|
|
205
|
+
displayType: ClickStackAlertLinePromqlChartConfigDisplayType;
|
|
206
|
+
/** Overlay the equivalent previous time period for comparison. */
|
|
207
|
+
compareToPreviousPeriod?: boolean | undefined;
|
|
208
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
209
|
+
lineInterpolation?: ClickStackAlertLinePromqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
210
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
211
|
+
name?: string | undefined;
|
|
212
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
213
|
+
where?: string | undefined;
|
|
214
|
+
/** Language of the chart-level "where" filter. */
|
|
215
|
+
whereLanguage?: ClickStackAlertLinePromqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
216
|
+
}
|
|
217
|
+
export type ClickStackAlertLineChartConfig = ClickStackAlertLineBuilderChartConfig | ClickStackAlertLineRawSqlChartConfig | ClickStackAlertLinePromqlChartConfig;
|
|
218
|
+
/** Display type discriminator. Must be "stacked_bar" for stacked-bar charts. */
|
|
219
|
+
export type ClickStackAlertBarBuilderChartConfigDisplayType = "stacked_bar";
|
|
220
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
221
|
+
export type ClickStackAlertBarBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
222
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
223
|
+
export type ClickStackAlertBarBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
224
|
+
/** Language of the chart-level "where" filter. */
|
|
225
|
+
export type ClickStackAlertBarBuilderChartConfigWhereLanguage = "sql" | "lucene";
|
|
226
|
+
export interface ClickStackAlertBarBuilderChartConfig {
|
|
227
|
+
/** Display type discriminator. Must be "stacked_bar" for stacked-bar charts. */
|
|
228
|
+
displayType: ClickStackAlertBarBuilderChartConfigDisplayType;
|
|
229
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
230
|
+
sourceId: string;
|
|
231
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
232
|
+
select: ClickStackAlertBarBuilderChartConfigSelectList;
|
|
233
|
+
/** Field expression to group results by (creates separate bars segments per group value). */
|
|
234
|
+
groupBy?: string | undefined;
|
|
235
|
+
/** Plot select[0] / select[1] as a ratio. Requires exactly two select items. */
|
|
236
|
+
asRatio?: boolean | undefined;
|
|
237
|
+
/** Align the date range boundaries to the query granularity interval. */
|
|
238
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
239
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
240
|
+
fillNulls?: boolean | undefined;
|
|
241
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
242
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
243
|
+
seriesLimit?: number | undefined;
|
|
244
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
245
|
+
formulas?: ClickStackAlertBarBuilderChartConfigFormulasList | undefined;
|
|
246
|
+
/** Only meaningful with formulas. When false, only the formula series are returned; the raw operand series are hidden. */
|
|
247
|
+
showOperandSeries?: boolean | undefined;
|
|
248
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
249
|
+
name?: string | undefined;
|
|
250
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
251
|
+
where?: string | undefined;
|
|
252
|
+
/** Language of the chart-level "where" filter. */
|
|
253
|
+
whereLanguage?: ClickStackAlertBarBuilderChartConfigWhereLanguage | (string & {}) | undefined;
|
|
254
|
+
}
|
|
255
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
256
|
+
export type ClickStackAlertBarRawSqlChartConfigConfigType = "sql";
|
|
257
|
+
/** Display as a stacked-bar time-series chart. */
|
|
258
|
+
export type ClickStackAlertBarRawSqlChartConfigDisplayType = "stacked_bar";
|
|
259
|
+
/** Language of the chart-level "where" filter. */
|
|
260
|
+
export type ClickStackAlertBarRawSqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
261
|
+
export interface ClickStackAlertBarRawSqlChartConfig {
|
|
262
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
263
|
+
configType: ClickStackAlertBarRawSqlChartConfigConfigType;
|
|
264
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
265
|
+
connectionId: string;
|
|
266
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
267
|
+
sqlTemplate: string;
|
|
268
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
269
|
+
sourceId?: string | undefined;
|
|
270
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
271
|
+
/** Display as a stacked-bar time-series chart. */
|
|
272
|
+
displayType: ClickStackAlertBarRawSqlChartConfigDisplayType;
|
|
273
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
274
|
+
fillNulls?: boolean | undefined;
|
|
275
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
276
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
277
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
278
|
+
name?: string | undefined;
|
|
279
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
280
|
+
where?: string | undefined;
|
|
281
|
+
/** Language of the chart-level "where" filter. */
|
|
282
|
+
whereLanguage?: ClickStackAlertBarRawSqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
283
|
+
}
|
|
284
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
285
|
+
export type ClickStackAlertBarPromqlChartConfigConfigType = "promql";
|
|
286
|
+
/** PromQL expressions to plot. */
|
|
287
|
+
export type ClickStackAlertBarPromqlChartConfigExpressionsList = Array<ClickStackPromqlRangeExpression>;
|
|
288
|
+
/** Display as a stacked-bar time-series chart. */
|
|
289
|
+
export type ClickStackAlertBarPromqlChartConfigDisplayType = "stacked_bar";
|
|
290
|
+
/** Language of the chart-level "where" filter. */
|
|
291
|
+
export type ClickStackAlertBarPromqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
292
|
+
export interface ClickStackAlertBarPromqlChartConfig {
|
|
293
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
294
|
+
configType: ClickStackAlertBarPromqlChartConfigConfigType;
|
|
295
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
296
|
+
sourceId: string;
|
|
297
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
298
|
+
granularity?: string | undefined;
|
|
299
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
300
|
+
/** PromQL expressions to plot. */
|
|
301
|
+
expressions: ClickStackAlertBarPromqlChartConfigExpressionsList;
|
|
302
|
+
/** Template for series names, using the series' Prometheus labels in double braces. */
|
|
303
|
+
legendTemplate?: string | undefined;
|
|
304
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
305
|
+
fillNulls?: boolean | undefined;
|
|
306
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
307
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
308
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
309
|
+
seriesLimit?: number | undefined;
|
|
310
|
+
/** Display as a stacked-bar time-series chart. */
|
|
311
|
+
displayType: ClickStackAlertBarPromqlChartConfigDisplayType;
|
|
312
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
313
|
+
name?: string | undefined;
|
|
314
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
315
|
+
where?: string | undefined;
|
|
316
|
+
/** Language of the chart-level "where" filter. */
|
|
317
|
+
whereLanguage?: ClickStackAlertBarPromqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
318
|
+
}
|
|
319
|
+
export type ClickStackAlertBarChartConfig = ClickStackAlertBarBuilderChartConfig | ClickStackAlertBarRawSqlChartConfig | ClickStackAlertBarPromqlChartConfig;
|
|
320
|
+
/** Display type discriminator. Must be "stacked_line" for stacked-line charts. */
|
|
321
|
+
export type ClickStackAlertStackedLineBuilderChartConfigDisplayType = "stacked_line";
|
|
322
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
323
|
+
export type ClickStackAlertStackedLineBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
324
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
325
|
+
export type ClickStackAlertStackedLineBuilderChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
326
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
327
|
+
export type ClickStackAlertStackedLineBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
328
|
+
/** Language of the chart-level "where" filter. */
|
|
329
|
+
export type ClickStackAlertStackedLineBuilderChartConfigWhereLanguage = "sql" | "lucene";
|
|
330
|
+
export interface ClickStackAlertStackedLineBuilderChartConfig {
|
|
331
|
+
/** Display type discriminator. Must be "stacked_line" for stacked-line charts. */
|
|
332
|
+
displayType: ClickStackAlertStackedLineBuilderChartConfigDisplayType;
|
|
333
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
334
|
+
sourceId: string;
|
|
335
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
336
|
+
select: ClickStackAlertStackedLineBuilderChartConfigSelectList;
|
|
337
|
+
/** Field expression to group results by (creates separate stacked bands per group value). */
|
|
338
|
+
groupBy?: string | undefined;
|
|
339
|
+
/** Plot select[0] / select[1] as a ratio. Requires exactly two select items. */
|
|
340
|
+
asRatio?: boolean | undefined;
|
|
341
|
+
/** Align the date range boundaries to the query granularity interval. */
|
|
342
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
343
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
344
|
+
fillNulls?: boolean | undefined;
|
|
345
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
346
|
+
lineInterpolation?: ClickStackAlertStackedLineBuilderChartConfigLineInterpolation | (string & {}) | undefined;
|
|
347
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
348
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
349
|
+
seriesLimit?: number | undefined;
|
|
350
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
351
|
+
formulas?: ClickStackAlertStackedLineBuilderChartConfigFormulasList | undefined;
|
|
352
|
+
/** Only meaningful with formulas. When false, only the formula series are returned; the raw operand series are hidden. */
|
|
353
|
+
showOperandSeries?: boolean | undefined;
|
|
354
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
355
|
+
name?: string | undefined;
|
|
356
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
357
|
+
where?: string | undefined;
|
|
358
|
+
/** Language of the chart-level "where" filter. */
|
|
359
|
+
whereLanguage?: ClickStackAlertStackedLineBuilderChartConfigWhereLanguage | (string & {}) | undefined;
|
|
360
|
+
}
|
|
361
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
362
|
+
export type ClickStackAlertStackedLineRawSqlChartConfigConfigType = "sql";
|
|
363
|
+
/** Display as a stacked-line time-series chart. */
|
|
364
|
+
export type ClickStackAlertStackedLineRawSqlChartConfigDisplayType = "stacked_line";
|
|
365
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
366
|
+
export type ClickStackAlertStackedLineRawSqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
367
|
+
/** Language of the chart-level "where" filter. */
|
|
368
|
+
export type ClickStackAlertStackedLineRawSqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
369
|
+
export interface ClickStackAlertStackedLineRawSqlChartConfig {
|
|
370
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
371
|
+
configType: ClickStackAlertStackedLineRawSqlChartConfigConfigType;
|
|
372
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
373
|
+
connectionId: string;
|
|
374
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
375
|
+
sqlTemplate: string;
|
|
376
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
377
|
+
sourceId?: string | undefined;
|
|
378
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
379
|
+
/** Display as a stacked-line time-series chart. */
|
|
380
|
+
displayType: ClickStackAlertStackedLineRawSqlChartConfigDisplayType;
|
|
381
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
382
|
+
fillNulls?: boolean | undefined;
|
|
383
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
384
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
385
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
386
|
+
lineInterpolation?: ClickStackAlertStackedLineRawSqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
387
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
388
|
+
name?: string | undefined;
|
|
389
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
390
|
+
where?: string | undefined;
|
|
391
|
+
/** Language of the chart-level "where" filter. */
|
|
392
|
+
whereLanguage?: ClickStackAlertStackedLineRawSqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
393
|
+
}
|
|
394
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
395
|
+
export type ClickStackAlertStackedLinePromqlChartConfigConfigType = "promql";
|
|
396
|
+
/** PromQL expressions to plot. */
|
|
397
|
+
export type ClickStackAlertStackedLinePromqlChartConfigExpressionsList = Array<ClickStackPromqlRangeExpression>;
|
|
398
|
+
/** Display as a stacked-line time-series chart. */
|
|
399
|
+
export type ClickStackAlertStackedLinePromqlChartConfigDisplayType = "stacked_line";
|
|
400
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
401
|
+
export type ClickStackAlertStackedLinePromqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
402
|
+
/** Language of the chart-level "where" filter. */
|
|
403
|
+
export type ClickStackAlertStackedLinePromqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
404
|
+
export interface ClickStackAlertStackedLinePromqlChartConfig {
|
|
405
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
406
|
+
configType: ClickStackAlertStackedLinePromqlChartConfigConfigType;
|
|
407
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
408
|
+
sourceId: string;
|
|
409
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
410
|
+
granularity?: string | undefined;
|
|
411
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
412
|
+
/** PromQL expressions to plot. */
|
|
413
|
+
expressions: ClickStackAlertStackedLinePromqlChartConfigExpressionsList;
|
|
414
|
+
/** Template for series names, using the series' Prometheus labels in double braces. */
|
|
415
|
+
legendTemplate?: string | undefined;
|
|
416
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
417
|
+
fillNulls?: boolean | undefined;
|
|
418
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
419
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
420
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
421
|
+
seriesLimit?: number | undefined;
|
|
422
|
+
/** Display as a stacked-line time-series chart. */
|
|
423
|
+
displayType: ClickStackAlertStackedLinePromqlChartConfigDisplayType;
|
|
424
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
425
|
+
lineInterpolation?: ClickStackAlertStackedLinePromqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
426
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
427
|
+
name?: string | undefined;
|
|
428
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
429
|
+
where?: string | undefined;
|
|
430
|
+
/** Language of the chart-level "where" filter. */
|
|
431
|
+
whereLanguage?: ClickStackAlertStackedLinePromqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
432
|
+
}
|
|
433
|
+
export type ClickStackAlertStackedLineChartConfig = ClickStackAlertStackedLineBuilderChartConfig | ClickStackAlertStackedLineRawSqlChartConfig | ClickStackAlertStackedLinePromqlChartConfig;
|
|
434
|
+
/** Display type discriminator. Must be "number" for single big-number charts. */
|
|
435
|
+
export type ClickStackAlertNumberBuilderChartConfigDisplayType = "number";
|
|
436
|
+
/** Exactly one aggregated value to display as a single number -- unless "formulas" is set, in which case the select items are the formula's operands and the (single) formula value is displayed instead. */
|
|
437
|
+
export type ClickStackAlertNumberBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
438
|
+
/** A single derived value computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Number tiles display the formula value and always hide the operand series. */
|
|
439
|
+
export type ClickStackAlertNumberBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
440
|
+
/** Optional static color applied to the displayed number. */
|
|
441
|
+
export type ClickStackAlertNumberBuilderChartConfigColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
442
|
+
/** Numeric comparison operator. */
|
|
443
|
+
export type ClickStackNumericColorConditionOperator = "gt" | "gte" | "lt" | "lte";
|
|
444
|
+
/** Color applied when the rule matches. */
|
|
445
|
+
export type ClickStackNumericColorConditionColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
446
|
+
export interface ClickStackNumericColorCondition {
|
|
447
|
+
/** Numeric comparison operator. */
|
|
448
|
+
operator: ClickStackNumericColorConditionOperator | (string & {});
|
|
449
|
+
/** Numeric bound the displayed value is compared against. Only finite numbers are accepted (Infinity and NaN are rejected). */
|
|
450
|
+
value: number;
|
|
451
|
+
/** Color applied when the rule matches. */
|
|
452
|
+
color: ClickStackNumericColorConditionColor | (string & {});
|
|
453
|
+
/** Optional label describing the rule. */
|
|
454
|
+
label?: string | undefined;
|
|
455
|
+
}
|
|
456
|
+
/** Range comparison operator. */
|
|
457
|
+
export type ClickStackBetweenColorConditionOperator = "between";
|
|
458
|
+
/** Inclusive [min, max] range. Both bounds must be finite numbers. */
|
|
459
|
+
export type ClickStackBetweenColorConditionValueList = Array<number>;
|
|
460
|
+
/** Color applied when the rule matches. */
|
|
461
|
+
export type ClickStackBetweenColorConditionColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
462
|
+
export interface ClickStackBetweenColorCondition {
|
|
463
|
+
/** Range comparison operator. */
|
|
464
|
+
operator: ClickStackBetweenColorConditionOperator;
|
|
465
|
+
/** Inclusive [min, max] range. Both bounds must be finite numbers. */
|
|
466
|
+
value: ClickStackBetweenColorConditionValueList;
|
|
467
|
+
/** Color applied when the rule matches. */
|
|
468
|
+
color: ClickStackBetweenColorConditionColor | (string & {});
|
|
469
|
+
/** Optional label describing the rule. */
|
|
470
|
+
label?: string | undefined;
|
|
471
|
+
}
|
|
472
|
+
/** Equality comparison operator. */
|
|
473
|
+
export type ClickStackEqualityColorConditionOperator = "eq" | "neq";
|
|
474
|
+
/** A finite number, or a string up to 200 characters, to compare for equality. */
|
|
475
|
+
export type ClickStackEqualityColorConditionValue = number | string;
|
|
476
|
+
/** Color applied when the rule matches. */
|
|
477
|
+
export type ClickStackEqualityColorConditionColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
478
|
+
export interface ClickStackEqualityColorCondition {
|
|
479
|
+
/** Equality comparison operator. */
|
|
480
|
+
operator: ClickStackEqualityColorConditionOperator | (string & {});
|
|
481
|
+
/** A finite number, or a string up to 200 characters, to compare for equality. */
|
|
482
|
+
value: ClickStackEqualityColorConditionValue;
|
|
483
|
+
/** Color applied when the rule matches. */
|
|
484
|
+
color: ClickStackEqualityColorConditionColor | (string & {});
|
|
485
|
+
/** Optional label describing the rule. */
|
|
486
|
+
label?: string | undefined;
|
|
487
|
+
}
|
|
488
|
+
export type ClickStackNumberTileColorCondition = ClickStackNumericColorCondition | ClickStackBetweenColorCondition | ClickStackEqualityColorCondition;
|
|
489
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
490
|
+
export type ClickStackAlertNumberBuilderChartConfigColorRulesList = Array<ClickStackNumberTileColorCondition>;
|
|
491
|
+
/** Sparkline shape. */
|
|
492
|
+
export type ClickStackBackgroundChartType = "line" | "area";
|
|
493
|
+
/** Optional palette-token override for the sparkline. When unset the sparkline inherits the tile's static color. */
|
|
494
|
+
export type ClickStackBackgroundChartColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
495
|
+
export interface ClickStackBackgroundChart {
|
|
496
|
+
/** Sparkline shape. */
|
|
497
|
+
type: ClickStackBackgroundChartType | (string & {});
|
|
498
|
+
/** Optional palette-token override for the sparkline. When unset the sparkline inherits the tile's static color. */
|
|
499
|
+
color?: ClickStackBackgroundChartColor | (string & {}) | undefined;
|
|
500
|
+
}
|
|
501
|
+
/** Language of the chart-level "where" filter. */
|
|
502
|
+
export type ClickStackAlertNumberBuilderChartConfigWhereLanguage = "sql" | "lucene";
|
|
503
|
+
export interface ClickStackAlertNumberBuilderChartConfig {
|
|
504
|
+
/** Display type discriminator. Must be "number" for single big-number charts. */
|
|
505
|
+
displayType: ClickStackAlertNumberBuilderChartConfigDisplayType;
|
|
506
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
507
|
+
sourceId: string;
|
|
508
|
+
/** Exactly one aggregated value to display as a single number -- unless "formulas" is set, in which case the select items are the formula's operands and the (single) formula value is displayed instead. */
|
|
509
|
+
select: ClickStackAlertNumberBuilderChartConfigSelectList;
|
|
510
|
+
/** A single derived value computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Number tiles display the formula value and always hide the operand series. */
|
|
511
|
+
formulas?: ClickStackAlertNumberBuilderChartConfigFormulasList | undefined;
|
|
512
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
513
|
+
/** Optional static color applied to the displayed number. */
|
|
514
|
+
color?: ClickStackAlertNumberBuilderChartConfigColor | (string & {}) | undefined;
|
|
515
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
516
|
+
colorRules?: ClickStackAlertNumberBuilderChartConfigColorRulesList | undefined;
|
|
517
|
+
backgroundChart?: ClickStackBackgroundChart | undefined;
|
|
518
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
519
|
+
name?: string | undefined;
|
|
520
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
521
|
+
where?: string | undefined;
|
|
522
|
+
/** Language of the chart-level "where" filter. */
|
|
523
|
+
whereLanguage?: ClickStackAlertNumberBuilderChartConfigWhereLanguage | (string & {}) | undefined;
|
|
524
|
+
}
|
|
525
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
526
|
+
export type ClickStackAlertNumberRawSqlChartConfigConfigType = "sql";
|
|
527
|
+
/** Display as a single big-number chart. */
|
|
528
|
+
export type ClickStackAlertNumberRawSqlChartConfigDisplayType = "number";
|
|
529
|
+
/** Optional static color applied to the displayed number. */
|
|
530
|
+
export type ClickStackAlertNumberRawSqlChartConfigColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
531
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
532
|
+
export type ClickStackAlertNumberRawSqlChartConfigColorRulesList = Array<ClickStackNumberTileColorCondition>;
|
|
533
|
+
/** Language of the chart-level "where" filter. */
|
|
534
|
+
export type ClickStackAlertNumberRawSqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
535
|
+
export interface ClickStackAlertNumberRawSqlChartConfig {
|
|
536
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
537
|
+
configType: ClickStackAlertNumberRawSqlChartConfigConfigType;
|
|
538
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
539
|
+
connectionId: string;
|
|
540
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
541
|
+
sqlTemplate: string;
|
|
542
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
543
|
+
sourceId?: string | undefined;
|
|
544
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
545
|
+
/** Display as a single big-number chart. */
|
|
546
|
+
displayType: ClickStackAlertNumberRawSqlChartConfigDisplayType;
|
|
547
|
+
/** Optional static color applied to the displayed number. */
|
|
548
|
+
color?: ClickStackAlertNumberRawSqlChartConfigColor | (string & {}) | undefined;
|
|
549
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
550
|
+
colorRules?: ClickStackAlertNumberRawSqlChartConfigColorRulesList | undefined;
|
|
551
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
552
|
+
name?: string | undefined;
|
|
553
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
554
|
+
where?: string | undefined;
|
|
555
|
+
/** Language of the chart-level "where" filter. */
|
|
556
|
+
whereLanguage?: ClickStackAlertNumberRawSqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
557
|
+
}
|
|
558
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
559
|
+
export type ClickStackAlertNumberPromqlChartConfigConfigType = "promql";
|
|
560
|
+
/** Display as a single big-number chart. */
|
|
561
|
+
export type ClickStackAlertNumberPromqlChartConfigDisplayType = "number";
|
|
562
|
+
/** Whether to evaluate over the time range or at its end. Defaults to "range" when omitted. */
|
|
563
|
+
export type ClickStackPromqlReducibleExpressionQueryType = "range" | "instant";
|
|
564
|
+
/** How each series' samples are reduced to one value. Defaults to "lastNotNull" when omitted. It also applies to instant queries, where each series has a single sample, so e.g. "count" turns every value into 1. */
|
|
565
|
+
export type ClickStackPromqlReducibleExpressionReducer = "lastNotNull" | "min" | "max" | "mean" | "sum" | "count";
|
|
566
|
+
export interface ClickStackPromqlReducibleExpression {
|
|
567
|
+
/** PromQL expression. Supports dashboard variables and the $__interval, $__rate_interval, and $__range macros. */
|
|
568
|
+
expression: string;
|
|
569
|
+
/** Prefixed to every series name this expression produces. */
|
|
570
|
+
alias?: string | undefined;
|
|
571
|
+
/** Whether to evaluate over the time range or at its end. Defaults to "range" when omitted. */
|
|
572
|
+
queryType?: ClickStackPromqlReducibleExpressionQueryType | (string & {}) | undefined;
|
|
573
|
+
/** How each series' samples are reduced to one value. Defaults to "lastNotNull" when omitted. It also applies to instant queries, where each series has a single sample, so e.g. "count" turns every value into 1. */
|
|
574
|
+
reducer?: ClickStackPromqlReducibleExpressionReducer | (string & {}) | undefined;
|
|
575
|
+
}
|
|
576
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. The tile displays the first value. */
|
|
577
|
+
export type ClickStackAlertNumberPromqlChartConfigExpressionsList = Array<ClickStackPromqlReducibleExpression>;
|
|
578
|
+
/** Optional static color applied to the displayed number. */
|
|
579
|
+
export type ClickStackAlertNumberPromqlChartConfigColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
580
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
581
|
+
export type ClickStackAlertNumberPromqlChartConfigColorRulesList = Array<ClickStackNumberTileColorCondition>;
|
|
582
|
+
/** Language of the chart-level "where" filter. */
|
|
583
|
+
export type ClickStackAlertNumberPromqlChartConfigWhereLanguage = "sql" | "lucene";
|
|
584
|
+
export interface ClickStackAlertNumberPromqlChartConfig {
|
|
585
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
586
|
+
configType: ClickStackAlertNumberPromqlChartConfigConfigType;
|
|
587
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
588
|
+
sourceId: string;
|
|
589
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
590
|
+
granularity?: string | undefined;
|
|
591
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
592
|
+
/** Display as a single big-number chart. */
|
|
593
|
+
displayType: ClickStackAlertNumberPromqlChartConfigDisplayType;
|
|
594
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. The tile displays the first value. */
|
|
595
|
+
expressions: ClickStackAlertNumberPromqlChartConfigExpressionsList;
|
|
596
|
+
/** Optional static color applied to the displayed number. */
|
|
597
|
+
color?: ClickStackAlertNumberPromqlChartConfigColor | (string & {}) | undefined;
|
|
598
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
599
|
+
colorRules?: ClickStackAlertNumberPromqlChartConfigColorRulesList | undefined;
|
|
600
|
+
backgroundChart?: ClickStackBackgroundChart | undefined;
|
|
601
|
+
/** Display name for the alert query. Used in notification titles and as an alert-name fallback when the alert itself has no name. */
|
|
602
|
+
name?: string | undefined;
|
|
603
|
+
/** Chart-level filter applied on top of every select item's own "where" (combined via AND). Builder variants only; rejected on Raw SQL variants (filter inside the sqlTemplate instead). */
|
|
604
|
+
where?: string | undefined;
|
|
605
|
+
/** Language of the chart-level "where" filter. */
|
|
606
|
+
whereLanguage?: ClickStackAlertNumberPromqlChartConfigWhereLanguage | (string & {}) | undefined;
|
|
607
|
+
}
|
|
608
|
+
export type ClickStackAlertNumberChartConfig = ClickStackAlertNumberBuilderChartConfig | ClickStackAlertNumberRawSqlChartConfig | ClickStackAlertNumberPromqlChartConfig;
|
|
609
|
+
export type ClickStackAlertChartConfig = ClickStackAlertLineChartConfig | ClickStackAlertBarChartConfig | ClickStackAlertStackedLineChartConfig | ClickStackAlertNumberChartConfig;
|
|
610
|
+
/** Evaluation interval for the alert. `30s` requires the 30s alert interval feature to be enabled for your team. Anomaly alerts (detectionMode "anomaly") support only `5m`, `15m`, `30m`, and `1h`; other intervals are rejected with 400. */
|
|
611
|
+
export type ClickStackAlertResponseInterval = "30s" | "1m" | "5m" | "15m" | "30m" | "1h" | "6h" | "12h" | "1d";
|
|
612
|
+
/** Alert source type (tile-based or saved search). */
|
|
613
|
+
export type ClickStackAlertResponseSource = "saved_search" | "tile" | "inline";
|
|
614
|
+
/** Threshold comparison direction. */
|
|
615
|
+
export type ClickStackAlertResponseThresholdType = "above" | "below" | "above_exclusive" | "below_or_equal" | "equal" | "not_equal" | "between" | "not_between";
|
|
616
|
+
/** Channel type. Must be "email" for email alerts. */
|
|
617
|
+
export type ClickStackAlertChannelEmailType = "webhook" | "email";
|
|
618
|
+
/** Email recipients for email alerts. */
|
|
619
|
+
export type ClickStackAlertChannelEmailEmailRecipientsList = Array<string>;
|
|
620
|
+
export interface ClickStackAlertChannelEmail {
|
|
621
|
+
/** Channel type. Must be "email" for email alerts. */
|
|
622
|
+
type: ClickStackAlertChannelEmailType | (string & {});
|
|
623
|
+
/** Email recipients for email alerts. */
|
|
624
|
+
emailRecipients: ClickStackAlertChannelEmailEmailRecipientsList;
|
|
625
|
+
}
|
|
626
|
+
/** Channel type. Must be "webhook" for webhook alerts. */
|
|
627
|
+
export type ClickStackAlertChannelWebhookType = "webhook" | "email";
|
|
628
|
+
/** Severity label used by PagerDuty API webhooks. */
|
|
629
|
+
export type ClickStackAlertChannelWebhookSeverity = "critical" | "error" | "warning" | "info";
|
|
630
|
+
export interface ClickStackAlertChannelWebhook {
|
|
631
|
+
/** Channel type. Must be "webhook" for webhook alerts. */
|
|
632
|
+
type: ClickStackAlertChannelWebhookType | (string & {});
|
|
633
|
+
/** Webhook destination ID. */
|
|
634
|
+
webhookId: string;
|
|
635
|
+
/** Webhook service type (e.g., slack_api). */
|
|
636
|
+
webhookService?: string | null | undefined;
|
|
637
|
+
/** Slack channel ID for Slack webhooks. */
|
|
638
|
+
slackChannelId?: string | null | undefined;
|
|
639
|
+
/** Severity label used by PagerDuty API webhooks. */
|
|
640
|
+
severity?: ClickStackAlertChannelWebhookSeverity | (string & {}) | null | undefined;
|
|
641
|
+
}
|
|
642
|
+
export type ClickStackAlertChannel = ClickStackAlertChannelEmail | ClickStackAlertChannelWebhook;
|
|
643
|
+
/** Notification channels to trigger when the alert fires or resolves. Between 1 and 10 channels; duplicates are rejected. */
|
|
644
|
+
export type ClickStackAlertChannels = Array<ClickStackAlertChannel>;
|
|
645
|
+
/** The tags for the alert. Derived from the tags of the referenced saved search or dashboard when not explicitly set; inline alerts default to an empty list. */
|
|
646
|
+
export type ClickStackAlertResponseTagsList = Array<string>;
|
|
647
|
+
/** Current alert state. */
|
|
648
|
+
export type ClickStackAlertResponseState = "ALERT" | "OK" | "INSUFFICIENT_DATA" | "DISABLED" | "PENDING";
|
|
649
|
+
export interface ClickStackAlertSilenced {
|
|
650
|
+
/** User ID who silenced the alert. */
|
|
651
|
+
by?: string | null | undefined;
|
|
652
|
+
/** Silence start timestamp. */
|
|
653
|
+
at?: string | undefined;
|
|
654
|
+
/** Silence end timestamp. */
|
|
655
|
+
until?: string | undefined;
|
|
656
|
+
}
|
|
657
|
+
/** Category of the error. */
|
|
658
|
+
export type ClickStackAlertExecutionErrorType = "QUERY_ERROR" | "QUERY_TIMEOUT" | "WEBHOOK_ERROR" | "INVALID_ALERT" | "UNKNOWN";
|
|
659
|
+
export interface ClickStackAlertExecutionError {
|
|
660
|
+
/** When the error occurred. */
|
|
661
|
+
timestamp: string;
|
|
662
|
+
/** Category of the error. */
|
|
663
|
+
type: ClickStackAlertExecutionErrorType;
|
|
664
|
+
/** Human-readable error message. */
|
|
665
|
+
message: string;
|
|
666
|
+
}
|
|
667
|
+
/** Errors recorded during the most recent alert execution, if any. */
|
|
668
|
+
export type ClickStackAlertResponseExecutionErrorsList = Array<ClickStackAlertExecutionError>;
|
|
669
|
+
export interface ClickStackAlertResponse {
|
|
670
|
+
/** Dashboard ID for tile-based alerts. */
|
|
671
|
+
dashboardId?: string | null | undefined;
|
|
672
|
+
/** Tile ID for tile-based alerts. Must be a line, stacked bar, or number type tile. */
|
|
673
|
+
tileId?: string | null | undefined;
|
|
674
|
+
/** Saved search ID for saved_search alerts. */
|
|
675
|
+
savedSearchId?: string | null | undefined;
|
|
676
|
+
/** Group-by key for saved search alerts. */
|
|
677
|
+
groupBy?: string | null | undefined;
|
|
678
|
+
chartConfig?: ClickStackAlertChartConfig | undefined;
|
|
679
|
+
/** Threshold value for triggering the alert. For between and not_between threshold types, this is the lower bound. */
|
|
680
|
+
threshold?: number | undefined;
|
|
681
|
+
/** Upper bound for between and not_between threshold types. Required when thresholdType is between or not_between, must be >= threshold. */
|
|
682
|
+
thresholdMax?: number | null | undefined;
|
|
683
|
+
/** Evaluation interval for the alert. `30s` requires the 30s alert interval feature to be enabled for your team. Anomaly alerts (detectionMode "anomaly") support only `5m`, `15m`, `30m`, and `1h`; other intervals are rejected with 400. */
|
|
684
|
+
interval?: ClickStackAlertResponseInterval | undefined;
|
|
685
|
+
/** Offset from the interval boundary in minutes. For example, 2 with a 5m interval evaluates windows at :02, :07, :12, etc. (UTC). */
|
|
686
|
+
scheduleOffsetMinutes?: number | null | undefined;
|
|
687
|
+
/** Absolute UTC start time anchor. Alert windows start from this timestamp and repeat every interval. */
|
|
688
|
+
scheduleStartAt?: string | null | undefined;
|
|
689
|
+
/** Alert source type (tile-based or saved search). */
|
|
690
|
+
source?: ClickStackAlertResponseSource | undefined;
|
|
691
|
+
/** Threshold comparison direction. */
|
|
692
|
+
thresholdType?: ClickStackAlertResponseThresholdType | undefined;
|
|
693
|
+
channel?: ClickStackAlertChannel | undefined;
|
|
694
|
+
channels?: ClickStackAlertChannels | undefined;
|
|
695
|
+
/** Alert name template (Handlebars), rendered as the notification title. When omitted, a default title is generated from the display name, value and threshold. */
|
|
696
|
+
name?: string | null | undefined;
|
|
697
|
+
/** Alert message template. */
|
|
698
|
+
message?: string | null | undefined;
|
|
699
|
+
/** Freeform note for the alert. Supports markdown formatting. */
|
|
700
|
+
note?: string | null | undefined;
|
|
701
|
+
/** Fire the alert only after its condition has been met for this many consecutive evaluation windows. While the condition is met but fewer than this many consecutive windows have violated, the alert is in the PENDING state. */
|
|
702
|
+
numConsecutiveWindows?: number | null | undefined;
|
|
703
|
+
/** The display name for the alert in the UI. Derived from the saved search name, dashboard tile name, or inline chartConfig name when not explicitly set. */
|
|
704
|
+
displayName: string;
|
|
705
|
+
/** The tags for the alert. Derived from the tags of the referenced saved search or dashboard when not explicitly set; inline alerts default to an empty list. */
|
|
706
|
+
tags: ClickStackAlertResponseTagsList;
|
|
707
|
+
/** Unique alert identifier. */
|
|
708
|
+
id?: string | undefined;
|
|
709
|
+
/** Current alert state. */
|
|
710
|
+
state?: ClickStackAlertResponseState | undefined;
|
|
711
|
+
/** Team identifier. */
|
|
712
|
+
teamId?: string | undefined;
|
|
713
|
+
silenced?: ClickStackAlertSilenced | null | undefined;
|
|
714
|
+
/** Errors recorded during the most recent alert execution, if any. */
|
|
715
|
+
executionErrors?: ClickStackAlertResponseExecutionErrorsList | undefined;
|
|
716
|
+
/** Creation timestamp. */
|
|
717
|
+
createdAt?: string | null | undefined;
|
|
718
|
+
/** Last update timestamp. */
|
|
719
|
+
updatedAt?: string | null | undefined;
|
|
720
|
+
}
|
|
721
|
+
export interface ClickStackUnsilenceAlertRequest {
|
|
722
|
+
/** ID of the organization that owns the service. */
|
|
723
|
+
organizationId: string;
|
|
724
|
+
/** ID of the ClickStack service. */
|
|
725
|
+
serviceId: string;
|
|
726
|
+
/** ClickStack Alert ID */
|
|
727
|
+
clickStackAlertId: string;
|
|
728
|
+
}
|
|
729
|
+
export interface ClickStackUnsilenceAlertResponse {
|
|
730
|
+
/** HTTP status code. */
|
|
731
|
+
status?: number | undefined;
|
|
732
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
733
|
+
requestId?: string | undefined;
|
|
734
|
+
}
|
|
735
|
+
/** Evaluation interval for the alert. `30s` requires the 30s alert interval feature to be enabled for your team. Anomaly alerts (detectionMode "anomaly") support only `5m`, `15m`, `30m`, and `1h`; other intervals are rejected with 400. */
|
|
736
|
+
export type CreateClickStackAlertRequestInterval = "30s" | "1m" | "5m" | "15m" | "30m" | "1h" | "6h" | "12h" | "1d";
|
|
737
|
+
/** Alert source type (tile-based or saved search). */
|
|
738
|
+
export type CreateClickStackAlertRequestSource = "saved_search" | "tile" | "inline";
|
|
739
|
+
/** Threshold comparison direction. */
|
|
740
|
+
export type CreateClickStackAlertRequestThresholdType = "above" | "below" | "above_exclusive" | "below_or_equal" | "equal" | "not_equal" | "between" | "not_between";
|
|
741
|
+
/** Tags for the alert. Defaults to the tags of the referenced saved search or dashboard when omitted or null; inline alerts have no parent to inherit from and default to an empty list. */
|
|
742
|
+
export type CreateClickStackAlertRequestTagsList = Array<string>;
|
|
743
|
+
export interface CreateClickStackAlertRequest {
|
|
744
|
+
/** ID of the organization that owns the service. */
|
|
745
|
+
organizationId: string;
|
|
746
|
+
/** ID of the ClickStack service. */
|
|
747
|
+
serviceId: string;
|
|
748
|
+
/** Dashboard ID for tile-based alerts. */
|
|
749
|
+
dashboardId?: string | null | undefined;
|
|
750
|
+
/** Tile ID for tile-based alerts. Must be a line, stacked bar, or number type tile. */
|
|
751
|
+
tileId?: string | null | undefined;
|
|
752
|
+
/** Saved search ID for saved_search alerts. */
|
|
753
|
+
savedSearchId?: string | null | undefined;
|
|
754
|
+
/** Group-by key for saved search alerts. */
|
|
755
|
+
groupBy?: string | null | undefined;
|
|
756
|
+
chartConfig?: ClickStackAlertChartConfig | undefined;
|
|
757
|
+
/** Threshold value for triggering the alert. For between and not_between threshold types, this is the lower bound. */
|
|
758
|
+
threshold: number;
|
|
759
|
+
/** Upper bound for between and not_between threshold types. Required when thresholdType is between or not_between, must be >= threshold. */
|
|
760
|
+
thresholdMax?: number | null | undefined;
|
|
761
|
+
/** Evaluation interval for the alert. `30s` requires the 30s alert interval feature to be enabled for your team. Anomaly alerts (detectionMode "anomaly") support only `5m`, `15m`, `30m`, and `1h`; other intervals are rejected with 400. */
|
|
762
|
+
interval: CreateClickStackAlertRequestInterval | (string & {});
|
|
763
|
+
/** Offset from the interval boundary in minutes. For example, 2 with a 5m interval evaluates windows at :02, :07, :12, etc. (UTC). */
|
|
764
|
+
scheduleOffsetMinutes?: number | null | undefined;
|
|
765
|
+
/** Absolute UTC start time anchor. Alert windows start from this timestamp and repeat every interval. */
|
|
766
|
+
scheduleStartAt?: string | null | undefined;
|
|
767
|
+
/** Alert source type (tile-based or saved search). */
|
|
768
|
+
source?: CreateClickStackAlertRequestSource | (string & {}) | undefined;
|
|
769
|
+
/** Threshold comparison direction. */
|
|
770
|
+
thresholdType: CreateClickStackAlertRequestThresholdType | (string & {});
|
|
771
|
+
channel?: ClickStackAlertChannel | undefined;
|
|
772
|
+
channels?: ClickStackAlertChannels | undefined;
|
|
773
|
+
/** Alert name template (Handlebars), rendered as the notification title. When omitted, a default title is generated from the display name, value and threshold. */
|
|
774
|
+
name?: string | null | undefined;
|
|
775
|
+
/** Display name shown in the alerts list and in notification titles. Defaults to the name of the referenced saved search, dashboard tile, or inline chart when omitted or null. */
|
|
776
|
+
displayName?: string | null | undefined;
|
|
777
|
+
/** Tags for the alert. Defaults to the tags of the referenced saved search or dashboard when omitted or null; inline alerts have no parent to inherit from and default to an empty list. */
|
|
778
|
+
tags?: CreateClickStackAlertRequestTagsList | undefined;
|
|
779
|
+
/** Alert message template. */
|
|
780
|
+
message?: string | null | undefined;
|
|
781
|
+
/** Freeform note for the alert. Supports markdown formatting. */
|
|
782
|
+
note?: string | null | undefined;
|
|
783
|
+
/** Fire the alert only after its condition has been met for this many consecutive evaluation windows. While the condition is met but fewer than this many consecutive windows have violated, the alert is in the PENDING state. */
|
|
784
|
+
numConsecutiveWindows?: number | null | undefined;
|
|
785
|
+
}
|
|
786
|
+
/** Display type discriminator. Must be "line" for line charts. */
|
|
787
|
+
export type ClickStackLineBuilderChartConfigDisplayType = "line";
|
|
788
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
789
|
+
export type ClickStackLineBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
790
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
791
|
+
export type ClickStackLineBuilderChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
792
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
793
|
+
export type ClickStackLineBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
794
|
+
export interface ClickStackLineBuilderChartConfig {
|
|
795
|
+
/** Display type discriminator. Must be "line" for line charts. */
|
|
796
|
+
displayType: ClickStackLineBuilderChartConfigDisplayType;
|
|
797
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
798
|
+
sourceId: string;
|
|
799
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
800
|
+
select: ClickStackLineBuilderChartConfigSelectList;
|
|
801
|
+
/** Field expression to group results by (creates separate lines per group value). */
|
|
802
|
+
groupBy?: string | undefined;
|
|
803
|
+
/** Plot select[0] / select[1] as a ratio. Requires exactly two select items. */
|
|
804
|
+
asRatio?: boolean | undefined;
|
|
805
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
806
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
807
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
808
|
+
fillNulls?: boolean | undefined;
|
|
809
|
+
/** Set the y-axis lower bound to the minimum of the displayed data instead of zero, making small fluctuations between series easier to see. */
|
|
810
|
+
fitYAxisToData?: boolean | undefined;
|
|
811
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
812
|
+
lineInterpolation?: ClickStackLineBuilderChartConfigLineInterpolation | (string & {}) | undefined;
|
|
813
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
814
|
+
/** Overlay the equivalent previous time period for comparison. */
|
|
815
|
+
compareToPreviousPeriod?: boolean | undefined;
|
|
816
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
817
|
+
seriesLimit?: number | undefined;
|
|
818
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
819
|
+
formulas?: ClickStackLineBuilderChartConfigFormulasList | undefined;
|
|
820
|
+
/** Only meaningful with formulas. When false, only the formula series are returned; the raw operand series are hidden. */
|
|
821
|
+
showOperandSeries?: boolean | undefined;
|
|
822
|
+
}
|
|
823
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
824
|
+
export type ClickStackLineRawSqlChartConfigConfigType = "sql";
|
|
825
|
+
/** Display as a line time-series chart. */
|
|
826
|
+
export type ClickStackLineRawSqlChartConfigDisplayType = "line";
|
|
827
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
828
|
+
export type ClickStackLineRawSqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
829
|
+
export interface ClickStackLineRawSqlChartConfig {
|
|
830
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
831
|
+
configType: ClickStackLineRawSqlChartConfigConfigType;
|
|
832
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
833
|
+
connectionId: string;
|
|
834
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
835
|
+
sqlTemplate: string;
|
|
836
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
837
|
+
sourceId?: string | undefined;
|
|
838
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
839
|
+
/** Display as a line time-series chart. */
|
|
840
|
+
displayType: ClickStackLineRawSqlChartConfigDisplayType;
|
|
841
|
+
/** Overlay the equivalent previous time period for comparison. */
|
|
842
|
+
compareToPreviousPeriod?: boolean | undefined;
|
|
843
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
844
|
+
fillNulls?: boolean | undefined;
|
|
845
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
846
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
847
|
+
/** Set the y-axis lower bound to the minimum of the displayed data instead of zero, making small fluctuations between series easier to see. */
|
|
848
|
+
fitYAxisToData?: boolean | undefined;
|
|
849
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
850
|
+
lineInterpolation?: ClickStackLineRawSqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
851
|
+
}
|
|
852
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
853
|
+
export type ClickStackLinePromqlChartConfigConfigType = "promql";
|
|
854
|
+
/** PromQL expressions to plot. */
|
|
855
|
+
export type ClickStackLinePromqlChartConfigExpressionsList = Array<ClickStackPromqlRangeExpression>;
|
|
856
|
+
/** Display as a line time-series chart. */
|
|
857
|
+
export type ClickStackLinePromqlChartConfigDisplayType = "line";
|
|
858
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
859
|
+
export type ClickStackLinePromqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
860
|
+
export interface ClickStackLinePromqlChartConfig {
|
|
861
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
862
|
+
configType: ClickStackLinePromqlChartConfigConfigType;
|
|
863
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
864
|
+
sourceId: string;
|
|
865
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
866
|
+
granularity?: string | undefined;
|
|
867
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
868
|
+
/** PromQL expressions to plot. */
|
|
869
|
+
expressions: ClickStackLinePromqlChartConfigExpressionsList;
|
|
870
|
+
/** Template for series names, using the series' Prometheus labels in double braces. */
|
|
871
|
+
legendTemplate?: string | undefined;
|
|
872
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
873
|
+
fillNulls?: boolean | undefined;
|
|
874
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
875
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
876
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
877
|
+
seriesLimit?: number | undefined;
|
|
878
|
+
/** Display as a line time-series chart. */
|
|
879
|
+
displayType: ClickStackLinePromqlChartConfigDisplayType;
|
|
880
|
+
/** Overlay the equivalent previous time period for comparison. */
|
|
881
|
+
compareToPreviousPeriod?: boolean | undefined;
|
|
882
|
+
/** How points are connected. Defaults to "smooth" when omitted. */
|
|
883
|
+
lineInterpolation?: ClickStackLinePromqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
884
|
+
}
|
|
885
|
+
export type ClickStackLineChartConfig = ClickStackLineBuilderChartConfig | ClickStackLineRawSqlChartConfig | ClickStackLinePromqlChartConfig;
|
|
886
|
+
/** Display type discriminator. Must be "stacked_bar" for stacked-bar charts. */
|
|
887
|
+
export type ClickStackBarBuilderChartConfigDisplayType = "stacked_bar";
|
|
888
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
889
|
+
export type ClickStackBarBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
890
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
891
|
+
export type ClickStackBarBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
892
|
+
export interface ClickStackBarBuilderChartConfig {
|
|
893
|
+
/** Display type discriminator. Must be "stacked_bar" for stacked-bar charts. */
|
|
894
|
+
displayType: ClickStackBarBuilderChartConfigDisplayType;
|
|
895
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
896
|
+
sourceId: string;
|
|
897
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
898
|
+
select: ClickStackBarBuilderChartConfigSelectList;
|
|
899
|
+
/** Field expression to group results by (creates separate bars segments per group value). */
|
|
900
|
+
groupBy?: string | undefined;
|
|
901
|
+
/** Plot select[0] / select[1] as a ratio. Requires exactly two select items. */
|
|
902
|
+
asRatio?: boolean | undefined;
|
|
903
|
+
/** Align the date range boundaries to the query granularity interval. */
|
|
904
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
905
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
906
|
+
fillNulls?: boolean | undefined;
|
|
907
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
908
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
909
|
+
seriesLimit?: number | undefined;
|
|
910
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
911
|
+
formulas?: ClickStackBarBuilderChartConfigFormulasList | undefined;
|
|
912
|
+
/** Only meaningful with formulas. When false, only the formula series are returned; the raw operand series are hidden. */
|
|
913
|
+
showOperandSeries?: boolean | undefined;
|
|
914
|
+
}
|
|
915
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
916
|
+
export type ClickStackBarRawSqlChartConfigConfigType = "sql";
|
|
917
|
+
/** Display as a stacked-bar time-series chart. */
|
|
918
|
+
export type ClickStackBarRawSqlChartConfigDisplayType = "stacked_bar";
|
|
919
|
+
export interface ClickStackBarRawSqlChartConfig {
|
|
920
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
921
|
+
configType: ClickStackBarRawSqlChartConfigConfigType;
|
|
922
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
923
|
+
connectionId: string;
|
|
924
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
925
|
+
sqlTemplate: string;
|
|
926
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
927
|
+
sourceId?: string | undefined;
|
|
928
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
929
|
+
/** Display as a stacked-bar time-series chart. */
|
|
930
|
+
displayType: ClickStackBarRawSqlChartConfigDisplayType;
|
|
931
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
932
|
+
fillNulls?: boolean | undefined;
|
|
933
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
934
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
935
|
+
}
|
|
936
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
937
|
+
export type ClickStackBarPromqlChartConfigConfigType = "promql";
|
|
938
|
+
/** PromQL expressions to plot. */
|
|
939
|
+
export type ClickStackBarPromqlChartConfigExpressionsList = Array<ClickStackPromqlRangeExpression>;
|
|
940
|
+
/** Display as a stacked-bar time-series chart. */
|
|
941
|
+
export type ClickStackBarPromqlChartConfigDisplayType = "stacked_bar";
|
|
942
|
+
export interface ClickStackBarPromqlChartConfig {
|
|
943
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
944
|
+
configType: ClickStackBarPromqlChartConfigConfigType;
|
|
945
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
946
|
+
sourceId: string;
|
|
947
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
948
|
+
granularity?: string | undefined;
|
|
949
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
950
|
+
/** PromQL expressions to plot. */
|
|
951
|
+
expressions: ClickStackBarPromqlChartConfigExpressionsList;
|
|
952
|
+
/** Template for series names, using the series' Prometheus labels in double braces. */
|
|
953
|
+
legendTemplate?: string | undefined;
|
|
954
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
955
|
+
fillNulls?: boolean | undefined;
|
|
956
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
957
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
958
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
959
|
+
seriesLimit?: number | undefined;
|
|
960
|
+
/** Display as a stacked-bar time-series chart. */
|
|
961
|
+
displayType: ClickStackBarPromqlChartConfigDisplayType;
|
|
962
|
+
}
|
|
963
|
+
export type ClickStackBarChartConfig = ClickStackBarBuilderChartConfig | ClickStackBarRawSqlChartConfig | ClickStackBarPromqlChartConfig;
|
|
964
|
+
/** Display type discriminator. Must be "stacked_line" for stacked-line charts. */
|
|
965
|
+
export type ClickStackStackedLineBuilderChartConfigDisplayType = "stacked_line";
|
|
966
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
967
|
+
export type ClickStackStackedLineBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
968
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
969
|
+
export type ClickStackStackedLineBuilderChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
970
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
971
|
+
export type ClickStackStackedLineBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
972
|
+
export interface ClickStackStackedLineBuilderChartConfig {
|
|
973
|
+
/** Display type discriminator. Must be "stacked_line" for stacked-line charts. */
|
|
974
|
+
displayType: ClickStackStackedLineBuilderChartConfigDisplayType;
|
|
975
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
976
|
+
sourceId: string;
|
|
977
|
+
/** One or more aggregated values to plot. When asRatio is true, exactly two select items are required. */
|
|
978
|
+
select: ClickStackStackedLineBuilderChartConfigSelectList;
|
|
979
|
+
/** Field expression to group results by (creates separate stacked bands per group value). */
|
|
980
|
+
groupBy?: string | undefined;
|
|
981
|
+
/** Plot select[0] / select[1] as a ratio. Requires exactly two select items. */
|
|
982
|
+
asRatio?: boolean | undefined;
|
|
983
|
+
/** Align the date range boundaries to the query granularity interval. */
|
|
984
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
985
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
986
|
+
fillNulls?: boolean | undefined;
|
|
987
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
988
|
+
lineInterpolation?: ClickStackStackedLineBuilderChartConfigLineInterpolation | (string & {}) | undefined;
|
|
989
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
990
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
991
|
+
seriesLimit?: number | undefined;
|
|
992
|
+
/** Derived series computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
993
|
+
formulas?: ClickStackStackedLineBuilderChartConfigFormulasList | undefined;
|
|
994
|
+
/** Only meaningful with formulas. When false, only the formula series are returned; the raw operand series are hidden. */
|
|
995
|
+
showOperandSeries?: boolean | undefined;
|
|
996
|
+
}
|
|
997
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
998
|
+
export type ClickStackStackedLineRawSqlChartConfigConfigType = "sql";
|
|
999
|
+
/** Display as a stacked-line time-series chart. */
|
|
1000
|
+
export type ClickStackStackedLineRawSqlChartConfigDisplayType = "stacked_line";
|
|
1001
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
1002
|
+
export type ClickStackStackedLineRawSqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
1003
|
+
export interface ClickStackStackedLineRawSqlChartConfig {
|
|
1004
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1005
|
+
configType: ClickStackStackedLineRawSqlChartConfigConfigType;
|
|
1006
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
1007
|
+
connectionId: string;
|
|
1008
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
1009
|
+
sqlTemplate: string;
|
|
1010
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
1011
|
+
sourceId?: string | undefined;
|
|
1012
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1013
|
+
/** Display as a stacked-line time-series chart. */
|
|
1014
|
+
displayType: ClickStackStackedLineRawSqlChartConfigDisplayType;
|
|
1015
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
1016
|
+
fillNulls?: boolean | undefined;
|
|
1017
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
1018
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
1019
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
1020
|
+
lineInterpolation?: ClickStackStackedLineRawSqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
1021
|
+
}
|
|
1022
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1023
|
+
export type ClickStackStackedLinePromqlChartConfigConfigType = "promql";
|
|
1024
|
+
/** PromQL expressions to plot. */
|
|
1025
|
+
export type ClickStackStackedLinePromqlChartConfigExpressionsList = Array<ClickStackPromqlRangeExpression>;
|
|
1026
|
+
/** Display as a stacked-line time-series chart. */
|
|
1027
|
+
export type ClickStackStackedLinePromqlChartConfigDisplayType = "stacked_line";
|
|
1028
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
1029
|
+
export type ClickStackStackedLinePromqlChartConfigLineInterpolation = "smooth" | "linear" | "step";
|
|
1030
|
+
export interface ClickStackStackedLinePromqlChartConfig {
|
|
1031
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1032
|
+
configType: ClickStackStackedLinePromqlChartConfigConfigType;
|
|
1033
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
1034
|
+
sourceId: string;
|
|
1035
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
1036
|
+
granularity?: string | undefined;
|
|
1037
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1038
|
+
/** PromQL expressions to plot. */
|
|
1039
|
+
expressions: ClickStackStackedLinePromqlChartConfigExpressionsList;
|
|
1040
|
+
/** Template for series names, using the series' Prometheus labels in double braces. */
|
|
1041
|
+
legendTemplate?: string | undefined;
|
|
1042
|
+
/** Fill missing time buckets with zero instead of leaving gaps. */
|
|
1043
|
+
fillNulls?: boolean | undefined;
|
|
1044
|
+
/** Expand date range boundaries to the query granularity interval. */
|
|
1045
|
+
alignDateRangeToGranularity?: boolean | undefined;
|
|
1046
|
+
/** Maximum number of series rendered (top-N by value). Omit to use the default render cap, set 0 for unlimited, or a positive N to keep the top N series. */
|
|
1047
|
+
seriesLimit?: number | undefined;
|
|
1048
|
+
/** Display as a stacked-line time-series chart. */
|
|
1049
|
+
displayType: ClickStackStackedLinePromqlChartConfigDisplayType;
|
|
1050
|
+
/** How points are connected. Defaults to "linear" when omitted. */
|
|
1051
|
+
lineInterpolation?: ClickStackStackedLinePromqlChartConfigLineInterpolation | (string & {}) | undefined;
|
|
1052
|
+
}
|
|
1053
|
+
export type ClickStackStackedLineChartConfig = ClickStackStackedLineBuilderChartConfig | ClickStackStackedLineRawSqlChartConfig | ClickStackStackedLinePromqlChartConfig;
|
|
1054
|
+
/** Display type discriminator. Must be "table" for table charts. */
|
|
1055
|
+
export type ClickStackTableBuilderChartConfigDisplayType = "table";
|
|
1056
|
+
/** One or more aggregated values to display as table columns. When asRatio is true, exactly two select items are required. */
|
|
1057
|
+
export type ClickStackTableBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
1058
|
+
/** OnClick variant discriminator. Must be "search" for search link-outs. */
|
|
1059
|
+
export type ClickStackOnClickSearchType = "search";
|
|
1060
|
+
/** Target is a single dashboard or log/trace source */
|
|
1061
|
+
export type ClickStackOnClickTargetIdVariantMode = "id";
|
|
1062
|
+
export interface ClickStackOnClickTargetIdVariant {
|
|
1063
|
+
/** Target is a single dashboard or log/trace source */
|
|
1064
|
+
mode: ClickStackOnClickTargetIdVariantMode;
|
|
1065
|
+
/** ID of the target source (for search) or dashboard (for dashboard). */
|
|
1066
|
+
id: string;
|
|
1067
|
+
}
|
|
1068
|
+
/** Target is matched by name against the template. */
|
|
1069
|
+
export type ClickStackOnClickTargetTemplateVariantMode = "template";
|
|
1070
|
+
export interface ClickStackOnClickTargetTemplateVariant {
|
|
1071
|
+
/** Target is matched by name against the template. */
|
|
1072
|
+
mode: ClickStackOnClickTargetTemplateVariantMode;
|
|
1073
|
+
/** Name template rendered against the clicked row; supports `{{column}}` variables. */
|
|
1074
|
+
template: string;
|
|
1075
|
+
}
|
|
1076
|
+
export type ClickStackOnClickTarget = ClickStackOnClickTargetIdVariant | ClickStackOnClickTargetTemplateVariant;
|
|
1077
|
+
/** Language of the rendered whereTemplate. */
|
|
1078
|
+
export type ClickStackOnClickSearchWhereLanguage = "sql" | "lucene";
|
|
1079
|
+
/** Filter template kind. Currently only "expressionTemplate" is supported. */
|
|
1080
|
+
export type ClickStackOnClickFilterTemplateKind = "expressionTemplate";
|
|
1081
|
+
export interface ClickStackOnClickFilterTemplate {
|
|
1082
|
+
/** Filter template kind. Currently only "expressionTemplate" is supported. */
|
|
1083
|
+
kind: ClickStackOnClickFilterTemplateKind | (string & {});
|
|
1084
|
+
/** The column/expression to filter the destination by (e.g. "ServiceName"). */
|
|
1085
|
+
expression: string;
|
|
1086
|
+
/** Value template rendered against the clicked row; supports row column variables in `{{column}}` form (e.g. `{{ServiceName}}`). */
|
|
1087
|
+
template: string;
|
|
1088
|
+
}
|
|
1089
|
+
/** Optional dashboard filter templates rendered against the clicked row. */
|
|
1090
|
+
export type ClickStackOnClickSearchFiltersList = Array<ClickStackOnClickFilterTemplate>;
|
|
1091
|
+
export interface ClickStackOnClickSearch {
|
|
1092
|
+
/** OnClick variant discriminator. Must be "search" for search link-outs. */
|
|
1093
|
+
type: ClickStackOnClickSearchType;
|
|
1094
|
+
target: ClickStackOnClickTarget;
|
|
1095
|
+
/** Optional WHERE clause template applied to the destination search. */
|
|
1096
|
+
whereTemplate?: string | undefined;
|
|
1097
|
+
/** Language of the rendered whereTemplate. */
|
|
1098
|
+
whereLanguage?: ClickStackOnClickSearchWhereLanguage | (string & {}) | undefined;
|
|
1099
|
+
/** Optional dashboard filter templates rendered against the clicked row. */
|
|
1100
|
+
filters?: ClickStackOnClickSearchFiltersList | undefined;
|
|
1101
|
+
}
|
|
1102
|
+
/** OnClick variant discriminator. Must be "dashboard" for dashboard link-outs. */
|
|
1103
|
+
export type ClickStackOnClickDashboardType = "dashboard";
|
|
1104
|
+
/** Language of the rendered whereTemplate. */
|
|
1105
|
+
export type ClickStackOnClickDashboardWhereLanguage = "sql" | "lucene";
|
|
1106
|
+
/** Optional dashboard filter templates rendered against the clicked row. */
|
|
1107
|
+
export type ClickStackOnClickDashboardFiltersList = Array<ClickStackOnClickFilterTemplate>;
|
|
1108
|
+
export interface ClickStackOnClickDashboard {
|
|
1109
|
+
/** OnClick variant discriminator. Must be "dashboard" for dashboard link-outs. */
|
|
1110
|
+
type: ClickStackOnClickDashboardType;
|
|
1111
|
+
target: ClickStackOnClickTarget;
|
|
1112
|
+
/** Optional WHERE clause template applied to the destination dashboard. */
|
|
1113
|
+
whereTemplate?: string | undefined;
|
|
1114
|
+
/** Language of the rendered whereTemplate. */
|
|
1115
|
+
whereLanguage?: ClickStackOnClickDashboardWhereLanguage | (string & {}) | undefined;
|
|
1116
|
+
/** Optional dashboard filter templates rendered against the clicked row. */
|
|
1117
|
+
filters?: ClickStackOnClickDashboardFiltersList | undefined;
|
|
1118
|
+
}
|
|
1119
|
+
/** OnClick variant discriminator. Must be "external" for external link-outs. */
|
|
1120
|
+
export type ClickStackOnClickExternalType = "external";
|
|
1121
|
+
export interface ClickStackOnClickExternal {
|
|
1122
|
+
/** OnClick variant discriminator. Must be "external" for external link-outs. */
|
|
1123
|
+
type: ClickStackOnClickExternalType;
|
|
1124
|
+
/** Handlebars template rendered against the clicked row; supports `{{column}}` variables. The rendered value must be an absolute http(s) URL. */
|
|
1125
|
+
urlTemplate: string;
|
|
1126
|
+
}
|
|
1127
|
+
export type ClickStackOnClick = ClickStackOnClickSearch | ClickStackOnClickDashboard | ClickStackOnClickExternal;
|
|
1128
|
+
/** Derived columns computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
1129
|
+
export type ClickStackTableBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
1130
|
+
export interface ClickStackTableBuilderChartConfig {
|
|
1131
|
+
/** Display type discriminator. Must be "table" for table charts. */
|
|
1132
|
+
displayType: ClickStackTableBuilderChartConfigDisplayType;
|
|
1133
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1134
|
+
sourceId: string;
|
|
1135
|
+
/** One or more aggregated values to display as table columns. When asRatio is true, exactly two select items are required. */
|
|
1136
|
+
select: ClickStackTableBuilderChartConfigSelectList;
|
|
1137
|
+
/** Field expression to group results by (one row per group value). */
|
|
1138
|
+
groupBy?: string | undefined;
|
|
1139
|
+
/** Post-aggregation SQL HAVING condition. */
|
|
1140
|
+
having?: string | undefined;
|
|
1141
|
+
/** SQL ORDER BY expression for sorting table rows. */
|
|
1142
|
+
orderBy?: string | undefined;
|
|
1143
|
+
/** Display select[0] / select[1] as a ratio. Requires exactly two select items. */
|
|
1144
|
+
asRatio?: boolean | undefined;
|
|
1145
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1146
|
+
/** When true, render Group By columns to the left of series columns in the table. Defaults to false (Group By columns on the right). */
|
|
1147
|
+
groupByColumnsOnLeft?: boolean | undefined;
|
|
1148
|
+
onClick?: ClickStackOnClick | undefined;
|
|
1149
|
+
/** Derived columns computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Cannot be combined with asRatio. */
|
|
1150
|
+
formulas?: ClickStackTableBuilderChartConfigFormulasList | undefined;
|
|
1151
|
+
/** Only meaningful with formulas. When false, only the formula columns are returned; the raw operand columns are hidden. */
|
|
1152
|
+
showOperandSeries?: boolean | undefined;
|
|
1153
|
+
}
|
|
1154
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1155
|
+
export type ClickStackTableRawSqlChartConfigConfigType = "sql";
|
|
1156
|
+
/** Display as a table chart. */
|
|
1157
|
+
export type ClickStackTableRawSqlChartConfigDisplayType = "table";
|
|
1158
|
+
export interface ClickStackTableRawSqlChartConfig {
|
|
1159
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1160
|
+
configType: ClickStackTableRawSqlChartConfigConfigType;
|
|
1161
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
1162
|
+
connectionId: string;
|
|
1163
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
1164
|
+
sqlTemplate: string;
|
|
1165
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
1166
|
+
sourceId?: string | undefined;
|
|
1167
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1168
|
+
/** Display as a table chart. */
|
|
1169
|
+
displayType: ClickStackTableRawSqlChartConfigDisplayType;
|
|
1170
|
+
onClick?: ClickStackOnClick | undefined;
|
|
1171
|
+
}
|
|
1172
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1173
|
+
export type ClickStackTablePromqlChartConfigConfigType = "promql";
|
|
1174
|
+
/** Display as a table chart. */
|
|
1175
|
+
export type ClickStackTablePromqlChartConfigDisplayType = "table";
|
|
1176
|
+
/** Whether to evaluate over the time range or at its end. Defaults to "range" when omitted. */
|
|
1177
|
+
export type ClickStackPromqlInstantExpressionQueryType = "range" | "instant";
|
|
1178
|
+
export interface ClickStackPromqlInstantExpression {
|
|
1179
|
+
/** PromQL expression. Supports dashboard variables and the $__interval, $__rate_interval, and $__range macros. */
|
|
1180
|
+
expression: string;
|
|
1181
|
+
/** Prefixed to every series name this expression produces. */
|
|
1182
|
+
alias?: string | undefined;
|
|
1183
|
+
/** Whether to evaluate over the time range or at its end. Defaults to "range" when omitted. */
|
|
1184
|
+
queryType?: ClickStackPromqlInstantExpressionQueryType | (string & {}) | undefined;
|
|
1185
|
+
}
|
|
1186
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1187
|
+
export type ClickStackTablePromqlChartConfigExpressionsList = Array<ClickStackPromqlInstantExpression>;
|
|
1188
|
+
export interface ClickStackTablePromqlChartConfig {
|
|
1189
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1190
|
+
configType: ClickStackTablePromqlChartConfigConfigType;
|
|
1191
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
1192
|
+
sourceId: string;
|
|
1193
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
1194
|
+
granularity?: string | undefined;
|
|
1195
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1196
|
+
/** Display as a table chart. */
|
|
1197
|
+
displayType: ClickStackTablePromqlChartConfigDisplayType;
|
|
1198
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1199
|
+
expressions: ClickStackTablePromqlChartConfigExpressionsList;
|
|
1200
|
+
}
|
|
1201
|
+
export type ClickStackTableChartConfig = ClickStackTableBuilderChartConfig | ClickStackTableRawSqlChartConfig | ClickStackTablePromqlChartConfig;
|
|
1202
|
+
/** Display type discriminator. Must be "number" for single big-number charts. */
|
|
1203
|
+
export type ClickStackNumberBuilderChartConfigDisplayType = "number";
|
|
1204
|
+
/** Exactly one aggregated value to display as a single number -- unless "formulas" is set, in which case the select items are the formula's operands and the (single) formula value is displayed instead. */
|
|
1205
|
+
export type ClickStackNumberBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
1206
|
+
/** A single derived value computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Number tiles display the formula value and always hide the operand series. */
|
|
1207
|
+
export type ClickStackNumberBuilderChartConfigFormulasList = Array<ClickStackFormula>;
|
|
1208
|
+
/** Optional static color applied to the displayed number. */
|
|
1209
|
+
export type ClickStackNumberBuilderChartConfigColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
1210
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
1211
|
+
export type ClickStackNumberBuilderChartConfigColorRulesList = Array<ClickStackNumberTileColorCondition>;
|
|
1212
|
+
export interface ClickStackNumberBuilderChartConfig {
|
|
1213
|
+
/** Display type discriminator. Must be "number" for single big-number charts. */
|
|
1214
|
+
displayType: ClickStackNumberBuilderChartConfigDisplayType;
|
|
1215
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1216
|
+
sourceId: string;
|
|
1217
|
+
/** Exactly one aggregated value to display as a single number -- unless "formulas" is set, in which case the select items are the formula's operands and the (single) formula value is displayed instead. */
|
|
1218
|
+
select: ClickStackNumberBuilderChartConfigSelectList;
|
|
1219
|
+
/** A single derived value computed from the select items via letter-ref arithmetic ("A" = select[0], "B" = select[1], ...). Metric, log, and trace sources only. Number tiles display the formula value and always hide the operand series. */
|
|
1220
|
+
formulas?: ClickStackNumberBuilderChartConfigFormulasList | undefined;
|
|
1221
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1222
|
+
/** Optional static color applied to the displayed number. */
|
|
1223
|
+
color?: ClickStackNumberBuilderChartConfigColor | (string & {}) | undefined;
|
|
1224
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
1225
|
+
colorRules?: ClickStackNumberBuilderChartConfigColorRulesList | undefined;
|
|
1226
|
+
backgroundChart?: ClickStackBackgroundChart | undefined;
|
|
1227
|
+
}
|
|
1228
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1229
|
+
export type ClickStackNumberRawSqlChartConfigConfigType = "sql";
|
|
1230
|
+
/** Display as a single big-number chart. */
|
|
1231
|
+
export type ClickStackNumberRawSqlChartConfigDisplayType = "number";
|
|
1232
|
+
/** Optional static color applied to the displayed number. */
|
|
1233
|
+
export type ClickStackNumberRawSqlChartConfigColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
1234
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
1235
|
+
export type ClickStackNumberRawSqlChartConfigColorRulesList = Array<ClickStackNumberTileColorCondition>;
|
|
1236
|
+
export interface ClickStackNumberRawSqlChartConfig {
|
|
1237
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1238
|
+
configType: ClickStackNumberRawSqlChartConfigConfigType;
|
|
1239
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
1240
|
+
connectionId: string;
|
|
1241
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
1242
|
+
sqlTemplate: string;
|
|
1243
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
1244
|
+
sourceId?: string | undefined;
|
|
1245
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1246
|
+
/** Display as a single big-number chart. */
|
|
1247
|
+
displayType: ClickStackNumberRawSqlChartConfigDisplayType;
|
|
1248
|
+
/** Optional static color applied to the displayed number. */
|
|
1249
|
+
color?: ClickStackNumberRawSqlChartConfigColor | (string & {}) | undefined;
|
|
1250
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
1251
|
+
colorRules?: ClickStackNumberRawSqlChartConfigColorRulesList | undefined;
|
|
1252
|
+
}
|
|
1253
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1254
|
+
export type ClickStackNumberPromqlChartConfigConfigType = "promql";
|
|
1255
|
+
/** Display as a single big-number chart. */
|
|
1256
|
+
export type ClickStackNumberPromqlChartConfigDisplayType = "number";
|
|
1257
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. The tile displays the first value. */
|
|
1258
|
+
export type ClickStackNumberPromqlChartConfigExpressionsList = Array<ClickStackPromqlReducibleExpression>;
|
|
1259
|
+
/** Optional static color applied to the displayed number. */
|
|
1260
|
+
export type ClickStackNumberPromqlChartConfigColor = "chart-blue" | "chart-orange" | "chart-red" | "chart-cyan" | "chart-green" | "chart-pink" | "chart-purple" | "chart-light-blue" | "chart-brown" | "chart-gray" | "chart-success" | "chart-warning" | "chart-error";
|
|
1261
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
1262
|
+
export type ClickStackNumberPromqlChartConfigColorRulesList = Array<ClickStackNumberTileColorCondition>;
|
|
1263
|
+
export interface ClickStackNumberPromqlChartConfig {
|
|
1264
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1265
|
+
configType: ClickStackNumberPromqlChartConfigConfigType;
|
|
1266
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
1267
|
+
sourceId: string;
|
|
1268
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
1269
|
+
granularity?: string | undefined;
|
|
1270
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1271
|
+
/** Display as a single big-number chart. */
|
|
1272
|
+
displayType: ClickStackNumberPromqlChartConfigDisplayType;
|
|
1273
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. The tile displays the first value. */
|
|
1274
|
+
expressions: ClickStackNumberPromqlChartConfigExpressionsList;
|
|
1275
|
+
/** Optional static color applied to the displayed number. */
|
|
1276
|
+
color?: ClickStackNumberPromqlChartConfigColor | (string & {}) | undefined;
|
|
1277
|
+
/** Ordered conditional color rules evaluated against the displayed value (last match wins). Falls back to color, then the default text color when no rule matches. */
|
|
1278
|
+
colorRules?: ClickStackNumberPromqlChartConfigColorRulesList | undefined;
|
|
1279
|
+
backgroundChart?: ClickStackBackgroundChart | undefined;
|
|
1280
|
+
}
|
|
1281
|
+
export type ClickStackNumberChartConfig = ClickStackNumberBuilderChartConfig | ClickStackNumberRawSqlChartConfig | ClickStackNumberPromqlChartConfig;
|
|
1282
|
+
/** Display type discriminator. Must be "pie" for pie charts. */
|
|
1283
|
+
export type ClickStackPieBuilderChartConfigDisplayType = "pie";
|
|
1284
|
+
/** Exactly one aggregated value used to size each pie slice. */
|
|
1285
|
+
export type ClickStackPieBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
1286
|
+
export interface ClickStackPieBuilderChartConfig {
|
|
1287
|
+
/** Display type discriminator. Must be "pie" for pie charts. */
|
|
1288
|
+
displayType: ClickStackPieBuilderChartConfigDisplayType;
|
|
1289
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1290
|
+
sourceId: string;
|
|
1291
|
+
/** Exactly one aggregated value used to size each pie slice. */
|
|
1292
|
+
select: ClickStackPieBuilderChartConfigSelectList;
|
|
1293
|
+
/** Field expression to group results by (one slice per group value). */
|
|
1294
|
+
groupBy?: string | undefined;
|
|
1295
|
+
/** Optional custom SQL ORDER BY expression (raw SQL). Overrides the default value-descending ordering and, when combined with "limit", controls which slices are kept. */
|
|
1296
|
+
orderBy?: string | undefined;
|
|
1297
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1298
|
+
/** Maximum number of slices (SQL LIMIT). Without a custom "orderBy" the query keeps the groups with the largest aggregated values; with an "orderBy" it keeps the first slices in that order. Omit or set 0 to fetch all groups. */
|
|
1299
|
+
limit?: number | undefined;
|
|
1300
|
+
}
|
|
1301
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1302
|
+
export type ClickStackPieRawSqlChartConfigConfigType = "sql";
|
|
1303
|
+
/** Display as a pie chart. */
|
|
1304
|
+
export type ClickStackPieRawSqlChartConfigDisplayType = "pie";
|
|
1305
|
+
export interface ClickStackPieRawSqlChartConfig {
|
|
1306
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1307
|
+
configType: ClickStackPieRawSqlChartConfigConfigType;
|
|
1308
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
1309
|
+
connectionId: string;
|
|
1310
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
1311
|
+
sqlTemplate: string;
|
|
1312
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
1313
|
+
sourceId?: string | undefined;
|
|
1314
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1315
|
+
/** Display as a pie chart. */
|
|
1316
|
+
displayType: ClickStackPieRawSqlChartConfigDisplayType;
|
|
1317
|
+
}
|
|
1318
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1319
|
+
export type ClickStackPiePromqlChartConfigConfigType = "promql";
|
|
1320
|
+
/** Display as a pie chart. */
|
|
1321
|
+
export type ClickStackPiePromqlChartConfigDisplayType = "pie";
|
|
1322
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1323
|
+
export type ClickStackPiePromqlChartConfigExpressionsList = Array<ClickStackPromqlReducibleExpression>;
|
|
1324
|
+
export interface ClickStackPiePromqlChartConfig {
|
|
1325
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1326
|
+
configType: ClickStackPiePromqlChartConfigConfigType;
|
|
1327
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
1328
|
+
sourceId: string;
|
|
1329
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
1330
|
+
granularity?: string | undefined;
|
|
1331
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1332
|
+
/** Display as a pie chart. */
|
|
1333
|
+
displayType: ClickStackPiePromqlChartConfigDisplayType;
|
|
1334
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1335
|
+
expressions: ClickStackPiePromqlChartConfigExpressionsList;
|
|
1336
|
+
/** Template for slice names, using the series' Prometheus labels in double braces. */
|
|
1337
|
+
legendTemplate?: string | undefined;
|
|
1338
|
+
/** Maximum number of slices (top-N by value), at most 500. Omit or set 0 to show up to 500. */
|
|
1339
|
+
limit?: number | undefined;
|
|
1340
|
+
}
|
|
1341
|
+
export type ClickStackPieChartConfig = ClickStackPieBuilderChartConfig | ClickStackPieRawSqlChartConfig | ClickStackPiePromqlChartConfig;
|
|
1342
|
+
/** Display type discriminator. Must be "bar" for categorical bar charts. */
|
|
1343
|
+
export type ClickStackCategoricalBarBuilderChartConfigDisplayType = "bar";
|
|
1344
|
+
/** Exactly one aggregated value used to size each bar. */
|
|
1345
|
+
export type ClickStackCategoricalBarBuilderChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
1346
|
+
export interface ClickStackCategoricalBarBuilderChartConfig {
|
|
1347
|
+
/** Display type discriminator. Must be "bar" for categorical bar charts. */
|
|
1348
|
+
displayType: ClickStackCategoricalBarBuilderChartConfigDisplayType;
|
|
1349
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1350
|
+
sourceId: string;
|
|
1351
|
+
/** Exactly one aggregated value used to size each bar. */
|
|
1352
|
+
select: ClickStackCategoricalBarBuilderChartConfigSelectList;
|
|
1353
|
+
/** Field expression to group results by (one bar per group value). */
|
|
1354
|
+
groupBy?: string | undefined;
|
|
1355
|
+
/** Optional custom SQL ORDER BY expression (raw SQL). Overrides the default value-descending ordering and, when combined with "limit", controls which bars are kept. */
|
|
1356
|
+
orderBy?: string | undefined;
|
|
1357
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1358
|
+
/** Maximum number of bars (SQL LIMIT). Without a custom "orderBy" the query keeps the groups with the largest aggregated values; with an "orderBy" it keeps the first bars in that order. Omit or set 0 to fetch all groups. */
|
|
1359
|
+
limit?: number | undefined;
|
|
1360
|
+
}
|
|
1361
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1362
|
+
export type ClickStackCategoricalBarRawSqlChartConfigConfigType = "sql";
|
|
1363
|
+
/** Display as a categorical bar chart. */
|
|
1364
|
+
export type ClickStackCategoricalBarRawSqlChartConfigDisplayType = "bar";
|
|
1365
|
+
export interface ClickStackCategoricalBarRawSqlChartConfig {
|
|
1366
|
+
/** Must be "sql" to use the Raw SQL chart config variant. */
|
|
1367
|
+
configType: ClickStackCategoricalBarRawSqlChartConfigConfigType;
|
|
1368
|
+
/** ID of the ClickHouse connection to execute the query against, or `$connectionVariable` of a CONNECTION filter on the dashboard. */
|
|
1369
|
+
connectionId: string;
|
|
1370
|
+
/** SQL query template to execute. Supports HyperDX template variables. */
|
|
1371
|
+
sqlTemplate: string;
|
|
1372
|
+
/** Optional ID of the data source associated with this Raw SQL chart, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. Used for applying dashboard filters. */
|
|
1373
|
+
sourceId?: string | undefined;
|
|
1374
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1375
|
+
/** Display as a categorical bar chart. */
|
|
1376
|
+
displayType: ClickStackCategoricalBarRawSqlChartConfigDisplayType;
|
|
1377
|
+
}
|
|
1378
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1379
|
+
export type ClickStackCategoricalBarPromqlChartConfigConfigType = "promql";
|
|
1380
|
+
/** Display as a categorical bar chart. */
|
|
1381
|
+
export type ClickStackCategoricalBarPromqlChartConfigDisplayType = "bar";
|
|
1382
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1383
|
+
export type ClickStackCategoricalBarPromqlChartConfigExpressionsList = Array<ClickStackPromqlReducibleExpression>;
|
|
1384
|
+
export interface ClickStackCategoricalBarPromqlChartConfig {
|
|
1385
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1386
|
+
configType: ClickStackCategoricalBarPromqlChartConfigConfigType;
|
|
1387
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
1388
|
+
sourceId: string;
|
|
1389
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
1390
|
+
granularity?: string | undefined;
|
|
1391
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1392
|
+
/** Display as a categorical bar chart. */
|
|
1393
|
+
displayType: ClickStackCategoricalBarPromqlChartConfigDisplayType;
|
|
1394
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1395
|
+
expressions: ClickStackCategoricalBarPromqlChartConfigExpressionsList;
|
|
1396
|
+
/** Template for bar names, using the series' Prometheus labels in double braces. */
|
|
1397
|
+
legendTemplate?: string | undefined;
|
|
1398
|
+
/** Maximum number of bars (top-N by value), at most 500. Omit or set 0 to show up to 500. */
|
|
1399
|
+
limit?: number | undefined;
|
|
1400
|
+
}
|
|
1401
|
+
export type ClickStackCategoricalBarChartConfig = ClickStackCategoricalBarBuilderChartConfig | ClickStackCategoricalBarRawSqlChartConfig | ClickStackCategoricalBarPromqlChartConfig;
|
|
1402
|
+
/** Display type discriminator. Must be "heatmap" for heatmap tiles. */
|
|
1403
|
+
export type ClickStackHeatmapDistributionChartConfigDisplayType = "heatmap";
|
|
1404
|
+
/** Heatmap mode. "distribution" is the default when omitted. */
|
|
1405
|
+
export type ClickStackHeatmapDistributionChartConfigHeatmapMode = "distribution";
|
|
1406
|
+
/** Scale type used to bucket values on the y-axis. */
|
|
1407
|
+
export type ClickStackHeatmapSelectItemHeatmapScaleType = "log" | "linear";
|
|
1408
|
+
export interface ClickStackHeatmapSelectItem {
|
|
1409
|
+
/** SQL expression for the value being bucketed on the y-axis. Must be non-empty. */
|
|
1410
|
+
valueExpression: string;
|
|
1411
|
+
/** SQL expression for the count contributing to each bucket. Defaults to "count()" in the editor when omitted. */
|
|
1412
|
+
countExpression?: string | undefined;
|
|
1413
|
+
/** Scale type used to bucket values on the y-axis. */
|
|
1414
|
+
heatmapScaleType?: ClickStackHeatmapSelectItemHeatmapScaleType | (string & {}) | undefined;
|
|
1415
|
+
}
|
|
1416
|
+
/** Exactly one heatmap select item. */
|
|
1417
|
+
export type ClickStackHeatmapDistributionChartConfigSelectList = Array<ClickStackHeatmapSelectItem>;
|
|
1418
|
+
/** Query language for the where clause. */
|
|
1419
|
+
export type ClickStackHeatmapDistributionChartConfigWhereLanguage = "sql" | "lucene";
|
|
1420
|
+
export interface ClickStackHeatmapDistributionChartConfig {
|
|
1421
|
+
/** Display type discriminator. Must be "heatmap" for heatmap tiles. */
|
|
1422
|
+
displayType: ClickStackHeatmapDistributionChartConfigDisplayType;
|
|
1423
|
+
/** Heatmap mode. "distribution" is the default when omitted. */
|
|
1424
|
+
heatmapMode?: ClickStackHeatmapDistributionChartConfigHeatmapMode | (string & {}) | undefined;
|
|
1425
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1426
|
+
sourceId: string;
|
|
1427
|
+
/** Exactly one heatmap select item. */
|
|
1428
|
+
select: ClickStackHeatmapDistributionChartConfigSelectList;
|
|
1429
|
+
/** Row-level filter (syntax depends on whereLanguage). */
|
|
1430
|
+
where?: string | undefined;
|
|
1431
|
+
/** Query language for the where clause. */
|
|
1432
|
+
whereLanguage?: ClickStackHeatmapDistributionChartConfigWhereLanguage | (string & {}) | undefined;
|
|
1433
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1434
|
+
}
|
|
1435
|
+
/** Display type discriminator. Must be "heatmap" for heatmap tiles. */
|
|
1436
|
+
export type ClickStackHeatmapSeriesChartConfigDisplayType = "heatmap";
|
|
1437
|
+
/** Heatmap mode. Must be "series" for series heatmaps. */
|
|
1438
|
+
export type ClickStackHeatmapSeriesChartConfigHeatmapMode = "series";
|
|
1439
|
+
/** Exactly one aggregated value used to color each cell. */
|
|
1440
|
+
export type ClickStackHeatmapSeriesChartConfigSelectList = Array<ClickStackSelectItem>;
|
|
1441
|
+
export interface ClickStackHeatmapSeriesChartConfig {
|
|
1442
|
+
/** Display type discriminator. Must be "heatmap" for heatmap tiles. */
|
|
1443
|
+
displayType: ClickStackHeatmapSeriesChartConfigDisplayType;
|
|
1444
|
+
/** Heatmap mode. Must be "series" for series heatmaps. */
|
|
1445
|
+
heatmapMode: ClickStackHeatmapSeriesChartConfigHeatmapMode;
|
|
1446
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1447
|
+
sourceId: string;
|
|
1448
|
+
/** Exactly one aggregated value used to color each cell. */
|
|
1449
|
+
select: ClickStackHeatmapSeriesChartConfigSelectList;
|
|
1450
|
+
/** Field expression to group results by (one row per group value). */
|
|
1451
|
+
groupBy?: string | undefined;
|
|
1452
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1453
|
+
}
|
|
1454
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1455
|
+
export type ClickStackHeatmapPromqlChartConfigConfigType = "promql";
|
|
1456
|
+
/** Display as a heatmap. */
|
|
1457
|
+
export type ClickStackHeatmapPromqlChartConfigDisplayType = "heatmap";
|
|
1458
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1459
|
+
export type ClickStackHeatmapPromqlChartConfigExpressionsList = Array<ClickStackPromqlRangeExpression>;
|
|
1460
|
+
/** "distribution" buckets the values of all series over time, "series" draws one row per series, and "histogram" draws one row per Prometheus histogram bucket (series need an "le" label). Defaults to "distribution" when omitted. */
|
|
1461
|
+
export type ClickStackHeatmapPromqlChartConfigHeatmapMode = "distribution" | "series" | "histogram";
|
|
1462
|
+
/** Y-axis scale of a distribution heatmap. */
|
|
1463
|
+
export type ClickStackHeatmapPromqlChartConfigHeatmapScaleType = "log" | "linear";
|
|
1464
|
+
export interface ClickStackHeatmapPromqlChartConfig {
|
|
1465
|
+
/** Must be "promql" to use the PromQL chart config variant. */
|
|
1466
|
+
configType: ClickStackHeatmapPromqlChartConfigConfigType;
|
|
1467
|
+
/** ID of the PromQL source to query. Must be a source of kind "promql". */
|
|
1468
|
+
sourceId: string;
|
|
1469
|
+
/** Resolution of range queries, used as the Prometheus step and the $__interval macro. Defaults to "auto", which picks one from the time range. */
|
|
1470
|
+
granularity?: string | undefined;
|
|
1471
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1472
|
+
/** Display as a heatmap. */
|
|
1473
|
+
displayType: ClickStackHeatmapPromqlChartConfigDisplayType;
|
|
1474
|
+
/** PromQL expressions. Only the first is queried; the rest are kept but ignored. */
|
|
1475
|
+
expressions: ClickStackHeatmapPromqlChartConfigExpressionsList;
|
|
1476
|
+
/** "distribution" buckets the values of all series over time, "series" draws one row per series, and "histogram" draws one row per Prometheus histogram bucket (series need an "le" label). Defaults to "distribution" when omitted. */
|
|
1477
|
+
heatmapMode?: ClickStackHeatmapPromqlChartConfigHeatmapMode | (string & {}) | undefined;
|
|
1478
|
+
/** Y-axis scale of a distribution heatmap. */
|
|
1479
|
+
heatmapScaleType?: ClickStackHeatmapPromqlChartConfigHeatmapScaleType | (string & {}) | undefined;
|
|
1480
|
+
/** Template for row names of a series heatmap, using the series' Prometheus labels in double braces. */
|
|
1481
|
+
legendTemplate?: string | undefined;
|
|
1482
|
+
}
|
|
1483
|
+
export type ClickStackHeatmapChartConfig = ClickStackHeatmapDistributionChartConfig | ClickStackHeatmapSeriesChartConfig | ClickStackHeatmapPromqlChartConfig;
|
|
1484
|
+
/** Display type discriminator. Must be "search" for search/log viewer tiles. */
|
|
1485
|
+
export type ClickStackSearchChartConfigDisplayType = "search";
|
|
1486
|
+
/** Query language for the where clause. */
|
|
1487
|
+
export type ClickStackSearchChartConfigWhereLanguage = "sql" | "lucene";
|
|
1488
|
+
export interface ClickStackSearchChartConfig {
|
|
1489
|
+
/** Display type discriminator. Must be "search" for search/log viewer tiles. */
|
|
1490
|
+
displayType: ClickStackSearchChartConfigDisplayType;
|
|
1491
|
+
/** ID of the data source to query, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1492
|
+
sourceId: string;
|
|
1493
|
+
/** Comma-separated list of expressions to display. */
|
|
1494
|
+
select: string;
|
|
1495
|
+
/** Filter condition for the search (syntax depends on whereLanguage). */
|
|
1496
|
+
where?: string | undefined;
|
|
1497
|
+
/** Query language for the where clause. */
|
|
1498
|
+
whereLanguage: ClickStackSearchChartConfigWhereLanguage | (string & {});
|
|
1499
|
+
}
|
|
1500
|
+
/** Display type discriminator. Must be "event_patterns" for pattern mining tiles. */
|
|
1501
|
+
export type ClickStackEventPatternsChartConfigDisplayType = "event_patterns";
|
|
1502
|
+
/** Query language for the where clause. */
|
|
1503
|
+
export type ClickStackEventPatternsChartConfigWhereLanguage = "sql" | "lucene";
|
|
1504
|
+
export interface ClickStackEventPatternsChartConfig {
|
|
1505
|
+
/** Display type discriminator. Must be "event_patterns" for pattern mining tiles. */
|
|
1506
|
+
displayType: ClickStackEventPatternsChartConfigDisplayType;
|
|
1507
|
+
/** ID of the data source to mine patterns from, or `$sourceVariable` of a DATA_SOURCE filter on the dashboard. */
|
|
1508
|
+
sourceId: string;
|
|
1509
|
+
/** Column or expression to mine patterns from. Leave empty to use the source default (Body for logs, SpanName for traces). */
|
|
1510
|
+
select?: string | undefined;
|
|
1511
|
+
/** Filter condition for the pattern mining query (syntax depends on whereLanguage). */
|
|
1512
|
+
where?: string | undefined;
|
|
1513
|
+
/** Query language for the where clause. */
|
|
1514
|
+
whereLanguage?: ClickStackEventPatternsChartConfigWhereLanguage | (string & {}) | undefined;
|
|
1515
|
+
}
|
|
1516
|
+
/** Display type discriminator. Must be "markdown" for markdown text tiles. */
|
|
1517
|
+
export type ClickStackMarkdownChartConfigDisplayType = "markdown";
|
|
1518
|
+
export interface ClickStackMarkdownChartConfig {
|
|
1519
|
+
/** Display type discriminator. Must be "markdown" for markdown text tiles. */
|
|
1520
|
+
displayType: ClickStackMarkdownChartConfigDisplayType;
|
|
1521
|
+
/** Markdown content to render inside the tile. */
|
|
1522
|
+
markdown?: string | undefined;
|
|
1523
|
+
}
|
|
1524
|
+
export type ClickStackTileConfig = ClickStackLineChartConfig | ClickStackBarChartConfig | ClickStackStackedLineChartConfig | ClickStackTableChartConfig | ClickStackNumberChartConfig | ClickStackPieChartConfig | ClickStackCategoricalBarChartConfig | ClickStackHeatmapChartConfig | ClickStackSearchChartConfig | ClickStackEventPatternsChartConfig | ClickStackMarkdownChartConfig;
|
|
1525
|
+
/** Series type discriminator. Must be "time" for time-series charts. */
|
|
1526
|
+
export type ClickStackTimeChartSeriesType = "time";
|
|
1527
|
+
/** Aggregation function to apply to the field or metric value */
|
|
1528
|
+
export type ClickStackTimeChartSeriesAggFn = "avg" | "count" | "count_distinct" | "last_value" | "max" | "min" | "quantile" | "sum" | "any" | "none";
|
|
1529
|
+
/** Query language for the where clause */
|
|
1530
|
+
export type ClickStackTimeChartSeriesWhereLanguage = "sql" | "lucene";
|
|
1531
|
+
/** Fields to group results by (creates separate series for each group) */
|
|
1532
|
+
export type ClickStackTimeChartSeriesGroupByList = Array<string>;
|
|
1533
|
+
/** Metric data type, only for metrics data sources. */
|
|
1534
|
+
export type ClickStackTimeChartSeriesMetricDataType = "sum" | "gauge" | "histogram" | "summary" | "exponential histogram";
|
|
1535
|
+
/** Visual representation type for the time series */
|
|
1536
|
+
export type ClickStackTimeChartSeriesDisplayType = "stacked_bar" | "stacked_line" | "line";
|
|
1537
|
+
export interface ClickStackTimeChartSeries {
|
|
1538
|
+
/** Series type discriminator. Must be "time" for time-series charts. */
|
|
1539
|
+
type: ClickStackTimeChartSeriesType;
|
|
1540
|
+
/** ID of the data source to query */
|
|
1541
|
+
sourceId: string;
|
|
1542
|
+
/** Aggregation function to apply to the field or metric value */
|
|
1543
|
+
aggFn: ClickStackTimeChartSeriesAggFn | (string & {});
|
|
1544
|
+
/** Percentile level for quantile aggregations (e.g., 0.95 for p95) */
|
|
1545
|
+
level?: number | undefined;
|
|
1546
|
+
/** Column or expression to aggregate (required for most aggregation functions except count) */
|
|
1547
|
+
field?: string | undefined;
|
|
1548
|
+
/** Display name for the series in the chart */
|
|
1549
|
+
alias?: string | undefined;
|
|
1550
|
+
/** Filter query for the data (syntax depends on whereLanguage) */
|
|
1551
|
+
where: string;
|
|
1552
|
+
/** Query language for the where clause */
|
|
1553
|
+
whereLanguage: ClickStackTimeChartSeriesWhereLanguage | (string & {});
|
|
1554
|
+
/** Fields to group results by (creates separate series for each group) */
|
|
1555
|
+
groupBy: ClickStackTimeChartSeriesGroupByList;
|
|
1556
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1557
|
+
/** Metric data type, only for metrics data sources. */
|
|
1558
|
+
metricDataType?: ClickStackTimeChartSeriesMetricDataType | (string & {}) | undefined;
|
|
1559
|
+
/** Metric name for metrics data sources */
|
|
1560
|
+
metricName?: string | undefined;
|
|
1561
|
+
/** Visual representation type for the time series */
|
|
1562
|
+
displayType?: ClickStackTimeChartSeriesDisplayType | (string & {}) | undefined;
|
|
1563
|
+
}
|
|
1564
|
+
/** Series type discriminator. Must be "table" for table charts. */
|
|
1565
|
+
export type ClickStackTableChartSeriesType = "table";
|
|
1566
|
+
/** Aggregation function to apply to the field or metric value */
|
|
1567
|
+
export type ClickStackTableChartSeriesAggFn = "avg" | "count" | "count_distinct" | "last_value" | "max" | "min" | "quantile" | "sum" | "any" | "none";
|
|
1568
|
+
/** Query language for the where clause */
|
|
1569
|
+
export type ClickStackTableChartSeriesWhereLanguage = "sql" | "lucene";
|
|
1570
|
+
/** Fields to group results by (creates separate rows for each group) */
|
|
1571
|
+
export type ClickStackTableChartSeriesGroupByList = Array<string>;
|
|
1572
|
+
/** Sort order for table rows */
|
|
1573
|
+
export type ClickStackTableChartSeriesSortOrder = "desc" | "asc";
|
|
1574
|
+
/** Metric data type, only for metrics data sources. */
|
|
1575
|
+
export type ClickStackTableChartSeriesMetricDataType = "sum" | "gauge" | "histogram" | "summary" | "exponential histogram";
|
|
1576
|
+
export interface ClickStackTableChartSeries {
|
|
1577
|
+
/** Series type discriminator. Must be "table" for table charts. */
|
|
1578
|
+
type: ClickStackTableChartSeriesType;
|
|
1579
|
+
/** ID of the data source to query */
|
|
1580
|
+
sourceId: string;
|
|
1581
|
+
/** Aggregation function to apply to the field or metric value */
|
|
1582
|
+
aggFn: ClickStackTableChartSeriesAggFn | (string & {});
|
|
1583
|
+
/** Percentile level for quantile aggregations (e.g., 0.95 for p95) */
|
|
1584
|
+
level?: number | undefined;
|
|
1585
|
+
/** Column or expression to aggregate (required for most aggregation functions except count) */
|
|
1586
|
+
field?: string | undefined;
|
|
1587
|
+
/** Display name for the series */
|
|
1588
|
+
alias?: string | undefined;
|
|
1589
|
+
/** Filter query for the data (syntax depends on whereLanguage) */
|
|
1590
|
+
where: string;
|
|
1591
|
+
/** Query language for the where clause */
|
|
1592
|
+
whereLanguage: ClickStackTableChartSeriesWhereLanguage | (string & {});
|
|
1593
|
+
/** Fields to group results by (creates separate rows for each group) */
|
|
1594
|
+
groupBy: ClickStackTableChartSeriesGroupByList;
|
|
1595
|
+
/** Sort order for table rows */
|
|
1596
|
+
sortOrder?: ClickStackTableChartSeriesSortOrder | (string & {}) | undefined;
|
|
1597
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1598
|
+
/** Metric data type, only for metrics data sources. */
|
|
1599
|
+
metricDataType?: ClickStackTableChartSeriesMetricDataType | (string & {}) | undefined;
|
|
1600
|
+
/** Metric name for metrics data sources */
|
|
1601
|
+
metricName?: string | undefined;
|
|
1602
|
+
}
|
|
1603
|
+
/** Series type discriminator. Must be "number" for single-value number charts. */
|
|
1604
|
+
export type ClickStackNumberChartSeriesType = "number";
|
|
1605
|
+
/** Aggregation function to apply to the field or metric value */
|
|
1606
|
+
export type ClickStackNumberChartSeriesAggFn = "avg" | "count" | "count_distinct" | "last_value" | "max" | "min" | "quantile" | "sum" | "any" | "none";
|
|
1607
|
+
/** Query language for the where clause */
|
|
1608
|
+
export type ClickStackNumberChartSeriesWhereLanguage = "sql" | "lucene";
|
|
1609
|
+
/** Metric data type, only for metrics data sources. */
|
|
1610
|
+
export type ClickStackNumberChartSeriesMetricDataType = "sum" | "gauge" | "histogram" | "summary" | "exponential histogram";
|
|
1611
|
+
export interface ClickStackNumberChartSeries {
|
|
1612
|
+
/** Series type discriminator. Must be "number" for single-value number charts. */
|
|
1613
|
+
type: ClickStackNumberChartSeriesType;
|
|
1614
|
+
/** ID of the data source to query */
|
|
1615
|
+
sourceId: string;
|
|
1616
|
+
/** Aggregation function to apply to the field or metric value */
|
|
1617
|
+
aggFn: ClickStackNumberChartSeriesAggFn | (string & {});
|
|
1618
|
+
/** Percentile level for quantile aggregations (e.g., 0.95 for p95) */
|
|
1619
|
+
level?: number | undefined;
|
|
1620
|
+
/** Column or expression to aggregate (required for most aggregation functions except count) */
|
|
1621
|
+
field?: string | undefined;
|
|
1622
|
+
/** Display name for the series in the chart */
|
|
1623
|
+
alias?: string | undefined;
|
|
1624
|
+
/** Filter query for the data (syntax depends on whereLanguage) */
|
|
1625
|
+
where: string;
|
|
1626
|
+
/** Query language for the where clause */
|
|
1627
|
+
whereLanguage: ClickStackNumberChartSeriesWhereLanguage | (string & {});
|
|
1628
|
+
numberFormat?: ClickStackNumberFormat | undefined;
|
|
1629
|
+
/** Metric data type, only for metrics data sources. */
|
|
1630
|
+
metricDataType?: ClickStackNumberChartSeriesMetricDataType | (string & {}) | undefined;
|
|
1631
|
+
/** Metric name for metrics data sources. */
|
|
1632
|
+
metricName?: string | undefined;
|
|
1633
|
+
}
|
|
1634
|
+
/** Series type discriminator. Must be "search" for search/log viewer charts. */
|
|
1635
|
+
export type ClickStackSearchChartSeriesType = "search";
|
|
1636
|
+
/** List of field names to display in the search results table */
|
|
1637
|
+
export type ClickStackSearchChartSeriesFieldsList = Array<string>;
|
|
1638
|
+
/** Query language for the where clause */
|
|
1639
|
+
export type ClickStackSearchChartSeriesWhereLanguage = "sql" | "lucene";
|
|
1640
|
+
export interface ClickStackSearchChartSeries {
|
|
1641
|
+
/** Series type discriminator. Must be "search" for search/log viewer charts. */
|
|
1642
|
+
type: ClickStackSearchChartSeriesType;
|
|
1643
|
+
/** ID of the data source to query */
|
|
1644
|
+
sourceId: string;
|
|
1645
|
+
/** List of field names to display in the search results table */
|
|
1646
|
+
fields: ClickStackSearchChartSeriesFieldsList;
|
|
1647
|
+
/** Filter query for the data (syntax depends on whereLanguage) */
|
|
1648
|
+
where: string;
|
|
1649
|
+
/** Query language for the where clause */
|
|
1650
|
+
whereLanguage: ClickStackSearchChartSeriesWhereLanguage | (string & {});
|
|
1651
|
+
}
|
|
1652
|
+
/** Series type discriminator. Must be "markdown" for markdown text widgets. */
|
|
1653
|
+
export type ClickStackMarkdownChartSeriesType = "markdown";
|
|
1654
|
+
export interface ClickStackMarkdownChartSeries {
|
|
1655
|
+
/** Series type discriminator. Must be "markdown" for markdown text widgets. */
|
|
1656
|
+
type: ClickStackMarkdownChartSeriesType;
|
|
1657
|
+
/** Markdown content to render inside the widget. */
|
|
1658
|
+
content: string;
|
|
1659
|
+
}
|
|
1660
|
+
export type ClickStackDashboardChartSeries = ClickStackTimeChartSeries | ClickStackTableChartSeries | ClickStackNumberChartSeries | ClickStackSearchChartSeries | ClickStackMarkdownChartSeries;
|
|
1661
|
+
/** Data series to display in this tile (all must be the same type). Deprecated; use "config" instead. */
|
|
1662
|
+
export type ClickStackTileInputSeriesList = Array<ClickStackDashboardChartSeries>;
|
|
1663
|
+
export interface ClickStackTileInput {
|
|
1664
|
+
/** Display name for the tile */
|
|
1665
|
+
name: string;
|
|
1666
|
+
/** Horizontal position in the grid (0-based) */
|
|
1667
|
+
x: number;
|
|
1668
|
+
/** Vertical position in the grid (0-based) */
|
|
1669
|
+
y: number;
|
|
1670
|
+
/** Width in grid units */
|
|
1671
|
+
w: number;
|
|
1672
|
+
/** Height in grid units */
|
|
1673
|
+
h: number;
|
|
1674
|
+
config?: ClickStackTileConfig | undefined;
|
|
1675
|
+
/** References a DashboardContainer by id. Tiles without containerId render in the default ungrouped area. */
|
|
1676
|
+
containerId?: string | undefined;
|
|
1677
|
+
/** References a tab inside the tile's container by id. Requires containerId to be set, and the container to declare a matching tab. */
|
|
1678
|
+
tabId?: string | undefined;
|
|
1679
|
+
/** Short explanation of the tile, shown as a tooltip next to its name. */
|
|
1680
|
+
description?: string | undefined;
|
|
1681
|
+
/** Optional tile ID. Omit to generate a new ID. */
|
|
1682
|
+
id?: string | undefined;
|
|
1683
|
+
/** Display two series as a ratio (series[0] / series[1]). Only applicable when providing "series". Deprecated in favor of "config.asRatio". */
|
|
1684
|
+
asRatio?: boolean | undefined;
|
|
1685
|
+
/** Data series to display in this tile (all must be the same type). Deprecated; use "config" instead. */
|
|
1686
|
+
series?: ClickStackTileInputSeriesList | undefined;
|
|
1687
|
+
}
|
|
1688
|
+
/** List of tiles/charts to include in the dashboard. */
|
|
1689
|
+
export type CreateClickStackDashboardRequestTilesList = Array<ClickStackTileInput>;
|
|
1690
|
+
/** Tags for organizing and filtering dashboards. */
|
|
1691
|
+
export type CreateClickStackDashboardRequestTagsList = Array<string>;
|
|
1692
|
+
/** Filter type discriminator. Must be "QUERY_EXPRESSION". */
|
|
1693
|
+
export type ClickStackQueryExpressionFilterInputType = "QUERY_EXPRESSION";
|
|
1694
|
+
/** Metric type when source is metrics */
|
|
1695
|
+
export type ClickStackQueryExpressionFilterInputSourceMetricType = "sum" | "gauge" | "histogram" | "summary" | "exponential histogram";
|
|
1696
|
+
/** Language of the where condition */
|
|
1697
|
+
export type ClickStackQueryExpressionFilterInputWhereLanguage = "sql" | "lucene";
|
|
1698
|
+
/** Optional list of source IDs this filter applies to. Omit or provide an empty array to apply the filter to ALL tiles regardless of source. A non-empty array restricts the filter to only tiles whose source ID is in the list; tiles using other sources are not affected by the selected filter value(s). Scopes the broadcast condition only, so a non-empty array is rejected when isBroadcastEnabled is false, and is omitted from responses for such a filter. */
|
|
1699
|
+
export type ClickStackQueryExpressionFilterInputAppliesToSourceIdsList = Array<string>;
|
|
1700
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1701
|
+
export type ClickStackQueryExpressionFilterInputMinSelections = 0 | 1;
|
|
1702
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1703
|
+
export type ClickStackQueryExpressionFilterInputMaxSelections = 1;
|
|
1704
|
+
export interface ClickStackQueryExpressionFilterInput {
|
|
1705
|
+
/** Filter type discriminator. Must be "QUERY_EXPRESSION". */
|
|
1706
|
+
type: ClickStackQueryExpressionFilterInputType;
|
|
1707
|
+
/** Display name for the dashboard filter key */
|
|
1708
|
+
name: string;
|
|
1709
|
+
/** SQL expression used when querying values for this filter, and when applying this dashboard filter to tiles. */
|
|
1710
|
+
expression: string;
|
|
1711
|
+
/** Source ID this dashboard filter key applies to, or `$name` of a DATA_SOURCE filter on the dashboard */
|
|
1712
|
+
sourceId: string;
|
|
1713
|
+
/** Metric type when source is metrics */
|
|
1714
|
+
sourceMetricType?: ClickStackQueryExpressionFilterInputSourceMetricType | (string & {}) | undefined;
|
|
1715
|
+
/** Optional WHERE condition to scope which rows this filter key reads values from */
|
|
1716
|
+
where?: string | undefined;
|
|
1717
|
+
/** Language of the where condition */
|
|
1718
|
+
whereLanguage?: ClickStackQueryExpressionFilterInputWhereLanguage | (string & {}) | undefined;
|
|
1719
|
+
/** Optional list of source IDs this filter applies to. Omit or provide an empty array to apply the filter to ALL tiles regardless of source. A non-empty array restricts the filter to only tiles whose source ID is in the list; tiles using other sources are not affected by the selected filter value(s). Scopes the broadcast condition only, so a non-empty array is rejected when isBroadcastEnabled is false, and is omitted from responses for such a filter. */
|
|
1720
|
+
appliesToSourceIds?: ClickStackQueryExpressionFilterInputAppliesToSourceIdsList | undefined;
|
|
1721
|
+
/** Whether the selected value is applied as a filter condition on every builder tile this filter applies to (see appliesToSourceIds), and every raw sql tile using the $__filters macro. Omitting the field means enabled. */
|
|
1722
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1723
|
+
/** Whether the selected value is exposed to tile queries as a dashboard variable named by variableName. Tiles may reference it as `$variableName` or using the (preferred) `$__filter($<variableName>)` and `$__conditionalAll(<condition>, $<variableName>)` macros. */
|
|
1724
|
+
isVariableEnabled?: boolean | undefined;
|
|
1725
|
+
/** Token tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed, so a variable-enabled filter whose name derives nothing usable must send this field explicitly. Variable names must be unique across a dashboard's variable-enabled filters. Names the variable only, so the field is rejected when isVariableEnabled is not true, and is omitted from responses for such a filter. */
|
|
1726
|
+
variableName?: string | undefined;
|
|
1727
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1728
|
+
minSelections?: ClickStackQueryExpressionFilterInputMinSelections | (number & {}) | undefined;
|
|
1729
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
1730
|
+
isGlobalRequirement?: boolean | undefined;
|
|
1731
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1732
|
+
maxSelections?: ClickStackQueryExpressionFilterInputMaxSelections | (number & {}) | undefined;
|
|
1733
|
+
}
|
|
1734
|
+
/** Discriminator. Must be "STATIC_LIST". */
|
|
1735
|
+
export type ClickStackStaticListFilterInputType = "STATIC_LIST";
|
|
1736
|
+
/** The values this filter's dropdown offers. Must be non-empty and free of duplicates. */
|
|
1737
|
+
export type ClickStackStaticListFilterInputOptionsList = Array<string>;
|
|
1738
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1739
|
+
export type ClickStackStaticListFilterInputMinSelections = 0 | 1;
|
|
1740
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1741
|
+
export type ClickStackStaticListFilterInputMaxSelections = 1;
|
|
1742
|
+
export interface ClickStackStaticListFilterInput {
|
|
1743
|
+
/** Discriminator. Must be "STATIC_LIST". */
|
|
1744
|
+
type: ClickStackStaticListFilterInputType;
|
|
1745
|
+
/** Display name for the dashboard filter key */
|
|
1746
|
+
name: string;
|
|
1747
|
+
/** The values this filter's dropdown offers. Must be non-empty and free of duplicates. */
|
|
1748
|
+
options: ClickStackStaticListFilterInputOptionsList;
|
|
1749
|
+
/** Must be false -- there is no expression to broadcast. Omit it and it is false. Allowed values: false. */
|
|
1750
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1751
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`, or with the `$__filter(<expression>, $<variableName>)` and `$__conditionalAll(<condition>, $<variableName>)` macros. The one-argument `$__filter($<variableName>)` form renders the filter's own expression, which this kind of filter does not have, so it reports that the expression must be passed explicitly. Allowed values: true. */
|
|
1752
|
+
isVariableEnabled?: boolean | undefined;
|
|
1753
|
+
/** Token tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed, so a variable-enabled filter whose name derives nothing usable must send this field explicitly. Variable names must be unique across a dashboard's variable-enabled filters. Names the variable only, so the field is rejected when isVariableEnabled is not true, and is omitted from responses for such a filter. */
|
|
1754
|
+
variableName?: string | undefined;
|
|
1755
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1756
|
+
minSelections?: ClickStackStaticListFilterInputMinSelections | (number & {}) | undefined;
|
|
1757
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
1758
|
+
isGlobalRequirement?: boolean | undefined;
|
|
1759
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1760
|
+
maxSelections?: ClickStackStaticListFilterInputMaxSelections | (number & {}) | undefined;
|
|
1761
|
+
}
|
|
1762
|
+
/** Discriminator. Must be "PROMETHEUS_LABEL". */
|
|
1763
|
+
export type ClickStackPrometheusLabelFilterInputType = "PROMETHEUS_LABEL";
|
|
1764
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1765
|
+
export type ClickStackPrometheusLabelFilterInputMinSelections = 0 | 1;
|
|
1766
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1767
|
+
export type ClickStackPrometheusLabelFilterInputMaxSelections = 1;
|
|
1768
|
+
export interface ClickStackPrometheusLabelFilterInput {
|
|
1769
|
+
/** Discriminator. Must be "PROMETHEUS_LABEL". */
|
|
1770
|
+
type: ClickStackPrometheusLabelFilterInputType;
|
|
1771
|
+
/** Display name for the dashboard filter */
|
|
1772
|
+
name: string;
|
|
1773
|
+
/** Id of the PromQL source the label values are read from. */
|
|
1774
|
+
sourceId: string;
|
|
1775
|
+
/** Label whose values populate the dropdown. Use "__name__" to list metric names. */
|
|
1776
|
+
label: string;
|
|
1777
|
+
/** Optional Prometheus series selector narrowing which series the label values are read from. */
|
|
1778
|
+
match?: string | undefined;
|
|
1779
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
1780
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1781
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`. Allowed values: true. */
|
|
1782
|
+
isVariableEnabled?: boolean | undefined;
|
|
1783
|
+
/** Token that tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Variable names must be unique across a dashboard's variable-enabled filters. */
|
|
1784
|
+
variableName?: string | undefined;
|
|
1785
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1786
|
+
minSelections?: ClickStackPrometheusLabelFilterInputMinSelections | (number & {}) | undefined;
|
|
1787
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
1788
|
+
isGlobalRequirement?: boolean | undefined;
|
|
1789
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1790
|
+
maxSelections?: ClickStackPrometheusLabelFilterInputMaxSelections | (number & {}) | undefined;
|
|
1791
|
+
}
|
|
1792
|
+
/** Discriminator. Must be "SOURCE_FILTER". */
|
|
1793
|
+
export type ClickStackSourceFilterInputType = "SOURCE_FILTER";
|
|
1794
|
+
/** Optional list of source IDs this filter broadcasts to. Omit or provide an empty array to apply the selection to ALL tiles regardless of source; a non-empty array restricts it to tiles whose source ID is in the list. */
|
|
1795
|
+
export type ClickStackSourceFilterInputAppliesToSourceIdsList = Array<string>;
|
|
1796
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1797
|
+
export type ClickStackSourceFilterInputMinSelections = 0 | 1;
|
|
1798
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1799
|
+
export type ClickStackSourceFilterInputMaxSelections = 1;
|
|
1800
|
+
export interface ClickStackSourceFilterInput {
|
|
1801
|
+
/** Discriminator. Must be "SOURCE_FILTER". */
|
|
1802
|
+
type: ClickStackSourceFilterInputType;
|
|
1803
|
+
/** Display name for the dashboard filter */
|
|
1804
|
+
name: string;
|
|
1805
|
+
/** Id of the source whose filterSettings declares this column. Read filterSettings from GET /api/v2/sources to see which columns a source declares. */
|
|
1806
|
+
sourceId: string;
|
|
1807
|
+
/** Column this filter selects values for. Must match one of the source's filterSettings.columns[].name values, and is the expression the selection is broadcast on. */
|
|
1808
|
+
expression: string;
|
|
1809
|
+
/** Optional list of source IDs this filter broadcasts to. Omit or provide an empty array to apply the selection to ALL tiles regardless of source; a non-empty array restricts it to tiles whose source ID is in the list. */
|
|
1810
|
+
appliesToSourceIds?: ClickStackSourceFilterInputAppliesToSourceIdsList | undefined;
|
|
1811
|
+
/** Must be true if provided, and is true when omitted -- a source filter should always broadcast to at least its own source. Allowed values: true. */
|
|
1812
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1813
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`. Allowed values: true. */
|
|
1814
|
+
isVariableEnabled?: boolean | undefined;
|
|
1815
|
+
/** Token that tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Variable names must be unique across a dashboard's variable-enabled filters. */
|
|
1816
|
+
variableName: string;
|
|
1817
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
1818
|
+
minSelections?: ClickStackSourceFilterInputMinSelections | (number & {}) | undefined;
|
|
1819
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
1820
|
+
isGlobalRequirement?: boolean | undefined;
|
|
1821
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
1822
|
+
maxSelections?: ClickStackSourceFilterInputMaxSelections | (number & {}) | undefined;
|
|
1823
|
+
}
|
|
1824
|
+
/** Filter type discriminator. Must be "DATA_SOURCE". */
|
|
1825
|
+
export type ClickStackDataSourceFilterInputType = "DATA_SOURCE";
|
|
1826
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
1827
|
+
export type ClickStackDataSourceFilterInputMinSelections = 1;
|
|
1828
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
1829
|
+
export type ClickStackDataSourceFilterInputMaxSelections = 1;
|
|
1830
|
+
/** Kinds of sources offered. A field can reference the variable if it accepts at least one listed kind. A tile whose selected source is a kind it cannot use shows an error instead of running. */
|
|
1831
|
+
export type ClickStackDataSourceFilterInputAllowedSourceKindsList = Array<string>;
|
|
1832
|
+
export interface ClickStackDataSourceFilterInput {
|
|
1833
|
+
/** Filter type discriminator. Must be "DATA_SOURCE". */
|
|
1834
|
+
type: ClickStackDataSourceFilterInputType;
|
|
1835
|
+
/** Display name of the variable's dropdown */
|
|
1836
|
+
name: string;
|
|
1837
|
+
/** Token tiles and filters reference the selected source by, as `$variableName`. */
|
|
1838
|
+
variableName?: string | undefined;
|
|
1839
|
+
/** Blocks every tile on the dashboard until a value is selected. False (the default) blocks only the tiles that reference the variable. */
|
|
1840
|
+
isGlobalRequirement?: boolean | undefined;
|
|
1841
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
1842
|
+
minSelections?: ClickStackDataSourceFilterInputMinSelections | (number & {}) | undefined;
|
|
1843
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
1844
|
+
maxSelections?: ClickStackDataSourceFilterInputMaxSelections | (number & {}) | undefined;
|
|
1845
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
1846
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1847
|
+
/** Must be true if provided, and is true when omitted. Allowed values: true. */
|
|
1848
|
+
isVariableEnabled?: boolean | undefined;
|
|
1849
|
+
/** Kinds of sources offered. A field can reference the variable if it accepts at least one listed kind. A tile whose selected source is a kind it cannot use shows an error instead of running. */
|
|
1850
|
+
allowedSourceKinds: ClickStackDataSourceFilterInputAllowedSourceKindsList;
|
|
1851
|
+
/** Optional connection the offered sources are limited to: a connection ID, or `$name` of a CONNECTION filter on the dashboard. */
|
|
1852
|
+
connectionId?: string | undefined;
|
|
1853
|
+
}
|
|
1854
|
+
/** Filter type discriminator. Must be "CONNECTION". */
|
|
1855
|
+
export type ClickStackConnectionFilterInputType = "CONNECTION";
|
|
1856
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
1857
|
+
export type ClickStackConnectionFilterInputMinSelections = 1;
|
|
1858
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
1859
|
+
export type ClickStackConnectionFilterInputMaxSelections = 1;
|
|
1860
|
+
export interface ClickStackConnectionFilterInput {
|
|
1861
|
+
/** Filter type discriminator. Must be "CONNECTION". */
|
|
1862
|
+
type: ClickStackConnectionFilterInputType;
|
|
1863
|
+
/** Display name of the variable's dropdown */
|
|
1864
|
+
name: string;
|
|
1865
|
+
/** Token raw SQL tiles reference the selected connection by, as `$variableName`. */
|
|
1866
|
+
variableName?: string | undefined;
|
|
1867
|
+
/** Blocks every tile on the dashboard until a value is selected. False (the default) blocks only the tiles that reference the variable. */
|
|
1868
|
+
isGlobalRequirement?: boolean | undefined;
|
|
1869
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
1870
|
+
minSelections?: ClickStackConnectionFilterInputMinSelections | (number & {}) | undefined;
|
|
1871
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
1872
|
+
maxSelections?: ClickStackConnectionFilterInputMaxSelections | (number & {}) | undefined;
|
|
1873
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
1874
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1875
|
+
/** Must be true if provided, and is true when omitted. Allowed values: true. */
|
|
1876
|
+
isVariableEnabled?: boolean | undefined;
|
|
1877
|
+
}
|
|
1878
|
+
/** Discriminator. Must be "SQL_QUERY". */
|
|
1879
|
+
export type ClickStackSqlQueryFilterInputType = "SQL_QUERY";
|
|
1880
|
+
/** Set to 1 to make the filter required. */
|
|
1881
|
+
export type ClickStackSqlQueryFilterInputMinSelections = 0 | 1;
|
|
1882
|
+
/** Set to 1 to make the filter single-select. */
|
|
1883
|
+
export type ClickStackSqlQueryFilterInputMaxSelections = 1;
|
|
1884
|
+
export interface ClickStackSqlQueryFilterInput {
|
|
1885
|
+
/** Discriminator. Must be "SQL_QUERY". */
|
|
1886
|
+
type: ClickStackSqlQueryFilterInputType;
|
|
1887
|
+
/** Display name for the dashboard filter */
|
|
1888
|
+
name: string;
|
|
1889
|
+
/** ClickHouse connection the query runs on: a connection ID, or `$name` of a CONNECTION filter on the dashboard. */
|
|
1890
|
+
connectionId: string;
|
|
1891
|
+
/** Optional Log, Trace, Session, or Metric source on the same connection, or `$name` of a DATA_SOURCE filter on this dashboard. Lets `sqlTemplate` use `$__sourceTable` and `$__filters`. */
|
|
1892
|
+
sourceId?: string | undefined;
|
|
1893
|
+
/** Query whose first column populates the dropdown. May use the time macros and other filters' variables. `$__sourceTable` and `$__filters` need a `sourceId`; `$__filters` expands to the dashboard's broadcast filter selections for that source. */
|
|
1894
|
+
sqlTemplate: string;
|
|
1895
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
1896
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1897
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`. Allowed values: true. */
|
|
1898
|
+
isVariableEnabled?: boolean | undefined;
|
|
1899
|
+
/** Token that tiles reference this filter's selected value by, as `$variableName`. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Must be unique across a dashboard's variable-enabled filters. */
|
|
1900
|
+
variableName?: string | undefined;
|
|
1901
|
+
/** Set to 1 to make the filter required. */
|
|
1902
|
+
minSelections?: ClickStackSqlQueryFilterInputMinSelections | (number & {}) | undefined;
|
|
1903
|
+
/** Widens a required filter's block to every tile on the dashboard. Ignored unless minSelections is 1. */
|
|
1904
|
+
isGlobalRequirement?: boolean | undefined;
|
|
1905
|
+
/** Set to 1 to make the filter single-select. */
|
|
1906
|
+
maxSelections?: ClickStackSqlQueryFilterInputMaxSelections | (number & {}) | undefined;
|
|
1907
|
+
}
|
|
1908
|
+
/** Discriminator. Must be "ADHOC". */
|
|
1909
|
+
export type ClickStackAdhocFilterInputType = "ADHOC";
|
|
1910
|
+
/** IDs of the sources whose keys and values the filter suggests, all of sourceType, or `$name` of data source variables. */
|
|
1911
|
+
export type ClickStackAdhocFilterInputSourcesList = Array<string>;
|
|
1912
|
+
/** IDs of the sources whose tiles the conditions apply to, all of sourceType, or `$name` of data source variables. Omit or send an empty array to apply to the tiles of the filter's sources. */
|
|
1913
|
+
export type ClickStackAdhocFilterInputAppliesToSourceIdsList = Array<string>;
|
|
1914
|
+
export interface ClickStackAdhocFilterInput {
|
|
1915
|
+
/** Discriminator. Must be "ADHOC". */
|
|
1916
|
+
type: ClickStackAdhocFilterInputType;
|
|
1917
|
+
/** Display name for the dashboard filter */
|
|
1918
|
+
name: string;
|
|
1919
|
+
/** The kind of sources the filter reads keys from and applies to: Log, Trace, or Session sources for sql, PromQL sources for promql. Allowed values: 'sql', 'promql'. */
|
|
1920
|
+
sourceType: string;
|
|
1921
|
+
/** IDs of the sources whose keys and values the filter suggests, all of sourceType, or `$name` of data source variables. */
|
|
1922
|
+
sources: ClickStackAdhocFilterInputSourcesList;
|
|
1923
|
+
/** Optional condition narrowing the rows keys and values are suggested from. Never applied to tiles. May reference the dashboard's variables. sql filters only: rejected when sourceType is promql. */
|
|
1924
|
+
where?: string | undefined;
|
|
1925
|
+
/** Language of the where condition. Rejected when sourceType is promql. Allowed values: 'sql', 'lucene'. */
|
|
1926
|
+
whereLanguage?: string | undefined;
|
|
1927
|
+
/** IDs of the sources whose tiles the conditions apply to, all of sourceType, or `$name` of data source variables. Omit or send an empty array to apply to the tiles of the filter's sources. */
|
|
1928
|
+
appliesToSourceIds?: ClickStackAdhocFilterInputAppliesToSourceIdsList | undefined;
|
|
1929
|
+
/** Must be true or omitted. Allowed values: true. */
|
|
1930
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
1931
|
+
/** Must be true or omitted. Allowed values: true. */
|
|
1932
|
+
isVariableEnabled?: boolean | undefined;
|
|
1933
|
+
/** Unique name the filter's conditions are saved under, in savedFilterValues and the dashboard URL. Tiles can't reference it as a variable. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Must be unique across a dashboard's variable-enabled filters. */
|
|
1934
|
+
variableName?: string | undefined;
|
|
1935
|
+
}
|
|
1936
|
+
export type ClickStackFilterInput = ClickStackQueryExpressionFilterInput | ClickStackStaticListFilterInput | ClickStackPrometheusLabelFilterInput | ClickStackSourceFilterInput | ClickStackDataSourceFilterInput | ClickStackConnectionFilterInput | ClickStackSqlQueryFilterInput | ClickStackAdhocFilterInput;
|
|
1937
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
1938
|
+
export type CreateClickStackDashboardRequestFiltersList = Array<ClickStackFilterInput>;
|
|
1939
|
+
/** Query language used by savedQuery. */
|
|
1940
|
+
export type CreateClickStackDashboardRequestSavedQueryLanguage = "sql" | "lucene";
|
|
1941
|
+
/** Filter type. */
|
|
1942
|
+
export type ClickStackSqlSavedFilterValueType = "sql";
|
|
1943
|
+
export interface ClickStackSqlSavedFilterValue {
|
|
1944
|
+
/** Filter type. */
|
|
1945
|
+
type?: ClickStackSqlSavedFilterValueType | (string & {}) | undefined;
|
|
1946
|
+
/** SQL filter condition. For example use expressions in the form "column IN ('value')". */
|
|
1947
|
+
condition: string;
|
|
1948
|
+
}
|
|
1949
|
+
/** Filter type. */
|
|
1950
|
+
export type ClickStackVariableSavedFilterValueType = "variable";
|
|
1951
|
+
/** Selected values. Ignored when "all" is true. */
|
|
1952
|
+
export type ClickStackVariableSavedFilterValueValuesList = Array<string>;
|
|
1953
|
+
export interface ClickStackVariableSavedFilterValue {
|
|
1954
|
+
/** Filter type. */
|
|
1955
|
+
type: ClickStackVariableSavedFilterValueType;
|
|
1956
|
+
/** The variableName of the dashboard variable this selection belongs to. Only allowed for variable-enabled filters. */
|
|
1957
|
+
name: string;
|
|
1958
|
+
/** Selected values. Ignored when "all" is true. */
|
|
1959
|
+
values: ClickStackVariableSavedFilterValueValuesList;
|
|
1960
|
+
/** Set to true to select every available value rather than a fixed list, which only SOURCE_FILTER filters offer (and only for columns their source declares with allowAll). Send an empty "values" alongside it. Allowed values: true. */
|
|
1961
|
+
all?: boolean | undefined;
|
|
1962
|
+
}
|
|
1963
|
+
/** Filter type. */
|
|
1964
|
+
export type ClickStackAdhocSavedFilterValueType = "adhoc";
|
|
1965
|
+
export interface ClickStackAdhocFilterCondition {
|
|
1966
|
+
/** A SQL expression (column or map access) for sql filters, or a label name for promql filters. */
|
|
1967
|
+
key: string;
|
|
1968
|
+
/** Comparison operator. =~ and !~ match a regular expression. IN takes one value per condition. LIKE and NOT LIKE apply to sql filters only; a condition its filter's sourceType can't express is not applied. Allowed values: '=', '!=', '=~', '!~', 'LIKE', 'NOT LIKE', 'IN'. */
|
|
1969
|
+
operator: string;
|
|
1970
|
+
/** Value, pattern, or regular expression to compare against. */
|
|
1971
|
+
value: string;
|
|
1972
|
+
}
|
|
1973
|
+
/** The filter's conditions. */
|
|
1974
|
+
export type ClickStackAdhocSavedFilterValueConditionsList = Array<ClickStackAdhocFilterCondition>;
|
|
1975
|
+
export interface ClickStackAdhocSavedFilterValue {
|
|
1976
|
+
/** Filter type. */
|
|
1977
|
+
type: ClickStackAdhocSavedFilterValueType;
|
|
1978
|
+
/** The variableName of the ADHOC filter these conditions belong to. */
|
|
1979
|
+
name: string;
|
|
1980
|
+
/** The filter's conditions. */
|
|
1981
|
+
conditions: ClickStackAdhocSavedFilterValueConditionsList;
|
|
1982
|
+
}
|
|
1983
|
+
export type ClickStackSavedFilterValue = ClickStackSqlSavedFilterValue | ClickStackVariableSavedFilterValue | ClickStackAdhocSavedFilterValue;
|
|
1984
|
+
/** Optional default dashboard filter values to persist on the dashboard. */
|
|
1985
|
+
export type CreateClickStackDashboardRequestSavedFilterValuesList = Array<ClickStackSavedFilterValue>;
|
|
1986
|
+
export interface ClickStackDashboardContainerTab {
|
|
1987
|
+
/** Unique identifier for the tab within its container. */
|
|
1988
|
+
id: string;
|
|
1989
|
+
/** Display title for the tab. */
|
|
1990
|
+
title: string;
|
|
1991
|
+
}
|
|
1992
|
+
/** Optional tabs. 2+ entries renders a tab bar; 0-1 entries renders a plain group header. Tiles join a tab via tabId. */
|
|
1993
|
+
export type ClickStackDashboardContainerTabsList = Array<ClickStackDashboardContainerTab>;
|
|
1994
|
+
export interface ClickStackDashboardContainer {
|
|
1995
|
+
/** Unique identifier for the container within the dashboard. */
|
|
1996
|
+
id: string;
|
|
1997
|
+
/** Display title for the container. */
|
|
1998
|
+
title: string;
|
|
1999
|
+
/** Persisted default collapse state. Per-viewer state lives in the URL. */
|
|
2000
|
+
collapsed: boolean;
|
|
2001
|
+
/** Whether the user can collapse the group. */
|
|
2002
|
+
collapsible?: boolean | undefined;
|
|
2003
|
+
/** Whether to show a visual border around the group. */
|
|
2004
|
+
bordered?: boolean | undefined;
|
|
2005
|
+
/** Optional tabs. 2+ entries renders a tab bar; 0-1 entries renders a plain group header. Tiles join a tab via tabId. */
|
|
2006
|
+
tabs?: ClickStackDashboardContainerTabsList | undefined;
|
|
2007
|
+
}
|
|
2008
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
2009
|
+
export type CreateClickStackDashboardRequestContainersList = Array<ClickStackDashboardContainer>;
|
|
2010
|
+
export interface CreateClickStackDashboardRequest {
|
|
2011
|
+
/** ID of the organization that owns the service. */
|
|
2012
|
+
organizationId: string;
|
|
2013
|
+
/** ID of the ClickStack service. */
|
|
2014
|
+
serviceId: string;
|
|
2015
|
+
/** Dashboard name. */
|
|
2016
|
+
name: string;
|
|
2017
|
+
/** List of tiles/charts to include in the dashboard. */
|
|
2018
|
+
tiles: CreateClickStackDashboardRequestTilesList;
|
|
2019
|
+
/** Tags for organizing and filtering dashboards. */
|
|
2020
|
+
tags?: CreateClickStackDashboardRequestTagsList | undefined;
|
|
2021
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
2022
|
+
filters?: CreateClickStackDashboardRequestFiltersList | undefined;
|
|
2023
|
+
/** Optional default dashboard query to persist on the dashboard. */
|
|
2024
|
+
savedQuery?: string | null | undefined;
|
|
2025
|
+
/** Query language used by savedQuery. */
|
|
2026
|
+
savedQueryLanguage?: CreateClickStackDashboardRequestSavedQueryLanguage | (string & {}) | null | undefined;
|
|
2027
|
+
/** Optional default dashboard filter values to persist on the dashboard. */
|
|
2028
|
+
savedFilterValues?: CreateClickStackDashboardRequestSavedFilterValuesList | undefined;
|
|
2029
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
2030
|
+
containers?: CreateClickStackDashboardRequestContainersList | undefined;
|
|
2031
|
+
}
|
|
2032
|
+
export interface ClickStackTileOutput {
|
|
2033
|
+
/** Display name for the tile */
|
|
2034
|
+
name: string;
|
|
2035
|
+
/** Horizontal position in the grid (0-based) */
|
|
2036
|
+
x: number;
|
|
2037
|
+
/** Vertical position in the grid (0-based) */
|
|
2038
|
+
y: number;
|
|
2039
|
+
/** Width in grid units */
|
|
2040
|
+
w: number;
|
|
2041
|
+
/** Height in grid units */
|
|
2042
|
+
h: number;
|
|
2043
|
+
config?: ClickStackTileConfig | undefined;
|
|
2044
|
+
/** References a DashboardContainer by id. Tiles without containerId render in the default ungrouped area. */
|
|
2045
|
+
containerId?: string | undefined;
|
|
2046
|
+
/** References a tab inside the tile's container by id. Requires containerId to be set, and the container to declare a matching tab. */
|
|
2047
|
+
tabId?: string | undefined;
|
|
2048
|
+
/** Short explanation of the tile, shown as a tooltip next to its name. */
|
|
2049
|
+
description?: string | undefined;
|
|
2050
|
+
/** Unique tile ID assigned by the server. */
|
|
2051
|
+
id: string;
|
|
2052
|
+
}
|
|
2053
|
+
/** List of tiles/charts in the dashboard */
|
|
2054
|
+
export type ClickStackDashboardResponseTilesList = Array<ClickStackTileOutput>;
|
|
2055
|
+
/** Tags for organizing and filtering dashboards */
|
|
2056
|
+
export type ClickStackDashboardResponseTagsList = Array<string>;
|
|
2057
|
+
/** Filter type discriminator. Must be "QUERY_EXPRESSION". */
|
|
2058
|
+
export type ClickStackQueryExpressionFilterType = "QUERY_EXPRESSION";
|
|
2059
|
+
/** Metric type when source is metrics */
|
|
2060
|
+
export type ClickStackQueryExpressionFilterSourceMetricType = "sum" | "gauge" | "histogram" | "summary" | "exponential histogram";
|
|
2061
|
+
/** Language of the where condition */
|
|
2062
|
+
export type ClickStackQueryExpressionFilterWhereLanguage = "sql" | "lucene";
|
|
2063
|
+
/** Optional list of source IDs this filter applies to. Omit or provide an empty array to apply the filter to ALL tiles regardless of source. A non-empty array restricts the filter to only tiles whose source ID is in the list; tiles using other sources are not affected by the selected filter value(s). Scopes the broadcast condition only, so a non-empty array is rejected when isBroadcastEnabled is false, and is omitted from responses for such a filter. */
|
|
2064
|
+
export type ClickStackQueryExpressionFilterAppliesToSourceIdsList = Array<string>;
|
|
2065
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2066
|
+
export type ClickStackQueryExpressionFilterMinSelections = 0 | 1;
|
|
2067
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2068
|
+
export type ClickStackQueryExpressionFilterMaxSelections = 1;
|
|
2069
|
+
export interface ClickStackQueryExpressionFilter {
|
|
2070
|
+
/** Filter type discriminator. Must be "QUERY_EXPRESSION". */
|
|
2071
|
+
type: ClickStackQueryExpressionFilterType;
|
|
2072
|
+
/** Display name for the dashboard filter key */
|
|
2073
|
+
name: string;
|
|
2074
|
+
/** SQL expression used when querying values for this filter, and when applying this dashboard filter to tiles. */
|
|
2075
|
+
expression: string;
|
|
2076
|
+
/** Source ID this dashboard filter key applies to, or `$name` of a DATA_SOURCE filter on the dashboard */
|
|
2077
|
+
sourceId: string;
|
|
2078
|
+
/** Metric type when source is metrics */
|
|
2079
|
+
sourceMetricType?: ClickStackQueryExpressionFilterSourceMetricType | (string & {}) | undefined;
|
|
2080
|
+
/** Optional WHERE condition to scope which rows this filter key reads values from */
|
|
2081
|
+
where?: string | undefined;
|
|
2082
|
+
/** Language of the where condition */
|
|
2083
|
+
whereLanguage?: ClickStackQueryExpressionFilterWhereLanguage | (string & {}) | undefined;
|
|
2084
|
+
/** Optional list of source IDs this filter applies to. Omit or provide an empty array to apply the filter to ALL tiles regardless of source. A non-empty array restricts the filter to only tiles whose source ID is in the list; tiles using other sources are not affected by the selected filter value(s). Scopes the broadcast condition only, so a non-empty array is rejected when isBroadcastEnabled is false, and is omitted from responses for such a filter. */
|
|
2085
|
+
appliesToSourceIds?: ClickStackQueryExpressionFilterAppliesToSourceIdsList | undefined;
|
|
2086
|
+
/** Whether the selected value is applied as a filter condition on every builder tile this filter applies to (see appliesToSourceIds), and every raw sql tile using the $__filters macro. Omitting the field means enabled. */
|
|
2087
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2088
|
+
/** Whether the selected value is exposed to tile queries as a dashboard variable named by variableName. Tiles may reference it as `$variableName` or using the (preferred) `$__filter($<variableName>)` and `$__conditionalAll(<condition>, $<variableName>)` macros. */
|
|
2089
|
+
isVariableEnabled?: boolean | undefined;
|
|
2090
|
+
/** Token tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed, so a variable-enabled filter whose name derives nothing usable must send this field explicitly. Variable names must be unique across a dashboard's variable-enabled filters. Names the variable only, so the field is rejected when isVariableEnabled is not true, and is omitted from responses for such a filter. */
|
|
2091
|
+
variableName?: string | undefined;
|
|
2092
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2093
|
+
minSelections?: ClickStackQueryExpressionFilterMinSelections | (number & {}) | undefined;
|
|
2094
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
2095
|
+
isGlobalRequirement?: boolean | undefined;
|
|
2096
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2097
|
+
maxSelections?: ClickStackQueryExpressionFilterMaxSelections | (number & {}) | undefined;
|
|
2098
|
+
/** Unique dashboard filter key ID */
|
|
2099
|
+
id: string;
|
|
2100
|
+
}
|
|
2101
|
+
/** Discriminator. Must be "STATIC_LIST". */
|
|
2102
|
+
export type ClickStackStaticListFilterType = "STATIC_LIST";
|
|
2103
|
+
/** The values this filter's dropdown offers. Must be non-empty and free of duplicates. */
|
|
2104
|
+
export type ClickStackStaticListFilterOptionsList = Array<string>;
|
|
2105
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2106
|
+
export type ClickStackStaticListFilterMinSelections = 0 | 1;
|
|
2107
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2108
|
+
export type ClickStackStaticListFilterMaxSelections = 1;
|
|
2109
|
+
export interface ClickStackStaticListFilter {
|
|
2110
|
+
/** Discriminator. Must be "STATIC_LIST". */
|
|
2111
|
+
type: ClickStackStaticListFilterType;
|
|
2112
|
+
/** Display name for the dashboard filter key */
|
|
2113
|
+
name: string;
|
|
2114
|
+
/** The values this filter's dropdown offers. Must be non-empty and free of duplicates. */
|
|
2115
|
+
options: ClickStackStaticListFilterOptionsList;
|
|
2116
|
+
/** Must be false -- there is no expression to broadcast. Omit it and it is false. Allowed values: false. */
|
|
2117
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2118
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`, or with the `$__filter(<expression>, $<variableName>)` and `$__conditionalAll(<condition>, $<variableName>)` macros. The one-argument `$__filter($<variableName>)` form renders the filter's own expression, which this kind of filter does not have, so it reports that the expression must be passed explicitly. Allowed values: true. */
|
|
2119
|
+
isVariableEnabled?: boolean | undefined;
|
|
2120
|
+
/** Token tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed, so a variable-enabled filter whose name derives nothing usable must send this field explicitly. Variable names must be unique across a dashboard's variable-enabled filters. Names the variable only, so the field is rejected when isVariableEnabled is not true, and is omitted from responses for such a filter. */
|
|
2121
|
+
variableName?: string | undefined;
|
|
2122
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2123
|
+
minSelections?: ClickStackStaticListFilterMinSelections | (number & {}) | undefined;
|
|
2124
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
2125
|
+
isGlobalRequirement?: boolean | undefined;
|
|
2126
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2127
|
+
maxSelections?: ClickStackStaticListFilterMaxSelections | (number & {}) | undefined;
|
|
2128
|
+
/** Unique dashboard filter key ID */
|
|
2129
|
+
id: string;
|
|
2130
|
+
}
|
|
2131
|
+
/** Discriminator. Must be "PROMETHEUS_LABEL". */
|
|
2132
|
+
export type ClickStackPrometheusLabelFilterType = "PROMETHEUS_LABEL";
|
|
2133
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2134
|
+
export type ClickStackPrometheusLabelFilterMinSelections = 0 | 1;
|
|
2135
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2136
|
+
export type ClickStackPrometheusLabelFilterMaxSelections = 1;
|
|
2137
|
+
export interface ClickStackPrometheusLabelFilter {
|
|
2138
|
+
/** Discriminator. Must be "PROMETHEUS_LABEL". */
|
|
2139
|
+
type: ClickStackPrometheusLabelFilterType;
|
|
2140
|
+
/** Display name for the dashboard filter */
|
|
2141
|
+
name: string;
|
|
2142
|
+
/** Id of the PromQL source the label values are read from. */
|
|
2143
|
+
sourceId: string;
|
|
2144
|
+
/** Label whose values populate the dropdown. Use "__name__" to list metric names. */
|
|
2145
|
+
label: string;
|
|
2146
|
+
/** Optional Prometheus series selector narrowing which series the label values are read from. */
|
|
2147
|
+
match?: string | undefined;
|
|
2148
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
2149
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2150
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`. Allowed values: true. */
|
|
2151
|
+
isVariableEnabled?: boolean | undefined;
|
|
2152
|
+
/** Token that tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Variable names must be unique across a dashboard's variable-enabled filters. */
|
|
2153
|
+
variableName?: string | undefined;
|
|
2154
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2155
|
+
minSelections?: ClickStackPrometheusLabelFilterMinSelections | (number & {}) | undefined;
|
|
2156
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
2157
|
+
isGlobalRequirement?: boolean | undefined;
|
|
2158
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2159
|
+
maxSelections?: ClickStackPrometheusLabelFilterMaxSelections | (number & {}) | undefined;
|
|
2160
|
+
/** Unique dashboard filter key ID */
|
|
2161
|
+
id: string;
|
|
2162
|
+
}
|
|
2163
|
+
/** Discriminator. Must be "SOURCE_FILTER". */
|
|
2164
|
+
export type ClickStackSourceFilterType = "SOURCE_FILTER";
|
|
2165
|
+
/** Optional list of source IDs this filter broadcasts to. Omit or provide an empty array to apply the selection to ALL tiles regardless of source; a non-empty array restricts it to tiles whose source ID is in the list. */
|
|
2166
|
+
export type ClickStackSourceFilterAppliesToSourceIdsList = Array<string>;
|
|
2167
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2168
|
+
export type ClickStackSourceFilterMinSelections = 0 | 1;
|
|
2169
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2170
|
+
export type ClickStackSourceFilterMaxSelections = 1;
|
|
2171
|
+
export interface ClickStackSourceFilter {
|
|
2172
|
+
/** Discriminator. Must be "SOURCE_FILTER". */
|
|
2173
|
+
type: ClickStackSourceFilterType;
|
|
2174
|
+
/** Display name for the dashboard filter */
|
|
2175
|
+
name: string;
|
|
2176
|
+
/** Id of the source whose filterSettings declares this column. Read filterSettings from GET /api/v2/sources to see which columns a source declares. */
|
|
2177
|
+
sourceId: string;
|
|
2178
|
+
/** Column this filter selects values for. Must match one of the source's filterSettings.columns[].name values, and is the expression the selection is broadcast on. */
|
|
2179
|
+
expression: string;
|
|
2180
|
+
/** Optional list of source IDs this filter broadcasts to. Omit or provide an empty array to apply the selection to ALL tiles regardless of source; a non-empty array restricts it to tiles whose source ID is in the list. */
|
|
2181
|
+
appliesToSourceIds?: ClickStackSourceFilterAppliesToSourceIdsList | undefined;
|
|
2182
|
+
/** Must be true if provided, and is true when omitted -- a source filter should always broadcast to at least its own source. Allowed values: true. */
|
|
2183
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2184
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`. Allowed values: true. */
|
|
2185
|
+
isVariableEnabled?: boolean | undefined;
|
|
2186
|
+
/** Token that tiles reference this filter's selected value by, as `$variableName`. Must start with a letter and may contain only letters, numbers, and underscores. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Variable names must be unique across a dashboard's variable-enabled filters. */
|
|
2187
|
+
variableName: string;
|
|
2188
|
+
/** Minimum number of values that must be selected before tiles load. Set to 1 to make the filter required. Only 0 and 1 are accepted. Omit the field (or send 0) for the default optional behavior. */
|
|
2189
|
+
minSelections?: ClickStackSourceFilterMinSelections | (number & {}) | undefined;
|
|
2190
|
+
/** Widens a required filter's block to every tile on the dashboard. False (the default) blocks only the tiles that read the filter: those referencing its variableName, and those its broadcast applies to. Ignored unless minSelections is 1. */
|
|
2191
|
+
isGlobalRequirement?: boolean | undefined;
|
|
2192
|
+
/** Maximum number of values that can be selected at once. Set to 1 to make the filter single-select. Omit the field for the default multi-select behavior. */
|
|
2193
|
+
maxSelections?: ClickStackSourceFilterMaxSelections | (number & {}) | undefined;
|
|
2194
|
+
/** Unique dashboard filter key ID */
|
|
2195
|
+
id: string;
|
|
2196
|
+
}
|
|
2197
|
+
/** Filter type discriminator. Must be "DATA_SOURCE". */
|
|
2198
|
+
export type ClickStackDataSourceFilterType = "DATA_SOURCE";
|
|
2199
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
2200
|
+
export type ClickStackDataSourceFilterMinSelections = 1;
|
|
2201
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
2202
|
+
export type ClickStackDataSourceFilterMaxSelections = 1;
|
|
2203
|
+
/** Kinds of sources offered. A field can reference the variable if it accepts at least one listed kind. A tile whose selected source is a kind it cannot use shows an error instead of running. */
|
|
2204
|
+
export type ClickStackDataSourceFilterAllowedSourceKindsList = Array<string>;
|
|
2205
|
+
export interface ClickStackDataSourceFilter {
|
|
2206
|
+
/** Filter type discriminator. Must be "DATA_SOURCE". */
|
|
2207
|
+
type: ClickStackDataSourceFilterType;
|
|
2208
|
+
/** Display name of the variable's dropdown */
|
|
2209
|
+
name: string;
|
|
2210
|
+
/** Token tiles and filters reference the selected source by, as `$variableName`. */
|
|
2211
|
+
variableName?: string | undefined;
|
|
2212
|
+
/** Blocks every tile on the dashboard until a value is selected. False (the default) blocks only the tiles that reference the variable. */
|
|
2213
|
+
isGlobalRequirement?: boolean | undefined;
|
|
2214
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
2215
|
+
minSelections?: ClickStackDataSourceFilterMinSelections | (number & {}) | undefined;
|
|
2216
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
2217
|
+
maxSelections?: ClickStackDataSourceFilterMaxSelections | (number & {}) | undefined;
|
|
2218
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
2219
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2220
|
+
/** Must be true if provided, and is true when omitted. Allowed values: true. */
|
|
2221
|
+
isVariableEnabled?: boolean | undefined;
|
|
2222
|
+
/** Kinds of sources offered. A field can reference the variable if it accepts at least one listed kind. A tile whose selected source is a kind it cannot use shows an error instead of running. */
|
|
2223
|
+
allowedSourceKinds: ClickStackDataSourceFilterAllowedSourceKindsList;
|
|
2224
|
+
/** Optional connection the offered sources are limited to: a connection ID, or `$name` of a CONNECTION filter on the dashboard. */
|
|
2225
|
+
connectionId?: string | undefined;
|
|
2226
|
+
/** Unique dashboard filter key ID */
|
|
2227
|
+
id: string;
|
|
2228
|
+
}
|
|
2229
|
+
/** Filter type discriminator. Must be "CONNECTION". */
|
|
2230
|
+
export type ClickStackConnectionFilterType = "CONNECTION";
|
|
2231
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
2232
|
+
export type ClickStackConnectionFilterMinSelections = 1;
|
|
2233
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
2234
|
+
export type ClickStackConnectionFilterMaxSelections = 1;
|
|
2235
|
+
export interface ClickStackConnectionFilter {
|
|
2236
|
+
/** Filter type discriminator. Must be "CONNECTION". */
|
|
2237
|
+
type: ClickStackConnectionFilterType;
|
|
2238
|
+
/** Display name of the variable's dropdown */
|
|
2239
|
+
name: string;
|
|
2240
|
+
/** Token raw SQL tiles reference the selected connection by, as `$variableName`. */
|
|
2241
|
+
variableName?: string | undefined;
|
|
2242
|
+
/** Blocks every tile on the dashboard until a value is selected. False (the default) blocks only the tiles that reference the variable. */
|
|
2243
|
+
isGlobalRequirement?: boolean | undefined;
|
|
2244
|
+
/** Must be 1 if provided. The variable always requires a selection. */
|
|
2245
|
+
minSelections?: ClickStackConnectionFilterMinSelections | (number & {}) | undefined;
|
|
2246
|
+
/** Must be 1 if provided. The variable is always single-select. */
|
|
2247
|
+
maxSelections?: ClickStackConnectionFilterMaxSelections | (number & {}) | undefined;
|
|
2248
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
2249
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2250
|
+
/** Must be true if provided, and is true when omitted. Allowed values: true. */
|
|
2251
|
+
isVariableEnabled?: boolean | undefined;
|
|
2252
|
+
/** Unique dashboard filter key ID */
|
|
2253
|
+
id: string;
|
|
2254
|
+
}
|
|
2255
|
+
/** Discriminator. Must be "SQL_QUERY". */
|
|
2256
|
+
export type ClickStackSqlQueryFilterType = "SQL_QUERY";
|
|
2257
|
+
/** Set to 1 to make the filter required. */
|
|
2258
|
+
export type ClickStackSqlQueryFilterMinSelections = 0 | 1;
|
|
2259
|
+
/** Set to 1 to make the filter single-select. */
|
|
2260
|
+
export type ClickStackSqlQueryFilterMaxSelections = 1;
|
|
2261
|
+
export interface ClickStackSqlQueryFilter {
|
|
2262
|
+
/** Discriminator. Must be "SQL_QUERY". */
|
|
2263
|
+
type: ClickStackSqlQueryFilterType;
|
|
2264
|
+
/** Display name for the dashboard filter */
|
|
2265
|
+
name: string;
|
|
2266
|
+
/** ClickHouse connection the query runs on: a connection ID, or `$name` of a CONNECTION filter on the dashboard. */
|
|
2267
|
+
connectionId: string;
|
|
2268
|
+
/** Optional Log, Trace, Session, or Metric source on the same connection, or `$name` of a DATA_SOURCE filter on this dashboard. Lets `sqlTemplate` use `$__sourceTable` and `$__filters`. */
|
|
2269
|
+
sourceId?: string | undefined;
|
|
2270
|
+
/** Query whose first column populates the dropdown. May use the time macros and other filters' variables. `$__sourceTable` and `$__filters` need a `sourceId`; `$__filters` expands to the dashboard's broadcast filter selections for that source. */
|
|
2271
|
+
sqlTemplate: string;
|
|
2272
|
+
/** Must be false or omitted. Allowed values: false. */
|
|
2273
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2274
|
+
/** Must be true if provided, and is true when omitted. Tiles reference the selection as `$variableName`. Allowed values: true. */
|
|
2275
|
+
isVariableEnabled?: boolean | undefined;
|
|
2276
|
+
/** Token that tiles reference this filter's selected value by, as `$variableName`. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Must be unique across a dashboard's variable-enabled filters. */
|
|
2277
|
+
variableName?: string | undefined;
|
|
2278
|
+
/** Set to 1 to make the filter required. */
|
|
2279
|
+
minSelections?: ClickStackSqlQueryFilterMinSelections | (number & {}) | undefined;
|
|
2280
|
+
/** Widens a required filter's block to every tile on the dashboard. Ignored unless minSelections is 1. */
|
|
2281
|
+
isGlobalRequirement?: boolean | undefined;
|
|
2282
|
+
/** Set to 1 to make the filter single-select. */
|
|
2283
|
+
maxSelections?: ClickStackSqlQueryFilterMaxSelections | (number & {}) | undefined;
|
|
2284
|
+
/** Unique dashboard filter key ID */
|
|
2285
|
+
id: string;
|
|
2286
|
+
}
|
|
2287
|
+
/** Discriminator. Must be "ADHOC". */
|
|
2288
|
+
export type ClickStackAdhocFilterType = "ADHOC";
|
|
2289
|
+
/** IDs of the sources whose keys and values the filter suggests, all of sourceType, or `$name` of data source variables. */
|
|
2290
|
+
export type ClickStackAdhocFilterSourcesList = Array<string>;
|
|
2291
|
+
/** IDs of the sources whose tiles the conditions apply to, all of sourceType, or `$name` of data source variables. Omit or send an empty array to apply to the tiles of the filter's sources. */
|
|
2292
|
+
export type ClickStackAdhocFilterAppliesToSourceIdsList = Array<string>;
|
|
2293
|
+
export interface ClickStackAdhocFilter {
|
|
2294
|
+
/** Discriminator. Must be "ADHOC". */
|
|
2295
|
+
type: ClickStackAdhocFilterType;
|
|
2296
|
+
/** Display name for the dashboard filter */
|
|
2297
|
+
name: string;
|
|
2298
|
+
/** The kind of sources the filter reads keys from and applies to: Log, Trace, or Session sources for sql, PromQL sources for promql. Allowed values: 'sql', 'promql'. */
|
|
2299
|
+
sourceType: string;
|
|
2300
|
+
/** IDs of the sources whose keys and values the filter suggests, all of sourceType, or `$name` of data source variables. */
|
|
2301
|
+
sources: ClickStackAdhocFilterSourcesList;
|
|
2302
|
+
/** Optional condition narrowing the rows keys and values are suggested from. Never applied to tiles. May reference the dashboard's variables. sql filters only: rejected when sourceType is promql. */
|
|
2303
|
+
where?: string | undefined;
|
|
2304
|
+
/** Language of the where condition. Rejected when sourceType is promql. Allowed values: 'sql', 'lucene'. */
|
|
2305
|
+
whereLanguage?: string | undefined;
|
|
2306
|
+
/** IDs of the sources whose tiles the conditions apply to, all of sourceType, or `$name` of data source variables. Omit or send an empty array to apply to the tiles of the filter's sources. */
|
|
2307
|
+
appliesToSourceIds?: ClickStackAdhocFilterAppliesToSourceIdsList | undefined;
|
|
2308
|
+
/** Must be true or omitted. Allowed values: true. */
|
|
2309
|
+
isBroadcastEnabled?: boolean | undefined;
|
|
2310
|
+
/** Must be true or omitted. Allowed values: true. */
|
|
2311
|
+
isVariableEnabled?: boolean | undefined;
|
|
2312
|
+
/** Unique name the filter's conditions are saved under, in savedFilterValues and the dashboard URL. Tiles can't reference it as a variable. Defaults to the display name with whitespace replaced by underscores and remaining illegal characters removed. Must be unique across a dashboard's variable-enabled filters. */
|
|
2313
|
+
variableName?: string | undefined;
|
|
2314
|
+
/** Unique dashboard filter key ID */
|
|
2315
|
+
id: string;
|
|
2316
|
+
}
|
|
2317
|
+
export type ClickStackFilter = ClickStackQueryExpressionFilter | ClickStackStaticListFilter | ClickStackPrometheusLabelFilter | ClickStackSourceFilter | ClickStackDataSourceFilter | ClickStackConnectionFilter | ClickStackSqlQueryFilter | ClickStackAdhocFilter;
|
|
2318
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
2319
|
+
export type ClickStackDashboardResponseFiltersList = Array<ClickStackFilter>;
|
|
2320
|
+
/** Query language used by savedQuery. */
|
|
2321
|
+
export type ClickStackDashboardResponseSavedQueryLanguage = "sql" | "lucene";
|
|
2322
|
+
/** Optional default dashboard filter values restored when loading the dashboard. */
|
|
2323
|
+
export type ClickStackDashboardResponseSavedFilterValuesList = Array<ClickStackSavedFilterValue>;
|
|
2324
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
2325
|
+
export type ClickStackDashboardResponseContainersList = Array<ClickStackDashboardContainer>;
|
|
2326
|
+
export interface ClickStackDashboardResponse {
|
|
2327
|
+
/** Dashboard ID */
|
|
2328
|
+
id?: string | undefined;
|
|
2329
|
+
/** Dashboard name */
|
|
2330
|
+
name?: string | undefined;
|
|
2331
|
+
/** List of tiles/charts in the dashboard */
|
|
2332
|
+
tiles?: ClickStackDashboardResponseTilesList | undefined;
|
|
2333
|
+
/** Tags for organizing and filtering dashboards */
|
|
2334
|
+
tags?: ClickStackDashboardResponseTagsList | undefined;
|
|
2335
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
2336
|
+
filters?: ClickStackDashboardResponseFiltersList | undefined;
|
|
2337
|
+
/** Optional default dashboard query restored when loading the dashboard. */
|
|
2338
|
+
savedQuery?: string | null | undefined;
|
|
2339
|
+
/** Query language used by savedQuery. */
|
|
2340
|
+
savedQueryLanguage?: ClickStackDashboardResponseSavedQueryLanguage | null | undefined;
|
|
2341
|
+
/** Optional default dashboard filter values restored when loading the dashboard. */
|
|
2342
|
+
savedFilterValues?: ClickStackDashboardResponseSavedFilterValuesList | undefined;
|
|
2343
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
2344
|
+
containers?: ClickStackDashboardResponseContainersList | undefined;
|
|
2345
|
+
}
|
|
2346
|
+
/** The action this permission grants or denies. */
|
|
2347
|
+
export type ClickStackMongoDBCASLPermissionAction = "create" | "read" | "update" | "delete" | "manage";
|
|
2348
|
+
/** The resource the action applies to. */
|
|
2349
|
+
export type ClickStackMongoDBCASLPermissionSubject = "Alert" | "Connection" | "Dashboard" | "SavedSearch" | "Source" | "Team" | "User" | "Webhook" | "Role" | "Notebook" | "SchemaMigration" | "App" | "all";
|
|
2350
|
+
/** Optional CASL field restriction limiting the rule to specific fields. */
|
|
2351
|
+
export type ClickStackMongoDBCASLPermissionFieldsList = Array<string>;
|
|
2352
|
+
/** Scopes the permission to the application (MongoDB) data plane. */
|
|
2353
|
+
export type ClickStackMongoDBCASLPermissionIntegration = "mongodb";
|
|
2354
|
+
export interface ClickStackMongoDBCASLRegexCondition {
|
|
2355
|
+
_regex: string;
|
|
2356
|
+
_options?: string | undefined;
|
|
2357
|
+
}
|
|
2358
|
+
export type ClickStackMongoDBCASLPermissionConditionsValue = string | ClickStackMongoDBCASLRegexCondition;
|
|
2359
|
+
export type ClickStackMongoDBCASLPermissionConditions = {
|
|
2360
|
+
[key: string]: ClickStackMongoDBCASLPermissionConditionsValue | undefined;
|
|
2361
|
+
};
|
|
2362
|
+
export interface ClickStackMongoDBCASLPermission {
|
|
2363
|
+
/** The action this permission grants or denies. */
|
|
2364
|
+
action: ClickStackMongoDBCASLPermissionAction | (string & {});
|
|
2365
|
+
/** The resource the action applies to. */
|
|
2366
|
+
subject: ClickStackMongoDBCASLPermissionSubject | (string & {});
|
|
2367
|
+
/** Optional CASL field restriction limiting the rule to specific fields. */
|
|
2368
|
+
fields?: ClickStackMongoDBCASLPermissionFieldsList | undefined;
|
|
2369
|
+
/** When true, the rule denies rather than grants the action. */
|
|
2370
|
+
inverted?: boolean | undefined;
|
|
2371
|
+
/** Scopes the permission to the application (MongoDB) data plane. */
|
|
2372
|
+
integration: ClickStackMongoDBCASLPermissionIntegration;
|
|
2373
|
+
conditions?: ClickStackMongoDBCASLPermissionConditions | undefined;
|
|
2374
|
+
}
|
|
2375
|
+
/** The action this permission grants or denies. */
|
|
2376
|
+
export type ClickStackClickHouseCASLPermissionAction = "create" | "read" | "update" | "delete" | "manage";
|
|
2377
|
+
/** The resource the action applies to. */
|
|
2378
|
+
export type ClickStackClickHouseCASLPermissionSubject = "Alert" | "Connection" | "Dashboard" | "SavedSearch" | "Source" | "Team" | "User" | "Webhook" | "Role" | "Notebook" | "SchemaMigration" | "App" | "all";
|
|
2379
|
+
/** Optional CASL field restriction limiting the rule to specific fields. */
|
|
2380
|
+
export type ClickStackClickHouseCASLPermissionFieldsList = Array<string>;
|
|
2381
|
+
/** Scopes the permission to the ClickHouse data plane (row-level access). */
|
|
2382
|
+
export type ClickStackClickHouseCASLPermissionIntegration = "clickhouse";
|
|
2383
|
+
export interface ClickStackClickHouseCASLPermissionConditionsFrom {
|
|
2384
|
+
databaseName: string;
|
|
2385
|
+
tableName: string;
|
|
2386
|
+
}
|
|
2387
|
+
export type ClickStackClickHouseCASLPermissionConditionsWhereLanguage = "sql" | "lucene";
|
|
2388
|
+
export interface ClickStackClickHouseCASLPermissionConditions {
|
|
2389
|
+
/** ID of the connection the row policy applies to. */
|
|
2390
|
+
connection: string;
|
|
2391
|
+
from: ClickStackClickHouseCASLPermissionConditionsFrom;
|
|
2392
|
+
/** The row-policy predicate, expressed in `whereLanguage`. */
|
|
2393
|
+
where: string;
|
|
2394
|
+
whereLanguage: ClickStackClickHouseCASLPermissionConditionsWhereLanguage | (string & {});
|
|
2395
|
+
}
|
|
2396
|
+
export interface ClickStackClickHouseCASLPermission {
|
|
2397
|
+
/** The action this permission grants or denies. */
|
|
2398
|
+
action: ClickStackClickHouseCASLPermissionAction | (string & {});
|
|
2399
|
+
/** The resource the action applies to. */
|
|
2400
|
+
subject: ClickStackClickHouseCASLPermissionSubject | (string & {});
|
|
2401
|
+
/** Optional CASL field restriction limiting the rule to specific fields. */
|
|
2402
|
+
fields?: ClickStackClickHouseCASLPermissionFieldsList | undefined;
|
|
2403
|
+
/** When true, the rule denies rather than grants the action. */
|
|
2404
|
+
inverted?: boolean | undefined;
|
|
2405
|
+
/** Scopes the permission to the ClickHouse data plane (row-level access). */
|
|
2406
|
+
integration: ClickStackClickHouseCASLPermissionIntegration;
|
|
2407
|
+
conditions?: ClickStackClickHouseCASLPermissionConditions | undefined;
|
|
2408
|
+
}
|
|
2409
|
+
export type ClickStackCASLPermission = ClickStackMongoDBCASLPermission | ClickStackClickHouseCASLPermission;
|
|
2410
|
+
/** The CASL permissions to grant to the role. */
|
|
2411
|
+
export type CreateClickStackRoleRequestPermissionsList = Array<ClickStackCASLPermission>;
|
|
2412
|
+
export interface CreateClickStackRoleRequest {
|
|
2413
|
+
/** ID of the organization that owns the service. */
|
|
2414
|
+
organizationId: string;
|
|
2415
|
+
/** ID of the ClickStack service. */
|
|
2416
|
+
serviceId: string;
|
|
2417
|
+
/** Role name. Must be unique within the team and not collide with a predefined role. */
|
|
2418
|
+
name: string;
|
|
2419
|
+
/** Human-readable role description. */
|
|
2420
|
+
description?: string | undefined;
|
|
2421
|
+
/** The CASL permissions to grant to the role. */
|
|
2422
|
+
permissions: CreateClickStackRoleRequestPermissionsList;
|
|
2423
|
+
}
|
|
2424
|
+
/** The CASL permissions granted by this role. */
|
|
2425
|
+
export type ClickStackRolePermissionsList = Array<ClickStackCASLPermission>;
|
|
2426
|
+
export interface ClickStackRole {
|
|
2427
|
+
/** Role ID. */
|
|
2428
|
+
id: string;
|
|
2429
|
+
/** Role name. */
|
|
2430
|
+
name: string;
|
|
2431
|
+
/** Human-readable role description. */
|
|
2432
|
+
description?: string | undefined;
|
|
2433
|
+
/** The CASL permissions granted by this role. */
|
|
2434
|
+
permissions: ClickStackRolePermissionsList;
|
|
2435
|
+
/** Whether this is an immutable predefined/system role. */
|
|
2436
|
+
isPredefined: boolean;
|
|
2437
|
+
/** Creation timestamp. */
|
|
2438
|
+
createdAt?: string | undefined;
|
|
2439
|
+
/** Last update timestamp. */
|
|
2440
|
+
updatedAt?: string | undefined;
|
|
2441
|
+
}
|
|
2442
|
+
/** Language used for the where filter. */
|
|
2443
|
+
export type CreateClickStackSavedSearchRequestWhereLanguage = "lucene" | "sql";
|
|
2444
|
+
/** Tags used to organize saved searches. */
|
|
2445
|
+
export type CreateClickStackSavedSearchRequestTagsList = Array<string>;
|
|
2446
|
+
/** Always `sql`. Only SQL predicate filters render in the sidebar. */
|
|
2447
|
+
export type ClickStackSavedSearchFilterType = "sql";
|
|
2448
|
+
export interface ClickStackSavedSearchFilter {
|
|
2449
|
+
/** Always `sql`. Only SQL predicate filters render in the sidebar. */
|
|
2450
|
+
type?: ClickStackSavedSearchFilterType | (string & {}) | undefined;
|
|
2451
|
+
/** SQL predicate applied to the search, in `<column> IN (...)` form. */
|
|
2452
|
+
condition: string;
|
|
2453
|
+
}
|
|
2454
|
+
/** Structured pinned filters applied to the search. */
|
|
2455
|
+
export type CreateClickStackSavedSearchRequestFiltersList = Array<ClickStackSavedSearchFilter>;
|
|
2456
|
+
export interface CreateClickStackSavedSearchRequest {
|
|
2457
|
+
/** ID of the organization that owns the service. */
|
|
2458
|
+
organizationId: string;
|
|
2459
|
+
/** ID of the ClickStack service. */
|
|
2460
|
+
serviceId: string;
|
|
2461
|
+
/** Display name for the saved search. */
|
|
2462
|
+
name: string;
|
|
2463
|
+
/** ID of the source to query. Must belong to the team. */
|
|
2464
|
+
sourceId: string;
|
|
2465
|
+
/** Comma-separated list of column expressions to display. Empty uses the source default. */
|
|
2466
|
+
select?: string | undefined;
|
|
2467
|
+
/** Row filter expression. The language is controlled by whereLanguage. */
|
|
2468
|
+
where?: string | undefined;
|
|
2469
|
+
/** Language used for the where filter. */
|
|
2470
|
+
whereLanguage?: CreateClickStackSavedSearchRequestWhereLanguage | (string & {}) | undefined;
|
|
2471
|
+
/** ORDER BY expression. Empty uses the source default. */
|
|
2472
|
+
orderBy?: string | undefined;
|
|
2473
|
+
/** Tags used to organize saved searches. */
|
|
2474
|
+
tags?: CreateClickStackSavedSearchRequestTagsList | undefined;
|
|
2475
|
+
/** Structured pinned filters applied to the search. */
|
|
2476
|
+
filters?: CreateClickStackSavedSearchRequestFiltersList | undefined;
|
|
2477
|
+
}
|
|
2478
|
+
/** Language used for the where filter. */
|
|
2479
|
+
export type ClickStackSavedSearchWhereLanguage = "lucene" | "sql";
|
|
2480
|
+
/** Tags used to organize saved searches. */
|
|
2481
|
+
export type ClickStackSavedSearchTagsList = Array<string>;
|
|
2482
|
+
/** Structured pinned filters applied to the search. */
|
|
2483
|
+
export type ClickStackSavedSearchFiltersList = Array<ClickStackSavedSearchFilter>;
|
|
2484
|
+
export interface ClickStackSavedSearch {
|
|
2485
|
+
/** Unique saved search ID. Server-generated. */
|
|
2486
|
+
id: string;
|
|
2487
|
+
/** Display name for the saved search. */
|
|
2488
|
+
name: string;
|
|
2489
|
+
/** ID of the source this saved search queries. */
|
|
2490
|
+
sourceId: string;
|
|
2491
|
+
/** Comma-separated list of column expressions to display. Empty uses the source default. */
|
|
2492
|
+
select?: string | undefined;
|
|
2493
|
+
/** Row filter expression. The language is controlled by whereLanguage. */
|
|
2494
|
+
where?: string | undefined;
|
|
2495
|
+
/** Language used for the where filter. */
|
|
2496
|
+
whereLanguage?: ClickStackSavedSearchWhereLanguage | undefined;
|
|
2497
|
+
/** ORDER BY expression. Empty uses the source default. */
|
|
2498
|
+
orderBy?: string | undefined;
|
|
2499
|
+
/** Tags used to organize saved searches. */
|
|
2500
|
+
tags?: ClickStackSavedSearchTagsList | undefined;
|
|
2501
|
+
/** Structured pinned filters applied to the search. */
|
|
2502
|
+
filters?: ClickStackSavedSearchFiltersList | undefined;
|
|
2503
|
+
/** ID of the team that owns the saved search. */
|
|
2504
|
+
teamId?: string | undefined;
|
|
2505
|
+
/** Creation timestamp. */
|
|
2506
|
+
createdAt?: string | undefined;
|
|
2507
|
+
/** Last update timestamp. */
|
|
2508
|
+
updatedAt?: string | undefined;
|
|
2509
|
+
}
|
|
2510
|
+
/** Source kind discriminator. Must be "log" for log sources. */
|
|
2511
|
+
export type ClickStackLogSourceKind = "log";
|
|
2512
|
+
export interface ClickStackSourceFrom {
|
|
2513
|
+
/** ClickHouse database name */
|
|
2514
|
+
databaseName: string;
|
|
2515
|
+
/** ClickHouse table name */
|
|
2516
|
+
tableName: string;
|
|
2517
|
+
}
|
|
2518
|
+
export interface ClickStackQuerySetting {
|
|
2519
|
+
/** ClickHouse setting name */
|
|
2520
|
+
setting: string;
|
|
2521
|
+
/** Setting value */
|
|
2522
|
+
value: string;
|
|
2523
|
+
}
|
|
2524
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2525
|
+
export type ClickStackLogSourceQuerySettingsList = Array<ClickStackQuerySetting>;
|
|
2526
|
+
export interface ClickStackFilterSettingsColumn {
|
|
2527
|
+
/** Column of the source's table that selected filter values are matched against. Also the key the selection is persisted under in links, saved searches, and dashboards. */
|
|
2528
|
+
name: string;
|
|
2529
|
+
/** Display label for the column */
|
|
2530
|
+
label: string;
|
|
2531
|
+
/** Optional SQL expression, evaluated against the filter-values table, that produces the available filter options. Use it when the options live in a differently-named column, or must be transformed to match the values stored in the source table. Defaults to reading `name` as a plain column when omitted. */
|
|
2532
|
+
valueExpression?: string | null | undefined;
|
|
2533
|
+
/** Whether to offer an "All" option that expands to every available value at query time. Best suited to low-cardinality columns. Defaults to false. */
|
|
2534
|
+
allowAll?: boolean | undefined;
|
|
2535
|
+
}
|
|
2536
|
+
/** Columns to expose as filters (max 10) */
|
|
2537
|
+
export type ClickStackSourceFilterSettingsColumnsList = Array<ClickStackFilterSettingsColumn>;
|
|
2538
|
+
export interface ClickStackSourceFilterSettings {
|
|
2539
|
+
/** ClickHouse database name */
|
|
2540
|
+
databaseName: string;
|
|
2541
|
+
/** ClickHouse table name */
|
|
2542
|
+
tableName: string;
|
|
2543
|
+
/** Columns to expose as filters (max 10) */
|
|
2544
|
+
columns: ClickStackSourceFilterSettingsColumnsList;
|
|
2545
|
+
}
|
|
2546
|
+
/** Controls whether lucene rendering uses ClickHouse text indices via hasAllTokens() against the implicit column. "auto" detects a covering index at query time, "enabled" forces text index usage, "disabled" forces a LIKE/hasToken fallback. */
|
|
2547
|
+
export type ClickStackLogSourceUseTextIndexForImplicitColumn = "auto" | "enabled" | "disabled";
|
|
2548
|
+
export interface ClickStackHighlightedAttributeExpression {
|
|
2549
|
+
/** SQL expression for the attribute */
|
|
2550
|
+
sqlExpression: string;
|
|
2551
|
+
/** An optional, Lucene version of the sqlExpression expression. If provided, it is used when searching for this attribute value. */
|
|
2552
|
+
luceneExpression?: string | null | undefined;
|
|
2553
|
+
/** Optional alias for the attribute */
|
|
2554
|
+
alias?: string | null | undefined;
|
|
2555
|
+
}
|
|
2556
|
+
/** Expressions defining trace-level attributes which are displayed in the trace view for the selected trace. */
|
|
2557
|
+
export type ClickStackLogSourceHighlightedTraceAttributeExpressionsList = Array<ClickStackHighlightedAttributeExpression>;
|
|
2558
|
+
/** Expressions defining row-level attributes which are displayed in the row side panel for the selected row. */
|
|
2559
|
+
export type ClickStackLogSourceHighlightedRowAttributeExpressionsList = Array<ClickStackHighlightedAttributeExpression>;
|
|
2560
|
+
export interface ClickStackAggregatedColumn {
|
|
2561
|
+
/** Source column name */
|
|
2562
|
+
sourceColumn?: string | null | undefined;
|
|
2563
|
+
/** Aggregation function (e.g., count, sum, avg) */
|
|
2564
|
+
aggFn: string;
|
|
2565
|
+
/** Materialized view column name */
|
|
2566
|
+
mvColumn: string;
|
|
2567
|
+
}
|
|
2568
|
+
/** Columns which are pre-aggregated by the materialized view */
|
|
2569
|
+
export type ClickStackMaterializedViewAggregatedColumnsList = Array<ClickStackAggregatedColumn>;
|
|
2570
|
+
export interface ClickStackMaterializedView {
|
|
2571
|
+
/** Database name for the materialized view */
|
|
2572
|
+
databaseName: string;
|
|
2573
|
+
/** Table name for the materialized view */
|
|
2574
|
+
tableName: string;
|
|
2575
|
+
/** Columns which are not pre-aggregated in the materialized view and can be used for filtering and grouping. */
|
|
2576
|
+
dimensionColumns: string;
|
|
2577
|
+
/** The granularity of the timestamp column: a positive integer followed by a unit (s, m, h, d). Common values: 1s, 15s, 30s, 1m, 5m, 15m, 30m, 1h, 2h, 6h, 12h, 1d, 2d, 7d, 30d. */
|
|
2578
|
+
minGranularity: string;
|
|
2579
|
+
/** (Optional) The earliest date and time for which the materialized view contains data. If not provided, then HyperDX will assume that the materialized view contains data for all dates for which the source table contains data. */
|
|
2580
|
+
minDate?: string | null | undefined;
|
|
2581
|
+
/** Timestamp column name */
|
|
2582
|
+
timestampColumn: string;
|
|
2583
|
+
/** Columns which are pre-aggregated by the materialized view */
|
|
2584
|
+
aggregatedColumns: ClickStackMaterializedViewAggregatedColumnsList;
|
|
2585
|
+
}
|
|
2586
|
+
/** Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries. */
|
|
2587
|
+
export type ClickStackLogSourceMaterializedViewsList = Array<ClickStackMaterializedView>;
|
|
2588
|
+
export interface ClickStackLogSourceMetadataMaterializedViews {
|
|
2589
|
+
/** ClickHouse table name for the key rollup (field discovery). */
|
|
2590
|
+
keyRollupTable?: string | undefined;
|
|
2591
|
+
/** ClickHouse table name for the key-value rollup (value autocomplete). */
|
|
2592
|
+
kvRollupTable?: string | undefined;
|
|
2593
|
+
/** The time granularity of the rollup tables. */
|
|
2594
|
+
granularity?: string | undefined;
|
|
2595
|
+
}
|
|
2596
|
+
export interface ClickStackLogSource {
|
|
2597
|
+
/** Unique source ID. Server-generated; ignored if sent in create/update requests. */
|
|
2598
|
+
id?: string | undefined;
|
|
2599
|
+
/** Display name for the source. */
|
|
2600
|
+
name: string;
|
|
2601
|
+
/** Optional grouping label used to organize sources in the source selector. Sources that share a section value are displayed together. */
|
|
2602
|
+
section?: string | undefined;
|
|
2603
|
+
/** When true, the source is hidden from source selectors in the UI. Defaults to false. */
|
|
2604
|
+
disabled?: boolean | null | undefined;
|
|
2605
|
+
/** Source kind discriminator. Must be "log" for log sources. */
|
|
2606
|
+
kind: ClickStackLogSourceKind;
|
|
2607
|
+
/** ID of the ClickHouse connection used by this source. */
|
|
2608
|
+
connection: string;
|
|
2609
|
+
from: ClickStackSourceFrom;
|
|
2610
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2611
|
+
querySettings?: ClickStackLogSourceQuerySettingsList | undefined;
|
|
2612
|
+
filterSettings?: ClickStackSourceFilterSettings | null | undefined;
|
|
2613
|
+
/** Default columns selected in search results (this can be customized per search later) */
|
|
2614
|
+
defaultTableSelectExpression: string;
|
|
2615
|
+
/** DateTime column or expression that is part of your table's primary key. */
|
|
2616
|
+
timestampValueExpression: string;
|
|
2617
|
+
/** Expression to extract the service name from log rows. */
|
|
2618
|
+
serviceNameExpression?: string | null | undefined;
|
|
2619
|
+
/** Expression identifying the running release of a service. Defaults to the OpenTelemetry service.version resource attribute when unset. Where services carry the release on different attributes, fall back across them with coalesce(nullIf(a, ''), nullIf(b, '')). */
|
|
2620
|
+
serviceVersionExpression?: string | null | undefined;
|
|
2621
|
+
/** Expression to extract the severity/log level text. */
|
|
2622
|
+
severityTextExpression?: string | null | undefined;
|
|
2623
|
+
/** Expression for the numeric OpenTelemetry SeverityNumber (1-24). */
|
|
2624
|
+
severityNumberExpression?: string | null | undefined;
|
|
2625
|
+
/** Expression to extract the log message body. */
|
|
2626
|
+
bodyExpression?: string | null | undefined;
|
|
2627
|
+
/** Expression for the OpenTelemetry log EventName. */
|
|
2628
|
+
eventNameExpression?: string | null | undefined;
|
|
2629
|
+
/** Expression to extract event-level attributes. */
|
|
2630
|
+
eventAttributesExpression?: string | null | undefined;
|
|
2631
|
+
/** Expression to extract resource-level attributes. */
|
|
2632
|
+
resourceAttributesExpression?: string | null | undefined;
|
|
2633
|
+
/** This DateTime column is used to display and order search results. */
|
|
2634
|
+
displayedTimestampValueExpression?: string | null | undefined;
|
|
2635
|
+
/** Custom ORDER BY expression that overrides the default ordering. Leave empty to use the auto-detected default. */
|
|
2636
|
+
orderByExpression?: string | undefined;
|
|
2637
|
+
/** HyperDX Source for metrics associated with logs. Optional */
|
|
2638
|
+
metricSourceId?: string | null | undefined;
|
|
2639
|
+
/** HyperDX Source for traces associated with logs. Optional */
|
|
2640
|
+
traceSourceId?: string | null | undefined;
|
|
2641
|
+
/** Expression to extract the trace ID for correlating logs with traces. */
|
|
2642
|
+
traceIdExpression?: string | null | undefined;
|
|
2643
|
+
/** Expression to extract the span ID for correlating logs with traces. */
|
|
2644
|
+
spanIdExpression?: string | null | undefined;
|
|
2645
|
+
/** Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log. */
|
|
2646
|
+
implicitColumnExpression?: string | null | undefined;
|
|
2647
|
+
/** For Distributed table sources whose target tables have non-matching column sets. A list of columns supported across all target tables, used instead of SELECT * when fetching full row data. Leave blank to select all columns. */
|
|
2648
|
+
knownColumnsListExpression?: string | null | undefined;
|
|
2649
|
+
/** Comma-separated expressions that together identify one row, e.g. the partition key, primary key, _block_number and _block_offset. When set, row details are looked up by these columns only. Leave blank to detect keys from table metadata. */
|
|
2650
|
+
rowKeyExpression?: string | null | undefined;
|
|
2651
|
+
/** Controls whether lucene rendering uses ClickHouse text indices via hasAllTokens() against the implicit column. "auto" detects a covering index at query time, "enabled" forces text index usage, "disabled" forces a LIKE/hasToken fallback. */
|
|
2652
|
+
useTextIndexForImplicitColumn?: ClickStackLogSourceUseTextIndexForImplicitColumn | (string & {}) | null | undefined;
|
|
2653
|
+
/** How many data parts are read from text indexes to discover attribute keys and filter values, chosen by mapKeyIndexPartSelection. Raise it if keys or values are missing from filters; lower it if they load slowly. Defaults to 20. */
|
|
2654
|
+
mapKeyIndexMaxParts?: number | null | undefined;
|
|
2655
|
+
/** Which data parts, by row count, are read from text indexes to discover attribute keys and filter values. "median" (the default) balances coverage and cost, "smallest" reads the newest unmerged parts, "largest" reads the most merged data. Allowed values: 'median', 'smallest', 'largest'. */
|
|
2656
|
+
mapKeyIndexPartSelection?: string | null | undefined;
|
|
2657
|
+
/** Expressions defining trace-level attributes which are displayed in the trace view for the selected trace. */
|
|
2658
|
+
highlightedTraceAttributeExpressions?: ClickStackLogSourceHighlightedTraceAttributeExpressionsList | undefined;
|
|
2659
|
+
/** Expressions defining row-level attributes which are displayed in the row side panel for the selected row. */
|
|
2660
|
+
highlightedRowAttributeExpressions?: ClickStackLogSourceHighlightedRowAttributeExpressionsList | undefined;
|
|
2661
|
+
/** Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries. */
|
|
2662
|
+
materializedViews?: ClickStackLogSourceMaterializedViewsList | undefined;
|
|
2663
|
+
metadataMaterializedViews?: ClickStackLogSourceMetadataMaterializedViews | null | undefined;
|
|
2664
|
+
}
|
|
2665
|
+
/** Source kind discriminator. Must be "trace" for trace sources. */
|
|
2666
|
+
export type ClickStackTraceSourceKind = "trace";
|
|
2667
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2668
|
+
export type ClickStackTraceSourceQuerySettingsList = Array<ClickStackQuerySetting>;
|
|
2669
|
+
/** Controls whether lucene rendering uses ClickHouse text indices via hasAllTokens() against the implicit column. "auto" detects a covering index at query time, "enabled" forces text index usage, "disabled" forces a LIKE/hasToken fallback. */
|
|
2670
|
+
export type ClickStackTraceSourceUseTextIndexForImplicitColumn = "auto" | "enabled" | "disabled";
|
|
2671
|
+
/** Expressions defining trace-level attributes which are displayed in the trace view for the selected trace. */
|
|
2672
|
+
export type ClickStackTraceSourceHighlightedTraceAttributeExpressionsList = Array<ClickStackHighlightedAttributeExpression>;
|
|
2673
|
+
/** Expressions defining row-level attributes which are displayed in the row side panel for the selected row */
|
|
2674
|
+
export type ClickStackTraceSourceHighlightedRowAttributeExpressionsList = Array<ClickStackHighlightedAttributeExpression>;
|
|
2675
|
+
/** Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries. */
|
|
2676
|
+
export type ClickStackTraceSourceMaterializedViewsList = Array<ClickStackMaterializedView>;
|
|
2677
|
+
export type ClickStackTraceSourceMetadataMaterializedViews = ClickStackLogSourceMetadataMaterializedViews;
|
|
2678
|
+
export interface ClickStackTraceSource {
|
|
2679
|
+
/** Unique source ID. Server-generated; ignored if sent in create/update requests. */
|
|
2680
|
+
id?: string | undefined;
|
|
2681
|
+
/** Display name for the source. */
|
|
2682
|
+
name: string;
|
|
2683
|
+
/** Optional grouping label used to organize sources in the source selector. Sources that share a section value are displayed together. */
|
|
2684
|
+
section?: string | undefined;
|
|
2685
|
+
/** When true, the source is hidden from source selectors in the UI. Defaults to false. */
|
|
2686
|
+
disabled?: boolean | null | undefined;
|
|
2687
|
+
/** Source kind discriminator. Must be "trace" for trace sources. */
|
|
2688
|
+
kind: ClickStackTraceSourceKind;
|
|
2689
|
+
/** ID of the ClickHouse connection used by this source. */
|
|
2690
|
+
connection: string;
|
|
2691
|
+
from: ClickStackSourceFrom;
|
|
2692
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2693
|
+
querySettings?: ClickStackTraceSourceQuerySettingsList | undefined;
|
|
2694
|
+
filterSettings?: ClickStackSourceFilterSettings | null | undefined;
|
|
2695
|
+
/** Default columns selected in search results (this can be customized per search later) */
|
|
2696
|
+
defaultTableSelectExpression: string;
|
|
2697
|
+
/** DateTime column or expression defines the start of the span */
|
|
2698
|
+
timestampValueExpression: string;
|
|
2699
|
+
/** Expression to extract span duration. */
|
|
2700
|
+
durationExpression: string;
|
|
2701
|
+
/** Number of decimal digits in the duration value (e.g., 3 for milliseconds, 6 for microseconds, 9 for nanoseconds). */
|
|
2702
|
+
durationPrecision: number;
|
|
2703
|
+
/** Expression to extract the trace ID. */
|
|
2704
|
+
traceIdExpression: string;
|
|
2705
|
+
/** Expression to extract the span ID. */
|
|
2706
|
+
spanIdExpression: string;
|
|
2707
|
+
/** Expression to extract the parent span ID. */
|
|
2708
|
+
parentSpanIdExpression: string;
|
|
2709
|
+
/** Expression to extract the span name. */
|
|
2710
|
+
spanNameExpression: string;
|
|
2711
|
+
/** Expression to extract the span kind (e.g., client, server, internal). */
|
|
2712
|
+
spanKindExpression: string;
|
|
2713
|
+
/** HyperDX Source for logs associated with traces. Optional */
|
|
2714
|
+
logSourceId?: string | null | undefined;
|
|
2715
|
+
/** HyperDX Source for sessions associated with traces. Optional */
|
|
2716
|
+
sessionSourceId?: string | null | undefined;
|
|
2717
|
+
/** HyperDX Source for metrics associated with traces. Optional */
|
|
2718
|
+
metricSourceId?: string | null | undefined;
|
|
2719
|
+
/** Expression to extract the span status code. */
|
|
2720
|
+
statusCodeExpression?: string | null | undefined;
|
|
2721
|
+
/** Expression to extract the span status message. */
|
|
2722
|
+
statusMessageExpression?: string | null | undefined;
|
|
2723
|
+
/** Expression to extract the service name from trace rows. */
|
|
2724
|
+
serviceNameExpression?: string | null | undefined;
|
|
2725
|
+
/** Expression identifying the running release of a service. Defaults to the OpenTelemetry service.version resource attribute when unset. Where services carry the release on different attributes, fall back across them with coalesce(nullIf(a, ''), nullIf(b, '')). */
|
|
2726
|
+
serviceVersionExpression?: string | null | undefined;
|
|
2727
|
+
/** Column or expression for upstream sampling weight (1/N). When set, aggregations (count, avg, sum, quantile) are corrected for sampling. Percentiles use quantileTDigestWeighted, which is an approximation. Leave empty if spans are not sampled. */
|
|
2728
|
+
sampleRateExpression?: string | undefined;
|
|
2729
|
+
/** Expression to extract resource-level attributes. */
|
|
2730
|
+
resourceAttributesExpression?: string | null | undefined;
|
|
2731
|
+
/** Expression to extract event-level attributes. */
|
|
2732
|
+
eventAttributesExpression?: string | null | undefined;
|
|
2733
|
+
/** Expression to extract span events. Used to capture events associated with spans. Expected to be Nested ( Timestamp DateTime64(9), Name LowCardinality(String), Attributes Map(LowCardinality(String), String) */
|
|
2734
|
+
spanEventsValueExpression?: string | null | undefined;
|
|
2735
|
+
/** Expression to extract span links. Used to capture links from a span to spans in other traces. Expected to be Nested ( TraceId String, SpanId String, TraceState String, Attributes Map(LowCardinality(String), String) ) */
|
|
2736
|
+
spanLinksValueExpression?: string | undefined;
|
|
2737
|
+
/** Column used for full text search if no property is specified in a Lucene-based search. Typically the message body of a log. */
|
|
2738
|
+
implicitColumnExpression?: string | null | undefined;
|
|
2739
|
+
/** For Distributed table sources whose target tables have non-matching column sets. A list of columns supported across all target tables, used instead of SELECT * when fetching full row data. Leave blank to select all columns. */
|
|
2740
|
+
knownColumnsListExpression?: string | null | undefined;
|
|
2741
|
+
/** Comma-separated expressions that together identify one row, e.g. the partition key, primary key, _block_number and _block_offset. When set, row details are looked up by these columns only. Leave blank to detect keys from table metadata. */
|
|
2742
|
+
rowKeyExpression?: string | null | undefined;
|
|
2743
|
+
/** Controls whether lucene rendering uses ClickHouse text indices via hasAllTokens() against the implicit column. "auto" detects a covering index at query time, "enabled" forces text index usage, "disabled" forces a LIKE/hasToken fallback. */
|
|
2744
|
+
useTextIndexForImplicitColumn?: ClickStackTraceSourceUseTextIndexForImplicitColumn | (string & {}) | null | undefined;
|
|
2745
|
+
/** How many data parts are read from text indexes to discover attribute keys and filter values, chosen by mapKeyIndexPartSelection. Raise it if keys or values are missing from filters; lower it if they load slowly. Defaults to 20. */
|
|
2746
|
+
mapKeyIndexMaxParts?: number | null | undefined;
|
|
2747
|
+
/** Which data parts, by row count, are read from text indexes to discover attribute keys and filter values. "median" (the default) balances coverage and cost, "smallest" reads the newest unmerged parts, "largest" reads the most merged data. Allowed values: 'median', 'smallest', 'largest'. */
|
|
2748
|
+
mapKeyIndexPartSelection?: string | null | undefined;
|
|
2749
|
+
/** Expressions defining trace-level attributes which are displayed in the trace view for the selected trace. */
|
|
2750
|
+
highlightedTraceAttributeExpressions?: ClickStackTraceSourceHighlightedTraceAttributeExpressionsList | undefined;
|
|
2751
|
+
/** Expressions defining row-level attributes which are displayed in the row side panel for the selected row */
|
|
2752
|
+
highlightedRowAttributeExpressions?: ClickStackTraceSourceHighlightedRowAttributeExpressionsList | undefined;
|
|
2753
|
+
/** This DateTime column is used to display and order search results. */
|
|
2754
|
+
displayedTimestampValueExpression?: string | undefined;
|
|
2755
|
+
/** Custom ORDER BY expression that overrides the default ordering. Leave empty to use the auto-detected default. */
|
|
2756
|
+
orderByExpression?: string | undefined;
|
|
2757
|
+
/** Configure materialized views for query optimization. These pre-aggregated views can significantly improve query performance on aggregation queries. */
|
|
2758
|
+
materializedViews?: ClickStackTraceSourceMaterializedViewsList | undefined;
|
|
2759
|
+
metadataMaterializedViews?: ClickStackLogSourceMetadataMaterializedViews | null | undefined;
|
|
2760
|
+
}
|
|
2761
|
+
/** Source kind discriminator. Must be "metric" for metric sources. */
|
|
2762
|
+
export type ClickStackMetricSourceKind = "metric";
|
|
2763
|
+
export interface ClickStackMetricSourceFrom {
|
|
2764
|
+
/** ClickHouse database name */
|
|
2765
|
+
databaseName: string;
|
|
2766
|
+
/** ClickHouse table name */
|
|
2767
|
+
tableName?: string | null | undefined;
|
|
2768
|
+
}
|
|
2769
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2770
|
+
export type ClickStackMetricSourceQuerySettingsList = Array<ClickStackQuerySetting>;
|
|
2771
|
+
export interface ClickStackMetricTables {
|
|
2772
|
+
/** Table containing gauge metrics data */
|
|
2773
|
+
gauge?: string | undefined;
|
|
2774
|
+
/** Table containing histogram metrics data */
|
|
2775
|
+
histogram?: string | undefined;
|
|
2776
|
+
/** Table containing sum metrics data */
|
|
2777
|
+
sum?: string | undefined;
|
|
2778
|
+
/** Table containing summary metrics data. Note - not yet fully supported by HyperDX */
|
|
2779
|
+
summary?: string | undefined;
|
|
2780
|
+
/** Table containing exponential histogram metrics data. Note - not yet fully supported by HyperDX */
|
|
2781
|
+
exponential_histogram?: string | undefined;
|
|
2782
|
+
}
|
|
2783
|
+
export interface ClickStackMetricSource {
|
|
2784
|
+
/** Unique source ID. Server-generated; ignored if sent in create/update requests. */
|
|
2785
|
+
id?: string | undefined;
|
|
2786
|
+
/** Display name for the source. */
|
|
2787
|
+
name: string;
|
|
2788
|
+
/** Optional grouping label used to organize sources in the source selector. Sources that share a section value are displayed together. */
|
|
2789
|
+
section?: string | undefined;
|
|
2790
|
+
/** When true, the source is hidden from source selectors in the UI. Defaults to false. */
|
|
2791
|
+
disabled?: boolean | null | undefined;
|
|
2792
|
+
/** Source kind discriminator. Must be "metric" for metric sources. */
|
|
2793
|
+
kind: ClickStackMetricSourceKind;
|
|
2794
|
+
/** ID of the ClickHouse connection used by this source. */
|
|
2795
|
+
connection: string;
|
|
2796
|
+
from: ClickStackMetricSourceFrom;
|
|
2797
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2798
|
+
querySettings?: ClickStackMetricSourceQuerySettingsList | undefined;
|
|
2799
|
+
metricTables: ClickStackMetricTables;
|
|
2800
|
+
/** DateTime column or expression that is part of your table's primary key. */
|
|
2801
|
+
timestampValueExpression: string;
|
|
2802
|
+
/** Column containing resource attributes for metrics */
|
|
2803
|
+
resourceAttributesExpression: string;
|
|
2804
|
+
/** HyperDX Source for logs associated with metrics. Optional */
|
|
2805
|
+
logSourceId?: string | null | undefined;
|
|
2806
|
+
/** Floor for the auto-inferred chart granularity. Set it to the scrape/report interval of the metrics so a short time range does not produce buckets smaller than that interval (sparse, steppy series). Only constrains "Auto" granularity; an explicit granularity picked on a tile is never overridden. Omit for no minimum. Uses the SQL interval format (a positive integer followed by second, minute, hour, or day), not the short form of the materialized view granularity fields. */
|
|
2807
|
+
minAutoGranularity?: string | undefined;
|
|
2808
|
+
}
|
|
2809
|
+
/** Source kind discriminator. Must be "session" for session sources. */
|
|
2810
|
+
export type ClickStackSessionSourceKind = "session";
|
|
2811
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2812
|
+
export type ClickStackSessionSourceQuerySettingsList = Array<ClickStackQuerySetting>;
|
|
2813
|
+
export interface ClickStackSessionSource {
|
|
2814
|
+
/** Unique source ID. Server-generated; ignored if sent in create/update requests. */
|
|
2815
|
+
id?: string | undefined;
|
|
2816
|
+
/** Display name for the source. */
|
|
2817
|
+
name: string;
|
|
2818
|
+
/** Optional grouping label used to organize sources in the source selector. Sources that share a section value are displayed together. */
|
|
2819
|
+
section?: string | undefined;
|
|
2820
|
+
/** When true, the source is hidden from source selectors in the UI. Defaults to false. */
|
|
2821
|
+
disabled?: boolean | null | undefined;
|
|
2822
|
+
/** Source kind discriminator. Must be "session" for session sources. */
|
|
2823
|
+
kind: ClickStackSessionSourceKind;
|
|
2824
|
+
/** ID of the ClickHouse connection used by this source. */
|
|
2825
|
+
connection: string;
|
|
2826
|
+
from: ClickStackSourceFrom;
|
|
2827
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2828
|
+
querySettings?: ClickStackSessionSourceQuerySettingsList | undefined;
|
|
2829
|
+
/** DateTime column or expression that is part of your table's primary key. */
|
|
2830
|
+
timestampValueExpression?: string | null | undefined;
|
|
2831
|
+
/** HyperDX Source for traces associated with sessions. */
|
|
2832
|
+
traceSourceId: string;
|
|
2833
|
+
/** Expression to extract resource-level attributes. */
|
|
2834
|
+
resourceAttributesExpression?: string | undefined;
|
|
2835
|
+
}
|
|
2836
|
+
/** Source kind discriminator. Must be "promql" for PromQL sources. */
|
|
2837
|
+
export type ClickStackPromqlSourceKind = "promql";
|
|
2838
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2839
|
+
export type ClickStackPromqlSourceQuerySettingsList = Array<ClickStackQuerySetting>;
|
|
2840
|
+
/** How PromQL is evaluated on a ClickHouse connection. "clickhouse-http" uses ClickHouse's Prometheus HTTP API, which needs ClickHouse 26.6+ with the prometheus_api_v1 handler configured; queries fail with an error when the server does not serve it. "table-function" uses the prometheusQuery table functions. "auto" (the default when omitted) checks the server and prefers the HTTP API. Ignored when the connection is a Prometheus-compatible endpoint. */
|
|
2841
|
+
export type ClickStackPromqlSourcePromqlBackend = "auto" | "clickhouse-http" | "table-function";
|
|
2842
|
+
export interface ClickStackPromqlSource {
|
|
2843
|
+
/** Unique source ID. Server-generated; ignored if sent in create/update requests. */
|
|
2844
|
+
id?: string | undefined;
|
|
2845
|
+
/** Display name for the source. */
|
|
2846
|
+
name: string;
|
|
2847
|
+
/** Optional grouping label used to organize sources in the source selector. Sources that share a section value are displayed together. */
|
|
2848
|
+
section?: string | undefined;
|
|
2849
|
+
/** When true, the source is hidden from source selectors in the UI. Defaults to false. */
|
|
2850
|
+
disabled?: boolean | null | undefined;
|
|
2851
|
+
/** Source kind discriminator. Must be "promql" for PromQL sources. */
|
|
2852
|
+
kind: ClickStackPromqlSourceKind;
|
|
2853
|
+
/** ID of the connection used by this source. Either a ClickHouse connection holding the TimeSeries table, or a Prometheus-compatible connection. */
|
|
2854
|
+
connection: string;
|
|
2855
|
+
from: ClickStackSourceFrom;
|
|
2856
|
+
/** Optional ClickHouse query settings applied when querying this source. */
|
|
2857
|
+
querySettings?: ClickStackPromqlSourceQuerySettingsList | undefined;
|
|
2858
|
+
/** Required by the API for all source kinds; not used by PromQL queries. */
|
|
2859
|
+
timestampValueExpression: string;
|
|
2860
|
+
/** Floor for the auto-inferred chart granularity, and the scrape interval that `$__rate_interval` is computed from. Set it to the Prometheus scrape interval so a short time range does not produce buckets smaller than that interval. Only constrains "Auto" granularity; an explicit granularity picked on a tile is never overridden. Omit for no minimum. Uses the SQL interval format (a positive integer followed by second, minute, hour, or day), not the short form of the materialized view granularity fields. */
|
|
2861
|
+
minAutoGranularity?: string | undefined;
|
|
2862
|
+
/** How PromQL is evaluated on a ClickHouse connection. "clickhouse-http" uses ClickHouse's Prometheus HTTP API, which needs ClickHouse 26.6+ with the prometheus_api_v1 handler configured; queries fail with an error when the server does not serve it. "table-function" uses the prometheusQuery table functions. "auto" (the default when omitted) checks the server and prefers the HTTP API. Ignored when the connection is a Prometheus-compatible endpoint. */
|
|
2863
|
+
promqlBackend?: ClickStackPromqlSourcePromqlBackend | (string & {}) | undefined;
|
|
2864
|
+
}
|
|
2865
|
+
export type ClickStackSource = ClickStackLogSource | ClickStackTraceSource | ClickStackMetricSource | ClickStackSessionSource | ClickStackPromqlSource;
|
|
2866
|
+
export interface CreateClickStackSourceRequest {
|
|
2867
|
+
/** ID of the organization that owns the service. */
|
|
2868
|
+
organizationId: string;
|
|
2869
|
+
/** ID of the ClickStack service. */
|
|
2870
|
+
serviceId: string;
|
|
2871
|
+
body?: ClickStackSource | undefined;
|
|
2872
|
+
}
|
|
2873
|
+
export type CreateClickStackSourceResponse = ClickStackSource;
|
|
2874
|
+
/** Webhook service type. */
|
|
2875
|
+
export type CreateClickStackWebhookRequestService = "slack" | "incidentio" | "generic";
|
|
2876
|
+
export type ClickStackWebhookInputHeaders = {
|
|
2877
|
+
[key: string]: string | undefined;
|
|
2878
|
+
};
|
|
2879
|
+
export type ClickStackWebhookInputQueryParams = {
|
|
2880
|
+
[key: string]: string | undefined;
|
|
2881
|
+
};
|
|
2882
|
+
export interface CreateClickStackWebhookRequest {
|
|
2883
|
+
/** ID of the organization that owns the service. */
|
|
2884
|
+
organizationId: string;
|
|
2885
|
+
/** ID of the ClickStack service. */
|
|
2886
|
+
serviceId: string;
|
|
2887
|
+
/** Webhook name. Must be unique per service within the team. */
|
|
2888
|
+
name: string;
|
|
2889
|
+
/** Webhook service type. */
|
|
2890
|
+
service: CreateClickStackWebhookRequestService | (string & {});
|
|
2891
|
+
/** Webhook destination URL. */
|
|
2892
|
+
url: string | Redacted.Redacted<string>;
|
|
2893
|
+
/** Webhook description, shown in the UI. */
|
|
2894
|
+
description?: string | undefined;
|
|
2895
|
+
/** Optional Handlebars request body template. Only for generic/incidentio; rejected for slack. Rejected with a 400 if it does not compile or calls a helper other than `eq` and the Handlebars built-ins. */
|
|
2896
|
+
body?: string | undefined;
|
|
2897
|
+
headers?: ClickStackWebhookInputHeaders | undefined;
|
|
2898
|
+
queryParams?: ClickStackWebhookInputQueryParams | undefined;
|
|
2899
|
+
}
|
|
2900
|
+
/** Webhook service type */
|
|
2901
|
+
export type ClickStackSlackWebhookService = "slack";
|
|
2902
|
+
export interface ClickStackSlackWebhook {
|
|
2903
|
+
/** Webhook ID */
|
|
2904
|
+
id: string;
|
|
2905
|
+
/** Webhook name */
|
|
2906
|
+
name: string;
|
|
2907
|
+
/** Webhook service type */
|
|
2908
|
+
service: ClickStackSlackWebhookService;
|
|
2909
|
+
/** Slack incoming webhook URL */
|
|
2910
|
+
url?: string | Redacted.Redacted<string> | undefined;
|
|
2911
|
+
/** Webhook description, shown in the UI */
|
|
2912
|
+
description?: string | undefined;
|
|
2913
|
+
/** Last update timestamp */
|
|
2914
|
+
updatedAt: string;
|
|
2915
|
+
/** Creation timestamp */
|
|
2916
|
+
createdAt: string;
|
|
2917
|
+
}
|
|
2918
|
+
/** Webhook service type */
|
|
2919
|
+
export type ClickStackIncidentIOWebhookService = "incidentio";
|
|
2920
|
+
export interface ClickStackIncidentIOWebhook {
|
|
2921
|
+
/** Webhook ID */
|
|
2922
|
+
id: string;
|
|
2923
|
+
/** Webhook name */
|
|
2924
|
+
name: string;
|
|
2925
|
+
/** Webhook service type */
|
|
2926
|
+
service: ClickStackIncidentIOWebhookService;
|
|
2927
|
+
/** incident.io alert event HTTP source URL */
|
|
2928
|
+
url?: string | Redacted.Redacted<string> | undefined;
|
|
2929
|
+
/** Webhook description, shown in the UI */
|
|
2930
|
+
description?: string | undefined;
|
|
2931
|
+
/** Last update timestamp */
|
|
2932
|
+
updatedAt: string;
|
|
2933
|
+
/** Creation timestamp */
|
|
2934
|
+
createdAt: string;
|
|
2935
|
+
}
|
|
2936
|
+
/** Webhook service type */
|
|
2937
|
+
export type ClickStackGenericWebhookService = "generic";
|
|
2938
|
+
export interface ClickStackGenericWebhook {
|
|
2939
|
+
/** Webhook ID */
|
|
2940
|
+
id: string;
|
|
2941
|
+
/** Webhook name */
|
|
2942
|
+
name: string;
|
|
2943
|
+
/** Webhook service type */
|
|
2944
|
+
service: ClickStackGenericWebhookService;
|
|
2945
|
+
/** Webhook destination URL */
|
|
2946
|
+
url?: string | Redacted.Redacted<string> | undefined;
|
|
2947
|
+
/** Webhook description, shown in the UI */
|
|
2948
|
+
description?: string | undefined;
|
|
2949
|
+
/** Optional request body template */
|
|
2950
|
+
body?: string | undefined;
|
|
2951
|
+
/** Last update timestamp */
|
|
2952
|
+
updatedAt: string;
|
|
2953
|
+
/** Creation timestamp */
|
|
2954
|
+
createdAt: string;
|
|
2955
|
+
}
|
|
2956
|
+
/** Webhook service type */
|
|
2957
|
+
export type ClickStackSlackAPIWebhookService = "slack_api";
|
|
2958
|
+
export interface ClickStackSlackAPIWebhook {
|
|
2959
|
+
/** Webhook ID */
|
|
2960
|
+
id: string;
|
|
2961
|
+
/** Webhook name */
|
|
2962
|
+
name: string;
|
|
2963
|
+
/** Webhook service type */
|
|
2964
|
+
service: ClickStackSlackAPIWebhookService;
|
|
2965
|
+
/** Slack API endpoint URL */
|
|
2966
|
+
url?: string | Redacted.Redacted<string> | undefined;
|
|
2967
|
+
/** Webhook description, shown in the UI */
|
|
2968
|
+
description?: string | undefined;
|
|
2969
|
+
/** Last update timestamp */
|
|
2970
|
+
updatedAt: string;
|
|
2971
|
+
/** Creation timestamp */
|
|
2972
|
+
createdAt: string;
|
|
2973
|
+
}
|
|
2974
|
+
/** Webhook service type */
|
|
2975
|
+
export type ClickStackPagerDutyAPIWebhookService = "pagerduty_api";
|
|
2976
|
+
export interface ClickStackPagerDutyAPIWebhook {
|
|
2977
|
+
/** Webhook ID */
|
|
2978
|
+
id: string;
|
|
2979
|
+
/** Webhook name */
|
|
2980
|
+
name: string;
|
|
2981
|
+
/** Webhook service type */
|
|
2982
|
+
service: ClickStackPagerDutyAPIWebhookService;
|
|
2983
|
+
/** PagerDuty Events API endpoint URL */
|
|
2984
|
+
url?: string | Redacted.Redacted<string> | undefined;
|
|
2985
|
+
/** Webhook description, shown in the UI */
|
|
2986
|
+
description?: string | undefined;
|
|
2987
|
+
/** Last update timestamp */
|
|
2988
|
+
updatedAt: string;
|
|
2989
|
+
/** Creation timestamp */
|
|
2990
|
+
createdAt: string;
|
|
2991
|
+
}
|
|
2992
|
+
export type ClickStackWebhook = ClickStackSlackWebhook | ClickStackIncidentIOWebhook | ClickStackGenericWebhook | ClickStackSlackAPIWebhook | ClickStackPagerDutyAPIWebhook;
|
|
2993
|
+
export type CreateClickStackWebhookResponse = ClickStackWebhook;
|
|
2994
|
+
export interface DeleteClickStackAlertRequest {
|
|
2995
|
+
/** ID of the organization that owns the service. */
|
|
2996
|
+
organizationId: string;
|
|
2997
|
+
/** ID of the ClickStack service. */
|
|
2998
|
+
serviceId: string;
|
|
2999
|
+
/** ClickStack Alert ID */
|
|
3000
|
+
clickStackAlertId: string;
|
|
3001
|
+
}
|
|
3002
|
+
export interface DeleteClickStackAlertResponse {
|
|
3003
|
+
/** HTTP status code. */
|
|
3004
|
+
status?: number | undefined;
|
|
3005
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
3006
|
+
requestId?: string | undefined;
|
|
3007
|
+
}
|
|
3008
|
+
export interface DeleteClickStackDashboardRequest {
|
|
3009
|
+
/** ID of the organization that owns the service. */
|
|
3010
|
+
organizationId: string;
|
|
3011
|
+
/** ID of the ClickStack service. */
|
|
3012
|
+
serviceId: string;
|
|
3013
|
+
/** ClickStack Dashboard ID */
|
|
3014
|
+
clickStackDashboardId: string;
|
|
3015
|
+
}
|
|
3016
|
+
export interface DeleteClickStackDashboardResponse {
|
|
3017
|
+
/** HTTP status code. */
|
|
3018
|
+
status?: number | undefined;
|
|
3019
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
3020
|
+
requestId?: string | undefined;
|
|
3021
|
+
}
|
|
3022
|
+
export interface DeleteClickStackRoleRequest {
|
|
3023
|
+
/** ID of the organization that owns the service. */
|
|
3024
|
+
organizationId: string;
|
|
3025
|
+
/** ID of the ClickStack service. */
|
|
3026
|
+
serviceId: string;
|
|
3027
|
+
/** id parameter */
|
|
3028
|
+
clickStackRoleId: string;
|
|
3029
|
+
}
|
|
3030
|
+
export interface DeleteClickStackRoleResponse {
|
|
3031
|
+
/** HTTP status code. */
|
|
3032
|
+
status?: number | undefined;
|
|
3033
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
3034
|
+
requestId?: string | undefined;
|
|
3035
|
+
}
|
|
3036
|
+
export interface DeleteClickStackSavedSearchRequest {
|
|
3037
|
+
/** ID of the organization that owns the service. */
|
|
3038
|
+
organizationId: string;
|
|
3039
|
+
/** ID of the ClickStack service. */
|
|
3040
|
+
serviceId: string;
|
|
3041
|
+
/** Saved search ID */
|
|
3042
|
+
clickStackSavedSearchId: string;
|
|
3043
|
+
}
|
|
3044
|
+
export interface DeleteClickStackSavedSearchResponse {
|
|
3045
|
+
/** HTTP status code. */
|
|
3046
|
+
status?: number | undefined;
|
|
3047
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
3048
|
+
requestId?: string | undefined;
|
|
3049
|
+
}
|
|
3050
|
+
export interface DeleteClickStackSourceRequest {
|
|
3051
|
+
/** ID of the organization that owns the service. */
|
|
3052
|
+
organizationId: string;
|
|
3053
|
+
/** ID of the ClickStack service. */
|
|
3054
|
+
serviceId: string;
|
|
3055
|
+
/** Source ID */
|
|
3056
|
+
clickStackSourceId: string;
|
|
3057
|
+
}
|
|
3058
|
+
export interface DeleteClickStackSourceResponse {
|
|
3059
|
+
/** HTTP status code. */
|
|
3060
|
+
status?: number | undefined;
|
|
3061
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
3062
|
+
requestId?: string | undefined;
|
|
3063
|
+
}
|
|
3064
|
+
export interface DeleteClickStackWebhookRequest {
|
|
3065
|
+
/** ID of the organization that owns the service. */
|
|
3066
|
+
organizationId: string;
|
|
3067
|
+
/** ID of the ClickStack service. */
|
|
3068
|
+
serviceId: string;
|
|
3069
|
+
/** Webhook ID */
|
|
3070
|
+
clickStackWebhookId: string;
|
|
3071
|
+
}
|
|
3072
|
+
export interface DeleteClickStackWebhookResponse {
|
|
3073
|
+
/** HTTP status code. */
|
|
3074
|
+
status?: number | undefined;
|
|
3075
|
+
/** Unique id assigned to every request. UUIDv4 */
|
|
3076
|
+
requestId?: string | undefined;
|
|
3077
|
+
}
|
|
3078
|
+
export interface GetClickStackAlertRequest {
|
|
3079
|
+
/** ID of the organization that owns the service. */
|
|
3080
|
+
organizationId: string;
|
|
3081
|
+
/** ID of the ClickStack service. */
|
|
3082
|
+
serviceId: string;
|
|
3083
|
+
/** ClickStack Alert ID */
|
|
3084
|
+
clickStackAlertId: string;
|
|
3085
|
+
}
|
|
3086
|
+
export interface GetClickStackDashboardRequest {
|
|
3087
|
+
/** ID of the organization that owns the service. */
|
|
3088
|
+
organizationId: string;
|
|
3089
|
+
/** ID of the ClickStack service. */
|
|
3090
|
+
serviceId: string;
|
|
3091
|
+
/** ClickStack Dashboard ID */
|
|
3092
|
+
clickStackDashboardId: string;
|
|
3093
|
+
}
|
|
3094
|
+
export interface GetClickStackRoleRequest {
|
|
3095
|
+
/** ID of the organization that owns the service. */
|
|
3096
|
+
organizationId: string;
|
|
3097
|
+
/** ID of the ClickStack service. */
|
|
3098
|
+
serviceId: string;
|
|
3099
|
+
/** id parameter */
|
|
3100
|
+
clickStackRoleId: string;
|
|
3101
|
+
}
|
|
3102
|
+
export interface GetClickStackSavedSearchRequest {
|
|
3103
|
+
/** ID of the organization that owns the service. */
|
|
3104
|
+
organizationId: string;
|
|
3105
|
+
/** ID of the ClickStack service. */
|
|
3106
|
+
serviceId: string;
|
|
3107
|
+
/** Saved search ID */
|
|
3108
|
+
clickStackSavedSearchId: string;
|
|
3109
|
+
}
|
|
3110
|
+
export interface GetClickStackSourceRequest {
|
|
3111
|
+
/** ID of the organization that owns the service. */
|
|
3112
|
+
organizationId: string;
|
|
3113
|
+
/** ID of the ClickStack service. */
|
|
3114
|
+
serviceId: string;
|
|
3115
|
+
/** Source ID */
|
|
3116
|
+
clickStackSourceId: string;
|
|
3117
|
+
}
|
|
3118
|
+
export type GetClickStackSourceResponse = ClickStackSource;
|
|
3119
|
+
export type ListClickStackAlertsRequestTagList = Array<string>;
|
|
3120
|
+
export type ListClickStackAlertsRequestSourceItem = "saved_search" | "tile" | "inline";
|
|
3121
|
+
export type ListClickStackAlertsRequestSourceList = Array<ListClickStackAlertsRequestSourceItem | (string & {})>;
|
|
3122
|
+
export type ListClickStackAlertsRequestStateItem = "ALERT" | "OK" | "INSUFFICIENT_DATA" | "DISABLED" | "PENDING";
|
|
3123
|
+
export type ListClickStackAlertsRequestStateList = Array<ListClickStackAlertsRequestStateItem | (string & {})>;
|
|
3124
|
+
export interface ListClickStackAlertsRequest {
|
|
3125
|
+
/** ID of the organization that owns the service. */
|
|
3126
|
+
organizationId: string;
|
|
3127
|
+
/** ID of the ClickStack service. */
|
|
3128
|
+
serviceId: string;
|
|
3129
|
+
/** Maximum number of results to return. */
|
|
3130
|
+
limit?: number | undefined;
|
|
3131
|
+
/** Number of results to skip before returning. */
|
|
3132
|
+
offset?: number | undefined;
|
|
3133
|
+
/** Only return alerts that have any of the given tags. Repeat the parameter to pass several tags. Matches the tags stored on the alert, not tags inherited from the linked dashboard or saved search. */
|
|
3134
|
+
tag?: ListClickStackAlertsRequestTagList | undefined;
|
|
3135
|
+
/** Only return alerts whose display name contains this text (case-insensitive). Matches the display name stored on the alert, not a name derived from the linked dashboard or saved search. */
|
|
3136
|
+
search?: string | undefined;
|
|
3137
|
+
/** Only return alerts of any of the given sources. Repeat the parameter to pass several sources. */
|
|
3138
|
+
source?: ListClickStackAlertsRequestSourceList | undefined;
|
|
3139
|
+
/** Only return alerts in any of the given states. Repeat the parameter to pass several states. */
|
|
3140
|
+
state?: ListClickStackAlertsRequestStateList | undefined;
|
|
3141
|
+
}
|
|
3142
|
+
export type ListClickStackAlertsResponseBodyList = Array<ClickStackAlertResponse>;
|
|
3143
|
+
export type ListClickStackAlertsResponse = ListClickStackAlertsResponseBodyList;
|
|
3144
|
+
export interface ListClickStackDashboardsRequest {
|
|
3145
|
+
/** ID of the organization that owns the service. */
|
|
3146
|
+
organizationId: string;
|
|
3147
|
+
/** ID of the ClickStack service. */
|
|
3148
|
+
serviceId: string;
|
|
3149
|
+
}
|
|
3150
|
+
export type ListClickStackDashboardsResponseBodyList = Array<ClickStackDashboardResponse>;
|
|
3151
|
+
export type ListClickStackDashboardsResponse = ListClickStackDashboardsResponseBodyList;
|
|
3152
|
+
export interface ListClickStackRolesRequest {
|
|
3153
|
+
/** ID of the organization that owns the service. */
|
|
3154
|
+
organizationId: string;
|
|
3155
|
+
/** ID of the ClickStack service. */
|
|
3156
|
+
serviceId: string;
|
|
3157
|
+
}
|
|
3158
|
+
export type ListClickStackRolesResponseBodyList = Array<ClickStackRole>;
|
|
3159
|
+
export type ListClickStackRolesResponse = ListClickStackRolesResponseBodyList;
|
|
3160
|
+
export interface ListClickStackSavedSearchesRequest {
|
|
3161
|
+
/** ID of the organization that owns the service. */
|
|
3162
|
+
organizationId: string;
|
|
3163
|
+
/** ID of the ClickStack service. */
|
|
3164
|
+
serviceId: string;
|
|
3165
|
+
/** Maximum number of results to return. */
|
|
3166
|
+
limit?: number | undefined;
|
|
3167
|
+
/** Number of results to skip before returning. */
|
|
3168
|
+
offset?: number | undefined;
|
|
3169
|
+
}
|
|
3170
|
+
export type ListClickStackSavedSearchesResponseBodyList = Array<ClickStackSavedSearch>;
|
|
3171
|
+
export type ListClickStackSavedSearchesResponse = ListClickStackSavedSearchesResponseBodyList;
|
|
3172
|
+
export interface ListClickStackSourcesRequest {
|
|
3173
|
+
/** ID of the organization that owns the service. */
|
|
3174
|
+
organizationId: string;
|
|
3175
|
+
/** ID of the ClickStack service. */
|
|
3176
|
+
serviceId: string;
|
|
3177
|
+
}
|
|
3178
|
+
export type ListClickStackSourcesResponseBodyList = Array<ClickStackSource>;
|
|
3179
|
+
export type ListClickStackSourcesResponse = ListClickStackSourcesResponseBodyList;
|
|
3180
|
+
export interface ListClickStackWebhooksRequest {
|
|
3181
|
+
/** ID of the organization that owns the service. */
|
|
3182
|
+
organizationId: string;
|
|
3183
|
+
/** ID of the ClickStack service. */
|
|
3184
|
+
serviceId: string;
|
|
3185
|
+
/** Maximum number of results to return. */
|
|
3186
|
+
limit?: number | undefined;
|
|
3187
|
+
/** Number of results to skip before returning. */
|
|
3188
|
+
offset?: number | undefined;
|
|
3189
|
+
}
|
|
3190
|
+
export type ListClickStackWebhooksResponseBodyList = Array<ClickStackWebhook>;
|
|
3191
|
+
export type ListClickStackWebhooksResponse = ListClickStackWebhooksResponseBodyList;
|
|
3192
|
+
/** Evaluation interval for the alert. `30s` requires the 30s alert interval feature to be enabled for your team. Anomaly alerts (detectionMode "anomaly") support only `5m`, `15m`, `30m`, and `1h`; other intervals are rejected with 400. */
|
|
3193
|
+
export type UpdateClickStackAlertRequestInterval = "30s" | "1m" | "5m" | "15m" | "30m" | "1h" | "6h" | "12h" | "1d";
|
|
3194
|
+
/** Alert source type (tile-based or saved search). */
|
|
3195
|
+
export type UpdateClickStackAlertRequestSource = "saved_search" | "tile" | "inline";
|
|
3196
|
+
/** Threshold comparison direction. */
|
|
3197
|
+
export type UpdateClickStackAlertRequestThresholdType = "above" | "below" | "above_exclusive" | "below_or_equal" | "equal" | "not_equal" | "between" | "not_between";
|
|
3198
|
+
/** Tags for the alert. Defaults to the tags of the referenced saved search or dashboard when omitted or null; inline alerts have no parent to inherit from and default to an empty list. */
|
|
3199
|
+
export type UpdateClickStackAlertRequestTagsList = Array<string>;
|
|
3200
|
+
export interface UpdateClickStackAlertRequest {
|
|
3201
|
+
/** ID of the organization that owns the service. */
|
|
3202
|
+
organizationId: string;
|
|
3203
|
+
/** ID of the ClickStack service. */
|
|
3204
|
+
serviceId: string;
|
|
3205
|
+
/** ClickStack Alert ID */
|
|
3206
|
+
clickStackAlertId: string;
|
|
3207
|
+
/** Dashboard ID for tile-based alerts. */
|
|
3208
|
+
dashboardId?: string | null | undefined;
|
|
3209
|
+
/** Tile ID for tile-based alerts. Must be a line, stacked bar, or number type tile. */
|
|
3210
|
+
tileId?: string | null | undefined;
|
|
3211
|
+
/** Saved search ID for saved_search alerts. */
|
|
3212
|
+
savedSearchId?: string | null | undefined;
|
|
3213
|
+
/** Group-by key for saved search alerts. */
|
|
3214
|
+
groupBy?: string | null | undefined;
|
|
3215
|
+
chartConfig?: ClickStackAlertChartConfig | undefined;
|
|
3216
|
+
/** Threshold value for triggering the alert. For between and not_between threshold types, this is the lower bound. */
|
|
3217
|
+
threshold: number;
|
|
3218
|
+
/** Upper bound for between and not_between threshold types. Required when thresholdType is between or not_between, must be >= threshold. */
|
|
3219
|
+
thresholdMax?: number | null | undefined;
|
|
3220
|
+
/** Evaluation interval for the alert. `30s` requires the 30s alert interval feature to be enabled for your team. Anomaly alerts (detectionMode "anomaly") support only `5m`, `15m`, `30m`, and `1h`; other intervals are rejected with 400. */
|
|
3221
|
+
interval: UpdateClickStackAlertRequestInterval | (string & {});
|
|
3222
|
+
/** Offset from the interval boundary in minutes. For example, 2 with a 5m interval evaluates windows at :02, :07, :12, etc. (UTC). */
|
|
3223
|
+
scheduleOffsetMinutes?: number | null | undefined;
|
|
3224
|
+
/** Absolute UTC start time anchor. Alert windows start from this timestamp and repeat every interval. */
|
|
3225
|
+
scheduleStartAt?: string | null | undefined;
|
|
3226
|
+
/** Alert source type (tile-based or saved search). */
|
|
3227
|
+
source?: UpdateClickStackAlertRequestSource | (string & {}) | undefined;
|
|
3228
|
+
/** Threshold comparison direction. */
|
|
3229
|
+
thresholdType: UpdateClickStackAlertRequestThresholdType | (string & {});
|
|
3230
|
+
channel?: ClickStackAlertChannel | undefined;
|
|
3231
|
+
channels?: ClickStackAlertChannels | undefined;
|
|
3232
|
+
/** Alert name template (Handlebars), rendered as the notification title. When omitted, a default title is generated from the display name, value and threshold. */
|
|
3233
|
+
name?: string | null | undefined;
|
|
3234
|
+
/** Display name shown in the alerts list and in notification titles. Defaults to the name of the referenced saved search, dashboard tile, or inline chart when omitted or null. */
|
|
3235
|
+
displayName?: string | null | undefined;
|
|
3236
|
+
/** Tags for the alert. Defaults to the tags of the referenced saved search or dashboard when omitted or null; inline alerts have no parent to inherit from and default to an empty list. */
|
|
3237
|
+
tags?: UpdateClickStackAlertRequestTagsList | undefined;
|
|
3238
|
+
/** Alert message template. */
|
|
3239
|
+
message?: string | null | undefined;
|
|
3240
|
+
/** Freeform note for the alert. Supports markdown formatting. */
|
|
3241
|
+
note?: string | null | undefined;
|
|
3242
|
+
/** Fire the alert only after its condition has been met for this many consecutive evaluation windows. While the condition is met but fewer than this many consecutive windows have violated, the alert is in the PENDING state. */
|
|
3243
|
+
numConsecutiveWindows?: number | null | undefined;
|
|
3244
|
+
}
|
|
3245
|
+
/** Full list of tiles for the dashboard. Existing tiles are matched by ID; tiles with an ID that does not match an existing tile will be assigned a new generated ID. */
|
|
3246
|
+
export type UpdateClickStackDashboardRequestTilesList = Array<ClickStackTileInput>;
|
|
3247
|
+
/** Tags for organizing and filtering dashboards. */
|
|
3248
|
+
export type UpdateClickStackDashboardRequestTagsList = Array<string>;
|
|
3249
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
3250
|
+
export type UpdateClickStackDashboardRequestFiltersList = Array<ClickStackFilter>;
|
|
3251
|
+
/** Query language used by savedQuery. */
|
|
3252
|
+
export type UpdateClickStackDashboardRequestSavedQueryLanguage = "sql" | "lucene";
|
|
3253
|
+
/** Optional default dashboard filter values to persist on the dashboard. */
|
|
3254
|
+
export type UpdateClickStackDashboardRequestSavedFilterValuesList = Array<ClickStackSavedFilterValue>;
|
|
3255
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
3256
|
+
export type UpdateClickStackDashboardRequestContainersList = Array<ClickStackDashboardContainer>;
|
|
3257
|
+
export interface UpdateClickStackDashboardRequest {
|
|
3258
|
+
/** ID of the organization that owns the service. */
|
|
3259
|
+
organizationId: string;
|
|
3260
|
+
/** ID of the ClickStack service. */
|
|
3261
|
+
serviceId: string;
|
|
3262
|
+
/** ClickStack Dashboard ID */
|
|
3263
|
+
clickStackDashboardId: string;
|
|
3264
|
+
/** Dashboard name. */
|
|
3265
|
+
name: string;
|
|
3266
|
+
/** Full list of tiles for the dashboard. Existing tiles are matched by ID; tiles with an ID that does not match an existing tile will be assigned a new generated ID. */
|
|
3267
|
+
tiles: UpdateClickStackDashboardRequestTilesList;
|
|
3268
|
+
/** Tags for organizing and filtering dashboards. */
|
|
3269
|
+
tags?: UpdateClickStackDashboardRequestTagsList | undefined;
|
|
3270
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
3271
|
+
filters?: UpdateClickStackDashboardRequestFiltersList | undefined;
|
|
3272
|
+
/** Optional default dashboard query to persist on the dashboard. */
|
|
3273
|
+
savedQuery?: string | null | undefined;
|
|
3274
|
+
/** Query language used by savedQuery. */
|
|
3275
|
+
savedQueryLanguage?: UpdateClickStackDashboardRequestSavedQueryLanguage | (string & {}) | null | undefined;
|
|
3276
|
+
/** Optional default dashboard filter values to persist on the dashboard. */
|
|
3277
|
+
savedFilterValues?: UpdateClickStackDashboardRequestSavedFilterValuesList | undefined;
|
|
3278
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
3279
|
+
containers?: UpdateClickStackDashboardRequestContainersList | undefined;
|
|
3280
|
+
}
|
|
3281
|
+
/** The replacement set of CASL permissions for the role. */
|
|
3282
|
+
export type UpdateClickStackRoleRequestPermissionsList = Array<ClickStackCASLPermission>;
|
|
3283
|
+
export interface UpdateClickStackRoleRequest {
|
|
3284
|
+
/** ID of the organization that owns the service. */
|
|
3285
|
+
organizationId: string;
|
|
3286
|
+
/** ID of the ClickStack service. */
|
|
3287
|
+
serviceId: string;
|
|
3288
|
+
/** id parameter */
|
|
3289
|
+
clickStackRoleId: string;
|
|
3290
|
+
/** New role name. Omit to leave the name unchanged. */
|
|
3291
|
+
name?: string | undefined;
|
|
3292
|
+
/** New role description. */
|
|
3293
|
+
description?: string | undefined;
|
|
3294
|
+
/** The replacement set of CASL permissions for the role. */
|
|
3295
|
+
permissions: UpdateClickStackRoleRequestPermissionsList;
|
|
3296
|
+
}
|
|
3297
|
+
/** Language used for the where filter. */
|
|
3298
|
+
export type UpdateClickStackSavedSearchRequestWhereLanguage = "lucene" | "sql";
|
|
3299
|
+
/** Tags used to organize saved searches. */
|
|
3300
|
+
export type UpdateClickStackSavedSearchRequestTagsList = Array<string>;
|
|
3301
|
+
/** Structured pinned filters applied to the search. */
|
|
3302
|
+
export type UpdateClickStackSavedSearchRequestFiltersList = Array<ClickStackSavedSearchFilter>;
|
|
3303
|
+
export interface UpdateClickStackSavedSearchRequest {
|
|
3304
|
+
/** ID of the organization that owns the service. */
|
|
3305
|
+
organizationId: string;
|
|
3306
|
+
/** ID of the ClickStack service. */
|
|
3307
|
+
serviceId: string;
|
|
3308
|
+
/** Saved search ID */
|
|
3309
|
+
clickStackSavedSearchId: string;
|
|
3310
|
+
/** Display name for the saved search. */
|
|
3311
|
+
name: string;
|
|
3312
|
+
/** ID of the source to query. Must belong to the team. */
|
|
3313
|
+
sourceId: string;
|
|
3314
|
+
/** Comma-separated list of column expressions to display. Empty uses the source default. */
|
|
3315
|
+
select?: string | undefined;
|
|
3316
|
+
/** Row filter expression. The language is controlled by whereLanguage. */
|
|
3317
|
+
where?: string | undefined;
|
|
3318
|
+
/** Language used for the where filter. */
|
|
3319
|
+
whereLanguage?: UpdateClickStackSavedSearchRequestWhereLanguage | (string & {}) | undefined;
|
|
3320
|
+
/** ORDER BY expression. Empty uses the source default. */
|
|
3321
|
+
orderBy?: string | undefined;
|
|
3322
|
+
/** Tags used to organize saved searches. */
|
|
3323
|
+
tags?: UpdateClickStackSavedSearchRequestTagsList | undefined;
|
|
3324
|
+
/** Structured pinned filters applied to the search. */
|
|
3325
|
+
filters?: UpdateClickStackSavedSearchRequestFiltersList | undefined;
|
|
3326
|
+
}
|
|
3327
|
+
export interface UpdateClickStackSourceRequest {
|
|
3328
|
+
/** ID of the organization that owns the service. */
|
|
3329
|
+
organizationId: string;
|
|
3330
|
+
/** ID of the ClickStack service. */
|
|
3331
|
+
serviceId: string;
|
|
3332
|
+
/** Source ID */
|
|
3333
|
+
clickStackSourceId: string;
|
|
3334
|
+
body?: ClickStackSource | undefined;
|
|
3335
|
+
}
|
|
3336
|
+
export type UpdateClickStackSourceResponse = ClickStackSource;
|
|
3337
|
+
/** Webhook service type. */
|
|
3338
|
+
export type UpdateClickStackWebhookRequestService = "slack" | "incidentio" | "generic";
|
|
3339
|
+
export interface UpdateClickStackWebhookRequest {
|
|
3340
|
+
/** ID of the organization that owns the service. */
|
|
3341
|
+
organizationId: string;
|
|
3342
|
+
/** ID of the ClickStack service. */
|
|
3343
|
+
serviceId: string;
|
|
3344
|
+
/** Webhook ID */
|
|
3345
|
+
clickStackWebhookId: string;
|
|
3346
|
+
/** Webhook name. Must be unique per service within the team. */
|
|
3347
|
+
name: string;
|
|
3348
|
+
/** Webhook service type. */
|
|
3349
|
+
service: UpdateClickStackWebhookRequestService | (string & {});
|
|
3350
|
+
/** Webhook destination URL. */
|
|
3351
|
+
url: string | Redacted.Redacted<string>;
|
|
3352
|
+
/** Webhook description, shown in the UI. */
|
|
3353
|
+
description?: string | undefined;
|
|
3354
|
+
/** Optional Handlebars request body template. Only for generic/incidentio; rejected for slack. Rejected with a 400 if it does not compile or calls a helper other than `eq` and the Handlebars built-ins. */
|
|
3355
|
+
body?: string | undefined;
|
|
3356
|
+
headers?: ClickStackWebhookInputHeaders | undefined;
|
|
3357
|
+
queryParams?: ClickStackWebhookInputQueryParams | undefined;
|
|
3358
|
+
}
|
|
3359
|
+
export type UpdateClickStackWebhookResponse = ClickStackWebhook;
|
|
3360
|
+
/** List of tiles/charts to include in the dashboard. */
|
|
3361
|
+
export type ValidateClickStackDashboardRequestTilesList = Array<ClickStackTileInput>;
|
|
3362
|
+
/** Tags for organizing and filtering dashboards. */
|
|
3363
|
+
export type ValidateClickStackDashboardRequestTagsList = Array<string>;
|
|
3364
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
3365
|
+
export type ValidateClickStackDashboardRequestFiltersList = Array<ClickStackFilterInput>;
|
|
3366
|
+
/** Query language used by savedQuery. */
|
|
3367
|
+
export type ValidateClickStackDashboardRequestSavedQueryLanguage = "sql" | "lucene";
|
|
3368
|
+
/** Optional default dashboard filter values to persist on the dashboard. */
|
|
3369
|
+
export type ValidateClickStackDashboardRequestSavedFilterValuesList = Array<ClickStackSavedFilterValue>;
|
|
3370
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
3371
|
+
export type ValidateClickStackDashboardRequestContainersList = Array<ClickStackDashboardContainer>;
|
|
3372
|
+
export interface ValidateClickStackDashboardRequest {
|
|
3373
|
+
/** ID of the organization that owns the service. */
|
|
3374
|
+
organizationId: string;
|
|
3375
|
+
/** ID of the ClickStack service. */
|
|
3376
|
+
serviceId: string;
|
|
3377
|
+
/** Dashboard name. */
|
|
3378
|
+
name: string;
|
|
3379
|
+
/** List of tiles/charts to include in the dashboard. */
|
|
3380
|
+
tiles: ValidateClickStackDashboardRequestTilesList;
|
|
3381
|
+
/** Tags for organizing and filtering dashboards. */
|
|
3382
|
+
tags?: ValidateClickStackDashboardRequestTagsList | undefined;
|
|
3383
|
+
/** Dropdown filters added to the dashboard. Each one broadcasts its selected value as a condition, acts as a variable which can be referenced in tile queries, or both. */
|
|
3384
|
+
filters?: ValidateClickStackDashboardRequestFiltersList | undefined;
|
|
3385
|
+
/** Optional default dashboard query to persist on the dashboard. */
|
|
3386
|
+
savedQuery?: string | null | undefined;
|
|
3387
|
+
/** Query language used by savedQuery. */
|
|
3388
|
+
savedQueryLanguage?: ValidateClickStackDashboardRequestSavedQueryLanguage | (string & {}) | null | undefined;
|
|
3389
|
+
/** Optional default dashboard filter values to persist on the dashboard. */
|
|
3390
|
+
savedFilterValues?: ValidateClickStackDashboardRequestSavedFilterValuesList | undefined;
|
|
3391
|
+
/** Optional grouping containers. Each tile may join a container via tile.containerId, and a tab inside it via tile.tabId. */
|
|
3392
|
+
containers?: ValidateClickStackDashboardRequestContainersList | undefined;
|
|
3393
|
+
}
|
|
3394
|
+
export interface ClickStackValidateDashboardError {
|
|
3395
|
+
/** Dot-separated field path, or empty string for top-level errors. */
|
|
3396
|
+
path: string;
|
|
3397
|
+
/** Human-readable error description. */
|
|
3398
|
+
message: string;
|
|
3399
|
+
}
|
|
3400
|
+
/** Validation errors. Empty when valid is true. */
|
|
3401
|
+
export type ClickStackValidateDashboardResponseErrorsList = Array<ClickStackValidateDashboardError>;
|
|
3402
|
+
export interface ClickStackValidateDashboardResponse {
|
|
3403
|
+
/** True when the body passes all validation rules. */
|
|
3404
|
+
valid: boolean;
|
|
3405
|
+
/** Validation errors. Empty when valid is true. */
|
|
3406
|
+
errors: ClickStackValidateDashboardResponseErrorsList;
|
|
3407
|
+
normalized: unknown | null;
|
|
3408
|
+
}
|
|
3409
|
+
/** Webhook service type. */
|
|
3410
|
+
export type ValidateClickStackWebhookRequestService = "slack" | "incidentio" | "generic";
|
|
3411
|
+
export interface ValidateClickStackWebhookRequest {
|
|
3412
|
+
/** ID of the organization that owns the service. */
|
|
3413
|
+
organizationId: string;
|
|
3414
|
+
/** ID of the ClickStack service. */
|
|
3415
|
+
serviceId: string;
|
|
3416
|
+
/** Webhook name. Must be unique per service within the team. */
|
|
3417
|
+
name: string;
|
|
3418
|
+
/** Webhook service type. */
|
|
3419
|
+
service: ValidateClickStackWebhookRequestService | (string & {});
|
|
3420
|
+
/** Webhook destination URL. */
|
|
3421
|
+
url: string | Redacted.Redacted<string>;
|
|
3422
|
+
/** Webhook description, shown in the UI. */
|
|
3423
|
+
description?: string | undefined;
|
|
3424
|
+
/** Optional Handlebars request body template. Only for generic/incidentio; rejected for slack. Rejected with a 400 if it does not compile or calls a helper other than `eq` and the Handlebars built-ins. */
|
|
3425
|
+
body?: string | undefined;
|
|
3426
|
+
headers?: ClickStackWebhookInputHeaders | undefined;
|
|
3427
|
+
queryParams?: ClickStackWebhookInputQueryParams | undefined;
|
|
3428
|
+
}
|
|
3429
|
+
export type ClickStackValidateWebhookResponseErrorsItem = ClickStackValidateDashboardError;
|
|
3430
|
+
/** Validation errors. Empty when valid is true. */
|
|
3431
|
+
export type ClickStackValidateWebhookResponseErrorsList = Array<ClickStackValidateDashboardError>;
|
|
3432
|
+
export interface ClickStackValidateWebhookResponse {
|
|
3433
|
+
/** True when the body passes all validation rules. */
|
|
3434
|
+
valid: boolean;
|
|
3435
|
+
/** Validation errors. Empty when valid is true. */
|
|
3436
|
+
errors: ClickStackValidateWebhookResponseErrorsList;
|
|
3437
|
+
normalized: unknown | null;
|
|
3438
|
+
}
|
|
3439
|
+
export type ClickStackSilenceAlertError = ClickHouseCloudOpError;
|
|
3440
|
+
/** ClickStack: Silence Alert **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Silences an alert until the given time. Notifications are suppressed while the alert is silenced. */
|
|
3441
|
+
export declare const clickStackSilenceAlert: API.OperationMethod<ClickStackSilenceAlertRequest, ClickStackAlertResponse, ClickStackSilenceAlertError, ClickHouseCloudOpContext>;
|
|
3442
|
+
export type ClickStackUnsilenceAlertError = ClickHouseCloudOpError;
|
|
3443
|
+
/** ClickStack: Unsilence Alert **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Clears the silence on an alert so notifications resume */
|
|
3444
|
+
export declare const clickStackUnsilenceAlert: API.OperationMethod<ClickStackUnsilenceAlertRequest, ClickStackUnsilenceAlertResponse, ClickStackUnsilenceAlertError, ClickHouseCloudOpContext>;
|
|
3445
|
+
export type CreateClickStackAlertError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3446
|
+
/** ClickStack: Create Alert **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Creates a new alert */
|
|
3447
|
+
export declare const createClickStackAlert: API.OperationMethod<CreateClickStackAlertRequest, ClickStackAlertResponse, CreateClickStackAlertError, ClickHouseCloudOpContext>;
|
|
3448
|
+
export type CreateClickStackDashboardError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3449
|
+
/** ClickStack: Create Dashboard **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Creates a new dashboard */
|
|
3450
|
+
export declare const createClickStackDashboard: API.OperationMethod<CreateClickStackDashboardRequest, ClickStackDashboardResponse, CreateClickStackDashboardError, ClickHouseCloudOpContext>;
|
|
3451
|
+
export type CreateClickStackRoleError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3452
|
+
/** ClickStack: Create Role **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Creates a new custom role for the team. */
|
|
3453
|
+
export declare const createClickStackRole: API.OperationMethod<CreateClickStackRoleRequest, ClickStackRole, CreateClickStackRoleError, ClickHouseCloudOpContext>;
|
|
3454
|
+
export type CreateClickStackSavedSearchError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3455
|
+
/** ClickStack: Create Saved Search **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Creates a new saved search. */
|
|
3456
|
+
export declare const createClickStackSavedSearch: API.OperationMethod<CreateClickStackSavedSearchRequest, ClickStackSavedSearch, CreateClickStackSavedSearchError, ClickHouseCloudOpContext>;
|
|
3457
|
+
export type CreateClickStackSourceError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3458
|
+
/** ClickStack: Create Source **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Creates a new source. The request body is a source object without the `id` field. If an `id` is sent anyway it is silently ignored (stripped before validation -- the request is never rejected because of it). Granularity fields (`materializedViews[].minGranularity` and `metadataMaterializedViews.granularity`) accept the same short format the API returns (e.g. `5m`, `15s`, `1h`, `1d`). */
|
|
3459
|
+
export declare const createClickStackSource: API.OperationMethod<CreateClickStackSourceRequest, CreateClickStackSourceResponse, CreateClickStackSourceError, ClickHouseCloudOpContext>;
|
|
3460
|
+
export type CreateClickStackWebhookError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3461
|
+
/** ClickStack: Create Webhook **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Creates a new webhook for the authenticated team. */
|
|
3462
|
+
export declare const createClickStackWebhook: API.OperationMethod<CreateClickStackWebhookRequest, CreateClickStackWebhookResponse, CreateClickStackWebhookError, ClickHouseCloudOpContext>;
|
|
3463
|
+
export type DeleteClickStackAlertError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3464
|
+
/** ClickStack: Delete Alert **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Deletes an alert */
|
|
3465
|
+
export declare const deleteClickStackAlert: API.OperationMethod<DeleteClickStackAlertRequest, DeleteClickStackAlertResponse, DeleteClickStackAlertError, ClickHouseCloudOpContext>;
|
|
3466
|
+
export type DeleteClickStackDashboardError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3467
|
+
/** ClickStack: Delete Dashboard **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Deletes a dashboard */
|
|
3468
|
+
export declare const deleteClickStackDashboard: API.OperationMethod<DeleteClickStackDashboardRequest, DeleteClickStackDashboardResponse, DeleteClickStackDashboardError, ClickHouseCloudOpContext>;
|
|
3469
|
+
export type DeleteClickStackRoleError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3470
|
+
/** ClickStack: Delete Role **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Deletes a custom role. Predefined roles, the team default user role, and roles assigned to users cannot be deleted. */
|
|
3471
|
+
export declare const deleteClickStackRole: API.OperationMethod<DeleteClickStackRoleRequest, DeleteClickStackRoleResponse, DeleteClickStackRoleError, ClickHouseCloudOpContext>;
|
|
3472
|
+
export type DeleteClickStackSavedSearchError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3473
|
+
/** ClickStack: Delete Saved Search **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Deletes a saved search and any alerts attached to it. */
|
|
3474
|
+
export declare const deleteClickStackSavedSearch: API.OperationMethod<DeleteClickStackSavedSearchRequest, DeleteClickStackSavedSearchResponse, DeleteClickStackSavedSearchError, ClickHouseCloudOpContext>;
|
|
3475
|
+
export type DeleteClickStackSourceError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3476
|
+
/** ClickStack: Delete Source **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Deletes a source */
|
|
3477
|
+
export declare const deleteClickStackSource: API.OperationMethod<DeleteClickStackSourceRequest, DeleteClickStackSourceResponse, DeleteClickStackSourceError, ClickHouseCloudOpContext>;
|
|
3478
|
+
export type DeleteClickStackWebhookError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3479
|
+
/** ClickStack: Delete Webhook **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Deletes a webhook. Blocked with a 409 while any alert still references it -- reassign or remove those alerts first -- so deletion never leaves an alert pointing at a missing webhook (which would silently drop notifications). Mirrors the internal webhook delete guard. */
|
|
3480
|
+
export declare const deleteClickStackWebhook: API.OperationMethod<DeleteClickStackWebhookRequest, DeleteClickStackWebhookResponse, DeleteClickStackWebhookError, ClickHouseCloudOpContext>;
|
|
3481
|
+
export type GetClickStackAlertError = ClickHouseCloudOpError;
|
|
3482
|
+
/** ClickStack: Get Alert **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves a specific alert by ID */
|
|
3483
|
+
export declare const getClickStackAlert: API.OperationMethod<GetClickStackAlertRequest, ClickStackAlertResponse, GetClickStackAlertError, ClickHouseCloudOpContext>;
|
|
3484
|
+
export type GetClickStackDashboardError = ClickHouseCloudOpError;
|
|
3485
|
+
/** ClickStack: Get Dashboard **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves a specific dashboard by ID */
|
|
3486
|
+
export declare const getClickStackDashboard: API.OperationMethod<GetClickStackDashboardRequest, ClickStackDashboardResponse, GetClickStackDashboardError, ClickHouseCloudOpContext>;
|
|
3487
|
+
export type GetClickStackRoleError = ClickHouseCloudOpError;
|
|
3488
|
+
/** ClickStack: Get Role **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves a specific role by ID. */
|
|
3489
|
+
export declare const getClickStackRole: API.OperationMethod<GetClickStackRoleRequest, ClickStackRole, GetClickStackRoleError, ClickHouseCloudOpContext>;
|
|
3490
|
+
export type GetClickStackSavedSearchError = ClickHouseCloudOpError;
|
|
3491
|
+
/** ClickStack: Get Saved Search **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves a specific saved search by ID. */
|
|
3492
|
+
export declare const getClickStackSavedSearch: API.OperationMethod<GetClickStackSavedSearchRequest, ClickStackSavedSearch, GetClickStackSavedSearchError, ClickHouseCloudOpContext>;
|
|
3493
|
+
export type GetClickStackSourceError = ClickHouseCloudOpError;
|
|
3494
|
+
/** ClickStack: Get Source **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves a specific source by ID */
|
|
3495
|
+
export declare const getClickStackSource: API.OperationMethod<GetClickStackSourceRequest, GetClickStackSourceResponse, GetClickStackSourceError, ClickHouseCloudOpContext>;
|
|
3496
|
+
export type ListClickStackAlertsError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3497
|
+
/** ClickStack: List Alerts **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves alerts for the authenticated team (paginated). Results are capped at `limit` (default and maximum 1000). When `totalCount` exceeds the number of returned items, page with `limit`/`offset` to retrieve them all. Optional filters narrow the result set, and `totalCount` counts only the matching alerts. */
|
|
3498
|
+
export declare const listClickStackAlerts: API.OperationMethod<ListClickStackAlertsRequest, ListClickStackAlertsResponse, ListClickStackAlertsError, ClickHouseCloudOpContext>;
|
|
3499
|
+
export type ListClickStackDashboardsError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3500
|
+
/** ClickStack: List Dashboards **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves a list of all dashboards for the authenticated team */
|
|
3501
|
+
export declare const listClickStackDashboards: API.OperationMethod<ListClickStackDashboardsRequest, ListClickStackDashboardsResponse, ListClickStackDashboardsError, ClickHouseCloudOpContext>;
|
|
3502
|
+
export type ListClickStackRolesError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3503
|
+
/** ClickStack: List Roles **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves all roles for the authenticated team, including predefined roles. */
|
|
3504
|
+
export declare const listClickStackRoles: API.OperationMethod<ListClickStackRolesRequest, ListClickStackRolesResponse, ListClickStackRolesError, ClickHouseCloudOpContext>;
|
|
3505
|
+
export type ListClickStackSavedSearchesError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3506
|
+
/** ClickStack: List Saved Searches **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves saved searches for the authenticated team (paginated). Results are capped at `limit` (default and maximum 1000). When `totalCount` exceeds the number of returned items, page with `limit`/`offset` to retrieve them all. */
|
|
3507
|
+
export declare const listClickStackSavedSearches: API.OperationMethod<ListClickStackSavedSearchesRequest, ListClickStackSavedSearchesResponse, ListClickStackSavedSearchesError, ClickHouseCloudOpContext>;
|
|
3508
|
+
export type ListClickStackSourcesError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3509
|
+
/** ClickStack: List Sources **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves a list of all sources for the authenticated team */
|
|
3510
|
+
export declare const listClickStackSources: API.OperationMethod<ListClickStackSourcesRequest, ListClickStackSourcesResponse, ListClickStackSourcesError, ClickHouseCloudOpContext>;
|
|
3511
|
+
export type ListClickStackWebhooksError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3512
|
+
/** ClickStack: List Webhooks **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Retrieves webhooks for the authenticated team (paginated). Results are capped at `limit` (default and maximum 1000). When `totalCount` exceeds the number of returned items, page with `limit`/`offset` to retrieve them all. */
|
|
3513
|
+
export declare const listClickStackWebhooks: API.OperationMethod<ListClickStackWebhooksRequest, ListClickStackWebhooksResponse, ListClickStackWebhooksError, ClickHouseCloudOpContext>;
|
|
3514
|
+
export type UpdateClickStackAlertError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3515
|
+
/** ClickStack: Update Alert **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Updates an existing alert */
|
|
3516
|
+
export declare const updateClickStackAlert: API.OperationMethod<UpdateClickStackAlertRequest, ClickStackAlertResponse, UpdateClickStackAlertError, ClickHouseCloudOpContext>;
|
|
3517
|
+
export type UpdateClickStackDashboardError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3518
|
+
/** ClickStack: Update Dashboard **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Updates an existing dashboard. **Concurrency:** This endpoint does not support optimistic concurrency control. Concurrent PUT requests for the same dashboard may silently overwrite each other, which can leave orphan tile-to-container references on layout-shape edits. Clients should serialize edits to a given dashboard. */
|
|
3519
|
+
export declare const updateClickStackDashboard: API.OperationMethod<UpdateClickStackDashboardRequest, ClickStackDashboardResponse, UpdateClickStackDashboardError, ClickHouseCloudOpContext>;
|
|
3520
|
+
export type UpdateClickStackRoleError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3521
|
+
/** ClickStack: Update Role **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Updates a custom role's permissions, name, and description. Predefined roles cannot be modified. */
|
|
3522
|
+
export declare const updateClickStackRole: API.OperationMethod<UpdateClickStackRoleRequest, ClickStackRole, UpdateClickStackRoleError, ClickHouseCloudOpContext>;
|
|
3523
|
+
export type UpdateClickStackSavedSearchError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3524
|
+
/** ClickStack: Update Saved Search **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Updates an existing saved search. This is a full replace: send the full object. Every optional field (`select`, `where`, `whereLanguage`, `orderBy`, `tags`, `filters`) is always written and falls back to its default when omitted, so omitting a field resets it rather than preserving the stored value. */
|
|
3525
|
+
export declare const updateClickStackSavedSearch: API.OperationMethod<UpdateClickStackSavedSearchRequest, ClickStackSavedSearch, UpdateClickStackSavedSearchError, ClickHouseCloudOpContext>;
|
|
3526
|
+
export type UpdateClickStackSourceError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3527
|
+
/** ClickStack: Update Source **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Updates an existing source. The full source object must be provided; this is a replace, not a patch. The request body is a source object without the `id` field. If an `id` is sent anyway it is silently ignored (stripped before validation -- never a 400); the path parameter alone identifies the source. Granularity fields (`materializedViews[].minGranularity` and `metadataMaterializedViews.granularity`) accept the same short format the API returns (e.g. `5m`, `15s`, `1h`, `1d`). */
|
|
3528
|
+
export declare const updateClickStackSource: API.OperationMethod<UpdateClickStackSourceRequest, UpdateClickStackSourceResponse, UpdateClickStackSourceError, ClickHouseCloudOpContext>;
|
|
3529
|
+
export type UpdateClickStackWebhookError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3530
|
+
/** ClickStack: Update Webhook **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Replaces an existing webhook. Readable optional fields (`description`, `body`) are a full replace: omitting them clears them. The write-only fields `headers` and `queryParams` are never returned on read, so omitting them preserves the stored values; send an explicit empty object (`{}`) to clear them. Exception: if the destination (`url` or `service`) changes, omitted `headers`/ `queryParams` are cleared rather than preserved so stored secrets are never forwarded to a new destination. */
|
|
3531
|
+
export declare const updateClickStackWebhook: API.OperationMethod<UpdateClickStackWebhookRequest, UpdateClickStackWebhookResponse, UpdateClickStackWebhookError, ClickHouseCloudOpContext>;
|
|
3532
|
+
export type ValidateClickStackDashboardError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3533
|
+
/** ClickStack: Validate Dashboard **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Validates a dashboard body against the same schema and tile rules used by POST /api/v2/dashboards. The dashboard is **never persisted**. Use this endpoint at plan time (e.g. from a Terraform provider) to check that a dashboard configuration is valid before applying it. */
|
|
3534
|
+
export declare const validateClickStackDashboard: API.OperationMethod<ValidateClickStackDashboardRequest, ClickStackValidateDashboardResponse, ValidateClickStackDashboardError, ClickHouseCloudOpContext>;
|
|
3535
|
+
export type ValidateClickStackWebhookError = FeatureUnavailable | ClickHouseCloudOpError;
|
|
3536
|
+
/** ClickStack: Validate Webhook **This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> ClickStack: Validates a webhook body against the same schema, URL rules, and body template check used by POST /api/v2/webhooks. The webhook is **never persisted**. Use this endpoint at plan time (e.g. from a Terraform provider) to check that a webhook configuration is valid before applying it. Name uniqueness is not checked. */
|
|
3537
|
+
export declare const validateClickStackWebhook: API.OperationMethod<ValidateClickStackWebhookRequest, ClickStackValidateWebhookResponse, ValidateClickStackWebhookError, ClickHouseCloudOpContext>;
|
|
3538
|
+
//# sourceMappingURL=click_stack.d.ts.map
|