Struct aws_sdk_glue::types::GrokClassifier
source · #[non_exhaustive]pub struct GrokClassifier {
pub name: String,
pub classification: String,
pub creation_time: Option<DateTime>,
pub last_updated: Option<DateTime>,
pub version: i64,
pub grok_pattern: String,
pub custom_patterns: Option<String>,
}Expand description
A classifier that uses grok patterns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the classifier.
classification: StringAn identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
creation_time: Option<DateTime>The time that this classifier was registered.
last_updated: Option<DateTime>The time that this classifier was last updated.
version: i64The version of this classifier.
grok_pattern: StringThe grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
custom_patterns: Option<String>Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
Implementations§
source§impl GrokClassifier
impl GrokClassifier
sourcepub fn classification(&self) -> &str
pub fn classification(&self) -> &str
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time that this classifier was registered.
sourcepub fn last_updated(&self) -> Option<&DateTime>
pub fn last_updated(&self) -> Option<&DateTime>
The time that this classifier was last updated.
sourcepub fn grok_pattern(&self) -> &str
pub fn grok_pattern(&self) -> &str
The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
sourcepub fn custom_patterns(&self) -> Option<&str>
pub fn custom_patterns(&self) -> Option<&str>
Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
source§impl GrokClassifier
impl GrokClassifier
sourcepub fn builder() -> GrokClassifierBuilder
pub fn builder() -> GrokClassifierBuilder
Creates a new builder-style object to manufacture GrokClassifier.
Trait Implementations§
source§impl Clone for GrokClassifier
impl Clone for GrokClassifier
source§fn clone(&self) -> GrokClassifier
fn clone(&self) -> GrokClassifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GrokClassifier
impl Debug for GrokClassifier
source§impl PartialEq for GrokClassifier
impl PartialEq for GrokClassifier
source§fn eq(&self, other: &GrokClassifier) -> bool
fn eq(&self, other: &GrokClassifier) -> bool
self and other values to be equal, and is used
by ==.