grafana/pkg/plugins/backendplugin/pluginextensionv2/rendererv2.proto
Joan López de la Franca Beltran 6ec06f66b9
Rendering: Add support for renderer token (#54425)
(cherry picked from commit a4f75cc0438712c90b02d24740416f8615e3a0cb)
2022-08-30 12:09:38 +02:00

48 lines
921 B
Protocol Buffer

syntax = "proto3";
package pluginextensionv2;
option go_package = "./;pluginextensionv2";
message StringList {
repeated string values = 1;
}
message RenderRequest {
string url = 1;
int32 width = 2;
int32 height = 3;
float deviceScaleFactor = 4;
string filePath = 5;
string renderKey = 6;
string domain = 7;
int32 timeout = 8;
string timezone = 9;
map<string, StringList> headers = 10;
string authToken = 11;
}
message RenderResponse {
string error = 1;
}
message RenderCSVRequest {
string url = 1;
string filePath = 2;
string renderKey = 3;
string domain = 4;
int32 timeout = 5;
string timezone = 6;
map<string, StringList> headers = 7;
string authToken = 8;
}
message RenderCSVResponse {
string error = 1;
string fileName = 2;
}
service Renderer {
rpc Render(RenderRequest) returns (RenderResponse);
rpc RenderCSV(RenderCSVRequest) returns (RenderCSVResponse);
}