Skip to main content

harmos_protocol/host/
status.rs

1// This file is @generated by prost-build.
2/// Carries the resource name, byte offset and byte bound for Diagnostics.Get.
3#[allow(clippy::all)]
4#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
5pub struct DiagnosticsGetRequest {
6    /// Empty creates a fresh archive and requires offset zero; otherwise selects the retained archive returned by an earlier response.
7    #[prost(string, tag = "1")]
8    pub name: ::prost::alloc::string::String,
9    /// Zero-based byte offset, at most the selected archive length.
10    #[prost(uint64, tag = "2")]
11    pub offset: u64,
12    /// Positive range size no greater than the host's configured range_bytes budget.
13    #[prost(uint64, tag = "3")]
14    pub max_bytes: u64,
15}
16/// Returns archive bytes at the requested offset with the retained archive identity, complete length and complete digest.
17#[allow(clippy::all)]
18#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
19pub struct DiagnosticsGetResponse {
20    /// Opaque retained archive identity used for subsequent ranges; a newer archive can retire it.
21    #[prost(string, tag = "1")]
22    pub name: ::prost::alloc::string::String,
23    #[prost(bytes = "vec", tag = "2")]
24    pub data: ::prost::alloc::vec::Vec<u8>,
25    #[prost(uint64, tag = "3")]
26    pub total_length: u64,
27    /// 32-byte SHA-256 of the complete archive, not just the returned range.
28    #[prost(bytes = "vec", tag = "4")]
29    pub sha256: ::prost::alloc::vec::Vec<u8>,
30}
31/// Carries the read boundary and page selection and bounds for Logs.List.
32#[allow(clippy::all)]
33#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
34pub struct LogsListRequest {
35    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
36    #[prost(message, optional, tag = "1")]
37    pub at: ::core::option::Option<crate::model::Position>,
38    /// Required positive item and encoded-byte bounds, plus an optional retained continuation.
39    #[prost(message, optional, tag = "2")]
40    pub page: ::core::option::Option<crate::model::PageRequest>,
41}
42/// Returns bounded retained log events at a fixed boundary and any continuation token.
43#[allow(clippy::all)]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct LogsListResponse {
46    #[prost(message, repeated, tag = "1")]
47    pub events: ::prost::alloc::vec::Vec<Event>,
48    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
49    #[prost(message, optional, tag = "2")]
50    pub resolved_at: ::core::option::Option<crate::model::Position>,
51    /// Empty means no continuation remains; otherwise resend this opaque token with the unchanged selection and read boundary.
52    #[prost(string, tag = "3")]
53    pub next_page_token: ::prost::alloc::string::String,
54}
55/// Carries the read boundary, byte bound and event bound for Logs.Watch.
56#[allow(clippy::all)]
57#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
58pub struct LogsWatchRequest {
59    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
60    #[prost(message, optional, tag = "1")]
61    pub at: ::core::option::Option<crate::model::Position>,
62    /// Positive encoded response byte limit, including boundary metadata; a single event that cannot fit refuses.
63    #[prost(uint64, tag = "2")]
64    pub max_bytes: u64,
65    /// Positive maximum events in each live response; zero refuses.
66    #[prost(uint32, tag = "3")]
67    pub max_events: u32,
68}
69/// Returns an opening boundary or bounded newly observed log events after the prior boundary.
70#[allow(clippy::all)]
71#[derive(Clone, PartialEq, ::prost::Message)]
72pub struct LogsWatchResponse {
73    #[prost(message, repeated, tag = "1")]
74    pub events: ::prost::alloc::vec::Vec<Event>,
75    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
76    #[prost(message, optional, tag = "2")]
77    pub resolved_at: ::core::option::Option<crate::model::Position>,
78}
79/// Carries a bounded, redacted log or trace observation assigned a history sequence by the status owner.
80#[allow(clippy::all)]
81#[derive(Clone, PartialEq, ::prost::Message)]
82pub struct Event {
83    /// Sequence assigned by the owning log/trace history, not a globally comparable event ID.
84    #[prost(uint64, tag = "1")]
85    pub sequence: u64,
86    /// Authoritative host timestamp assigned when the status owner records the event.
87    #[prost(message, optional, tag = "2")]
88    pub observed_at: ::core::option::Option<::prost_types::Timestamp>,
89    #[prost(string, tag = "3")]
90    pub level: ::prost::alloc::string::String,
91    #[prost(string, tag = "4")]
92    pub target: ::prost::alloc::string::String,
93    #[prost(string, tag = "5")]
94    pub message: ::prost::alloc::string::String,
95    #[prost(map = "string, string", tag = "6")]
96    pub fields: ::std::collections::HashMap<
97        ::prost::alloc::string::String,
98        ::prost::alloc::string::String,
99    >,
100}
101/// Carries the read boundary and page selection and bounds for TraceEvents.List.
102#[allow(clippy::all)]
103#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
104pub struct TraceEventsListRequest {
105    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
106    #[prost(message, optional, tag = "1")]
107    pub at: ::core::option::Option<crate::model::Position>,
108    /// Required positive item and encoded-byte bounds, plus an optional retained continuation.
109    #[prost(message, optional, tag = "2")]
110    pub page: ::core::option::Option<crate::model::PageRequest>,
111}
112/// Returns bounded retained trace events at a fixed boundary and any continuation token.
113#[allow(clippy::all)]
114#[derive(Clone, PartialEq, ::prost::Message)]
115pub struct TraceEventsListResponse {
116    #[prost(message, repeated, tag = "1")]
117    pub events: ::prost::alloc::vec::Vec<Event>,
118    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
119    #[prost(message, optional, tag = "2")]
120    pub resolved_at: ::core::option::Option<crate::model::Position>,
121    /// Empty means no continuation remains; otherwise resend this opaque token with the unchanged selection and read boundary.
122    #[prost(string, tag = "3")]
123    pub next_page_token: ::prost::alloc::string::String,
124}
125/// Carries the read boundary, byte bound and event bound for TraceEvents.Watch.
126#[allow(clippy::all)]
127#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
128pub struct TraceEventsWatchRequest {
129    /// Unset selects the current history boundary; otherwise resend an issued position for this owner. Foreign, expired and unissued positions refuse.
130    #[prost(message, optional, tag = "1")]
131    pub at: ::core::option::Option<crate::model::Position>,
132    /// Positive encoded response byte limit, including boundary metadata; a single event that cannot fit refuses.
133    #[prost(uint64, tag = "2")]
134    pub max_bytes: u64,
135    /// Positive maximum events in each live response; zero refuses.
136    #[prost(uint32, tag = "3")]
137    pub max_events: u32,
138}
139/// Returns an opening boundary or bounded newly observed trace events after the prior boundary.
140#[allow(clippy::all)]
141#[derive(Clone, PartialEq, ::prost::Message)]
142pub struct TraceEventsWatchResponse {
143    #[prost(message, repeated, tag = "1")]
144    pub events: ::prost::alloc::vec::Vec<Event>,
145    /// Issued boundary actually selected for this response; retain and resend it unchanged to continue the same read.
146    #[prost(message, optional, tag = "2")]
147    pub resolved_at: ::core::option::Option<crate::model::Position>,
148}