From b49dab0949267c6c9e403b743f75e1bcb1d952b3 Mon Sep 17 00:00:00 2001 From: Meng Li <34143965+Meng6@users.noreply.github.com> Date: Wed, 10 Mar 2021 15:29:53 -0500 Subject: [PATCH] Migrate phone apps crashes sensor to new data stream --- docs/datastreams/aware-mysql.md | 27 ++++++++++++++++++++++ docs/datastreams/mandatory-phone-format.md | 15 ++++++++++++ src/data/streams/aware_mysql/format.yaml | 16 +++++++++++++ src/data/streams/rapids_columns.yaml | 11 +++++++++ 4 files changed, 69 insertions(+) diff --git a/docs/datastreams/aware-mysql.md b/docs/datastreams/aware-mysql.md index f36dfd69..793455dd 100644 --- a/docs/datastreams/aware-mysql.md +++ b/docs/datastreams/aware-mysql.md @@ -112,6 +112,33 @@ Stream columns named `FLAG_TO_MUTATE` means they are extracted based on the `MUT - if stream's `confidence` field is 2, set `CONFIDENCE` = 100 +??? info "PHONE_APPLICATIONS_CRASHES" + + === "ANDROID" + + **RAPIDS_COLUMN_MAPPINGS** + + | RAPIDS column | Stream column | + |--------------------|--------------------| + | TIMESTAMP | timestamp | + | DEVICE_ID | device_id | + | PACKAGE_NAME | package_name | + | APPLICATION_NAME | application_name | + | APPLICATION_VERSION| application_version| + | ERROR_SHORT | error_short | + | ERROR_LONG | error_long | + | ERROR_CONDITION | error_condition | + | IS_SYSTEM_APP | is_system_app | + + **MUTATION** + + - **COLUMN_MAPPINGS** (None) + - **SCRIPTS** (None) + + === "IOS" + + This sensor is not supported by iOS devices. + ??? info "PHONE_APPLICATIONS_FOREGROUND" diff --git a/docs/datastreams/mandatory-phone-format.md b/docs/datastreams/mandatory-phone-format.md index 2d0c79a7..9829e3ac 100644 --- a/docs/datastreams/mandatory-phone-format.md +++ b/docs/datastreams/mandatory-phone-format.md @@ -24,6 +24,21 @@ This is a description of the format RAPIDS needs to process data for the followi | CONFIDENCE | An integer (ranged from 0 to 100) that denotes the prediction accuracy | +??? info "PHONE_APPLICATIONS_CRASHES" + + | RAPIDS column | Description | + |--------------------|---------------------------------------------------------------------------| + | TIMESTAMP | An UNIX timestamp (13 digits) when a row of data was logged | + | DEVICE_ID | A string that uniquely identifies a device | + | PACKAGE_NAME | Application’s package name | + | APPLICATION_NAME | Application’s localized name | + | APPLICATION_VERSION| Application’s version code | + | ERROR_SHORT | Short description of the error | + | ERROR_LONG | More verbose version of the error description | + | ERROR_CONDITION | 1 = code error; 2 = non-responsive (ANR error) | + | IS_SYSTEM_APP | Device’s pre-installed application | + + ??? info "PHONE_APPLICATIONS_FOREGROUND" | RAPIDS column | Description | diff --git a/src/data/streams/aware_mysql/format.yaml b/src/data/streams/aware_mysql/format.yaml index c7ac2e81..10fab4fc 100644 --- a/src/data/streams/aware_mysql/format.yaml +++ b/src/data/streams/aware_mysql/format.yaml @@ -45,6 +45,22 @@ PHONE_ACTIVITY_RECOGNITION: SCRIPTS: # List any python or r scripts that mutate your raw data - "src/data/streams/mutations/phone/aware/activity_recogniton_ios_unification.R" +PHONE_APPLICATIONS_CRASHES: + ANDROID: + RAPIDS_COLUMN_MAPPINGS: + TIMESTAMP: timestamp + DEVICE_ID: device_id + PACKAGE_NAME: package_name + APPLICATION_NAME: application_name + APPLICATION_VERSION: application_version + ERROR_SHORT: error_short + ERROR_LONG: error_long + ERROR_CONDITION: error_condition + IS_SYSTEM_APP: is_system_app + MUTATION: + COLUMN_MAPPINGS: + SCRIPTS: # List any python or r scripts that mutate your raw data + PHONE_APPLICATIONS_FOREGROUND: ANDROID: RAPIDS_COLUMN_MAPPINGS: diff --git a/src/data/streams/rapids_columns.yaml b/src/data/streams/rapids_columns.yaml index 7629b1d6..ec3da129 100644 --- a/src/data/streams/rapids_columns.yaml +++ b/src/data/streams/rapids_columns.yaml @@ -12,6 +12,17 @@ PHONE_ACTIVITY_RECOGNITION: - ACTIVITY_TYPE - CONFIDENCE +PHONE_APPLICATIONS_CRASHES: + - TIMESTAMP + - DEVICE_ID + - PACKAGE_NAME + - APPLICATION_NAME + - APPLICATION_VERSION + - ERROR_SHORT + - ERROR_LONG + - ERROR_CONDITION + - IS_SYSTEM_APP + PHONE_APPLICATIONS_FOREGROUND: - TIMESTAMP - DEVICE_ID