cortex_client/models/
analyzer_config_update_request.rs

1/*
2 * Cortex API
3 *
4 * API for Cortex, a powerful observable analysis and active response engine.
5 *
6 * The version of the OpenAPI document: 3.1.8
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AnalyzerConfigUpdateRequest {
16    /// Arbitrary JSON object representing a worker's specific configuration.
17    #[serde(rename = "config")]
18    pub config: std::collections::HashMap<String, serde_json::Value>,
19}
20
21impl AnalyzerConfigUpdateRequest {
22    pub fn new(config: std::collections::HashMap<String, serde_json::Value>) -> AnalyzerConfigUpdateRequest {
23        AnalyzerConfigUpdateRequest {
24            config,
25        }
26    }
27}
28