...

Source file src/edge-infra.dev/pkg/edge/logging/workload-siem/constants.go

Documentation: edge-infra.dev/pkg/edge/logging/workload-siem

     1  package workloadsiemcfg
     2  
     3  const (
     4  	//siem-configurations configmap data fields
     5  	WorkloadSiemConfigDataFieldName = "configs"
     6  
     7  	//siem-configurations configmap name and ns
     8  	WorkloadSiemConfigMapName = "workload-siem"
     9  	WorkloadSiemConfigMapNS   = "fluent-operator"
    10  )
    11  
    12  type SIEMClassification struct {
    13  	HelmEdgeID string `json:"helm_edge_ID"`
    14  	Pod        string `json:"pod"`
    15  	Container  string `json:"container"`
    16  	LogClass   string `json:"log_class"`
    17  	LogType    string `json:"log_type"`
    18  	Severity   string `json:"severity"`
    19  	Pattern    string `json:"pattern"`
    20  }
    21  
    22  type Annotations struct {
    23  	ClassificationsRaw string `yaml:"siem.edge.ncr.com/classifications"` // field to hold the raw JSON string
    24  }
    25  
    26  type Config struct {
    27  	Annotations Annotations `yaml:"annotations"`
    28  }
    29  

View as plain text