2023-02-26 14:51:34 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-04-28 21:59:31 +03:00
|
|
|
package micro.server.http.v4.handler.meter;
|
|
|
|
option go_package = "go.unistack.org/micro-server-http/v4/handler/meter;meter";
|
2023-02-26 14:51:34 +03:00
|
|
|
|
|
|
|
import "api/annotations.proto";
|
|
|
|
import "openapiv3/annotations.proto";
|
|
|
|
import "codec/frame.proto";
|
|
|
|
|
|
|
|
service MeterService {
|
|
|
|
rpc Metrics(micro.codec.Frame) returns (micro.codec.Frame) {
|
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
|
|
|
operation_id: "Metrics";
|
|
|
|
responses: {
|
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/metrics"; };
|
|
|
|
};
|
|
|
|
};
|