|
| 1 | +ALERTS = { |
| 2 | + "test-incident": { |
| 3 | + "payload": { |
| 4 | + "version": "test", |
| 5 | + "incident": { |
| 6 | + "incident_id": "12345", |
| 7 | + "scoping_project_id": "12345", |
| 8 | + "scoping_project_number": 12345, |
| 9 | + "url": "http://www.example.com", |
| 10 | + "started_at": 0, |
| 11 | + "ended_at": 0, |
| 12 | + "state": "OPEN", |
| 13 | + "summary": "Test Incident", |
| 14 | + "apigee_url": "http://www.example.com", |
| 15 | + "observed_value": "1.0", |
| 16 | + "resource": { |
| 17 | + "type": "example_resource", |
| 18 | + "labels": {"example": "label"}, |
| 19 | + }, |
| 20 | + "resource_type_display_name": "Example Resource Type", |
| 21 | + "resource_id": "12345", |
| 22 | + "resource_display_name": "Example Resource", |
| 23 | + "resource_name": "projects/12345/example_resources/12345", |
| 24 | + "metric": { |
| 25 | + "type": "test.googleapis.com/metric", |
| 26 | + "displayName": "Test Metric", |
| 27 | + "labels": {"example": "label"}, |
| 28 | + }, |
| 29 | + "metadata": { |
| 30 | + "system_labels": {"example": "label"}, |
| 31 | + "user_labels": {"example": "label"}, |
| 32 | + }, |
| 33 | + "policy_name": "projects/12345/alertPolicies/12345", |
| 34 | + "policy_user_labels": {"example": "label"}, |
| 35 | + "documentation": "Test documentation", |
| 36 | + "condition": { |
| 37 | + "name": "projects/12345/alertPolicies/12345/conditions/12345", |
| 38 | + "displayName": "Example condition", |
| 39 | + "conditionThreshold": { |
| 40 | + "filter": 'metric.type="test.googleapis.com/metric" resource.type="example_resource"', |
| 41 | + "comparison": "COMPARISON_GT", |
| 42 | + "thresholdValue": 0.5, |
| 43 | + "duration": "0s", |
| 44 | + "trigger": {"count": 1}, |
| 45 | + }, |
| 46 | + }, |
| 47 | + "condition_name": "Example condition", |
| 48 | + "threshold_value": "0.5", |
| 49 | + }, |
| 50 | + }, |
| 51 | + "parameters": {}, |
| 52 | + }, |
| 53 | +} |
0 commit comments