Authored by Your Name

java健康检查v2

@@ -3,11 +3,133 @@ @@ -3,11 +3,133 @@
3 3
4 - hosts: localhost 4 - hosts: localhost
5 tasks: 5 tasks:
6 - - name: java health check v2  
7 - - health_check_v2:  
8 - - java-nginx:  
9 - url: "http://127.0.0.1/health_check"  
10 - - java-gateway:  
11 - url: "http://127.0.0.1:8080/gateway/?method=app.product.data&physical_channel=2&business_line=yohobuy&client_secret=8fe7e264ecdba3c133cc412510ab7f93&gender=2%2C3&session_key=386ab6918b8e53f1200b7c497b6afb46&v=7&app_version=6.7.9&client_type=android&yh_channel=2&screen_size=1080x1920&uid=9963947&udid=8665000245700228be32e1760c0129a&product_skn=51955044"  
12 -  
13 -  
  6 + - name: 检查java gateway 健康状态
  7 + health_check:
  8 + name: 获取首页资源位
  9 + url: "http://{{ item }}:8080/gateway/?method=app.product.data&physical_channel=2&business_line=yohobuy&client_secret=8fe7e264ecdba3c133cc412510ab7f93&gender=2%2C3&session_key=386ab6918b8e53f1200b7c497b6afb46&v=7&app_version=6.7.9&client_type=android&yh_channel=2&screen_size=1080x1920&uid=9963947&udid=8665000245700228be32e1760c0129a&product_skn=51955044"
  10 + with_items:
  11 + - "{{ groups['java-gateway'] }}"
  12 +
  13 + - name: 检查java order 健康状态
  14 + health_check:
  15 + name: 查询支付列表
  16 + url: "http://{{ item }}:8084/order/paymentInfo/findPayList"
  17 + content_type: json
  18 + params: '{"uid":111}'
  19 + with_items:
  20 + - "{{ groups['java-order'] }}"
  21 +
  22 + - name: 检查java promotion 健康状态
  23 + health_check:
  24 + name: 查询用户礼包
  25 + url: "http://{{ item }}:8085/promotion/couponBag/getCouponsBags"
  26 + content_type: json
  27 + params: '{"uid":10166061}'
  28 + with_items:
  29 + - "{{ groups['java-promotion'] }}"
  30 +
  31 + - name: 检查java resources 健康状态
  32 + health_check:
  33 + name: 查询系统配置
  34 + url: "http://{{ item }}:8087/resources/config/querySysConfig"
  35 + content_type: json
  36 + params: '{"key":"auth_mode"}'
  37 + with_items:
  38 + - "{{ groups['java-resources'] }}"
  39 +
  40 + - name: 检查java product健康状态
  41 + health_check:
  42 + name: 获取商品详情
  43 + url: "http://{{ item }}:8083/product/product/queryProductBasicInfo"
  44 + content_type: json
  45 + params: '{"param":439486}'
  46 + with_items:
  47 + - "{{ groups['java-product'] }}"
  48 +
  49 + - name: 检查java message 健康状态
  50 + health_check:
  51 + name: 获取商品详情
  52 + url: "http://{{ item }}:8086/message/TokenRest/getUserIosToken"
  53 + content_type: json
  54 + params: '{"uid":"2996246","msgChannel":2919}'
  55 + with_items:
  56 + - "{{ groups['java-message'] }}"
  57 +
  58 + - name: 检查java sns 健康状态
  59 + health_check:
  60 + name: 获取我的晒单列表
  61 + url: "http://{{ item }}:8082/sns/show/ownerShareList"
  62 + content_type: json
  63 + params: '{"page":1,"limit":1,"uid":9963947}'
  64 + with_items:
  65 + - "{{ groups['java-sns'] }}"
  66 +
  67 + - name: 检查java users 健康状态
  68 + health_check:
  69 + name: 获取用户wechat信息
  70 + url: "http://{{ item }}:8081/users/WechatCsRest/getIsNeedAddWechatCS"
  71 + content_type: json
  72 + params: '{"uid":58347385}'
  73 + with_items:
  74 + - "{{ groups['java-users'] }}"
  75 +
  76 + - name: 检查java uic 健康状态
  77 + health_check:
  78 + name: 获取商品详情
  79 + url: "http://{{ item }}:8096/uic/profile/getUserProfile"
  80 + content_type: json
  81 + params: '{"uid":58347385}'
  82 + with_items:
  83 + - "{{ groups['java-uic'] }}"
  84 +
  85 + - name: 检查java brower 健康状态
  86 + health_check:
  87 + name: 获取用户浏览记录列表
  88 + url: "http://{{ item }}:8092/brower/listBrowseNew"
  89 + content_type: json
  90 + params: '{"uid":58347385,"page":1,"limit":10}'
  91 + with_items:
  92 + - "{{ groups['java-brower'] }}"
  93 +
  94 + - name: 检查java risk 健康状态
  95 + health_check:
  96 + name: 查询货到付款限制
  97 + url: "http://{{ item }}:8097/risk/codlimit/queryCodLimitForOrder"
  98 + content_type: json
  99 + params: '{"uid":"10166061"}'
  100 + with_items:
  101 + - "{{ groups['java-risk'] }}"
  102 +
  103 + - name: 检查java wechat 健康状态
  104 + health_check:
  105 + name: 获取回复规则列表
  106 + url: "http://{{ item }}:8094/wechat/wechatManage/getRuleList"
  107 + content_type: form
  108 + params: '{"account": 1, "page":1, "rows": 10}'
  109 + with_items:
  110 + - "{{ groups['java-wechat'] }}"
  111 +
  112 + - name: 检查java activity健康状态
  113 + health_check:
  114 + name: 获取帮助信息
  115 + url: "http://{{ item }}:8090/activity/queryHelpInfo"
  116 + content_type: json
  117 + params: '{"uid":58305887,"limitProductCode":"2018090415221551"}'
  118 + with_items:
  119 + - "{{ groups['java-activity'] }}"
  120 +
  121 + - name: 检查java bigdata健康状态
  122 + health_check:
  123 + name: 获取推荐SKN列表
  124 + url: "http://{{ item }}:8091/bigdata/bigdata/getRecommendSknList"
  125 + content_type: json
  126 + params: '{"uid":0,"rec_pos":100001}'
  127 + with_items:
  128 + - "{{ groups['java-bigdata'] }}"
  129 +
  130 + - name: 检查java search 健康状态
  131 + health_check:
  132 + name: 查询卫衣
  133 + url: "http://{{ item }}:8080/yohosearch/fuzzy/productList.json?query=卫衣&viewNum=30&uid=13838876"
  134 + with_items:
  135 + - "{{ groups['search-service'] }}"