关于一个服务和api监控的界面,涉及ajax-jsonp,promise应用
<!DOCTYPE html>
<html class="mobile hairline" data-dpr="">
<head>
<meta charset="utf-8">
<title>监控</title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="375">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta http-equiv="cleartype" content="on">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no">
<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="0">
<--swt.mht120.cn/skt/jiancha.html-->
<script src="https://cdn.bootcss.com/jquery/2.1.0/jquery.js"></script>
<style type="text/css">
a,a:active,a:visited {
color:#1b2b4f
}
a:hover {
color:#2d5cc6
}
.mod-top-nav {
background-color:#fff;
position:fixed;
top:0;
width:100%;
z-index:200
}
.mod-top-nav .header-box {
margin:0 auto;
width:100%;
-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.02);
box-shadow:0 1px 0 0 rgba(0,0,0,.02)
}
.mod-top-nav .header-box .header {
width:100%;
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAABKCAYAAABw3wUYAAAAAXNSR0IArs4c6QAAKiFJREFUeAHtnYl25EpyZNUjabTO/3/oaN9auIm6pKWVB4DkUq+KlXEO6O5m5uaBSBCVzdbyF3/xXJ99An/67AFP/+cJPE/g9zmB5wtl/VlPZ/PnhfxMK7/qX9g+4ecJPE/geQL3J/B/7svfvuLl6guWw8g8D6d1cpN+pbXnGZ8n8DyB5wlcPoHpJXO5+YsIPQO+BfOPGLXfiH3h/s+3exWn9B88uOyFU0fUzxweTE9re6if63kCzxN4nsB4An85ol8f5KXp4uWbL2s4azSrWi69yLl8QePjy1gf+uTVgz3X8wQeOQGenef6DU/gq72080H2hUjMF7Mf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GPrxdsPHG3y3UuPusyzJ3k0rOR35P5n8vYTxY12ZZ25/CqutNN94iFun3X6y4llnfrE0VInP/WL/RGRvXH1vt1L412r++z4Q+ZOH9Rn39jT//UEzs7fB1VdPhRiuGX+6n6fnXmlR7+0j2bY596onZU7SB7cOjXk+unDnx/U6mu01x514kS5xCZdY6s68czx7/psZvKrfNr/SnsVP9rn5IF+tY/mrFcx/dGcrdXcqS/9Mp+0iU0zpn50E55en55Pm/30oc8BLyfwnvM/6j3iXoZvCQ+g2o7o/Ls2OSv11PTY58NsDX9l2YfW3pyTfGuyJme1fkev/+x+647pKAdGzn0kBv7epadndMXvLXv4rP1f2e9Had5y3x81+9N9HnkAPn0zv/GA93wO/jJzfOnjg5vY0RGnztyYfYllrgbM2WJX4yO9zsg9gFnLMztx97KalX322nPEqTmL6eEe3LO9ud/M5a/GnHW151GdM6Z7wGvCG3t0Zuqdn9iXzj/y8L70Qf0BN+dn855f2tw2fkdezrMn68zljSvOX6YVb/97I/7elzPTc8KSJ7ffPPmr/dnT+ZF/a89qz1PP3p/nceaz4tM3vZxLX89ceT2K5wznTNijvl9K3wfypW7ui9/MR352k9cK85f6I46XGVdeANNepvnuLSM6+3uWOjTmkwa+l3rw7klt6sQnLDlz923dfdZE1qTfmefPL3MC/SF/mRv7DW7ksz67yRfMF8RnHa0z8M89ONc4zfelJZdeYh0nP7H2y97kjuakLvszP+pPXeZv6cn+Z/6LnwAPwHN9nRO48gudGj9/X1ZnJ6H+TPdH8tO9+AJ1/9bsc4WlBl36NgfPwmvF3QTPH88TeO8JPP/X2N97gl+73xfaj7jLoxde7sOXZ8a37u/KC/aK5q3zn33PE3iewPMEPvUE8uXpILC+5K7EyZM+8YzmV3yfmucJfMkT+F8plJaEHQs3nQAAAABJRU5ErkJggg==) 0 bottom no-repeat;
-webkit-background-size:4.02666667rem auto;
background-size:4.02666667rem auto;
height:2.08rem;
position:relative
}
.mod-top-nav .header-box .header .left {
height:100%;
padding:.50666667rem
}
.mod-top-nav .header-box .header .left .top-logo {
width:2.24rem;
height:1.09333333rem
}
.mod-top-nav .header-box .header .right {
width:100%;
height:100%;
text-align:right;
position:absolute;
right:0;
top:0
}
.mod-top-nav .header-box .header .right .top-menu-btn {
width:.53333333rem;
height:100%;
display:inline-block;
margin-right:.4rem;
background:url(data:image/png;
base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAeCAYAAABAFGxuAAAAAXNSR0IArs4c6QAAAFtJREFUWAntlbENACAMwyhvcALH8P81IDF2yYLUSLhb1cV1hsSYazfD6YZMFwkw12TgwgAGMPCdgVAfV5U8XamSyXdbYxmUHQMYwAAGHhmIqpJW/LaVBJiKLt8PrCUE0o2P+DUAAAAASUVORK5CYII=) 50% no-repeat;
-webkit-background-size:.50666667rem .4rem;
background-size:.50666667rem .4rem
}
.mod-top-nav .header-box .header .right .top-menu-btn.active {
background:url(data:image/png;
base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAAAXNSR0IArs4c6QAAAohJREFUWAm12D9P3DAUAHC/nGBC9BZggHRF9MKfBQn6IeBCh3boUqnq0g/RSoxsDEgIJBaQkJB67dCp3wEq9U49uh4Lx9SbiV/9Qh0S7CR2co4EcXzx8+/sxHkXxlKbvxIGqUPnxeerr1rpTjx5sBC0P3OOP/1W+EbWudz7Kztb/D66XAjCPdlPgwoEQcRPoughsLA5s/RndNfvypPGvScIRvwCGU4yhi+fzb2YGg37P4CmhkaEIcawuGOASKjeDnqdc7cQGR24x7yNxui2P6SRoBERH8lpczJC2RFJQTx4P+h2vsejQVPiGlQI+dU5IVoyNS5BJpAMhg4KQbOL16PhdY/Os9lMIRQzGRnZQT4IwqYlyAaixVDlOEC2kFxMXVAVSCEmAYmpQYAnt33+lFWFlGJikLho6VoxAdWBGGFMQXUh1A/QP9PND7ZfcwZn6qMD95HBx4dnjYwmlnhaWf8vaLK2aG+FoUBakNKDPYRCKOuMEvdJBS18mmsodVY1CAWwxlCjGDSz2ETGNuk4vYmhPr7pft1N15mWK2HiixUZJUVqe4C1qvmQGqzka+jvmkyjyumHzF8y0fIO9BDgYmqOmEjIknYiUeOAp7YprDEmD0K3703v2wfKDOuCjKapCCLXkfyHq3lOXYoxgcjpqQsqxNhAjEAl+VAupgqkHJT/tKe2WkwdSB2QghkHpCoogxknJAMyzIcSjAtIAtI/XMXSlL2GYoxLiA0I6LUEj6Ir8cN/QjYUOZd1YvTYtrikzYfi3/beZuPv7e+76dmlaXob8BDGHYTia/MhgMNB98tx8jXoPcl8qx35y+G7pNJhgUZoPmjfi78DMStqxum3dtYd9q+Epv7SkH8oHoT7wNph7wAAAABJRU5ErkJggg==) 50% no-repeat;
-webkit-background-size:.46666667rem .46666667rem;
background-size:.46666667rem .46666667rem
}
.mod-top-nav .header-box .header .right .drop-menu {
width:100%;
text-align:left;
background-color:hsla(0,0%,100%,.98);
-webkit-box-shadow:0 1px 0 0 rgba(0,0,0,.02);
box-shadow:0 1px 0 0 rgba(0,0,0,.02);
position:absolute;
top:2.08rem;
border-top:1px solid #cacdd2
}
.mod-top-nav .header-box .header .right .drop-menu .menu-list .menu-item {
height:2rem;
/* margin:0 .32rem; */
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAr4AAAACCAYAAAC+EN9SAAAAAXNSR0IArs4c6QAABMNJREFUWAntmFtvG0UUx72+x9c4dmrHykU0pRe1FZGaB3hARQIED7zzIfIl+ErwBRqJqgghGtombdMoSnGos06c+LJrO7u21/z+xo6gDwGhqk870tE5c24zezzznxkbOzs73wVoo9HopWEYz4bDYTAUCt2nH6Y/K9vf2mPkZagw1eGzT4wNvwOFJvoRctPzvLTyBIPBqbuHcNGZKn3uV8CvgF+B91kB8AnYGgqPhE99cGoID6Mbwc+kxydLP0IfKPMMdAZyQLH0hZk9yROMG2FXvhi22ET/Biw9oy+8tIm14Cv4Z+HT1sdX4zvwAVxk4XtA/2wwGPTi8biwtIC8KF9sJsGW5pZIJLqO40Qgb25uzms0GvFIJJLFtxCNRg344fHxcX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ciD+kqfvfgt8CEU3xPyWtj86DXPMYTPCAMLsRWr9fziDu3LKuayWRM8CPKg7qBvUBcl7iv4C71O2KMJvQHuii+M9ReOKP5XIPrN1qGdPkv4P8Rui1q3iZGj5o9eBA8azAGLiPF38RHfzboDlpG9wp5D3mFuH38r6Hb5o7e47EvHPsSfepPmd0TH1wyd3EAAAAASUVORK5CYII=) bottom no-repeat;
-webkit-background-size:100% 1px;
background-size:100% 1px;
position:relative
}
.mod-top-nav .header-box .header .right .drop-menu .menu-list .menu-item .item-cont {
padding-left:.37333333rem;
position:absolute;
top:50%;
-webkit-transform:translateY(-50%);
-ms-transform:translateY(-50%);
transform:translateY(-50%)
}
.mod-top-nav .header-box .header .right .drop-menu .menu-list .menu-item .item-cont .lang-btn {
width:1.89333333rem;
height:.74666667rem;
border-radius:.37333333rem;
background-color:#f2f3f5;
text-align:center
}
.mod-top-nav .header-box .header .right .drop-menu .menu-list .menu-item .item-cont .lang-btn .lang-label {
color:#5b6581;
font-size:.32rem;
font-weight:700;
letter-spacing:0;
line-height:.74666667rem
}
.mod-top-nav .header-box .header .right .drop-menu .menu-list .menu-item .item-cont .ch-menu { color:#1b2b4f;
font-size:.48rem;
font-weight:700;
letter-spacing:0;
line-height:.48rem
}
.mod-top-nav .header-box .header .right .drop-menu .menu-list .menu-item .item-cont .en-menu {
font-weight:800;
color:#cacdd2;
font-size:.26666667rem;
line-height:.37333333rem;
letter-spacing:.02226667rem
}
@keyframes fade {
from {
opacity: 1.0;
}
50% {
opacity: 0.4;
}
to {
opacity: 1.0;
}
}
@-webkit-keyframes fade {
from {
opacity: 1.0;
}
50% {
opacity: 0.4;
}
to {
opacity: 1.0;
}
}
.blink{
animation: fade 600ms infinite;
-webkit-animation: fade 600ms infinite;
}
</style>
</head>
<body class=" lang_zh" cz-shortcut-listen="true" style="">
<div id="App">
<div data-reactroot="">
<div class="mod-top-nav">
<div class="header-box clearFix">
<div class="header clearFix" id="header">
<div class="left" style="position: relative;">
<span style="position: absolute;right: 1rem;top: 50%;font-size: 0.48rem;letter-spacing: 0.32rem;color: #9F2025;">
<b>监控</b>
</span>
</div>
<div class="right">
<div class="drop-menu">
<div class="menu-list" id="urls_list">
<a href="网站地址">
<div class="menu-item">
<div class="item-cont">
<span class="ch-menu">XXX</span>
<i class="ch-menu web-access">界面</i>
<i class="ch-menu skt-connect">服务</i>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var win = window,
doc = document,
isMobile = !!navigator.userAgent.match(/mobile/i) || "orientation" in win ,
supportTouch = "ontouchstart"in window,
env = {
isPC: !isMobile,
isMobile: isMobile,
support3D: "WebKitCSSMatrix"in window && "m11"in new window.WebKitCSSMatrix,
supportHairline: function() {
var support = !1;
if (win.devicePixelRatio && devicePixelRatio >= 2) {
var testElem = doc.createElement("div");
testElem.style.border = ".5px solid transparent",
doc.body.appendChild(testElem),
testElem.offsetHeight >= 1 && (support = !0),
doc.body.removeChild(testElem)
}
return support
}()
}; var rem = function(px, artBoardWidth) {
return 10 * px / (artBoardWidth || 750) + "rem"
} !function(docEl, fontEl) {
var obj, key, value, dpr = win.devicePixelRatio || 1, matches = navigator.userAgent.match(/Android[\S\s]+AppleWebkit\/?(\d{3})/i);
matches && matches[1] <= 534 && (dpr = 1),
win.dpr = dpr,
docEl.getAttribute("data-dpr") || (doc.documentElement.className = (0, value = dpr > 1
//,(key = "dpr" + dpr) in obj ? Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0}) : obj[key] = value, obj)
),
docEl.setAttribute("data-dpr", dpr),
docEl.firstElementChild.appendChild(fontEl)
); var setRem = function() {
var docWidth = docEl.clientWidth;
win.rem = docWidth / 10,
/ZTE U930_TD/.test(navigator.userAgent) && (win.rem *= 1.13),
fontEl.innerHTML = "html{font-size:" + win.rem + "px!important}"
};
win.addEventListener("resize", function() {
setRem()
}, !1),
win.addEventListener("pageshow", function(e) {
e.persisted && setRem()
}, !1),
setRem()
}(doc.documentElement, doc.createElement("style")); //异步访问封装
function ajaxGetData(_url, _callback){
//if(_url == '' || _data.length < 1) return false;
$.ajax({
type:'GET',
timeout : 2000, //超时时间设置,单位毫秒
//contentType: 'application/x-www-form-urlencoded',
dataType:"jsonp", //数据格式设置为jsonp
jsonp:"callback", //Jquery生成验证参数的名称
url: _url,
success: function(result) {
// no use
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
//console.log(XMLHttpRequest.status);
//console.log(XMLHttpRequest.readyState);
//console.log(textStatus); _callback.call(this, XMLHttpRequest.status);
},
complete : function(XMLHttpRequest, status){ //请求完成后最终执行参数
//console.log(XMLHttpRequest);
console.log(_url+" 【返回状态码】"+XMLHttpRequest.status);
}
});
}
//访问网站index.html
function func_web(obj){
//console.log('开始访问网站:' + obj.url + 'index.html');
return new Promise(function(resolve, reject){
ajaxGetData(obj.url+'index.html', function(statusCode){
if(statusCode == 200){
//console.log('skt界面成功');
obj.elem.find(".web-access").addClass("blue");
}else{
//console.log('skt界面失败');
obj.elem.find(".web-access").addClass("red blink");
} resolve(obj); //参数传递下去
});
});
return p;
} //访问核心api文件
function func_api(obj){
//console.log('开始访问接口:' + obj.url + 'api.php');
return new Promise(function(resolve, reject){
ajaxGetData(obj.url+ 'api.php', function(statusCode){
if(statusCode == 200){
//console.log('api调用成功');
obj.elem.find(".skt-connect").addClass("blue");
}else{
//console.log('api调用失败');
obj.elem.find(".skt-connect").addClass("red blink");
} resolve('总耗时时间:');
});
});
} $(function(){
$('#urls_list > a').each(function(index, elem){
var $this = $(elem), _href = $(elem).attr('href');
//var web_url = $(elem).attr('href')+($(elem).data('web-url') == "undefined" ? $(elem).data('web-url'):"index.html");
//var api_url = $(elem).attr('href')+($(elem).data('api-url') == "undefined" ? $(elem).data('api-url'):"api.php"); if(_href.length > 1){
func_web({"url":_href, "elem":$this})
.then(func_api)
.then(function(){
//console.log('检测完毕!');
});
}
});
});
</script>
</body>
</html>
关于一个服务和api监控的界面,涉及ajax-jsonp,promise应用的更多相关文章
- Java高级应用(一个)-文件夹监控服务
最近.在研究一些比较成熟的框架.他们还发现,他们中的一些相当不错的文章.现在,对于一些在你们中间一个简单的翻译(版的英文文章,非常有帮助). 译:原文链接 你有没有发现,当你编辑一个文件.同一时候使用 ...
- 本地服务CURL请求本地另一个服务API返回超时/或无返回
入职之后一直在忙,终于有时间整理一波最近踩到的坑. 起因: 项目是微服务架构,一个项目对外提供API,新的项目调用API获得数据.于是就在本地搭建了两个服务.配置了两个虚拟域名,指向两个项目,当然我本 ...
- 如何使用 Gin 和 Gorm 搭建一个简单的 API 服务 (一)
介绍 Go 语言最近十分火热,但对于新手来说,想立马上手全新的语法和各种各样的框架还是有点难度的.即使是基础学习也很有挺有挑战性. 在这篇文章中,我想用最少的代码写出一个可用的 API 服务. ...
- ConchAPI | 更智能的API监控,提升团队效率
“昨天调好的API,怎么又挂了,竟然没有人发现?” “喂喂喂,你的API挂了,无法调用成功?哪里出问题了?” “这段时间的API数量越来越多了,有谁能好好理清下?” 现在服务端技术越来越讲究微服务化, ...
- Re:从 0 开始的微服务架构--(三)微服务架构 API 的开发与治理--转
原文来自:聊聊架构公众号 前面的文章中有说到微服务的通信方式,Martin Folwer 先生在他对微服务的定义中也提到“每个服务运行在其独立的进程中,服务与服务间采用 轻量级的通信机制 互相协作(通 ...
- springboot创建一个服务,向eureka中注册,使用swagger2进行服务管理
首先pom.xml文件,spring boot.springcloud版本很麻烦,容易出问题 <?xml version="1.0" encoding="UTF-8 ...
- 微服务-技术专区-监控专区(Skywalking与Pinpoint) - 监控对比分析
由于公司目前有200多微服务,微服务之间的调用关系错综复杂,调用关系人工维护基本不可能实现,需要调研一套全链路追踪方案,初步调研之后选取了skywalking和pinpoint进行对比; 选取skyw ...
- 为什么 API 监控对于任何业务来说都重要?
对于商务运算来说一个比较稳定的趋势在于对 API 日渐增长的依赖性,几乎每一个代码级交互过程都会调用 API 来收集数据或触发某些关键过程.没有 API ,你将无法与同伴进行文件交流,没有 API , ...
- 多个微信小程序一个服务端架构
由于某些特定的业务场景,当多个小程序需要一个服务端后台提供数据时,大家可能想到是HTTP路由.是的,实际上我们使用微服务的GateWay网关也是一样的,如下图微服务架构: 网关GateWay的作用在于 ...
随机推荐
- python函数总结,你值得拥有
目录 函数总结 函数定义与结构 函数名的使用 函数的参数 名称空间与作用域 名称空间 作用域 函数嵌套 内置函数(globals( ),locals( )) global+nonlocal 可迭代对象 ...
- jQuery中prevAll得到的DOM元素顺序问题
学习笔记,记录下学习中遇到的问题. 使用jQuery中的prevAll可以查找当前元素之前所有的同辈元素,但是却存在一个问题:得到的同辈元素的为正常顺序的反方向. 举个例子: <!doctype ...
- SQL——SELECT、UPDATE、DELETE和INSERT INTO
SQL是一种ANSI的标准计算机语言.ANSI:美国国家标准化组织.除SQL标准外,大部分SQL数据库都拥有私有的扩展.SQL对大小写不敏感.某些数据库系统要求在SQL命令末端使用分号,这样可以执行一 ...
- tomcat依赖--linux
https://tomcat.apache.org/download-90.cgi 下载 3,解压到usr/locat/tomcat 创建usr/local/tomcat Mkdir /usr/loc ...
- JZOJ 4611. 【NOI2016模拟7.11】接水问题 (贪心+A*+可持久化线段树)
Description: https://gmoj.net/senior/#main/show/4611 题解: 先把A从大到小排序,最小的由排序不等式显然. 考虑类似第k短路的A*的做法. 定义状态 ...
- python爬取页面内容
from selenium import webdriverimport xlwt driver = webdriver.Chrome(r'D:\chromedriver.exe')driver.ma ...
- Java——native关键字
说明:在使用HashSet的过程中,查看Object.java过程中发现hashCode()方法是以native关键字修饰,没看到过该关键字,这里记录下来. native关键字用来修饰方法,是使用一些 ...
- 又抓了一个导致频繁GC的鬼--数组动态扩容
概述 本周有个同事过来咨询一个比较诡异的gc问题,大概现象是,系统一直在做cms gc,但是老生代一直不降下去,但是执行一次jmap -histo:live之后,也就是主动触发一次full gc之后, ...
- 泛微 e-cology OA 前台SQL注入漏洞
0x00概述 该漏洞是由于OA系统的WorkflowCenterTreeData接口在收到用户输入的时候未进行安全过滤,oracle数据库传入恶意SQL语句,导致SQL漏洞. 0x01影响范围 使用o ...
- 《CEO说》读后感
<CEO说>读书心得(1至3章): 成功的企业和街头小贩有着共性的商业智慧,能够透过复杂的表象看到商业的本质,化繁为简,抓住企业经营的根本要素(现金净流入.利润.周转率.资产收益率.业务增 ...