mux_ruby 1.7.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/docs/DimensionValue.md +9 -0
  4. data/docs/DimensionsApi.md +118 -0
  5. data/docs/FiltersApi.md +2 -2
  6. data/docs/GetRealTimeBreakdownResponse.md +10 -0
  7. data/docs/GetRealTimeHistogramTimeseriesResponse.md +11 -0
  8. data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +8 -0
  9. data/docs/GetRealTimeTimeseriesResponse.md +10 -0
  10. data/docs/Incident.md +28 -0
  11. data/docs/IncidentBreakdown.md +10 -0
  12. data/docs/IncidentNotification.md +10 -0
  13. data/docs/IncidentNotificationRule.md +12 -0
  14. data/docs/IncidentResponse.md +9 -0
  15. data/docs/IncidentsApi.md +186 -0
  16. data/docs/ListDimensionValuesResponse.md +10 -0
  17. data/docs/ListDimensionsResponse.md +10 -0
  18. data/docs/ListIncidentsResponse.md +10 -0
  19. data/docs/ListRealTimeDimensionsResponse.md +10 -0
  20. data/docs/ListRealTimeDimensionsResponseData.md +9 -0
  21. data/docs/ListRealTimeMetricsResponse.md +10 -0
  22. data/docs/ListRelatedIncidentsResponse.md +10 -0
  23. data/docs/NotificationRule.md +10 -0
  24. data/docs/RealTimeApi.md +280 -0
  25. data/docs/RealTimeBreakdownValue.md +12 -0
  26. data/docs/RealTimeHistogramTimeseriesBucket.md +9 -0
  27. data/docs/RealTimeHistogramTimeseriesBucketValues.md +9 -0
  28. data/docs/RealTimeHistogramTimeseriesDatapoint.md +14 -0
  29. data/docs/RealTimeTimeseriesDatapoint.md +10 -0
  30. data/examples/data/exercise-dimensions.rb +29 -0
  31. data/examples/data/exercise-incidents.rb +29 -0
  32. data/examples/data/exercise-realtime.rb +60 -0
  33. data/lib/mux_ruby.rb +26 -0
  34. data/lib/mux_ruby/api/dimensions_api.rb +128 -0
  35. data/lib/mux_ruby/api/filters_api.rb +4 -4
  36. data/lib/mux_ruby/api/incidents_api.rb +217 -0
  37. data/lib/mux_ruby/api/real_time_api.rb +311 -0
  38. data/lib/mux_ruby/models/asset.rb +12 -0
  39. data/lib/mux_ruby/models/dimension_value.rb +193 -0
  40. data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +206 -0
  41. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +215 -0
  42. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +186 -0
  43. data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +206 -0
  44. data/lib/mux_ruby/models/incident.rb +370 -0
  45. data/lib/mux_ruby/models/incident_breakdown.rb +202 -0
  46. data/lib/mux_ruby/models/incident_notification.rb +202 -0
  47. data/lib/mux_ruby/models/incident_notification_rule.rb +222 -0
  48. data/lib/mux_ruby/models/incident_response.rb +195 -0
  49. data/lib/mux_ruby/models/list_dimension_values_response.rb +206 -0
  50. data/lib/mux_ruby/models/list_dimensions_response.rb +204 -0
  51. data/lib/mux_ruby/models/list_incidents_response.rb +206 -0
  52. data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +206 -0
  53. data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +193 -0
  54. data/lib/mux_ruby/models/list_real_time_metrics_response.rb +206 -0
  55. data/lib/mux_ruby/models/list_related_incidents_response.rb +206 -0
  56. data/lib/mux_ruby/models/notification_rule.rb +202 -0
  57. data/lib/mux_ruby/models/real_time_breakdown_value.rb +220 -0
  58. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +193 -0
  59. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +193 -0
  60. data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +240 -0
  61. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +202 -0
  62. data/lib/mux_ruby/version.rb +1 -1
  63. data/spec/api/dimensions_api_spec.rb +55 -0
  64. data/spec/api/filters_api_spec.rb +2 -2
  65. data/spec/api/incidents_api_spec.rb +73 -0
  66. data/spec/api/real_time_api_spec.rb +93 -0
  67. data/spec/models/asset_spec.rb +4 -0
  68. data/spec/models/dimension_value_spec.rb +40 -0
  69. data/spec/models/get_real_time_breakdown_response_spec.rb +46 -0
  70. data/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb +34 -0
  71. data/spec/models/get_real_time_histogram_timeseries_response_spec.rb +52 -0
  72. data/spec/models/get_real_time_timeseries_response_spec.rb +46 -0
  73. data/spec/models/incident_breakdown_spec.rb +46 -0
  74. data/spec/models/incident_notification_rule_spec.rb +58 -0
  75. data/spec/models/incident_notification_spec.rb +46 -0
  76. data/spec/models/incident_response_spec.rb +40 -0
  77. data/spec/models/incident_spec.rb +154 -0
  78. data/spec/models/list_dimension_values_response_spec.rb +46 -0
  79. data/spec/models/list_dimensions_response_spec.rb +46 -0
  80. data/spec/models/list_incidents_response_spec.rb +46 -0
  81. data/spec/models/list_real_time_dimensions_response_data_spec.rb +40 -0
  82. data/spec/models/list_real_time_dimensions_response_spec.rb +46 -0
  83. data/spec/models/list_real_time_metrics_response_spec.rb +46 -0
  84. data/spec/models/list_related_incidents_response_spec.rb +46 -0
  85. data/spec/models/notification_rule_spec.rb +46 -0
  86. data/spec/models/real_time_breakdown_value_spec.rb +58 -0
  87. data/spec/models/real_time_histogram_timeseries_bucket_spec.rb +40 -0
  88. data/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb +40 -0
  89. data/spec/models/real_time_histogram_timeseries_datapoint_spec.rb +70 -0
  90. data/spec/models/real_time_timeseries_datapoint_spec.rb +46 -0
  91. metadata +171 -64
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccbf90e37874b351e072e692180c58a354d436faddbb9f9d0f2c9a9d95868f4f
4
- data.tar.gz: b8e1b2f842ec53b7447df8d4cb7ba51a4ec39ec83593edfcd83dc8e76289222e
3
+ metadata.gz: 949908e8ddb5270a36db4c9df9991f878e91b8e95ad6a1260506b956861f7ec6
4
+ data.tar.gz: 368bcacc1322c6308fce401c068e74a5ae0bd3627e1eb2261db5d30bd53e0fa7
5
5
  SHA512:
6
- metadata.gz: 7d4b97bfbe38e4fcbab508520383eec2d36c79551cc176a1ae4b4d2bb397e2d3e05dbab8d58da94de21c409fb2f2d66e95b4f6d16121c8673e182ecd2014f538
7
- data.tar.gz: 0e7ac75c0ce0d429ae02710b35a1bc7ef3a5182ef1f138c8f2b435ac1b2a3fe70e259ed10c224a44865d06101adb7c4fd34cc262f60095f6b9391e60a7e9f8a6
6
+ metadata.gz: fde803ebf5c4db63c13522a8d4513282d74e1305725f122e87232be2d3126fdd1ff95c931f1e535c8d9d5de227d31924d7163a53cc51791294fb41c9afed78aa
7
+ data.tar.gz: 279bdcfeb349d5f4176e0e4408597644053052ef7a3cd85152a6443e50f9c7e6704e8e2dc5d7341814cd37e96b8f9cd8bf3be6fefca36989462eddaa28152f1b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mux_ruby (1.7.0)
4
+ mux_ruby (1.8.1)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
@@ -0,0 +1,9 @@
1
+ # MuxRuby::DimensionValue
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **value** | **String** | | [optional]
7
+ **total_count** | **Integer** | | [optional]
8
+
9
+
@@ -0,0 +1,118 @@
1
+ # MuxRuby::DimensionsApi
2
+
3
+ All URIs are relative to *https://api.mux.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_dimension_values**](DimensionsApi.md#list_dimension_values) | **GET** /data/v1/dimensions/{DIMENSION_ID} | Lists the values for a specific dimension
8
+ [**list_dimensions**](DimensionsApi.md#list_dimensions) | **GET** /data/v1/dimensions | List Dimensions
9
+
10
+
11
+ # **list_dimension_values**
12
+ > ListDimensionValuesResponse list_dimension_values(dimension_id, opts)
13
+
14
+ Lists the values for a specific dimension
15
+
16
+ Lists the values for a dimension along with a total count of related views. Note: This API replaces the list-filter-values API call.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'mux_ruby'
22
+ # setup authorization
23
+ MuxRuby.configure do |config|
24
+ # Configure HTTP basic authorization: accessToken
25
+ config.username = 'YOUR USERNAME'
26
+ config.password = 'YOUR PASSWORD'
27
+ end
28
+
29
+ api_instance = MuxRuby::DimensionsApi.new
30
+ dimension_id = 'abcd1234' # String | ID of the Dimension
31
+ opts = {
32
+ limit: 25, # Integer | Number of items to include in the response
33
+ page: 1, # Integer | Offset by this many pages, of the size of `limit`
34
+ filters: ['filters_example'], # Array<String> | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
35
+ timeframe: ['timeframe_example'] # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days.
36
+ }
37
+
38
+ begin
39
+ #Lists the values for a specific dimension
40
+ result = api_instance.list_dimension_values(dimension_id, opts)
41
+ p result
42
+ rescue MuxRuby::ApiError => e
43
+ puts "Exception when calling DimensionsApi->list_dimension_values: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **dimension_id** | **String**| ID of the Dimension |
52
+ **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
53
+ **page** | **Integer**| Offset by this many pages, of the size of &#x60;limit&#x60; | [optional] [default to 1]
54
+ **filters** | [**Array&lt;String&gt;**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
55
+ **timeframe** | [**Array&lt;String&gt;**](String.md)| Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional]
56
+
57
+ ### Return type
58
+
59
+ [**ListDimensionValuesResponse**](ListDimensionValuesResponse.md)
60
+
61
+ ### Authorization
62
+
63
+ [accessToken](../README.md#accessToken)
64
+
65
+ ### HTTP request headers
66
+
67
+ - **Content-Type**: Not defined
68
+ - **Accept**: application/json
69
+
70
+
71
+
72
+ # **list_dimensions**
73
+ > ListDimensionsResponse list_dimensions
74
+
75
+ List Dimensions
76
+
77
+ List all available dimensions. Note: This API replaces the list-filters API call.
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'mux_ruby'
83
+ # setup authorization
84
+ MuxRuby.configure do |config|
85
+ # Configure HTTP basic authorization: accessToken
86
+ config.username = 'YOUR USERNAME'
87
+ config.password = 'YOUR PASSWORD'
88
+ end
89
+
90
+ api_instance = MuxRuby::DimensionsApi.new
91
+
92
+ begin
93
+ #List Dimensions
94
+ result = api_instance.list_dimensions
95
+ p result
96
+ rescue MuxRuby::ApiError => e
97
+ puts "Exception when calling DimensionsApi->list_dimensions: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+ This endpoint does not need any parameter.
103
+
104
+ ### Return type
105
+
106
+ [**ListDimensionsResponse**](ListDimensionsResponse.md)
107
+
108
+ ### Authorization
109
+
110
+ [accessToken](../README.md#accessToken)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
118
+
@@ -13,7 +13,7 @@ Method | HTTP request | Description
13
13
 
14
14
  Lists values for a specific filter
15
15
 
16
- Lists the values for a filter along with a total count of related views
16
+ Deprecated: The API has been replaced by the list-dimension-values API call. Lists the values for a filter along with a total count of related views.
17
17
 
18
18
  ### Example
19
19
  ```ruby
@@ -74,7 +74,7 @@ Name | Type | Description | Notes
74
74
 
75
75
  List Filters
76
76
 
77
- Lists all the filters broken out into basic and advanced
77
+ Deprecated: The API has been replaced by the list-dimensions API call. Lists all the filters broken out into basic and advanced.
78
78
 
79
79
  ### Example
80
80
  ```ruby
@@ -0,0 +1,10 @@
1
+ # MuxRuby::GetRealTimeBreakdownResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array&lt;RealTimeBreakdownValue&gt;**](RealTimeBreakdownValue.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array&lt;Integer&gt;** | | [optional]
9
+
10
+
@@ -0,0 +1,11 @@
1
+ # MuxRuby::GetRealTimeHistogramTimeseriesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **meta** | [**GetRealTimeHistogramTimeseriesResponseMeta**](GetRealTimeHistogramTimeseriesResponseMeta.md) | | [optional]
7
+ **data** | [**Array&lt;RealTimeHistogramTimeseriesDatapoint&gt;**](RealTimeHistogramTimeseriesDatapoint.md) | | [optional]
8
+ **total_row_count** | **Integer** | | [optional]
9
+ **timeframe** | **Array&lt;Integer&gt;** | | [optional]
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # MuxRuby::GetRealTimeHistogramTimeseriesResponseMeta
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **buckets** | [**Array&lt;RealTimeHistogramTimeseriesBucket&gt;**](RealTimeHistogramTimeseriesBucket.md) | | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::GetRealTimeTimeseriesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array&lt;RealTimeTimeseriesDatapoint&gt;**](RealTimeTimeseriesDatapoint.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array&lt;Integer&gt;** | | [optional]
9
+
10
+
@@ -0,0 +1,28 @@
1
+ # MuxRuby::Incident
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **threshold** | **Float** | | [optional]
7
+ **status** | **String** | | [optional]
8
+ **started_at** | **String** | | [optional]
9
+ **severity** | **String** | | [optional]
10
+ **sample_size_unit** | **String** | | [optional]
11
+ **sample_size** | **Integer** | | [optional]
12
+ **resolved_at** | **String** | | [optional]
13
+ **notifications** | [**Array&lt;IncidentNotification&gt;**](IncidentNotification.md) | | [optional]
14
+ **notification_rules** | [**Array&lt;IncidentNotificationRule&gt;**](IncidentNotificationRule.md) | | [optional]
15
+ **measurement** | **String** | | [optional]
16
+ **measured_value_on_close** | **Float** | | [optional]
17
+ **measured_value** | **Float** | | [optional]
18
+ **incident_key** | **String** | | [optional]
19
+ **impact** | **String** | | [optional]
20
+ **id** | **String** | | [optional]
21
+ **error_description** | **String** | | [optional]
22
+ **description** | **String** | | [optional]
23
+ **breakdowns** | [**Array&lt;IncidentBreakdown&gt;**](IncidentBreakdown.md) | | [optional]
24
+ **affected_views_per_hour_on_open** | **Integer** | | [optional]
25
+ **affected_views_per_hour** | **Integer** | | [optional]
26
+ **affected_views** | **Integer** | | [optional]
27
+
28
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::IncidentBreakdown
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **value** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **id** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::IncidentNotification
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **queued_at** | **String** | | [optional]
7
+ **id** | **Integer** | | [optional]
8
+ **attempted_at** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,12 @@
1
+ # MuxRuby::IncidentNotificationRule
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+ **rules** | [**Array&lt;NotificationRule&gt;**](NotificationRule.md) | | [optional]
8
+ **property_id** | **String** | | [optional]
9
+ **id** | **String** | | [optional]
10
+ **action** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,9 @@
1
+ # MuxRuby::IncidentResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Incident**](.md) | | [optional]
7
+ **timeframe** | **Array&lt;Integer&gt;** | | [optional]
8
+
9
+
@@ -0,0 +1,186 @@
1
+ # MuxRuby::IncidentsApi
2
+
3
+ All URIs are relative to *https://api.mux.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_incident**](IncidentsApi.md#get_incident) | **GET** /data/v1/incidents/{INCIDENT_ID} | Get an Incident
8
+ [**list_incidents**](IncidentsApi.md#list_incidents) | **GET** /data/v1/incidents | List Incidents
9
+ [**list_related_incidents**](IncidentsApi.md#list_related_incidents) | **GET** /data/v1/incidents/{INCIDENT_ID}/related | List Related Incidents
10
+
11
+
12
+ # **get_incident**
13
+ > IncidentResponse get_incident(incident_id)
14
+
15
+ Get an Incident
16
+
17
+ Returns the details of an incident
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'mux_ruby'
23
+ # setup authorization
24
+ MuxRuby.configure do |config|
25
+ # Configure HTTP basic authorization: accessToken
26
+ config.username = 'YOUR USERNAME'
27
+ config.password = 'YOUR PASSWORD'
28
+ end
29
+
30
+ api_instance = MuxRuby::IncidentsApi.new
31
+ incident_id = 'abcd1234' # String | ID of the Incident
32
+
33
+ begin
34
+ #Get an Incident
35
+ result = api_instance.get_incident(incident_id)
36
+ p result
37
+ rescue MuxRuby::ApiError => e
38
+ puts "Exception when calling IncidentsApi->get_incident: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **incident_id** | **String**| ID of the Incident |
47
+
48
+ ### Return type
49
+
50
+ [**IncidentResponse**](IncidentResponse.md)
51
+
52
+ ### Authorization
53
+
54
+ [accessToken](../README.md#accessToken)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: Not defined
59
+ - **Accept**: application/json
60
+
61
+
62
+
63
+ # **list_incidents**
64
+ > ListIncidentsResponse list_incidents(opts)
65
+
66
+ List Incidents
67
+
68
+ Returns a list of incidents
69
+
70
+ ### Example
71
+ ```ruby
72
+ # load the gem
73
+ require 'mux_ruby'
74
+ # setup authorization
75
+ MuxRuby.configure do |config|
76
+ # Configure HTTP basic authorization: accessToken
77
+ config.username = 'YOUR USERNAME'
78
+ config.password = 'YOUR PASSWORD'
79
+ end
80
+
81
+ api_instance = MuxRuby::IncidentsApi.new
82
+ opts = {
83
+ limit: 25, # Integer | Number of items to include in the response
84
+ page: 1, # Integer | Offset by this many pages, of the size of `limit`
85
+ order_by: 'order_by_example', # String | Value to order the results by
86
+ order_direction: 'order_direction_example', # String | Sort order.
87
+ status: 'status_example', # String | Status to filter incidents by
88
+ severity: 'severity_example' # String | Severity to filter incidents by
89
+ }
90
+
91
+ begin
92
+ #List Incidents
93
+ result = api_instance.list_incidents(opts)
94
+ p result
95
+ rescue MuxRuby::ApiError => e
96
+ puts "Exception when calling IncidentsApi->list_incidents: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
105
+ **page** | **Integer**| Offset by this many pages, of the size of &#x60;limit&#x60; | [optional] [default to 1]
106
+ **order_by** | **String**| Value to order the results by | [optional]
107
+ **order_direction** | **String**| Sort order. | [optional]
108
+ **status** | **String**| Status to filter incidents by | [optional]
109
+ **severity** | **String**| Severity to filter incidents by | [optional]
110
+
111
+ ### Return type
112
+
113
+ [**ListIncidentsResponse**](ListIncidentsResponse.md)
114
+
115
+ ### Authorization
116
+
117
+ [accessToken](../README.md#accessToken)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: Not defined
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **list_related_incidents**
127
+ > ListRelatedIncidentsResponse list_related_incidents(incident_id, opts)
128
+
129
+ List Related Incidents
130
+
131
+ Returns all the incidents that seem related to a specific incident
132
+
133
+ ### Example
134
+ ```ruby
135
+ # load the gem
136
+ require 'mux_ruby'
137
+ # setup authorization
138
+ MuxRuby.configure do |config|
139
+ # Configure HTTP basic authorization: accessToken
140
+ config.username = 'YOUR USERNAME'
141
+ config.password = 'YOUR PASSWORD'
142
+ end
143
+
144
+ api_instance = MuxRuby::IncidentsApi.new
145
+ incident_id = 'abcd1234' # String | ID of the Incident
146
+ opts = {
147
+ limit: 25, # Integer | Number of items to include in the response
148
+ page: 1, # Integer | Offset by this many pages, of the size of `limit`
149
+ order_by: 'order_by_example', # String | Value to order the results by
150
+ order_direction: 'order_direction_example' # String | Sort order.
151
+ }
152
+
153
+ begin
154
+ #List Related Incidents
155
+ result = api_instance.list_related_incidents(incident_id, opts)
156
+ p result
157
+ rescue MuxRuby::ApiError => e
158
+ puts "Exception when calling IncidentsApi->list_related_incidents: #{e}"
159
+ end
160
+ ```
161
+
162
+ ### Parameters
163
+
164
+ Name | Type | Description | Notes
165
+ ------------- | ------------- | ------------- | -------------
166
+ **incident_id** | **String**| ID of the Incident |
167
+ **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
168
+ **page** | **Integer**| Offset by this many pages, of the size of &#x60;limit&#x60; | [optional] [default to 1]
169
+ **order_by** | **String**| Value to order the results by | [optional]
170
+ **order_direction** | **String**| Sort order. | [optional]
171
+
172
+ ### Return type
173
+
174
+ [**ListRelatedIncidentsResponse**](ListRelatedIncidentsResponse.md)
175
+
176
+ ### Authorization
177
+
178
+ [accessToken](../README.md#accessToken)
179
+
180
+ ### HTTP request headers
181
+
182
+ - **Content-Type**: Not defined
183
+ - **Accept**: application/json
184
+
185
+
186
+