pub struct Service {Show 27 fields
pub accepts: String,
pub rejects: Option<String>,
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 name: String,
pub version: String,
pub privileged: bool,
pub disable_cache: bool,
pub stage: String,
pub submission_params: Vec<SubmissionParams>,
pub timeout: u32,
pub docker_config: DockerConfig,
pub dependencies: HashMap<String, DependencyConfig>,
pub update_channel: ChannelKinds,
pub update_config: Option<UpdateConfig>,
}Expand description
Service Configuration
Fields§
§accepts: StringRegex 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
category: StringWhich category does this service belong to?
classification: StringClassification of the service
config: JsonMapService Configuration
description: TextDescription of service
default_result_classification: StringDefault classification assigned to service results
enabled: boolIs the service enabled
is_external: boolDoes this service perform analysis outside of Assemblyline?
licence_count: u32How 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: u32If 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: boolDoes this service use scores of tags from other services for analysis?
uses_temp_submission_data: boolDoes this service use temp data from other services for analysis?
uses_metadata: boolDoes this service use submission metadata for analysis?
name: StringName of service
version: StringVersion of service
privileged: boolShould the service be able to talk to core infrastructure or just service-server for tasking?
disable_cache: boolShould the result cache be disabled for this service?
stage: StringWhich execution stage does this service run in?
submission_params: Vec<SubmissionParams>Submission parameters of service
timeout: u32Service task timeout, in seconds
docker_config: DockerConfigDocker configuration for service
dependencies: HashMap<String, DependencyConfig>Dependency configuration for service
update_channel: ChannelKindsWhat channel to watch for service updates?
update_config: Option<UpdateConfig>Update configuration for fetching external resources
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> 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