Skip to content

Commit

Permalink
ITEM-327 AJOUT Statut CBS
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed Oct 31, 2024
1 parent fe2c035 commit 21342b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Structure/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ onMounted(async () => {
})
const getHealthOfServices = async () => {
statusService.getStatusBaseXML().then(isBaseXmlOk => {
healthServices.value.STATUT_BASE_XML = isBaseXmlOk;
statusService.getStatusBaseXML().then(isOk => {
healthServices.value.STATUT_BASE_XML = isOk;
})
statusService.getStatusCBS().then(isOk => {
healthServices.value.STATUT_CBS = isOk;
})
// try {
Expand Down
7 changes: 7 additions & 0 deletions src/service/StatusService.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ export class StatusService {
})
}

async getStatusCBS(){
let data = {"api_key":"ur707639-b082a50474d1cfbe940438bc", "monitors":"782344748"}
return this.client.post(`v2/getMonitors`,data).then(
response => {
return response.data.monitors[0].status === 2;
})
}
}

export default new StatusService()

0 comments on commit 21342b3

Please sign in to comment.