2021-03-23 17:00:02 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-03-28 19:28:01 +03:00
|
|
|
package micro.meter.handler;
|
|
|
|
option go_package = "github.com/unistack-org/micro/v3/meter/handler;handler";
|
2021-03-23 17:00:02 +03:00
|
|
|
|
|
|
|
import "api/annotations.proto";
|
|
|
|
import "openapiv2/annotations.proto";
|
|
|
|
import "codec/frame.proto";
|
|
|
|
|
|
|
|
service Meter {
|
2021-03-25 12:34:34 +03:00
|
|
|
rpc Metrics(micro.codec.Frame) returns (micro.codec.Frame) {
|
2021-03-23 17:00:02 +03:00
|
|
|
option (micro.openapiv2.openapiv2_operation) = {
|
|
|
|
operation_id: "Metrics";
|
|
|
|
responses: {
|
|
|
|
key: "default";
|
|
|
|
value: {
|
|
|
|
description: "Error response";
|
|
|
|
schema: {
|
|
|
|
json_schema: {
|
2021-03-28 19:17:55 +03:00
|
|
|
ref: "micro.codec.Frame";
|
2021-03-23 17:00:02 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
option (micro.api.http) = { get: "/metrics"; };
|
|
|
|
};
|
|
|
|
};
|