Service

Struct Service 

Source
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.

§uses_tags: bool

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§

Source§

impl Service

Source

pub fn key(&self) -> String

Trait Implementations§

Source§

impl Clone for Service

Source§

fn clone(&self) -> Service

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Service

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Described<ElasticMeta> for Service

Source§

fn metadata() -> Descriptor<ElasticMeta>

Get self description of this type
Source§

impl<'de> Deserialize<'de> for Service

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Service

Source§

fn eq(&self, other: &Service) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Readable for Service

Source§

fn set_from_archive(&mut self, _from_archive: bool)

Source§

impl Serialize for Service

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Service

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,