@@ -23,6 +23,12 @@ service Webhook {
23
23
body : "*"
24
24
};
25
25
}
26
+ rpc update_message_format (WebhookMessageFormatUpdateRequest ) returns (WebhookInfo ) {
27
+ option (google.api.http ) = {
28
+ post : "/alert-manager/v1/webhook/update-message-format"
29
+ body : "*"
30
+ };
31
+ }
26
32
rpc update_plugin (WebhookUpdatePluginRequest ) returns (WebhookInfo ) {
27
33
option (google.api.http ) = {
28
34
post : "/alert-manager/v1/webhook/update-plugin"
@@ -73,6 +79,11 @@ service Webhook {
73
79
}
74
80
}
75
81
82
+ message WebhookMessageFormat {
83
+ string from = 1 ;
84
+ string to = 2 ;
85
+ }
86
+
76
87
message WebhookRequests {
77
88
int64 total = 1 ;
78
89
int64 error = 2 ;
@@ -98,6 +109,7 @@ message WebhookPluginInfo{
98
109
message WebhookCreateRequest {
99
110
string name = 1 ;
100
111
WebhookPluginInfo plugin_info = 2 ;
112
+ repeated WebhookMessageFormat message_formats = 3 ;
101
113
102
114
// +optional
103
115
google.protobuf.Struct tags = 11 ;
@@ -114,6 +126,11 @@ message WebhookUpdateRequest {
114
126
google.protobuf.Struct tags = 11 ;
115
127
}
116
128
129
+ message WebhookMessageFormatUpdateRequest {
130
+ string webhook_id = 1 ;
131
+ repeated WebhookMessageFormat message_formats = 2 ;
132
+ }
133
+
117
134
message WebhookUpdatePluginRequest {
118
135
enum WebhookUpgradeMode {
119
136
UPGRADE_MODE_NONE = 0 ;
@@ -176,6 +193,7 @@ message WebhookInfo {
176
193
string webhook_url = 5 ;
177
194
WebhookPluginInfo plugin_info = 6 ;
178
195
WebhookRequests requests = 7 ;
196
+ repeated WebhookMessageFormat message_formats = 8 ;
179
197
180
198
google.protobuf.Struct tags = 11 ;
181
199
0 commit comments