xcal-parktronic 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/lib/xcal/parktronic/routes/alarms.rb +20 -8
- data/lib/xcal/parktronic/routes/events.rb +33 -1
- data/lib/xcal/parktronic/routes/metrics.rb +18 -0
- data/lib/xcal/parktronic/version.rb +1 -1
- data/spec/lib/xcal/parktronic/routes/alarms_route_spec.rb +15 -3
- data/spec/lib/xcal/parktronic/routes/event_history_items_routes_spec.rb +2 -2
- data/spec/lib/xcal/parktronic/routes/events_route_spec.rb +9 -2
- data/spec/lib/xcal/parktronic/routes/metrics_routes_spec.rb +9 -0
- data/spec/lib/xcal/parktronic/routes/nested/events_spec.rb +13 -1
- data/spec/support/api_mock.rb +16 -0
- data/spec/support/fixtures/responses/alarm.json +5 -2
- data/spec/support/fixtures/responses/alarm_action.json +2 -2
- data/spec/support/fixtures/responses/alarm_actions.json +3 -3
- data/spec/support/fixtures/responses/alarm_events.json +333 -33
- data/spec/support/fixtures/responses/alarm_post.json +24 -4
- data/spec/support/fixtures/responses/alarm_tags.json +1 -1
- data/spec/support/fixtures/responses/alarms_page_1.json +51 -21
- data/spec/support/fixtures/responses/alarms_page_2.json +51 -21
- data/spec/support/fixtures/responses/alarms_post.json +2 -2
- data/spec/support/fixtures/responses/brouha_products_services.json +15 -0
- data/spec/support/fixtures/responses/event.json +34 -7
- data/spec/support/fixtures/responses/events_history_page_1.json +5 -5
- data/spec/support/fixtures/responses/events_history_page_2.json +5 -5
- data/spec/support/fixtures/responses/events_page_1.json +105 -0
- data/spec/support/fixtures/responses/metrics_calculate.json +13 -0
- data/spec/support/fixtures/responses/stack_changes_page_1.json +20 -10
- data/spec/support/fixtures/responses/stack_changes_page_2.json +20 -10
- data/xcal-parktronic.gemspec +0 -1
- metadata +9 -5
- data/spec/support/fixtures/responses/events.json +0 -42
@@ -1,42 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": 1,
|
4
|
-
"alarm_id": 2,
|
5
|
-
"event_hash": "c2f3721645d8a12fb501a07b5f51248851c55fe2",
|
6
|
-
"subject": "CRITICAL Redis Hitrate alert",
|
7
|
-
"description": "CRITICAL: hitrate is 0 80 - REDIS 2.6.14 on 172.24.141.113:6379 has 1 databases (db0) with 276 keys, up 1 minutes 32 seconds - hitrate is 0.00%",
|
8
|
-
"aggregated_count": 2,
|
9
|
-
"host_impacted": "oiv-br-001",
|
10
|
-
"service_impacted": "Redis Hitrate",
|
11
|
-
"threshold_value": null,
|
12
|
-
"jira_incident_id":" IFS-45469",
|
13
|
-
"jira_incident_status": null,
|
14
|
-
"incident_status": "CRITICAL",
|
15
|
-
"brouha_incident_id": null,
|
16
|
-
"brouha_incident_status": null,
|
17
|
-
"initiated_at": "2014-01-21T13:24:18.000Z",
|
18
|
-
"created_at": "2014-01-21T12:24:19.000Z",
|
19
|
-
"updated_at": "2014-01-21T13:24:19.000Z",
|
20
|
-
"jira_browse_issue_path": "https://www.teamccp.com/jira/browse/IFS-45469"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"id": 2,
|
24
|
-
"alarm_id": 2,
|
25
|
-
"event_hash": "711a9269ae154b71f9947ca5829bb2c3261fe1fb",
|
26
|
-
"subject": "CRITICAL Disks Status alert",
|
27
|
-
"description": "DISK CRITICAL - free space: / 4475 MB (46% inode=86%): /boot 62 MB (66% inode=99%): /opt 11335 MB (37% inode=98%): /tmp 112 MB (5% inode=99%): /var 26324 MB (91% inode=99%):",
|
28
|
-
"aggregated_count": 1,
|
29
|
-
"host_impacted": "ccpcap-br-c501-p",
|
30
|
-
"service_impacted": "Disks Status",
|
31
|
-
"threshold_value": null,
|
32
|
-
"jira_incident_id": null,
|
33
|
-
"jira_incident_status": null,
|
34
|
-
"incident_status": "CRITICAL",
|
35
|
-
"brouha_incident_id": null,
|
36
|
-
"brouha_incident_status": null,
|
37
|
-
"initiated_at": "2014-01-23T13:46:27.000Z",
|
38
|
-
"created_at": "2014-01-23T13:46:27.000Z",
|
39
|
-
"updated_at": "2014-01-23T13:46:27.000Z",
|
40
|
-
"jira_browse_issue_path": null
|
41
|
-
}
|
42
|
-
]
|