pub struct Service {Show 30 fields
pub accepts: String,
pub rejects: Option<String>,
pub auto_update: bool,
pub category: String,
pub classification: String,
pub config: JsonMap,
pub description: Text,
pub default_result_classification: String,
pub enabled: bool,
pub is_external: bool,
pub licence_count: u32,
pub min_instances: Option<u32>,
pub max_queue_length: u32,
pub uses_tags: bool,
pub uses_tag_scores: bool,
pub uses_temp_submission_data: bool,
pub uses_metadata: bool,
pub monitored_keys: Vec<String>,
pub name: String,
pub version: String,
pub privileged: bool,
pub disable_cache: bool,
pub stage: String,
pub submission_params: Vec<SubmissionParams>,
pub timeout: i32,
pub docker_config: DockerConfig,
pub dependencies: HashMap<String, DependencyConfig>,
pub update_channel: ChannelKinds,
pub update_config: Option<UpdateConfig>,
pub recursion_prevention: Vec<String>,
}
Expand description
Service Configuration
Fields§
§accepts: String
Regex to accept files as identified by Assemblyline Regexes applied to assemblyline style file type string
rejects: Option<String>
Regex to reject files as identified by Assemblyline Regexes applied to assemblyline style file type string
auto_update: bool
Should the service be auto-updated?
category: String
Which category does this service belong to?
classification: String
Classification of the service
config: JsonMap
Service Configuration
description: Text
Description of service
default_result_classification: String
Default classification assigned to service results
enabled: bool
Is the service enabled
is_external: bool
Does this service perform analysis outside of Assemblyline?
licence_count: u32
How many licences is the service allowed to use?
min_instances: Option<u32>
The minimum number of service instances. Overrides Scaler’s min_instances configuration.
max_queue_length: u32
If more than this many jobs are queued for this service drop those over this limit. 0 is unlimited.
Does this service use tags from other services for analysis?
uses_tag_scores: bool
Does this service use scores of tags from other services for analysis?
uses_temp_submission_data: bool
Does this service use temp data from other services for analysis?
uses_metadata: bool
Does this service use submission metadata for analysis?
monitored_keys: Vec<String>
This service watches these temporary keys for changes when partial results are produced.
name: String
Name of service
version: String
Version of service
privileged: bool
Should the service be able to talk to core infrastructure or just service-server for tasking?
disable_cache: bool
Should the result cache be disabled for this service?
stage: String
Which execution stage does this service run in?
submission_params: Vec<SubmissionParams>
Submission parameters of service
timeout: i32
Service task timeout, in seconds
docker_config: DockerConfig
Docker configuration for service
dependencies: HashMap<String, DependencyConfig>
Dependency configuration for service
update_channel: ChannelKinds
What channel to watch for service updates?
update_config: Option<UpdateConfig>
Update configuration for fetching external resources
recursion_prevention: Vec<String>
List of service names/categories where recursion is prevented.
Implementations§
Trait Implementations§
Source§impl Described<ElasticMeta> for Service
impl Described<ElasticMeta> for Service
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
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>,
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more