Skip to content

Instantly share code, notes, and snippets.

@tobz
Last active June 1, 2026 13:56
Show Gist options
  • Select an option

  • Save tobz/f41b277283630cf3128b727c52c55b5a to your computer and use it in GitHub Desktop.

Select an option

Save tobz/f41b277283630cf3128b727c52c55b5a to your computer and use it in GitHub Desktop.
syntax = "proto3";
package datadog.agent;
service AgentSecure {
rpc ReportRemoteAgentEvent(ReportRemoteAgentEventRequest) returns (ReportRemoteAgentEventResponse);
}
message Event {
ErrorType type = 1; // always set; either a simple or complex event
string message = 2; // human-readable description
// Reserved for eventually supporting complex "typed" events, which could be defined here
// as specific events with specific fields (or potentially as `google.protobuf.Any`):
//
// EventDetails details = 3;
//
// message EventDetails {
// oneof detail {
// ResourceExhausted resource_exhausted = 1;
// DependencyFailed dependency_failed = 2;
// ..
// }
// }
reserved 3;
}
enum ErrorType {
ERROR_TYPE_UNSPECIFIED = 0; // sentinel value for an unspecified error type
ERROR_TYPE_INVALID_API_KEY = 2; // invalid API key somewhere
// Reserved for complex "typed" events.
reserved 1;
}
message ReportRemoteAgentEventRequest {
repeated Event events = 1;
}
message ReportRemoteAgentEventResponse {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment