Skip to main content

概述

data analysis

一、rules 规则

系统会根据配置的规则,对原数据进行分析

数据结构

{
  "type":"system",
  "rules":[
      {
          "id":1,
          "type":"log",
          "condition":"xxxx" 
      },
      {
          "id":2,
          "type":"assert",
          "condition":"xxxx" 
      },
      {
          "id":3,
          "type":"data",
          "condition":"xxxx"
      }
  ],
  "relation":"id1|id2|id3",
  "result":{ 
      "type":"system",
      "module":"bluetooth",
      "desc":"蓝牙没打开"
  },
  "weights":1

type 规则类型

支持 coredump、system、test

  1. coredump 数据分析
  2. system 系统级别日志分析
  3. test 测试业务数据分析

rules 规则

  1. id 唯一标识
  2. type 匹配内容类型,log-行日志、assert-断言、data-直接数据
  3. condition 匹配条件,支持正则表达式,可配置多个条件

relation 匹配条件关系

多个条件id匹配关系,支持 与&、或|、非not、优先级()

result 匹配结果

  1. type 结果类型:cloud云端问题,system系统端问题
  2. module 问题模块:bluetooth蓝牙模块,alarm闹钟模块等。。
  3. desc 问题描述

weights 权重

同时匹配多个规则时,权重越大概率越高

打包上传

1.pip install twine 2.python setup.py sdist bdist_wheel --打包 3.twine upload --repository-url https://upload.pypi.org/legacy/ dist/* --上传

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data-analyze-1.0.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

data_analyze-1.0.1-py2-none-any.whl (11.1 kB view details)

Uploaded Python 2

File details

Details for the file data-analyze-1.0.1.tar.gz.

File metadata

  • Download URL: data-analyze-1.0.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for data-analyze-1.0.1.tar.gz
Algorithm Hash digest
SHA256 47d6b64a3ef90330bdd2f70b13c03c16f9a4b2b89fcf9e112d3d49f37299c6ae
MD5 bfce7c96d1b15350ce6603f6fc4f5b8e
BLAKE2b-256 15ca320d94f131aa08e07b0be6af62d7ff9cfab17ac9ca74b61124dda7fdf3d3

See more details on using hashes here.

File details

Details for the file data_analyze-1.0.1-py2-none-any.whl.

File metadata

  • Download URL: data_analyze-1.0.1-py2-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for data_analyze-1.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 ab4c52e41437977e3434f320bfc54bb7e05aa391b19ad6fe3b85a6977bfed88d
MD5 e92bbbd0995cad63d2813c8041bd8146
BLAKE2b-256 1e9ebf684bf3ee19a9b0b70ab8d3a2bfcb494031ee6a52561e3e13cba53bbeba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page