Add API to save anomaly data (#277)

This PR adds two new methods in DataStore to determine anomaly and collect necessary data. Additionally
    - a generic parameter of DataStore turned to be associative
    - AVMOutcome contains additionally memory_delta and execution_time
This commit is contained in:
Mike Voronov
2022-06-23 15:24:00 +03:00
committed by GitHub
parent 090eceef85
commit 3a84ceb863
9 changed files with 156 additions and 18 deletions

View File

@ -14,9 +14,12 @@
* limitations under the License.
*/
use serde::Deserialize;
use serde::Serialize;
use std::borrow::Cow;
/// Represents parameters obtained from a particle.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ParticleParameters<'init_peer_id, 'particle_id> {
pub init_peer_id: Cow<'init_peer_id, String>,
pub particle_id: Cow<'particle_id, String>,