harmos-protocol 0.1.15

Harmos v1 plugin protobuf messages and gRPC client and server.
Documentation
// This file is @generated by prost-build.
/// Carries the resource name, byte offset and byte bound for Diagnostics.Get.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DiagnosticsGetRequest {
    /// Empty creates a fresh archive and requires offset zero; otherwise selects the retained archive returned by an earlier response.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Zero-based byte offset, at most the selected archive length.
    #[prost(uint64, tag = "2")]
    pub offset: u64,
    /// Positive range size no greater than the host's configured range_bytes budget.
    #[prost(uint64, tag = "3")]
    pub max_bytes: u64,
}
/// Returns archive bytes at the requested offset with the retained archive identity, complete length and complete digest.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DiagnosticsGetResponse {
    /// Opaque retained archive identity used for subsequent ranges; a newer archive can retire it.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(bytes = "vec", tag = "2")]
    pub data: ::prost::alloc::vec::Vec<u8>,
    #[prost(uint64, tag = "3")]
    pub total_length: u64,
    /// 32-byte SHA-256 of the complete archive, not just the returned range.
    #[prost(bytes = "vec", tag = "4")]
    pub sha256: ::prost::alloc::vec::Vec<u8>,
}
/// Carries the read boundary and page selection and bounds for Logs.List.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct LogsListRequest {
    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
    #[prost(message, optional, tag = "1")]
    pub at: ::core::option::Option<crate::model::Position>,
    /// Required positive item and encoded-byte bounds, plus an optional retained continuation.
    #[prost(message, optional, tag = "2")]
    pub page: ::core::option::Option<crate::model::PageRequest>,
}
/// Returns bounded retained log events at a fixed boundary and any continuation token.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsListResponse {
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<Event>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::Position>,
    /// Empty means no continuation remains; otherwise resend this opaque token with the unchanged selection and read boundary.
    #[prost(string, tag = "3")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Carries the read boundary, byte bound and event bound for Logs.Watch.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct LogsWatchRequest {
    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
    #[prost(message, optional, tag = "1")]
    pub at: ::core::option::Option<crate::model::Position>,
    /// Positive encoded response byte limit, including boundary metadata; a single event that cannot fit refuses.
    #[prost(uint64, tag = "2")]
    pub max_bytes: u64,
    /// Positive maximum events in each live response; zero refuses.
    #[prost(uint32, tag = "3")]
    pub max_events: u32,
}
/// Returns an opening boundary or bounded newly observed log events after the prior boundary.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsWatchResponse {
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<Event>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::Position>,
}
/// Carries a bounded, redacted log or trace observation assigned a history sequence by the status owner.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
    /// Sequence assigned by the owning log/trace history, not a globally comparable event ID.
    #[prost(uint64, tag = "1")]
    pub sequence: u64,
    /// Authoritative host timestamp assigned when the status owner records the event.
    #[prost(message, optional, tag = "2")]
    pub observed_at: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(string, tag = "3")]
    pub level: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub target: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub message: ::prost::alloc::string::String,
    #[prost(map = "string, string", tag = "6")]
    pub fields: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
/// Carries the read boundary and page selection and bounds for TraceEvents.List.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TraceEventsListRequest {
    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
    #[prost(message, optional, tag = "1")]
    pub at: ::core::option::Option<crate::model::Position>,
    /// Required positive item and encoded-byte bounds, plus an optional retained continuation.
    #[prost(message, optional, tag = "2")]
    pub page: ::core::option::Option<crate::model::PageRequest>,
}
/// Returns bounded retained trace events at a fixed boundary and any continuation token.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TraceEventsListResponse {
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<Event>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::Position>,
    /// Empty means no continuation remains; otherwise resend this opaque token with the unchanged selection and read boundary.
    #[prost(string, tag = "3")]
    pub next_page_token: ::prost::alloc::string::String,
}
/// Carries the read boundary, byte bound and event bound for TraceEvents.Watch.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct TraceEventsWatchRequest {
    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
    #[prost(message, optional, tag = "1")]
    pub at: ::core::option::Option<crate::model::Position>,
    /// Positive encoded response byte limit, including boundary metadata; a single event that cannot fit refuses.
    #[prost(uint64, tag = "2")]
    pub max_bytes: u64,
    /// Positive maximum events in each live response; zero refuses.
    #[prost(uint32, tag = "3")]
    pub max_events: u32,
}
/// Returns an opening boundary or bounded newly observed trace events after the prior boundary.
#[allow(clippy::all)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TraceEventsWatchResponse {
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<Event>,
    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
    #[prost(message, optional, tag = "2")]
    pub resolved_at: ::core::option::Option<crate::model::Position>,
}