github.com/pinpoint-apm/pinpoint-go-agent@v1.4.1-0.20240110120318-a50c2eb18c8c/protobuf/CustomMetric.proto (about) 1 syntax = "proto3"; 2 3 option java_multiple_files = true; 4 option java_package = "com.navercorp.pinpoint.grpc.trace"; 5 option java_outer_classname = "CustomMetricProto"; 6 option go_package = "/v1"; 7 8 package v1; 9 10 message PCustomMetricMessage { 11 repeated int64 timestamp = 1; 12 repeated int64 collectInterval = 2; 13 repeated PCustomMetric customMetrics = 3; 14 } 15 16 message PCustomMetric { 17 oneof field { 18 PIntCountMetric intCountMetric = 1; 19 PLongCountMetric longCountMetric = 2; 20 PIntGaugeMetric intGaugeMetric = 3; 21 PLongGaugeMetric longGaugeMetric = 4; 22 PDouleGaugeMetric doubleGaugeMetric = 5; 23 } 24 } 25 26 message PIntCountMetric { 27 string name = 1; 28 repeated PIntValue values = 2; 29 } 30 message PLongCountMetric { 31 string name = 1; 32 repeated PLongValue values = 2; 33 } 34 35 message PIntGaugeMetric { 36 string name = 1; 37 repeated PIntValue values = 2; 38 } 39 40 message PLongGaugeMetric { 41 string name = 1; 42 repeated PLongValue values = 2; 43 } 44 45 message PDouleGaugeMetric { 46 string name = 1; 47 repeated PDoubleValue values = 2; 48 } 49 50 message PIntValue { 51 int32 value = 1; 52 bool isNotSet = 2; 53 } 54 55 message PLongValue { 56 int64 value = 1; 57 bool isNotSet = 2; 58 } 59 60 message PDoubleValue { 61 double value = 1; 62 bool isNotSet = 2; 63 }