Struct splunk::search::SplunkClient
source · pub struct SplunkClient {
pub serverconfig: ServerConfig,
pub auth_session_mode: AuthenticatedSessionMode,
/* private fields */
}
Expand description
Client for splunk enterprise/cloud API things, login, search, manipulate config items etc.
Fields§
§serverconfig: ServerConfig
server configuration object
auth_session_mode: AuthenticatedSessionMode
what mode we’re using for authentication (token, cookie etc)
Implementations§
source§impl SplunkClient
impl SplunkClient
sourcepub fn with_config(self, serverconfig: ServerConfig) -> Self
pub fn with_config(self, serverconfig: ServerConfig) -> Self
set the config on build
sourcepub async fn do_post(
&mut self,
endpoint: &str,
payload: HashMap<&str, String>
) -> Result<Response, String>
pub async fn do_post( &mut self, endpoint: &str, payload: HashMap<&str, String> ) -> Result<Response, String>
Make a POST request
Trait Implementations§
source§impl Debug for SplunkClient
impl Debug for SplunkClient
source§impl Default for SplunkClient
impl Default for SplunkClient
source§impl<'de> Deserialize<'de> for SplunkClient
impl<'de> Deserialize<'de> for SplunkClient
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more