@tolinax/ayoune-interfaces 2024.4.28 → 2024.4.30
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/interfaces/IAd.d.ts
CHANGED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
interface ScrapeConfig {
|
|
3
|
+
job_name: string;
|
|
4
|
+
metrics_path?: string;
|
|
5
|
+
scheme?: string;
|
|
6
|
+
params?: Record<string, string[]>;
|
|
7
|
+
scrape_interval?: string;
|
|
8
|
+
scrape_timeout?: string;
|
|
9
|
+
static_configs?: StaticConfig[];
|
|
10
|
+
relabel_configs?: RelabelConfig[];
|
|
11
|
+
metric_relabel_configs?: RelabelConfig[];
|
|
12
|
+
basic_auth?: BasicAuth;
|
|
13
|
+
tls_config?: TLSConfig;
|
|
14
|
+
bearer_token?: string;
|
|
15
|
+
bearer_token_file?: string;
|
|
16
|
+
}
|
|
17
|
+
interface StaticConfig {
|
|
18
|
+
targets: string[];
|
|
19
|
+
labels?: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
interface RelabelConfig {
|
|
22
|
+
source_labels?: string[];
|
|
23
|
+
separator?: string;
|
|
24
|
+
target_label?: string;
|
|
25
|
+
regex?: string;
|
|
26
|
+
modulus?: number;
|
|
27
|
+
replacement?: string;
|
|
28
|
+
action?: string;
|
|
29
|
+
}
|
|
30
|
+
interface Alerting {
|
|
31
|
+
alert_relabel_configs?: RelabelConfig[];
|
|
32
|
+
alertmanagers?: AlertmanagerConfig[];
|
|
33
|
+
}
|
|
34
|
+
interface AlertmanagerConfig {
|
|
35
|
+
static_configs?: StaticConfig[];
|
|
36
|
+
}
|
|
37
|
+
interface RemoteWrite {
|
|
38
|
+
url: string;
|
|
39
|
+
remote_timeout?: string;
|
|
40
|
+
write_relabel_configs?: RelabelConfig[];
|
|
41
|
+
basic_auth?: BasicAuth;
|
|
42
|
+
tls_config?: TLSConfig;
|
|
43
|
+
bearer_token?: string;
|
|
44
|
+
}
|
|
45
|
+
interface RemoteRead {
|
|
46
|
+
url: string;
|
|
47
|
+
remote_timeout?: string;
|
|
48
|
+
required_matchers?: Record<string, string>;
|
|
49
|
+
read_recent?: boolean;
|
|
50
|
+
basic_auth?: BasicAuth;
|
|
51
|
+
tls_config?: TLSConfig;
|
|
52
|
+
bearer_token?: string;
|
|
53
|
+
}
|
|
54
|
+
interface BasicAuth {
|
|
55
|
+
username: string;
|
|
56
|
+
password: string;
|
|
57
|
+
}
|
|
58
|
+
interface TLSConfig {
|
|
59
|
+
ca_file?: string;
|
|
60
|
+
cert_file?: string;
|
|
61
|
+
key_file?: string;
|
|
62
|
+
}
|
|
63
|
+
interface Storage {
|
|
64
|
+
tsdb?: TSDB;
|
|
65
|
+
exemplars?: Exemplars;
|
|
66
|
+
}
|
|
67
|
+
interface TSDB {
|
|
68
|
+
retention_time?: string;
|
|
69
|
+
}
|
|
70
|
+
interface Exemplars {
|
|
71
|
+
max_size?: number;
|
|
72
|
+
}
|
|
73
|
+
interface TracingConfig {
|
|
74
|
+
backend: string;
|
|
75
|
+
jaeger_config?: JaegerConfig;
|
|
76
|
+
}
|
|
77
|
+
interface JaegerConfig {
|
|
78
|
+
service_name: string;
|
|
79
|
+
agent_host: string;
|
|
80
|
+
agent_port: number;
|
|
81
|
+
}
|
|
82
|
+
export interface IPrometheusConfig extends IDefaultFields {
|
|
83
|
+
_id: string;
|
|
84
|
+
archived: boolean;
|
|
85
|
+
environment: "production" | "lab" | "all";
|
|
86
|
+
namespace: "develop" | "production" | "stage" | any;
|
|
87
|
+
_customerID?: ObjectId;
|
|
88
|
+
_clientID?: ObjectId[];
|
|
89
|
+
_subID?: ObjectId[];
|
|
90
|
+
name: string;
|
|
91
|
+
slug: string;
|
|
92
|
+
host: string;
|
|
93
|
+
scrape_interval?: string;
|
|
94
|
+
scrape_timeout?: string;
|
|
95
|
+
scrape_protocols?: string[];
|
|
96
|
+
evaluation_interval?: string;
|
|
97
|
+
external_labels?: Record<string, string>;
|
|
98
|
+
query_log_file?: string;
|
|
99
|
+
body_size_limit?: string | number;
|
|
100
|
+
sample_limit?: number;
|
|
101
|
+
label_limit?: number;
|
|
102
|
+
label_name_length_limit?: number;
|
|
103
|
+
label_value_length_limit?: number;
|
|
104
|
+
target_limit?: number;
|
|
105
|
+
keep_dropped_targets?: number;
|
|
106
|
+
rule_files?: string[];
|
|
107
|
+
scrape_config_files?: string[];
|
|
108
|
+
scrape_configs?: ScrapeConfig[];
|
|
109
|
+
alerting?: Alerting;
|
|
110
|
+
remote_write?: RemoteWrite[];
|
|
111
|
+
remote_read?: RemoteRead[];
|
|
112
|
+
storage?: Storage;
|
|
113
|
+
tracing?: TracingConfig;
|
|
114
|
+
createdAt: Date;
|
|
115
|
+
updatedAt: Date;
|
|
116
|
+
}
|
|
117
|
+
export {};
|