java.health_check.yml
5.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
---
# gateway
- hosts: java-gateway
tasks:
- name: 检查java gateway 健康情况
health_check:
name: 获取首页资源位
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'
register: result
- debug:
var: result
remote_user: root
# order
- hosts: java-order
tasks:
- name: 检查java order 健康状态
health_check:
name: 查询支付列表
url: "http://127.0.0.1:8084/order/paymentInfo/findPayList"
content_type: json
params: '{"uid":111}'
register: order_ret
- debug:
var: order_ret
remote_user: root
# promotion
- hosts: java-promotion
tasks:
- name: 检查java promotion 健康状态
health_check:
name: 查询用户礼包
url: "http://127.0.0.1:8085/promotion/couponBag/getCouponsBags"
content_type: json
params: '{"uid":10166061}'
register: promotion_ret
- debug:
var: promotion_ret
remote_user: root
# resources
- hosts: java-resources
tasks:
- name: 检查java resources 健康状态
health_check:
name: 查询系统配置
url: "http://127.0.0.1:8087/resources/config/querySysConfig"
content_type: json
params: '{"key":"auth_mode"}'
register: resources_ret
- debug:
var: resources_ret
remote_user: root
# product
- hosts: java-product
tasks:
- name: 检查java product健康状态
health_check:
name: 获取商品详情
url: "http://127.0.0.1:8083/product/product/queryProductBasicInfo"
content_type: json
params: '{"param":439486}'
register: pro_ret
- debug:
var: pro_ret
remote_user: root
# message
- hosts: java-message
tasks:
- name: 检查java message 健康状态
health_check:
name: 获取商品详情
url: "http://127.0.0.1:8086/message/TokenRest/getUserIosToken"
content_type: json
params: '{"uid":"2996246","msgChannel":2919}'
register: pro_ret
- debug:
var: pro_ret
remote_user: root
# sns
- hosts: java-sns
tasks:
- name: 检查java sns 健康状态
health_check:
name: 获取我的晒单列表
url: "http://127.0.0.1:8082/sns/show/ownerShareList"
content_type: json
params: '{"page":1,"limit":1,"uid":9963947}'
register: sns_ret
- debug:
var: sns_ret
remote_user: root
# users
- hosts: java-users
tasks:
- name: 检查java users 健康状态
health_check:
name: 获取用户wechat信息
url: "http://127.0.0.1:8081/users/WechatCsRest/getIsNeedAddWechatCS"
content_type: json
params: '{"uid":58347385}'
register: users_ret
- debug:
var: users_ret
remote_user: root
# uic
- hosts: java-uic
tasks:
- name: 检查java uic 健康状态
health_check:
name: 获取商品详情
url: "http://127.0.0.1:8096/uic/profile/getUserProfile"
content_type: json
params: '{"uid":58347385}'
register: uic_ret
- debug:
var: uic_ret
remote_user: root
# brower
- hosts: java-brower
tasks:
- name: 检查java brower 健康状态
health_check:
name: 获取用户浏览记录列表
url: "http://127.0.0.1:8092/brower/listBrowseNew"
content_type: json
params: '{"uid":58347385,"page":1,"limit":10}'
register: brow_ret
- debug:
var: brow_ret
remote_user: root
# risk
- hosts: java-risk
tasks:
- name: 检查java risk 健康状态
health_check:
name: 查询货到付款限制
url: "http://127.0.0.1:8097/risk/codlimit/queryCodLimitForOrder"
content_type: json
params: '{"uid":"10166061"}'
register: risk_ret
- debug:
var: risk_ret
remote_user: root
# wechat
- hosts: java-wechat
tasks:
- name: 检查java wechat 健康状态
health_check:
name: 获取回复规则列表
url: "http://127.0.0.1:8094/wechat/wechatManage/getRuleList"
content_type: form
params: '{"account": 1, "page":1, "rows": 10}'
register: wechat_ret
- debug:
var: wechat_ret
remote_user: root
# activity
- hosts: java-activity
tasks:
- name: 检查java activity健康状态
health_check:
name: 获取帮助信息
url: "http://127.0.0.1:8090/activity/queryHelpInfo"
content_type: json
params: '{"uid":58305887,"limitProductCode":"2018090415221551"}'
register: activity_ret
- debug:
var: activity_ret
remote_user: root
# bigdata
- hosts: java-bigdata
tasks:
- name: 检查java bigdata健康状态
health_check:
name: 获取推荐SKN列表
url: "http://127.0.0.1:8091/bigdata/bigdata/getRecommendSknList"
content_type: json
params: '{"uid":0,"rec_pos":100001}'
register: bigdata_ret
- debug:
var: bigdata_ret
remote_user: root
# search
- hosts: search-service
tasks:
- name: 检查java search 健康状态
health_check:
name: 查询卫衣
url: "http://127.0.0.1:8080/yohosearch/fuzzy/productList.json?query=卫衣&viewNum=30&uid=13838876"
register: search_ret
- debug:
var: search_ret
remote_user: root