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信息在数据库生成信息 ...
随机推荐
- python之常用模块补充
namedtuple 命名元组 ->类似创建了一个类 from collections import namedtuple p = namedtuple("point", [ ...
- Docker简单使用
镜像是一种轻量级.可执行的独立软件包,它包含运行某个软件所需的所有内容,包括代码.运行时.库.环境变量和配置文件. 容器是镜像的运行时实例 - 实际执行时镜像会在内存中变成什么.默认情况下,它完全独立 ...
- VUE axios 发送 Form Data 格式数据请求
axios 默认是 Payload 格式数据请求,但有时候后端接收参数要求必须是 Form Data 格式的,所以我们就得进行转换.Payload 和 Form Data 的主要设置是根据请求头的 C ...
- screen mac linux下一种让程序后台运行的方法
1: screen 场景的意思.字面意思就是软件运行在不同场景 (1)创建会话 使用命令“screen -S RunWork”来创建一个screen会话,命令执行之后,就会得到一个新的shell窗口, ...
- Spring Boot 中配置文件application.properties使用
一.配置文档配置项的调用(application.properties可放在resources,或者resources下的config文件夹里) package com.my.study.contro ...
- JMeter—逻辑控制器(六)
参考<全栈性能测试修炼宝典JMeter实战>第六章 JMeter 元件详解中第一节JMeter逻辑控制器 JMeter逻辑控制器可以对元件的执行逻辑进行控制,除仅一次控制器外,其他可以嵌套 ...
- ubuntu 配置拼音输入法步骤
今天配置了一下 ubuntu 拼音,要求使用ubuntu 内置拼音.大致步骤我记录一下: 配置拼音,使用 ibus pinyin,网上有很多帖子大致步骤: 1)安装 中文语言 2)安装ibus 3) ...
- Python+Pandas 读取Oracle数据库
Python+Pandas 读取Oracle数据库 import pandas as pd from sqlalchemy import create_engine import cx_Oracle ...
- Django框架的简介
Django框架的背景 Django是一款基于Python开发的全栈式一体化Web 应用框架.2003 年问世之初,它只是 美国一家报社的内部工具,2005 年 7 月使用 BSD 许可证完成了开源. ...
- Centos7.5调试/etc/sysctl.conf文件导致宕机
今天安装greenplus数据库,需要调试一个核心文件/etc/sysctl.conf文件,结果导致系统异常宕机,出现的问题就是使用任何命令都不能输出正确的结果,只有这个显示: 不知道是什么原因,ls ...