05-Mirrorgate数据库信息
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数据库信息的更多相关文章
- Logstash同步mysql数据库信息到ES
@font-face{ font-family:"Times New Roman"; } @font-face{ font-family:"宋体"; } @fo ...
- Sql Server之使用T_SQL创建,修改,查看数据库信息
一.使用Transact_SQL创建数据库 Transact_SQL语法如下: create database database_name [ on [primary] [<fi ...
- SQL查询数据库信息, 数据库表名, 数据库表信息
SQL查询数据库信息, 数据库表名, 数据库表信息 ---------------------------------------------- -- 以下例子, 在sql_server 中可以直接运 ...
- 新浪SAE数据库信息wordpress设置(用户&密码&主地址)
新浪SAE数据库信息wordpress设置(用户&密码&主地址) 此账号仅能在SAE平台上使用,不能从外部连接我们建议开发者使用SaeMysql操作数据库如果您想自己实现数据库相关操作 ...
- 使用HQL语句的按照参数名字查询数据库信息的时候 “=:”和参数之间不能存在空格,否则会报错
问题描述: 今天在使用HQL的按照参数的名字查询数据库信息的时候报错如下: org.hibernate.QueryException: Space is not allowed after param ...
- MySQL -A不预读数据库信息(use dbname 更快)
mysql数据库预读与不预读数据库信息(use dbname)—Reading table information for completion of table and column names ...
- 数据文件、日志文件、归档文件、控制文件、参数文件及RMAN备份数据库信息查询
一.查看数据库信息:=====================1.数据文件 SQL> SELECT FILE#,STATUS,ENABLED,NAME FROM V$DATAFILE; FILE ...
- JQuery DataTables Editor---页面内容修改&&数据库信息修改 (2)
接上篇博文,详细说一下js代码以及JQuery DataTables Editor---页面内容修改&&数据库信息修改遇到的问题和解决办法. 1.关于dialog 初始化: $(&qu ...
- JQuery DataTables Editor---页面内容修改&&数据库信息修改 (1)
我们使用jquery datatables 不光是为了对数据的展示,同时需要对数据惊行简单的操作,这个操作分为两个部分:1.页面内容的修改:2.对应的数据库信息的修改. 前一篇博文介绍了页面级的操作, ...
- hibernate通过配置文件生成数据库信息
hibernate可以通过配置文件在数据库生成相应的数据库信息.也可以把数据库的信息生成相应的代码(实体类操作类和映射文件) 下面是通过代码默认对hibernate.cfg.xml信息在数据库生成信息 ...
随机推荐
- PopupWindow 弹出时背景变暗
下面的PopupWindow 的高是相对于屏幕高设计,宽是获取的某一个控件的宽设置,位置位于某控件的上方,红色部分是设置弹出时屏幕变暗的. //设置contentView View contentV ...
- wx python 基本控件
一.静态文本控件 wx.StaticText(parent, id, label, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0, n ...
- 进程管理-PV操作
1.临界资源:诸进程需要互斥方式对其进行共享的资源. 2.临界区:每个进程中访问临界资源的那段代码. 3.信号量:一种特殊的变量.
- Sql Server 增加字段、修改字段、修改类型、修改默认值
1.修改字段名: alter table 表名 rename column A to B 2.修改字段类型: alter table 表名 alter column 字段名 type not null ...
- sql最简单的查询语句
-- 2 **************************************************** -- 最简单的查询语句 -- 2.1 ----------------------- ...
- 高通 sensor 从native到HAL
app注册传感器监听 Android Sensor Framework 的整体架构如下图所示: 前几篇sensor相关的文章介绍了sensor的hal的知识,以press_sensor实时显示气压坐标 ...
- check
private int AddNewstoDB(NewsModels newsModels, string dateTimeStr, string jsonStr, string cid, strin ...
- 【PAT】B1085 PAT单位排行(25 分)(c++实现)
终于做的有点眉目了,今天学习了一点stl的皮毛,解题瞬间变容易了 下边开始分析本题 这道题如果用纯c解决实在太麻烦,试了半天两个超时,果断放弃,还是用map方便: 我的方法与柳神的方法是有区别的,我只 ...
- zabbix使用自定义脚本监控内存
我这里的脚本是监控centos7系统的内存.centos7系统的内存如何查看我之前的博客都是有的.这里直接写了监控步骤 1.首先是编写脚本. #!/bin/bash mem_total(){ TOTA ...
- 使用sstream来进行类型转换
在某种情况下,我们不得不进行整型等数据类型与字符串类型的转换,比如,将“1234”转换为整数,常规的我们可以使用atoi函数来进行转换,或者是写一个循环来做转换,我们在这里也可以使用sstream类来 ...