pub struct RestSearchEventsRequest {Show 36 fields
pub page: Option<Option<i32>>,
pub limit: Option<Option<i32>>,
pub value: Option<String>,
pub type: Option<AttributeType>,
pub category: Option<AttributeCategory>,
pub org: Option<Box<RestSearchEventsRequestOrg>>,
pub tags: Option<Option<Vec<String>>>,
pub event_tags: Option<Option<Vec<String>>>,
pub searchall: Option<String>,
pub from: Option<Option<String>>,
pub to: Option<Option<String>>,
pub last: Option<Option<Box<LastRestSearchFilter>>>,
pub eventid: Option<String>,
pub with_attachments: Option<bool>,
pub sharinggroup: Option<Option<Vec<String>>>,
pub metadata: Option<Option<bool>>,
pub uuid: Option<Uuid>,
pub publish_timestamp: Option<String>,
pub timestamp: Option<String>,
pub published: Option<bool>,
pub enforce_warninglist: Option<Option<bool>>,
pub sg_reference_only: Option<bool>,
pub requested_attributes: Option<Vec<String>>,
pub include_context: Option<Option<bool>>,
pub headerless: Option<Option<bool>>,
pub include_warninglist_hits: Option<Option<bool>>,
pub attack_galaxy: Option<Option<String>>,
pub to_ids: Option<bool>,
pub deleted: Option<bool>,
pub exclude_local_tags: Option<Option<bool>>,
pub date: Option<Option<String>>,
pub include_sightingdb: Option<Option<bool>>,
pub tag: Option<String>,
pub object_relation: Option<Option<String>>,
pub threat_level_id: Option<ThreatLevelId>,
pub return_format: Option<EventsRestSearchReturnFormat>,
}
Fields§
§page: Option<Option<i32>>
§limit: Option<Option<i32>>
§value: Option<String>
§type: Option<AttributeType>
§category: Option<AttributeCategory>
§org: Option<Box<RestSearchEventsRequestOrg>>
§searchall: Option<String>
Search events by matching any tag names, event descriptions, attribute values or attribute comments
from: Option<Option<String>>
You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)
to: Option<Option<String>>
You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)
last: Option<Option<Box<LastRestSearchFilter>>>
§eventid: Option<String>
§with_attachments: Option<bool>
Extends the response with the base64 representation of the attachment, if there is one
sharinggroup: Option<Option<Vec<String>>>
Sharing group ID(s), either as single string or list of IDs
metadata: Option<Option<bool>>
Will only return the metadata of the given query scope, contained data is omitted.
uuid: Option<Uuid>
§publish_timestamp: Option<String>
§timestamp: Option<String>
§published: Option<bool>
§enforce_warninglist: Option<Option<bool>>
Should the warning list be enforced. Adds blocked field for matching attributes
sg_reference_only: Option<bool>
Will only return the sharing group ID
requested_attributes: Option<Vec<String>>
List of properties that will be selected in the CSV export
include_context: Option<Option<bool>>
Adds events context fields in the CSV export
headerless: Option<Option<bool>>
Removes header in the CSV export
include_warninglist_hits: Option<Option<bool>>
§attack_galaxy: Option<Option<String>>
§to_ids: Option<bool>
§deleted: Option<bool>
Whether to include soft-deleted attributes. Default value 0. If set to 1, only deleted attributes will be returned. If set to [0,1], both deleted and non-deleted attributes wil be returned.
Exclude local tags from the export
date: Option<Option<String>>
You can use any of the valid time related filters (examples: 7d, timestamps, [14d, 7d] for ranges, etc.)
include_sightingdb: Option<Option<bool>>
Extend response with Sightings DB results if the module is enabled
tag: Option<String>
§object_relation: Option<Option<String>>
Filter by the attribute object relation value
threat_level_id: Option<ThreatLevelId>
§return_format: Option<EventsRestSearchReturnFormat>
Implementations§
Source§impl RestSearchEventsRequest
impl RestSearchEventsRequest
pub fn new() -> RestSearchEventsRequest
Trait Implementations§
Source§impl Clone for RestSearchEventsRequest
impl Clone for RestSearchEventsRequest
Source§fn clone(&self) -> RestSearchEventsRequest
fn clone(&self) -> RestSearchEventsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more