github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/cmd/usage/proto/usage.proto (about) 1 syntax = "proto3"; 2 3 message Usage { 4 // service name 5 string service = 1; 6 // version of service 7 string version = 2; 8 // unique service id 9 string id = 3; 10 // unix timestamp of report 11 uint64 timestamp = 4; 12 // window of report in seconds 13 uint64 window = 5; 14 // usage metrics 15 Metrics metrics = 6; 16 } 17 18 message Metrics { 19 // counts such as requests, services, etc 20 map<string,uint64> count = 1; 21 }