2021-03-23 17:00:02 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-03-28 19:28:01 +03:00
|
|
|
package micro.meter.handler;
|
2021-10-23 23:45:53 +03:00
|
|
|
option go_package = "go.unistack.org/micro/v3/meter/handler;handler";
|
2021-03-23 17:00:02 +03:00
|
|
|
|
|
|
|
import "api/annotations.proto";
|
2021-10-23 23:45:53 +03:00
|
|
|
import "openapiv3/annotations.proto";
|
2021-03-23 17:00:02 +03:00
|
|
|
import "codec/frame.proto";
|
|
|
|
|
|
|
|
service Meter {
|
2021-03-25 12:34:34 +03:00
|
|
|
rpc Metrics(micro.codec.Frame) returns (micro.codec.Frame) {
|
2021-10-23 23:45:53 +03:00
|
|
|
option (micro.openapiv3.openapiv3_operation) = {
|
2021-03-23 17:00:02 +03:00
|
|
|
operation_id: "Metrics";
|
2021-08-16 23:56:50 +03:00
|
|
|
responses: {
|
2021-10-23 23:45:53 +03:00
|
|
|
default: {
|
|
|
|
reference: {
|
|
|
|
_ref: "micro.codec.Frame";
|
2021-08-16 23:56:50 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-03-23 17:00:02 +03:00
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/metrics"; };
|
|
|
|
};
|
|
|
|
};
|