gcp_client/google/logging/type.rs
1/// The severity of the event described in a log entry, expressed as one of the
2/// standard severity levels listed below. For your reference, the levels are
3/// assigned the listed numeric values. The effect of using numeric values other
4/// than those listed is undefined.
5///
6/// You can filter for log entries by severity. For example, the following
7/// filter expression will match log entries with severities `INFO`, `NOTICE`,
8/// and `WARNING`:
9///
10/// severity > DEBUG AND severity <= WARNING
11///
12/// If you are writing log entries, you should map other severity encodings to
13/// one of these standard levels. For example, you might map all of Java's FINE,
14/// FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
15/// original severity level in the log entry payload if you wish.
16#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
17#[repr(i32)]
18pub enum LogSeverity {
19 /// (0) The log entry has no assigned severity level.
20 Default = 0,
21 /// (100) Debug or trace information.
22 Debug = 100,
23 /// (200) Routine information, such as ongoing status or performance.
24 Info = 200,
25 /// (300) Normal but significant events, such as start up, shut down, or
26 /// a configuration change.
27 Notice = 300,
28 /// (400) Warning events might cause problems.
29 Warning = 400,
30 /// (500) Error events are likely to cause problems.
31 Error = 500,
32 /// (600) Critical events cause more severe problems or outages.
33 Critical = 600,
34 /// (700) A person must take an action immediately.
35 Alert = 700,
36 /// (800) One or more systems are unusable.
37 Emergency = 800,
38}