-
Notifications
You must be signed in to change notification settings - Fork 208
added proto files and protobuf/grpc build plugin #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
90fbe54
6a0cd3a
18ffe67
930fe5e
89d8336
4b31d37
71860bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "google/protobuf/duration.proto"; | ||
|
|
||
| message Availability { | ||
| int32 ver = 1; | ||
|
|
||
| string id = 2; | ||
|
|
||
| string name = 3; | ||
|
|
||
| google.protobuf.Duration duration = 4; | ||
|
|
||
| bool success = 5; | ||
|
|
||
| string runLocation = 6; | ||
|
|
||
| string message = 7; | ||
|
|
||
| map<string, string> properties = 8; | ||
|
|
||
| map<string, double> measurements = 9; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "google/protobuf/wrappers.proto"; | ||
| import "DataPointType.proto"; | ||
|
|
||
| message DataPoint | ||
| { | ||
| string ns = 1; | ||
|
|
||
| string name = 2; | ||
|
|
||
| // Metric type. Single measurement or aggregated value | ||
| DataPointType kind = 3; | ||
|
|
||
| // Single value for a Measurement, sum of individual measurements for an Aggregation | ||
| double value = 4; | ||
|
|
||
| // should not be set for a measurement | ||
| google.protobuf.Int32Value count = 5; | ||
|
|
||
| // should not be set for a measurement | ||
| google.protobuf.DoubleValue min = 6; | ||
|
|
||
| // should not be set for a measurement | ||
| google.protobuf.DoubleValue max = 7; | ||
|
|
||
| // should not be set for a measurement | ||
| google.protobuf.DoubleValue stdDev = 8; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| enum DataPointType | ||
| { | ||
| Measurement = 0; | ||
| Aggregation = 1; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "google/protobuf/duration.proto"; | ||
| import "google/protobuf/wrappers.proto"; | ||
|
|
||
| message Dependency { | ||
| int32 ver = 1; | ||
|
|
||
| string name = 2; | ||
|
|
||
| string id = 3; | ||
|
|
||
| string resultCode = 4; | ||
|
|
||
| google.protobuf.Duration duration = 5; | ||
|
|
||
| // the default is interpreted as true | ||
| google.protobuf.BoolValue success = 6; | ||
|
|
||
| string data = 7; | ||
|
|
||
| string type = 8; | ||
|
|
||
| string target = 9; | ||
|
|
||
| map<string, string> properties = 10; | ||
|
|
||
| map<string, double> measurements = 11; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| message Event { | ||
| int32 ver = 1; | ||
|
|
||
| string name = 2; | ||
|
|
||
| map<string, string> properties = 3; | ||
|
|
||
| map<string, double> measurements = 4; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "ExceptionDetails.proto"; | ||
| import "SeverityLevel.proto"; | ||
|
|
||
| message Exception { | ||
| int32 ver = 1; | ||
|
|
||
| repeated ExceptionDetails exceptions = 2; | ||
|
|
||
| SeverityLevel severityLevel = 3; | ||
|
|
||
| string problemId = 4; | ||
|
|
||
| map<string, string> properties = 5; | ||
|
|
||
| map<string, double> measurements = 6; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "StackFrame.proto"; | ||
| import "google/protobuf/wrappers.proto"; | ||
|
|
||
| message ExceptionDetails { | ||
| int32 id = 1; | ||
|
|
||
| int32 outerId = 2; | ||
|
|
||
| string typeName = 3; | ||
|
|
||
| string message = 4; | ||
|
|
||
| // the default is true | ||
| google.protobuf.BoolValue hasFullStack = 5; | ||
|
|
||
| string stack = 6; | ||
|
|
||
| repeated StackFrame parsedStack = 7; | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "SeverityLevel.proto"; | ||
|
|
||
| message Message { | ||
| int32 ver = 1; | ||
|
|
||
| string message = 2; | ||
|
|
||
| SeverityLevel severityLevel = 3; | ||
|
|
||
| map<string, string> properties = 4; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "DataPoint.proto"; | ||
|
|
||
| message Metric { | ||
| int32 ver = 1; | ||
|
|
||
| // only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used. | ||
| repeated DataPoint metrics = 2; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still believe that this List should be depreciated from the MetricData class which is creating this non-sense. Indeed we can bring in all the fields in the MetricData class inside the DataPoint class and just deprecate the whole class itself. It is of no use IMO and is just taking Memory footprint. Anyways, can be a conversation for seperate PR. |
||
|
|
||
| map<string, string> properties = 3; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| syntax = "proto3"; | ||
| package contracts; | ||
|
|
||
| option csharp_namespace = "Microsoft.LocalForwarder.Library.Inputs.Contracts"; | ||
| option java_package = "com.microsoft.localforwarder.library.inputs.contracts"; | ||
| option java_multiple_files = true; | ||
|
|
||
| import "google/protobuf/duration.proto"; | ||
| import "Event.proto"; | ||
|
|
||
| message PageView { | ||
| Event event = 1; | ||
|
|
||
| string url = 2; | ||
|
|
||
| google.protobuf.Duration duration = 3; | ||
|
|
||
| string id = 4; | ||
|
|
||
| string referrerUri = 5; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.