1.登录数据库

[root@node1 ~]# mongo localhost:
> show dbs;
admin .000GB
dashboarddb .001GB
local .000GB
> use dashboarddb
switched to db dashboarddb
> show tables;
collectors
builds_summary
events
reviews
feature
historic_user_metrics
builds
dashboards
user-metrics
commits

2.数据表信息

builds_summary表

> db.builds_summary.find()
{ "_id" : ObjectId("5bfa8b5ba7b11b0006631220"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "all-ok", "repoName" : "all-ok", "statusMap" : { "Success" : NumberLong(2) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631221"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "dynamic", "repoName" : "dynamic", "statusMap" : { "Success" : NumberLong(2) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631222"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "failed-integration", "repoName" : "failed-integration", "statusMap" : { "Success" : NumberLong(1), "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631223"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "failed-master", "repoName" : "failed-master", "statusMap" : { "Failure" : NumberLong(1), "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631224"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "mirrorgate-jenkins-plugin", "statusMap" : { "Success" : NumberLong(3), "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(4), "totalDuration" : 40320440 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631225"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "mirrorgate-app", "statusMap" : { "Success" : NumberLong(6), "Failure" : NumberLong(2), "Unstable" : NumberLong(1) }, "totalBuilds" : NumberLong(9), "totalDuration" : 32388820 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631226"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "jira-collector", "statusMap" : { "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 23452230 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631227"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "MirrorGate", "repoName" : "design", "statusMap" : { "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 23452340 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631228"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "no-master", "repoName" : "no-master", "statusMap" : { "Failure" : NumberLong(1), "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(2), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b0006631229"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "only-branch", "repoName" : "only-branch", "statusMap" : { "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b000663122a"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "two-and-one-failed-master", "repoName" : "failed", "statusMap" : { "Failure" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 0 }
{ "_id" : ObjectId("5bfa8b5ca7b11b000663122b"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.BuildSummary", "timestamp" : NumberLong("1543104000000"), "projectName" : "two-and-one-failed-master", "repoName" : "ok", "statusMap" : { "Success" : NumberLong(1) }, "totalBuilds" : NumberLong(1), "totalDuration" : 0 }

events表

> db.events.find()
{ "_id" : ObjectId("5bfa8da0a7b11b000663122d"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Event", "timestamp" : NumberLong("1543146912780"), "eventTypeCollectionId" : ObjectId("5bfa8d5aa7b11b000663122c"), "eventType" : "DETAIL" }
{ "_id" : ObjectId("5bfa8f47a7b11b000663122e"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Event", "timestamp" : NumberLong("1543147335073"), "eventTypeCollectionId" : ObjectId("5bfa8d5aa7b11b000663122c"), "eventType" : "DETAIL" }

reviews表

> db.reviews.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e92f"), "appname" : "moods", "starrating" : 3.5, "platform" : "Android", "amount" : 20 }
{ "_id" : ObjectId("5bfa8b31645898022b01e930"), "appname" : "moods", "starrating" : 4.3, "platform" : "IOS", "amount" : 10 }
{ "_id" : ObjectId("5bfa8b31645898022b01e931"), "timestamp" : 1542282289193, "appname" : "moods", "authorName" : "Kike", "starrating" : 3, "comment" : "Pufff!", "platform" : "IOS" }
{ "_id" : ObjectId("5bfa8b31645898022b01e932"), "timestamp" : 1542714289193, "appname" : "moods", "authorName" : "Kike", "starrating" : 4, "comment" : "It's now beter!", "platform" : "IOS" }
{ "_id" : ObjectId("5bfa8b31645898022b01e933"), "timestamp" : 1542282289193, "appname" : "moods", "authorName" : "Kike", "starrating" : 5, "comment" : "Awesome!", "platform" : "Android" }
{ "_id" : ObjectId("5bfa8b31645898022b01e934"), "timestamp" : 1541418289193, "appname" : "moods", "authorName" : "Ana", "starrating" : 4, "comment" : "Buen diseño", "platform" : "Android", "amount" : 1 }
{ "_id" : ObjectId("5bfa8b31645898022b01e935"), "timestamp" : 1542887089193, "appname" : "moods", "authorName" : "Ana", "starrating" : 4, "comment" : "Buen diseño", "platform" : "Android" }
{ "_id" : ObjectId("5bfa8b31645898022b01e936"), "timestamp" : 1539690289193, "appname" : "moods", "authorName" : "kike", "starrating" : 4, "comment" : "Consume mucho", "platform" : "Android" }

feature表

> db.feature.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e807"), "sId" : "430210", "sNumber" : "DOST05-47", "sName" : "[ISW] Build failure rate", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 3, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e808"), "sId" : "46093", "sNumber" : "DOST05-90", "sName" : "SPIKE: Analyze the cost of migrating", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 3, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e809"), "sId" : "46095", "sNumber" : "DOST05-92", "sName" : "Login", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 8, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e80a"), "sId" : "46094", "sNumber" : "DOST05-91", "sName" : "Distribute application", "sTypeName" : "Story", "sStatus" : "Backlog", "dEstimate" : 5, "sSprintID" : "1225", "sSprintName" : "MIRRORGATE_SP4", "sSprintAssetState" : "ACTIVE", "sprintBeginDate" : ISODate("2018-11-18T11:44:49.083Z"), "sprintEndDate" : ISODate("2018-12-06T11:44:49.083Z"), "sProjectId" : null, "sProjectName" : "MirrorGate", "collectorId" : "mirrorgate-collectors-jira", "keywords" : [ "MirrorGate" ] }

builds表

> db.builds.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e908"), "timestamp" : 1543139089149, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "all-ok", "repoName" : "all-ok", "branch" : "master", "keywords" : [ "http://fake.url", "all-ok", "all-ok" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e909"), "timestamp" : 1543139089149, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "all-ok", "repoName" : "all-ok", "branch" : "develop", "keywords" : [ "http://fake.url", "all-ok", "all-ok" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e90b"), "timestamp" : 1543139089161, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "dynamic", "repoName" : "dynamic", "branch" : "master", "keywords" : [ "http://fake.url", "dynamic", "dynamic" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e90c"), "timestamp" : 1543139089161, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "dynamic", "repoName" : "dynamic", "branch" : "develop", "keywords" : [ "http://fake.url", "dynamic", "dynamic" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e90e"), "timestamp" : "aaa", "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "errored", "repoName" : "errored", "branch" : "master", "keywords" : [ "http://fake.url", "errored", "errored" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e910"), "timestamp" : 1543139089166, "number" : null, "buildUrl" : "http://fake.url", "startTime" : 0, "endTime" : 0, "duration" : 0, "buildStatus" : "Success", "startedBy" : null, "projectName" : "failed-integration", "repoName" : "failed-integration", "branch" : "master", "keywords" : [ "http://fake.url", "failed-integration", "failed-integration" ] }

dashboards表

> db.dashboards.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e7ff"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Dashboard", "name" : "mirrorgate", "logoUrl" : "/mirrorgate/img/logo.png", "type" : "Custom", "columns" : [ [ "bugs", "current-sprint", "next-sprint" ], [ "scm-metrics", "builds", "buildsstats" ], [ "program-increment" ], [ "markets", "reviews", "user-metrics", "operations" ] ], "codeRepos" : [ "mirrorgate-app", "MirrorGate", "jira-collector", "design" ], "applications" : [ ], "analyticViews" : [ "1234123" ], "boards" : [ "MirrorGate" ], "lastTimeUsed" : NumberLong("1543147032285"), "programIncrement" : "MG[0-9]{2}", "skin" : "classic", "marketsStatsDays" : 7, "gitRepos" : [ "ssh://git@fake.com:fake/repo1.git" ] }
{ "_id" : ObjectId("5bfa8b31645898022b01e800"), "_class" : "com.bbva.arq.devops.ae.mirrorgate.model.Dashboard", "name" : "all-the-stuff", "displayName" : "All the indicators", "logoUrl" : "/mirrorgate/img/logo.png", "columns" : [ [ "scm-metrics", "current-sprint", "bugs" ], [ "program-increment", "next-sprint" ], [ "builds", "buildsstats" ], [ "markets", "reviews", "user-metrics", "operations-metrics" ], [ "alerts" ] ], "codeRepos" : [ "mirrorgate-app", "MirrorGate", "jira-collector", "design" ], "applications" : [ "moods" ], "analyticViews" : [ "1234123" ], "boards" : [ "MirrorGate" ], "slackTeam" : "All", "lastTimeUsed" : NumberLong("1543147249260"), "programIncrement" : "MG02", "urlAlerts" : "alerts", "skin" : "classic", "marketsStatsDays" : 7 }
{ "_id" : ObjectId("5bfa8b31645898022b01e801"), "name" : "program-increment", "displayName" : "Program Increment", "codeRepos" : [ "mirrorgate-app", "MirrorGate", "jira-collector", "design" ], "boards" : [ "MirrorGate2" ], "programIncrement" : "2017_PI03" }
{ "_id" : ObjectId("5bfa8b31645898022b01e802"), "name" : "nothing" }
{ "_id" : ObjectId("5bfa8b31645898022b01e803"), "name" : "empty", "codeRepos" : [ ], "applications" : [ ], "boards" : [ ] }

user-metrics表

> db.user-metrics.find()
2018-11-25T07:23:13.142-0500 ReferenceError: metrics is not defined

commits表

> db.commits.find()
{ "_id" : ObjectId("5bfa8b31645898022b01e942"), "id" : "1234123", "repository" : "ssh://git@fake.com:fake/repo1.git", "timestamp" : 1518009865, "branches" : { "refs/remotes/origin/master" : 1519231554 } }
{ "_id" : ObjectId("5bfa8b31645898022b01e943"), "id" : "1234124", "repository" : "ssh://git@fake.com:fake/repo1.git", "timestamp" : 1518009865, "branches" : { "refs/remotes/origin/master" : 1519231554 } }

05-Mirrorgate数据库信息的更多相关文章

  1. Logstash同步mysql数据库信息到ES

    @font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @fo ...

  2. Sql Server之使用T_SQL创建,修改,查看数据库信息

    一.使用Transact_SQL创建数据库 Transact_SQL语法如下:  create database database_name   [ on     [primary]  [<fi ...

  3. SQL查询数据库信息, 数据库表名, 数据库表信息

    SQL查询数据库信息, 数据库表名, 数据库表信息 ---------------------------------------------- -- 以下例子, 在sql_server 中可以直接运 ...

  4. 新浪SAE数据库信息wordpress设置(用户&密码&主地址)

    新浪SAE数据库信息wordpress设置(用户&密码&主地址) 此账号仅能在SAE平台上使用,不能从外部连接我们建议开发者使用SaeMysql操作数据库如果您想自己实现数据库相关操作 ...

  5. 使用HQL语句的按照参数名字查询数据库信息的时候 “=:”和参数之间不能存在空格,否则会报错

    问题描述: 今天在使用HQL的按照参数的名字查询数据库信息的时候报错如下: org.hibernate.QueryException: Space is not allowed after param ...

  6. MySQL -A不预读数据库信息(use dbname 更快)

    mysql数据库预读与不预读数据库信息(use dbname)—Reading table information for completion of table and column names   ...

  7. 数据文件、日志文件、归档文件、控制文件、参数文件及RMAN备份数据库信息查询

    一.查看数据库信息:=====================1.数据文件 SQL> SELECT FILE#,STATUS,ENABLED,NAME FROM V$DATAFILE; FILE ...

  8. JQuery DataTables Editor---页面内容修改&&数据库信息修改 (2)

    接上篇博文,详细说一下js代码以及JQuery DataTables Editor---页面内容修改&&数据库信息修改遇到的问题和解决办法. 1.关于dialog 初始化: $(&qu ...

  9. JQuery DataTables Editor---页面内容修改&&数据库信息修改 (1)

    我们使用jquery datatables 不光是为了对数据的展示,同时需要对数据惊行简单的操作,这个操作分为两个部分:1.页面内容的修改:2.对应的数据库信息的修改. 前一篇博文介绍了页面级的操作, ...

  10. hibernate通过配置文件生成数据库信息

    hibernate可以通过配置文件在数据库生成相应的数据库信息.也可以把数据库的信息生成相应的代码(实体类操作类和映射文件) 下面是通过代码默认对hibernate.cfg.xml信息在数据库生成信息 ...

随机推荐

  1. 警告!中国90%AI初创企业将在两年内落败出局

    https://mp.weixin.qq.com/s/-RkyLda1jovaHBlBTsi-BA 近年来,中国涌现了一大批AI初创企业,但AI热潮也伴随着泡沫.由于近期市场资金紧缩,投资者发出警告, ...

  2. SD从零开始66 数据仓库的概念

    [原创] SD从零开始66 数据仓库的概念 数据仓库概念:预览Data Warehouse Concepts:Overview 本单元解释LIS中的数据仓库概念: 详细的解释了该概念的各个层次-介绍了 ...

  3. Oracle 11gR2_database在Linux下的安装

    Oracle 11gR2_database在Linux下的安装 by:授客 QQ:1033553122 由于篇幅问题,采用链接分享的形式,烦请复制以下网址,黏贴到浏览器中打开,下载 http://pa ...

  4. android开发笔记:Handler、Looper、MessageQueen、Message的关系

    一.什么是handler? 注:线程分为主线程(主线程又叫UI线程,只能有一个主线程)和子线程(可以有多个)Handler只能在主线程里运行 handler是Android给我们提供用来更新UI的一套 ...

  5. Source Insight 查找的选择项

    查找参数:whole words only :                  全字匹配查找case sensitive  :                   区分大小写project wide ...

  6. Paxos 算法 :消息传递一致性

    网络上有很多关于优秀的关于Paxos 算法的文章,我下面进行整理搜集一下: 分布式理论之一:Paxos算法的通俗理解 维基的简介:Paxos算法是莱斯利·兰伯特(Leslie Lamport,就是 L ...

  7. Eclipse配置和使用Maven

    一.ecplise配置Maven 1.下载eclipse的Maven插件.(有些eclipse版本中已经集成了此Maven插件,可以不用下载). 需要下载m2eclipse插件. 2.安装m2ecli ...

  8. Memcached、Redis、RabbitMQ

    目录 一.Memcached 二.Redis 三.RabbitMQ Memcached Memcache 是一个开源.高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载.它通过在内存中 ...

  9. 4.2Python数据处理篇之Matplotlib系列(二)---plt.scatter()散点图

    目录 目录 前言 (一)散点图的基础知识 (二)相关性的举例 ==1.正相关== ==1.负相关== ==1.不相关== (三)实战项目以一股票的分析 目录 前言 散点图是用于观测数据的相关性的,有正 ...

  10. metamask源码学习-ui/index.js

    The UI-即上图左下角metamask-ui部分,即其图形化界面 The MetaMask UI is essentially just a website that can be configu ...