diff --git a/Mux.Csharp.Sdk.sln b/Mux.Csharp.Sdk.sln index dee806d..9a9b3da 100644 --- a/Mux.Csharp.Sdk.sln +++ b/Mux.Csharp.Sdk.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{69256F91-9840-4749-BCE5-F775C3F732BC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{A432F283-CBBA-457F-B92E-79789CB9036B}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk.Test", "src\Mux.Csharp.Sdk.Test\Mux.Csharp.Sdk.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {69256F91-9840-4749-BCE5-F775C3F732BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {69256F91-9840-4749-BCE5-F775C3F732BC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {69256F91-9840-4749-BCE5-F775C3F732BC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {69256F91-9840-4749-BCE5-F775C3F732BC}.Release|Any CPU.Build.0 = Release|Any CPU + {A432F283-CBBA-457F-B92E-79789CB9036B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A432F283-CBBA-457F-B92E-79789CB9036B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A432F283-CBBA-457F-B92E-79789CB9036B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A432F283-CBBA-457F-B92E-79789CB9036B}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/README.md b/README.md index a77a07b..6677eb8 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Mux is how developers build online video. This API encompasses both Mux Video an **PLEASE NOTE:** This is an early build of the Mux C# SDK, as evidenced by its pre-1.0 status, but we're reasonably certain of its stability and usability against the Mux API.. Documentation is currently best-effort, but it'll improve over time! Instead of contacting Mux Support, please file an issue on this repository or email [Mux DevEx](devex@mux.com) for assistance. - API version: v1 -- SDK version: 0.8.0 +- SDK version: 0.9.0 [https://docs.mux.com](https://docs.mux.com) diff --git a/docs/AbridgedVideoView.md b/docs/AbridgedVideoView.md index b94d626..e1ebf85 100644 --- a/docs/AbridgedVideoView.md +++ b/docs/AbridgedVideoView.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **CountryCode** | **string** | | [optional] **ViewStart** | **string** | | [optional] **ViewEnd** | **string** | | [optional] +**ViewerExperienceScore** | **float?** | | [optional] +**WatchTime** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DimensionsApi.md b/docs/DimensionsApi.md index 0a3bec2..ec42e79 100644 --- a/docs/DimensionsApi.md +++ b/docs/DimensionsApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description # **ListDimensionValues** -> ListDimensionValuesResponse ListDimensionValues (string DIMENSION_ID, int? limit = null, int? page = null, List filters = null, List timeframe = null) +> ListDimensionValuesResponse ListDimensionValues (string DIMENSION_ID, int? limit = null, int? page = null, List filters = null, List metricFilters = null, List timeframe = null) Lists the values for a specific dimension @@ -41,12 +41,13 @@ namespace Example var limit = 25; // int? | Number of items to include in the response (optional) (default to 25) var page = 1; // int? | Offset by this many pages, of the size of `limit` (optional) (default to 1) var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) var timeframe = new List(); // List | 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` (optional) try { // Lists the values for a specific dimension - ListDimensionValuesResponse result = apiInstance.ListDimensionValues(DIMENSION_ID, limit, page, filters, timeframe); + ListDimensionValuesResponse result = apiInstance.ListDimensionValues(DIMENSION_ID, limit, page, filters, metricFilters, timeframe); Debug.WriteLine(result); } catch (ApiException e) @@ -68,6 +69,7 @@ Name | Type | Description | Notes **limit** | **int?**| Number of items to include in the response | [optional] [default to 25] **page** | **int?**| Offset by this many pages, of the size of `limit` | [optional] [default to 1] **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] **timeframe** | [**List<string>**](string.md)| 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` | [optional] ### Return type diff --git a/docs/ErrorsApi.md b/docs/ErrorsApi.md index 449517b..1035a81 100644 --- a/docs/ErrorsApi.md +++ b/docs/ErrorsApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **ListErrors** -> ListErrorsResponse ListErrors (List filters = null, List timeframe = null) +> ListErrorsResponse ListErrors (List filters = null, List metricFilters = null, List timeframe = null) List Errors @@ -37,12 +37,13 @@ namespace Example var apiInstance = new ErrorsApi(config); var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) var timeframe = new List(); // List | 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` (optional) try { // List Errors - ListErrorsResponse result = apiInstance.ListErrors(filters, timeframe); + ListErrorsResponse result = apiInstance.ListErrors(filters, metricFilters, timeframe); Debug.WriteLine(result); } catch (ApiException e) @@ -61,6 +62,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] **timeframe** | [**List<string>**](string.md)| 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` | [optional] ### Return type diff --git a/docs/InputSettings.md b/docs/InputSettings.md index 600db30..26fa4a9 100644 --- a/docs/InputSettings.md +++ b/docs/InputSettings.md @@ -5,7 +5,7 @@ An array of objects that each describe an input file to be used to create the as Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Url** | **string** | The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. | [optional] +**Url** | **string** | The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. The maximum size is 4096x4096. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. | [optional] **OverlaySettings** | [**InputSettingsOverlaySettings**](InputSettingsOverlaySettings.md) | | [optional] **GeneratedSubtitles** | [**List<AssetGeneratedSubtitleSettings>**](AssetGeneratedSubtitleSettings.md) | Generate subtitle tracks using automatic speech recognition using this configuration. This may only be provided for the first input object (the main input file). For direct uploads, this first input should omit the url parameter, as the main input file is provided via the direct upload. This will create subtitles based on the audio track ingested from that main input file. Note that subtitle generation happens after initial ingest, so the generated tracks will be in the `preparing` state when the asset transitions to `ready`. | [optional] **StartTime** | **double** | The time offset in seconds from the beginning of the video indicating the clip's starting marker. The default value is 0 when not included. This parameter is only applicable for creating clips when `input.url` has `mux://assets/{asset_id}` format. | [optional] diff --git a/docs/LiveStream.md b/docs/LiveStream.md index 89a8b4d..63c31d9 100644 --- a/docs/LiveStream.md +++ b/docs/LiveStream.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **LatencyMode** | **string** | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. | [optional] **Test** | **bool** | True means this live stream is a test live stream. Test live streams can be used to help evaluate the Mux Video APIs for free. There is no limit on the number of test live streams, but they are watermarked with the Mux logo, and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. | [optional] **MaxContinuousDuration** | **int** | The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. | [optional] [default to 43200] +**SrtPassphrase** | **string** | Unique key used for encrypting a stream to a Mux SRT endpoint. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MetricsApi.md b/docs/MetricsApi.md index b1d2dd8..0de9203 100644 --- a/docs/MetricsApi.md +++ b/docs/MetricsApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **GetMetricTimeseriesData** -> GetMetricTimeseriesDataResponse GetMetricTimeseriesData (string METRIC_ID, List timeframe = null, List filters = null, string measurement = null, string orderDirection = null, string groupBy = null) +> GetMetricTimeseriesDataResponse GetMetricTimeseriesData (string METRIC_ID, List timeframe = null, List filters = null, List metricFilters = null, string measurement = null, string orderDirection = null, string groupBy = null) Get metric timeseries data @@ -43,6 +43,7 @@ namespace Example var METRIC_ID = video_startup_time; // string | ID of the Metric var timeframe = new List(); // List | 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` (optional) var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) var measurement = "95th"; // string | Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) var orderDirection = "asc"; // string | Sort order. (optional) var groupBy = "minute"; // string | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) @@ -50,7 +51,7 @@ namespace Example try { // Get metric timeseries data - GetMetricTimeseriesDataResponse result = apiInstance.GetMetricTimeseriesData(METRIC_ID, timeframe, filters, measurement, orderDirection, groupBy); + GetMetricTimeseriesDataResponse result = apiInstance.GetMetricTimeseriesData(METRIC_ID, timeframe, filters, metricFilters, measurement, orderDirection, groupBy); Debug.WriteLine(result); } catch (ApiException e) @@ -71,6 +72,7 @@ Name | Type | Description | Notes **METRIC_ID** | **string**| ID of the Metric | **timeframe** | [**List<string>**](string.md)| 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` | [optional] **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] **measurement** | **string**| Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] **orderDirection** | **string**| Sort order. | [optional] **groupBy** | **string**| Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. | [optional] @@ -98,7 +100,7 @@ Name | Type | Description | Notes # **GetOverallValues** -> GetOverallValuesResponse GetOverallValues (string METRIC_ID, List timeframe = null, List filters = null, string measurement = null) +> GetOverallValuesResponse GetOverallValues (string METRIC_ID, List timeframe = null, List filters = null, List metricFilters = null, string measurement = null) Get Overall values @@ -128,12 +130,13 @@ namespace Example var METRIC_ID = video_startup_time; // string | ID of the Metric var timeframe = new List(); // List | 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` (optional) var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) var measurement = "95th"; // string | Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) try { // Get Overall values - GetOverallValuesResponse result = apiInstance.GetOverallValues(METRIC_ID, timeframe, filters, measurement); + GetOverallValuesResponse result = apiInstance.GetOverallValues(METRIC_ID, timeframe, filters, metricFilters, measurement); Debug.WriteLine(result); } catch (ApiException e) @@ -154,6 +157,7 @@ Name | Type | Description | Notes **METRIC_ID** | **string**| ID of the Metric | **timeframe** | [**List<string>**](string.md)| 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` | [optional] **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] **measurement** | **string**| Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] ### Return type @@ -179,7 +183,7 @@ Name | Type | Description | Notes # **ListAllMetricValues** -> ListAllMetricValuesResponse ListAllMetricValues (List timeframe = null, List filters = null, string dimension = null, string value = null) +> ListAllMetricValuesResponse ListAllMetricValues (List timeframe = null, List filters = null, List metricFilters = null, string dimension = null, string value = null) List all metric values @@ -208,13 +212,14 @@ namespace Example var apiInstance = new MetricsApi(config); var timeframe = new List(); // List | 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` (optional) var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) var dimension = "asn"; // string | Dimension the specified value belongs to (optional) var value = "value_example"; // string | Value to show all available metrics for (optional) try { // List all metric values - ListAllMetricValuesResponse result = apiInstance.ListAllMetricValues(timeframe, filters, dimension, value); + ListAllMetricValuesResponse result = apiInstance.ListAllMetricValues(timeframe, filters, metricFilters, dimension, value); Debug.WriteLine(result); } catch (ApiException e) @@ -234,6 +239,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **timeframe** | [**List<string>**](string.md)| 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` | [optional] **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] **dimension** | **string**| Dimension the specified value belongs to | [optional] **value** | **string**| Value to show all available metrics for | [optional] @@ -260,7 +266,7 @@ Name | Type | Description | Notes # **ListBreakdownValues** -> ListBreakdownValuesResponse ListBreakdownValues (string METRIC_ID, string groupBy = null, string measurement = null, List filters = null, int? limit = null, int? page = null, string orderBy = null, string orderDirection = null, List timeframe = null) +> ListBreakdownValuesResponse ListBreakdownValues (string METRIC_ID, string groupBy = null, string measurement = null, List filters = null, List metricFilters = null, int? limit = null, int? page = null, string orderBy = null, string orderDirection = null, List timeframe = null) List breakdown values @@ -291,6 +297,7 @@ namespace Example var groupBy = "asn"; // string | Breakdown value to group the results by (optional) var measurement = "95th"; // string | Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) var limit = 25; // int? | Number of items to include in the response (optional) (default to 25) var page = 1; // int? | Offset by this many pages, of the size of `limit` (optional) (default to 1) var orderBy = "negative_impact"; // string | Value to order the results by (optional) @@ -300,7 +307,7 @@ namespace Example try { // List breakdown values - ListBreakdownValuesResponse result = apiInstance.ListBreakdownValues(METRIC_ID, groupBy, measurement, filters, limit, page, orderBy, orderDirection, timeframe); + ListBreakdownValuesResponse result = apiInstance.ListBreakdownValues(METRIC_ID, groupBy, measurement, filters, metricFilters, limit, page, orderBy, orderDirection, timeframe); Debug.WriteLine(result); } catch (ApiException e) @@ -322,6 +329,7 @@ Name | Type | Description | Notes **groupBy** | **string**| Breakdown value to group the results by | [optional] **measurement** | **string**| Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] **limit** | **int?**| Number of items to include in the response | [optional] [default to 25] **page** | **int?**| Offset by this many pages, of the size of `limit` | [optional] [default to 1] **orderBy** | **string**| Value to order the results by | [optional] @@ -351,7 +359,7 @@ Name | Type | Description | Notes # **ListInsights** -> ListInsightsResponse ListInsights (string METRIC_ID, string measurement = null, string orderDirection = null, List timeframe = null) +> ListInsightsResponse ListInsights (string METRIC_ID, string measurement = null, string orderDirection = null, List timeframe = null, List filters = null, List metricFilters = null) List Insights @@ -382,11 +390,13 @@ namespace Example var measurement = "95th"; // string | Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) var orderDirection = "asc"; // string | Sort order. (optional) var timeframe = new List(); // List | 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` (optional) + var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) try { // List Insights - ListInsightsResponse result = apiInstance.ListInsights(METRIC_ID, measurement, orderDirection, timeframe); + ListInsightsResponse result = apiInstance.ListInsights(METRIC_ID, measurement, orderDirection, timeframe, filters, metricFilters); Debug.WriteLine(result); } catch (ApiException e) @@ -408,6 +418,8 @@ Name | Type | Description | Notes **measurement** | **string**| Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] **orderDirection** | **string**| Sort order. | [optional] **timeframe** | [**List<string>**](string.md)| 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` | [optional] + **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] ### Return type diff --git a/docs/ReferrerDomainRestriction.md b/docs/ReferrerDomainRestriction.md index 739336a..df11a30 100644 --- a/docs/ReferrerDomainRestriction.md +++ b/docs/ReferrerDomainRestriction.md @@ -5,7 +5,7 @@ A list of domains allowed to play your videos. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowedDomains** | **List<string>** | List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards | [optional] +**AllowedDomains** | **List<string>** | List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards | [optional] **AllowNoReferrer** | **bool** | A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests. | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Track.md b/docs/Track.md index 7db37bb..e9af5d8 100644 --- a/docs/Track.md +++ b/docs/Track.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **ClosedCaptions** | **bool** | Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is only set tracks where `type` is `text` and `text_type` is `subtitles`. | [optional] **Passthrough** | **string** | Arbitrary user-supplied metadata set for the track either when creating the asset or track. This parameter is only set for `text` type tracks. Max 255 characters. | [optional] **Status** | **string** | The status of the track. This parameter is only set for `text` type tracks. | [optional] +**Primary** | **bool** | For an audio track, indicates that this is the primary audio track, ingested from the main input for this asset. The primary audio track cannot be deleted. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateReferrerDomainRestrictionRequest.md b/docs/UpdateReferrerDomainRestrictionRequest.md index 5c27fe0..03fa345 100644 --- a/docs/UpdateReferrerDomainRestrictionRequest.md +++ b/docs/UpdateReferrerDomainRestrictionRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllowedDomains** | **List<string>** | List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards | [optional] +**AllowedDomains** | **List<string>** | List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards | [optional] **AllowNoReferrer** | **bool** | A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests. | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VideoView.md b/docs/VideoView.md index 01768e0..2df771c 100644 --- a/docs/VideoView.md +++ b/docs/VideoView.md @@ -123,7 +123,7 @@ Name | Type | Description | Notes **ViewSessionId** | **string** | | [optional] **ViewerConnectionType** | **string** | | [optional] **ViewerDeviceModel** | **string** | | [optional] -**WeightedAverageBitrate** | **long?** | | [optional] +**WeightedAverageBitrate** | **double?** | | [optional] **Custom1** | **string** | | [optional] **Custom2** | **string** | | [optional] **Custom3** | **string** | | [optional] @@ -145,6 +145,17 @@ Name | Type | Description | Notes **ViewDroppedFrameCount** | **long?** | | [optional] **ViewHasAd** | **bool** | | [optional] **VideoStartupFailure** | **bool** | | [optional] +**AdAttemptCount** | **int?** | | [optional] +**AdBreakCount** | **int?** | | [optional] +**AdBreakErrorCount** | **int?** | | [optional] +**AdBreakErrorPercentage** | **string** | | [optional] +**AdErrorCount** | **int?** | | [optional] +**AdErrorPercentage** | **string** | | [optional] +**AdImpressionCount** | **int?** | | [optional] +**AdStartupErrorCount** | **int?** | | [optional] +**AdStartupErrorPercentage** | **string** | | [optional] +**AdExitBeforeStartCount** | **int?** | | [optional] +**AdExitBeforeStartPercentage** | **string** | | [optional] **LongResume** | **bool** | | [optional] **LongRebuffering** | **bool** | | [optional] diff --git a/docs/VideoViewsApi.md b/docs/VideoViewsApi.md index 60a86f4..479df94 100644 --- a/docs/VideoViewsApi.md +++ b/docs/VideoViewsApi.md @@ -85,7 +85,7 @@ Name | Type | Description | Notes # **ListVideoViews** -> ListVideoViewsResponse ListVideoViews (int? limit = null, int? page = null, string viewerId = null, int? errorId = null, string orderDirection = null, List filters = null, List timeframe = null) +> ListVideoViewsResponse ListVideoViews (int? limit = null, int? page = null, string viewerId = null, int? errorId = null, string orderDirection = null, List filters = null, List metricFilters = null, List timeframe = null) List Video Views @@ -118,12 +118,13 @@ namespace Example var errorId = 56; // int? | Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) var orderDirection = "asc"; // string | Sort order. (optional) var filters = new List(); // List | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + var metricFilters = new List(); // List | Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) var timeframe = new List(); // List | 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` (optional) try { // List Video Views - ListVideoViewsResponse result = apiInstance.ListVideoViews(limit, page, viewerId, errorId, orderDirection, filters, timeframe); + ListVideoViewsResponse result = apiInstance.ListVideoViews(limit, page, viewerId, errorId, orderDirection, filters, metricFilters, timeframe); Debug.WriteLine(result); } catch (ApiException e) @@ -147,6 +148,7 @@ Name | Type | Description | Notes **errorId** | **int?**| Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. | [optional] **orderDirection** | **string**| Sort order. | [optional] **filters** | [**List<string>**](string.md)| Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` | [optional] + **metricFilters** | [**List<string>**](string.md)| Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` | [optional] **timeframe** | [**List<string>**](string.md)| 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` | [optional] ### Return type diff --git a/gen/generator-config.json b/gen/generator-config.json index 099d3c8..ace95dc 100644 --- a/gen/generator-config.json +++ b/gen/generator-config.json @@ -1,6 +1,6 @@ { "!!source": "https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/csharp-netcore.md", - "packageVersion": "0.8.0", + "packageVersion": "0.9.0", "caseInsensitiveResponseHeaders": true, "disallowAdditionalPropertiesIfNotPresent": false, "licenseID": "MIT", diff --git a/src/Mux.Csharp.Sdk/Api/DimensionsApi.cs b/src/Mux.Csharp.Sdk/Api/DimensionsApi.cs index b64d984..98e0ac2 100644 --- a/src/Mux.Csharp.Sdk/Api/DimensionsApi.cs +++ b/src/Mux.Csharp.Sdk/Api/DimensionsApi.cs @@ -38,9 +38,10 @@ public interface IDimensionsApiSync : IApiAccessor /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ListDimensionValuesResponse - ListDimensionValuesResponse ListDimensionValues(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List)); + ListDimensionValuesResponse ListDimensionValues(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)); /// /// Lists the values for a specific dimension @@ -53,9 +54,10 @@ public interface IDimensionsApiSync : IApiAccessor /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ApiResponse of ListDimensionValuesResponse - ApiResponse ListDimensionValuesWithHttpInfo(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List)); + ApiResponse ListDimensionValuesWithHttpInfo(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)); /// /// List Dimensions /// @@ -95,10 +97,11 @@ public interface IDimensionsApiAsync : IApiAccessor /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListDimensionValuesResponse - System.Threading.Tasks.Task ListDimensionValuesAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListDimensionValuesAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Lists the values for a specific dimension @@ -111,10 +114,11 @@ public interface IDimensionsApiAsync : IApiAccessor /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListDimensionValuesResponse) - System.Threading.Tasks.Task> ListDimensionValuesWithHttpInfoAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListDimensionValuesWithHttpInfoAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Dimensions /// @@ -264,11 +268,12 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ListDimensionValuesResponse - public ListDimensionValuesResponse ListDimensionValues(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List)) + public ListDimensionValuesResponse ListDimensionValues(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListDimensionValuesWithHttpInfo(DIMENSION_ID, limit, page, filters, timeframe); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListDimensionValuesWithHttpInfo(DIMENSION_ID, limit, page, filters, metricFilters, timeframe); return localVarResponse.Data; } @@ -280,9 +285,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ApiResponse of ListDimensionValuesResponse - public Mux.Csharp.Sdk.Client.ApiResponse ListDimensionValuesWithHttpInfo(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List)) + public Mux.Csharp.Sdk.Client.ApiResponse ListDimensionValuesWithHttpInfo(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)) { // verify the required parameter 'DIMENSION_ID' is set if (DIMENSION_ID == null) @@ -325,6 +331,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (timeframe != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); @@ -359,12 +369,13 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListDimensionValuesResponse - public async System.Threading.Tasks.Task ListDimensionValuesAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListDimensionValuesAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListDimensionValuesWithHttpInfoAsync(DIMENSION_ID, limit, page, filters, timeframe, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListDimensionValuesWithHttpInfoAsync(DIMENSION_ID, limit, page, filters, metricFilters, timeframe, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -376,10 +387,11 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListDimensionValuesResponse) - public async System.Threading.Tasks.Task> ListDimensionValuesWithHttpInfoAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListDimensionValuesWithHttpInfoAsync(string DIMENSION_ID, int? limit = default(int?), int? page = default(int?), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'DIMENSION_ID' is set if (DIMENSION_ID == null) @@ -423,6 +435,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (timeframe != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); diff --git a/src/Mux.Csharp.Sdk/Api/ErrorsApi.cs b/src/Mux.Csharp.Sdk/Api/ErrorsApi.cs index 57a64c0..8137919 100644 --- a/src/Mux.Csharp.Sdk/Api/ErrorsApi.cs +++ b/src/Mux.Csharp.Sdk/Api/ErrorsApi.cs @@ -35,9 +35,10 @@ public interface IErrorsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ListErrorsResponse - ListErrorsResponse ListErrors(List filters = default(List), List timeframe = default(List)); + ListErrorsResponse ListErrors(List filters = default(List), List metricFilters = default(List), List timeframe = default(List)); /// /// List Errors @@ -47,9 +48,10 @@ public interface IErrorsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ApiResponse of ListErrorsResponse - ApiResponse ListErrorsWithHttpInfo(List filters = default(List), List timeframe = default(List)); + ApiResponse ListErrorsWithHttpInfo(List filters = default(List), List metricFilters = default(List), List timeframe = default(List)); #endregion Synchronous Operations } @@ -67,10 +69,11 @@ public interface IErrorsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListErrorsResponse - System.Threading.Tasks.Task ListErrorsAsync(List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListErrorsAsync(List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Errors @@ -80,10 +83,11 @@ public interface IErrorsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListErrorsResponse) - System.Threading.Tasks.Task> ListErrorsWithHttpInfoAsync(List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListErrorsWithHttpInfoAsync(List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -209,11 +213,12 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ListErrorsResponse - public ListErrorsResponse ListErrors(List filters = default(List), List timeframe = default(List)) + public ListErrorsResponse ListErrors(List filters = default(List), List metricFilters = default(List), List timeframe = default(List)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListErrorsWithHttpInfo(filters, timeframe); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListErrorsWithHttpInfo(filters, metricFilters, timeframe); return localVarResponse.Data; } @@ -222,9 +227,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ApiResponse of ListErrorsResponse - public Mux.Csharp.Sdk.Client.ApiResponse ListErrorsWithHttpInfo(List filters = default(List), List timeframe = default(List)) + public Mux.Csharp.Sdk.Client.ApiResponse ListErrorsWithHttpInfo(List filters = default(List), List metricFilters = default(List), List timeframe = default(List)) { Mux.Csharp.Sdk.Client.RequestOptions localVarRequestOptions = new Mux.Csharp.Sdk.Client.RequestOptions(); @@ -252,6 +258,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (timeframe != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); @@ -283,12 +293,13 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListErrorsResponse - public async System.Threading.Tasks.Task ListErrorsAsync(List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListErrorsAsync(List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListErrorsWithHttpInfoAsync(filters, timeframe, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListErrorsWithHttpInfoAsync(filters, metricFilters, timeframe, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -297,10 +308,11 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListErrorsResponse) - public async System.Threading.Tasks.Task> ListErrorsWithHttpInfoAsync(List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListErrorsWithHttpInfoAsync(List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Mux.Csharp.Sdk.Client.RequestOptions localVarRequestOptions = new Mux.Csharp.Sdk.Client.RequestOptions(); @@ -329,6 +341,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (timeframe != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); diff --git a/src/Mux.Csharp.Sdk/Api/MetricsApi.cs b/src/Mux.Csharp.Sdk/Api/MetricsApi.cs index 1612ad9..c2f0f00 100644 --- a/src/Mux.Csharp.Sdk/Api/MetricsApi.cs +++ b/src/Mux.Csharp.Sdk/Api/MetricsApi.cs @@ -37,11 +37,12 @@ public interface IMetricsApiSync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// GetMetricTimeseriesDataResponse - GetMetricTimeseriesDataResponse GetMetricTimeseriesData(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)); + GetMetricTimeseriesDataResponse GetMetricTimeseriesData(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)); /// /// Get metric timeseries data @@ -53,11 +54,12 @@ public interface IMetricsApiSync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// ApiResponse of GetMetricTimeseriesDataResponse - ApiResponse GetMetricTimeseriesDataWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)); + ApiResponse GetMetricTimeseriesDataWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)); /// /// Get Overall values /// @@ -68,9 +70,10 @@ public interface IMetricsApiSync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// GetOverallValuesResponse - GetOverallValuesResponse GetOverallValues(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string)); + GetOverallValuesResponse GetOverallValues(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string)); /// /// Get Overall values @@ -82,9 +85,10 @@ public interface IMetricsApiSync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// ApiResponse of GetOverallValuesResponse - ApiResponse GetOverallValuesWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string)); + ApiResponse GetOverallValuesWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string)); /// /// List all metric values /// @@ -94,10 +98,11 @@ public interface IMetricsApiSync : IApiAccessor /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// ListAllMetricValuesResponse - ListAllMetricValuesResponse ListAllMetricValues(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string)); + ListAllMetricValuesResponse ListAllMetricValues(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string)); /// /// List all metric values @@ -108,10 +113,11 @@ public interface IMetricsApiSync : IApiAccessor /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// ApiResponse of ListAllMetricValuesResponse - ApiResponse ListAllMetricValuesWithHttpInfo(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string)); + ApiResponse ListAllMetricValuesWithHttpInfo(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string)); /// /// List breakdown values /// @@ -123,13 +129,14 @@ public interface IMetricsApiSync : IApiAccessor /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) /// Sort order. (optional) /// 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` (optional) /// ListBreakdownValuesResponse - ListBreakdownValuesResponse ListBreakdownValues(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)); + ListBreakdownValuesResponse ListBreakdownValues(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)); /// /// List breakdown values @@ -142,13 +149,14 @@ public interface IMetricsApiSync : IApiAccessor /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) /// Sort order. (optional) /// 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` (optional) /// ApiResponse of ListBreakdownValuesResponse - ApiResponse ListBreakdownValuesWithHttpInfo(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)); + ApiResponse ListBreakdownValuesWithHttpInfo(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)); /// /// List Insights /// @@ -160,8 +168,10 @@ public interface IMetricsApiSync : IApiAccessor /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// ListInsightsResponse - ListInsightsResponse ListInsights(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List)); + ListInsightsResponse ListInsights(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List)); /// /// List Insights @@ -174,8 +184,10 @@ public interface IMetricsApiSync : IApiAccessor /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// ApiResponse of ListInsightsResponse - ApiResponse ListInsightsWithHttpInfo(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List)); + ApiResponse ListInsightsWithHttpInfo(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List)); #endregion Synchronous Operations } @@ -195,12 +207,13 @@ public interface IMetricsApiAsync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// Cancellation Token to cancel the request. /// Task of GetMetricTimeseriesDataResponse - System.Threading.Tasks.Task GetMetricTimeseriesDataAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetMetricTimeseriesDataAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get metric timeseries data @@ -212,12 +225,13 @@ public interface IMetricsApiAsync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (GetMetricTimeseriesDataResponse) - System.Threading.Tasks.Task> GetMetricTimeseriesDataWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetMetricTimeseriesDataWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Overall values /// @@ -228,10 +242,11 @@ public interface IMetricsApiAsync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Cancellation Token to cancel the request. /// Task of GetOverallValuesResponse - System.Threading.Tasks.Task GetOverallValuesAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOverallValuesAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Overall values @@ -243,10 +258,11 @@ public interface IMetricsApiAsync : IApiAccessor /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (GetOverallValuesResponse) - System.Threading.Tasks.Task> GetOverallValuesWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOverallValuesWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List all metric values /// @@ -256,11 +272,12 @@ public interface IMetricsApiAsync : IApiAccessor /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// Cancellation Token to cancel the request. /// Task of ListAllMetricValuesResponse - System.Threading.Tasks.Task ListAllMetricValuesAsync(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListAllMetricValuesAsync(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List all metric values @@ -271,11 +288,12 @@ public interface IMetricsApiAsync : IApiAccessor /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListAllMetricValuesResponse) - System.Threading.Tasks.Task> ListAllMetricValuesWithHttpInfoAsync(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListAllMetricValuesWithHttpInfoAsync(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List breakdown values /// @@ -287,6 +305,7 @@ public interface IMetricsApiAsync : IApiAccessor /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) @@ -294,7 +313,7 @@ public interface IMetricsApiAsync : IApiAccessor /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListBreakdownValuesResponse - System.Threading.Tasks.Task ListBreakdownValuesAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListBreakdownValuesAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List breakdown values @@ -307,6 +326,7 @@ public interface IMetricsApiAsync : IApiAccessor /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) @@ -314,7 +334,7 @@ public interface IMetricsApiAsync : IApiAccessor /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListBreakdownValuesResponse) - System.Threading.Tasks.Task> ListBreakdownValuesWithHttpInfoAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListBreakdownValuesWithHttpInfoAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Insights /// @@ -326,9 +346,11 @@ public interface IMetricsApiAsync : IApiAccessor /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Cancellation Token to cancel the request. /// Task of ListInsightsResponse - System.Threading.Tasks.Task ListInsightsAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListInsightsAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Insights @@ -341,9 +363,11 @@ public interface IMetricsApiAsync : IApiAccessor /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListInsightsResponse) - System.Threading.Tasks.Task> ListInsightsWithHttpInfoAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListInsightsWithHttpInfoAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -471,13 +495,14 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// GetMetricTimeseriesDataResponse - public GetMetricTimeseriesDataResponse GetMetricTimeseriesData(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)) + public GetMetricTimeseriesDataResponse GetMetricTimeseriesData(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = GetMetricTimeseriesDataWithHttpInfo(METRIC_ID, timeframe, filters, measurement, orderDirection, groupBy); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = GetMetricTimeseriesDataWithHttpInfo(METRIC_ID, timeframe, filters, metricFilters, measurement, orderDirection, groupBy); return localVarResponse.Data; } @@ -488,11 +513,12 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// ApiResponse of GetMetricTimeseriesDataResponse - public Mux.Csharp.Sdk.Client.ApiResponse GetMetricTimeseriesDataWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)) + public Mux.Csharp.Sdk.Client.ApiResponse GetMetricTimeseriesDataWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -531,6 +557,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (measurement != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "measurement", measurement)); @@ -572,14 +602,15 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// Cancellation Token to cancel the request. /// Task of GetMetricTimeseriesDataResponse - public async System.Threading.Tasks.Task GetMetricTimeseriesDataAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetMetricTimeseriesDataAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await GetMetricTimeseriesDataWithHttpInfoAsync(METRIC_ID, timeframe, filters, measurement, orderDirection, groupBy, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await GetMetricTimeseriesDataWithHttpInfoAsync(METRIC_ID, timeframe, filters, metricFilters, measurement, orderDirection, groupBy, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -590,12 +621,13 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) /// Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (GetMetricTimeseriesDataResponse) - public async System.Threading.Tasks.Task> GetMetricTimeseriesDataWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetMetricTimeseriesDataWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), string orderDirection = default(string), string groupBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -635,6 +667,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (measurement != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "measurement", measurement)); @@ -677,11 +713,12 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// GetOverallValuesResponse - public GetOverallValuesResponse GetOverallValues(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string)) + public GetOverallValuesResponse GetOverallValues(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = GetOverallValuesWithHttpInfo(METRIC_ID, timeframe, filters, measurement); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = GetOverallValuesWithHttpInfo(METRIC_ID, timeframe, filters, metricFilters, measurement); return localVarResponse.Data; } @@ -692,9 +729,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// ApiResponse of GetOverallValuesResponse - public Mux.Csharp.Sdk.Client.ApiResponse GetOverallValuesWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string)) + public Mux.Csharp.Sdk.Client.ApiResponse GetOverallValuesWithHttpInfo(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -733,6 +771,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (measurement != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "measurement", measurement)); @@ -766,12 +808,13 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Cancellation Token to cancel the request. /// Task of GetOverallValuesResponse - public async System.Threading.Tasks.Task GetOverallValuesAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOverallValuesAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await GetOverallValuesWithHttpInfoAsync(METRIC_ID, timeframe, filters, measurement, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await GetOverallValuesWithHttpInfoAsync(METRIC_ID, timeframe, filters, metricFilters, measurement, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -782,10 +825,11 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// ID of the Metric /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (GetOverallValuesResponse) - public async System.Threading.Tasks.Task> GetOverallValuesWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOverallValuesWithHttpInfoAsync(string METRIC_ID, List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string measurement = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -825,6 +869,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (measurement != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "measurement", measurement)); @@ -858,12 +906,13 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// ListAllMetricValuesResponse - public ListAllMetricValuesResponse ListAllMetricValues(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string)) + public ListAllMetricValuesResponse ListAllMetricValues(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListAllMetricValuesWithHttpInfo(timeframe, filters, dimension, value); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListAllMetricValuesWithHttpInfo(timeframe, filters, metricFilters, dimension, value); return localVarResponse.Data; } @@ -873,10 +922,11 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// ApiResponse of ListAllMetricValuesResponse - public Mux.Csharp.Sdk.Client.ApiResponse ListAllMetricValuesWithHttpInfo(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string)) + public Mux.Csharp.Sdk.Client.ApiResponse ListAllMetricValuesWithHttpInfo(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string)) { Mux.Csharp.Sdk.Client.RequestOptions localVarRequestOptions = new Mux.Csharp.Sdk.Client.RequestOptions(); @@ -908,6 +958,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (dimension != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "dimension", dimension)); @@ -944,13 +998,14 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// Cancellation Token to cancel the request. /// Task of ListAllMetricValuesResponse - public async System.Threading.Tasks.Task ListAllMetricValuesAsync(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListAllMetricValuesAsync(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListAllMetricValuesWithHttpInfoAsync(timeframe, filters, dimension, value, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListAllMetricValuesWithHttpInfoAsync(timeframe, filters, metricFilters, dimension, value, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -960,11 +1015,12 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// 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` (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Dimension the specified value belongs to (optional) /// Value to show all available metrics for (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListAllMetricValuesResponse) - public async System.Threading.Tasks.Task> ListAllMetricValuesWithHttpInfoAsync(List timeframe = default(List), List filters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListAllMetricValuesWithHttpInfoAsync(List timeframe = default(List), List filters = default(List), List metricFilters = default(List), string dimension = default(string), string value = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Mux.Csharp.Sdk.Client.RequestOptions localVarRequestOptions = new Mux.Csharp.Sdk.Client.RequestOptions(); @@ -997,6 +1053,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (dimension != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "dimension", dimension)); @@ -1036,15 +1096,16 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) /// Sort order. (optional) /// 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` (optional) /// ListBreakdownValuesResponse - public ListBreakdownValuesResponse ListBreakdownValues(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)) + public ListBreakdownValuesResponse ListBreakdownValues(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListBreakdownValuesWithHttpInfo(METRIC_ID, groupBy, measurement, filters, limit, page, orderBy, orderDirection, timeframe); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListBreakdownValuesWithHttpInfo(METRIC_ID, groupBy, measurement, filters, metricFilters, limit, page, orderBy, orderDirection, timeframe); return localVarResponse.Data; } @@ -1056,13 +1117,14 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) /// Sort order. (optional) /// 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` (optional) /// ApiResponse of ListBreakdownValuesResponse - public Mux.Csharp.Sdk.Client.ApiResponse ListBreakdownValuesWithHttpInfo(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)) + public Mux.Csharp.Sdk.Client.ApiResponse ListBreakdownValuesWithHttpInfo(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -1105,6 +1167,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); @@ -1155,6 +1221,7 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) @@ -1162,9 +1229,9 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListBreakdownValuesResponse - public async System.Threading.Tasks.Task ListBreakdownValuesAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListBreakdownValuesAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListBreakdownValuesWithHttpInfoAsync(METRIC_ID, groupBy, measurement, filters, limit, page, orderBy, orderDirection, timeframe, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListBreakdownValuesWithHttpInfoAsync(METRIC_ID, groupBy, measurement, filters, metricFilters, limit, page, orderBy, orderDirection, timeframe, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1176,6 +1243,7 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Breakdown value to group the results by (optional) /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Number of items to include in the response (optional, default to 25) /// Offset by this many pages, of the size of `limit` (optional, default to 1) /// Value to order the results by (optional) @@ -1183,7 +1251,7 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListBreakdownValuesResponse) - public async System.Threading.Tasks.Task> ListBreakdownValuesWithHttpInfoAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListBreakdownValuesWithHttpInfoAsync(string METRIC_ID, string groupBy = default(string), string measurement = default(string), List filters = default(List), List metricFilters = default(List), int? limit = default(int?), int? page = default(int?), string orderBy = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -1227,6 +1295,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (limit != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("", "limit", limit)); @@ -1278,10 +1350,12 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// ListInsightsResponse - public ListInsightsResponse ListInsights(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List)) + public ListInsightsResponse ListInsights(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListInsightsWithHttpInfo(METRIC_ID, measurement, orderDirection, timeframe); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListInsightsWithHttpInfo(METRIC_ID, measurement, orderDirection, timeframe, filters, metricFilters); return localVarResponse.Data; } @@ -1293,8 +1367,10 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// ApiResponse of ListInsightsResponse - public Mux.Csharp.Sdk.Client.ApiResponse ListInsightsWithHttpInfo(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List)) + public Mux.Csharp.Sdk.Client.ApiResponse ListInsightsWithHttpInfo(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -1337,6 +1413,14 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); } + if (filters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); + } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } // authentication (accessToken) required // http basic authentication required @@ -1367,11 +1451,13 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Cancellation Token to cancel the request. /// Task of ListInsightsResponse - public async System.Threading.Tasks.Task ListInsightsAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListInsightsAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListInsightsWithHttpInfoAsync(METRIC_ID, measurement, orderDirection, timeframe, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListInsightsWithHttpInfoAsync(METRIC_ID, measurement, orderDirection, timeframe, filters, metricFilters, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1383,9 +1469,11 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory /// Measurement for the provided metric. If omitted, the default for the metric will be used. (optional) /// Sort order. (optional) (deprecated) /// 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` (optional) + /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListInsightsResponse) - public async System.Threading.Tasks.Task> ListInsightsWithHttpInfoAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListInsightsWithHttpInfoAsync(string METRIC_ID, string measurement = default(string), string orderDirection = default(string), List timeframe = default(List), List filters = default(List), List metricFilters = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'METRIC_ID' is set if (METRIC_ID == null) @@ -1429,6 +1517,14 @@ public Mux.Csharp.Sdk.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); } + if (filters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); + } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } // authentication (accessToken) required // http basic authentication required diff --git a/src/Mux.Csharp.Sdk/Api/VideoViewsApi.cs b/src/Mux.Csharp.Sdk/Api/VideoViewsApi.cs index d7db8b6..1616340 100644 --- a/src/Mux.Csharp.Sdk/Api/VideoViewsApi.cs +++ b/src/Mux.Csharp.Sdk/Api/VideoViewsApi.cs @@ -61,9 +61,10 @@ public interface IVideoViewsApiSync : IApiAccessor /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ListVideoViewsResponse - ListVideoViewsResponse ListVideoViews(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List)); + ListVideoViewsResponse ListVideoViews(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)); /// /// List Video Views @@ -78,9 +79,10 @@ public interface IVideoViewsApiSync : IApiAccessor /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ApiResponse of ListVideoViewsResponse - ApiResponse ListVideoViewsWithHttpInfo(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List)); + ApiResponse ListVideoViewsWithHttpInfo(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)); #endregion Synchronous Operations } @@ -126,10 +128,11 @@ public interface IVideoViewsApiAsync : IApiAccessor /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListVideoViewsResponse - System.Threading.Tasks.Task ListVideoViewsAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ListVideoViewsAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Video Views @@ -144,10 +147,11 @@ public interface IVideoViewsApiAsync : IApiAccessor /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListVideoViewsResponse) - System.Threading.Tasks.Task> ListVideoViewsWithHttpInfoAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListVideoViewsWithHttpInfoAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -424,11 +428,12 @@ public Mux.Csharp.Sdk.Client.ApiResponse GetVideoViewWithHttp /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ListVideoViewsResponse - public ListVideoViewsResponse ListVideoViews(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List)) + public ListVideoViewsResponse ListVideoViews(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListVideoViewsWithHttpInfo(limit, page, viewerId, errorId, orderDirection, filters, timeframe); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = ListVideoViewsWithHttpInfo(limit, page, viewerId, errorId, orderDirection, filters, metricFilters, timeframe); return localVarResponse.Data; } @@ -442,9 +447,10 @@ public Mux.Csharp.Sdk.Client.ApiResponse GetVideoViewWithHttp /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// ApiResponse of ListVideoViewsResponse - public Mux.Csharp.Sdk.Client.ApiResponse ListVideoViewsWithHttpInfo(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List)) + public Mux.Csharp.Sdk.Client.ApiResponse ListVideoViewsWithHttpInfo(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List)) { Mux.Csharp.Sdk.Client.RequestOptions localVarRequestOptions = new Mux.Csharp.Sdk.Client.RequestOptions(); @@ -492,6 +498,10 @@ public Mux.Csharp.Sdk.Client.ApiResponse GetVideoViewWithHttp { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (timeframe != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); @@ -528,12 +538,13 @@ public Mux.Csharp.Sdk.Client.ApiResponse GetVideoViewWithHttp /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ListVideoViewsResponse - public async System.Threading.Tasks.Task ListVideoViewsAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ListVideoViewsAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListVideoViewsWithHttpInfoAsync(limit, page, viewerId, errorId, orderDirection, filters, timeframe, cancellationToken).ConfigureAwait(false); + Mux.Csharp.Sdk.Client.ApiResponse localVarResponse = await ListVideoViewsWithHttpInfoAsync(limit, page, viewerId, errorId, orderDirection, filters, metricFilters, timeframe, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -547,10 +558,11 @@ public Mux.Csharp.Sdk.Client.ApiResponse GetVideoViewWithHttp /// Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. (optional) /// Sort order. (optional) /// Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US` (optional) + /// Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000` (optional) /// 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` (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListVideoViewsResponse) - public async System.Threading.Tasks.Task> ListVideoViewsWithHttpInfoAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListVideoViewsWithHttpInfoAsync(int? limit = default(int?), int? page = default(int?), string viewerId = default(string), int? errorId = default(int?), string orderDirection = default(string), List filters = default(List), List metricFilters = default(List), List timeframe = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Mux.Csharp.Sdk.Client.RequestOptions localVarRequestOptions = new Mux.Csharp.Sdk.Client.RequestOptions(); @@ -599,6 +611,10 @@ public Mux.Csharp.Sdk.Client.ApiResponse GetVideoViewWithHttp { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "filters[]", filters)); } + if (metricFilters != null) + { + localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "metric_filters[]", metricFilters)); + } if (timeframe != null) { localVarRequestOptions.QueryParameters.Add(Mux.Csharp.Sdk.Client.ClientUtils.ParameterToMultiMap("multi", "timeframe[]", timeframe)); diff --git a/src/Mux.Csharp.Sdk/Client/Configuration.cs b/src/Mux.Csharp.Sdk/Client/Configuration.cs index 3b2a317..28458d8 100644 --- a/src/Mux.Csharp.Sdk/Client/Configuration.cs +++ b/src/Mux.Csharp.Sdk/Client/Configuration.cs @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "0.8.0"; + public const string Version = "0.9.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -102,7 +102,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = "Mux C# | 0.8.0"; + UserAgent = "Mux C# | 0.9.0"; BasePath = "https://api.mux.com"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -447,7 +447,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: v1\n"; - report += " SDK Package Version: 0.8.0\n"; + report += " SDK Package Version: 0.9.0\n"; return report; } diff --git a/src/Mux.Csharp.Sdk/Model/AbridgedVideoView.cs b/src/Mux.Csharp.Sdk/Model/AbridgedVideoView.cs index c9fcde6..0b4efe1 100644 --- a/src/Mux.Csharp.Sdk/Model/AbridgedVideoView.cs +++ b/src/Mux.Csharp.Sdk/Model/AbridgedVideoView.cs @@ -46,7 +46,9 @@ public partial class AbridgedVideoView : IEquatable, IValidat /// countryCode. /// viewStart. /// viewEnd. - public AbridgedVideoView(string id = default(string), string viewerOsFamily = default(string), string viewerApplicationName = default(string), string videoTitle = default(string), long totalRowCount = default(long), string playerErrorMessage = default(string), string playerErrorCode = default(string), int? errorTypeId = default(int?), string countryCode = default(string), string viewStart = default(string), string viewEnd = default(string)) + /// viewerExperienceScore. + /// watchTime. + public AbridgedVideoView(string id = default(string), string viewerOsFamily = default(string), string viewerApplicationName = default(string), string videoTitle = default(string), long totalRowCount = default(long), string playerErrorMessage = default(string), string playerErrorCode = default(string), int? errorTypeId = default(int?), string countryCode = default(string), string viewStart = default(string), string viewEnd = default(string), float? viewerExperienceScore = default(float?), int? watchTime = default(int?)) { this.Id = id; this.ViewerOsFamily = viewerOsFamily; @@ -59,6 +61,8 @@ public partial class AbridgedVideoView : IEquatable, IValidat this.CountryCode = countryCode; this.ViewStart = viewStart; this.ViewEnd = viewEnd; + this.ViewerExperienceScore = viewerExperienceScore; + this.WatchTime = watchTime; this.AdditionalProperties = new Dictionary(); } @@ -128,6 +132,18 @@ public partial class AbridgedVideoView : IEquatable, IValidat [DataMember(Name = "view_end", EmitDefaultValue = false)] public string ViewEnd { get; set; } + /// + /// Gets or Sets ViewerExperienceScore + /// + [DataMember(Name = "viewer_experience_score", EmitDefaultValue = true)] + public float? ViewerExperienceScore { get; set; } + + /// + /// Gets or Sets WatchTime + /// + [DataMember(Name = "watch_time", EmitDefaultValue = true)] + public int? WatchTime { get; set; } + /// /// Gets or Sets additional properties /// @@ -153,6 +169,8 @@ public override string ToString() sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); sb.Append(" ViewStart: ").Append(ViewStart).Append("\n"); sb.Append(" ViewEnd: ").Append(ViewEnd).Append("\n"); + sb.Append(" ViewerExperienceScore: ").Append(ViewerExperienceScore).Append("\n"); + sb.Append(" WatchTime: ").Append(WatchTime).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -242,6 +260,16 @@ public bool Equals(AbridgedVideoView input) this.ViewEnd == input.ViewEnd || (this.ViewEnd != null && this.ViewEnd.Equals(input.ViewEnd)) + ) && + ( + this.ViewerExperienceScore == input.ViewerExperienceScore || + (this.ViewerExperienceScore != null && + this.ViewerExperienceScore.Equals(input.ViewerExperienceScore)) + ) && + ( + this.WatchTime == input.WatchTime || + (this.WatchTime != null && + this.WatchTime.Equals(input.WatchTime)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -296,6 +324,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ViewEnd.GetHashCode(); } + if (this.ViewerExperienceScore != null) + { + hashCode = (hashCode * 59) + this.ViewerExperienceScore.GetHashCode(); + } + if (this.WatchTime != null) + { + hashCode = (hashCode * 59) + this.WatchTime.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/src/Mux.Csharp.Sdk/Model/AssetGeneratedSubtitleSettings.cs b/src/Mux.Csharp.Sdk/Model/AssetGeneratedSubtitleSettings.cs index 83a9759..ddd4600 100644 --- a/src/Mux.Csharp.Sdk/Model/AssetGeneratedSubtitleSettings.cs +++ b/src/Mux.Csharp.Sdk/Model/AssetGeneratedSubtitleSettings.cs @@ -46,10 +46,130 @@ public enum LanguageCodeEnum En = 1, /// - /// Enum EnUS for value: en-US + /// Enum Es for value: es /// - [EnumMember(Value = "en-US")] - EnUS = 2 + [EnumMember(Value = "es")] + Es = 2, + + /// + /// Enum It for value: it + /// + [EnumMember(Value = "it")] + It = 3, + + /// + /// Enum Pt for value: pt + /// + [EnumMember(Value = "pt")] + Pt = 4, + + /// + /// Enum De for value: de + /// + [EnumMember(Value = "de")] + De = 5, + + /// + /// Enum Fr for value: fr + /// + [EnumMember(Value = "fr")] + Fr = 6, + + /// + /// Enum Pl for value: pl + /// + [EnumMember(Value = "pl")] + Pl = 7, + + /// + /// Enum Ru for value: ru + /// + [EnumMember(Value = "ru")] + Ru = 8, + + /// + /// Enum Nl for value: nl + /// + [EnumMember(Value = "nl")] + Nl = 9, + + /// + /// Enum Ca for value: ca + /// + [EnumMember(Value = "ca")] + Ca = 10, + + /// + /// Enum Tr for value: tr + /// + [EnumMember(Value = "tr")] + Tr = 11, + + /// + /// Enum Sv for value: sv + /// + [EnumMember(Value = "sv")] + Sv = 12, + + /// + /// Enum Uk for value: uk + /// + [EnumMember(Value = "uk")] + Uk = 13, + + /// + /// Enum No for value: no + /// + [EnumMember(Value = "no")] + No = 14, + + /// + /// Enum Fi for value: fi + /// + [EnumMember(Value = "fi")] + Fi = 15, + + /// + /// Enum Sk for value: sk + /// + [EnumMember(Value = "sk")] + Sk = 16, + + /// + /// Enum El for value: el + /// + [EnumMember(Value = "el")] + El = 17, + + /// + /// Enum Cs for value: cs + /// + [EnumMember(Value = "cs")] + Cs = 18, + + /// + /// Enum Hr for value: hr + /// + [EnumMember(Value = "hr")] + Hr = 19, + + /// + /// Enum Da for value: da + /// + [EnumMember(Value = "da")] + Da = 20, + + /// + /// Enum Ro for value: ro + /// + [EnumMember(Value = "ro")] + Ro = 21, + + /// + /// Enum Bg for value: bg + /// + [EnumMember(Value = "bg")] + Bg = 22 } diff --git a/src/Mux.Csharp.Sdk/Model/InputSettings.cs b/src/Mux.Csharp.Sdk/Model/InputSettings.cs index 5cde0b5..929eb57 100644 --- a/src/Mux.Csharp.Sdk/Model/InputSettings.cs +++ b/src/Mux.Csharp.Sdk/Model/InputSettings.cs @@ -91,7 +91,7 @@ public enum TextTypeEnum /// /// Initializes a new instance of the class. /// - /// The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. . + /// The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. The maximum size is 4096x4096. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. . /// overlaySettings. /// Generate subtitle tracks using automatic speech recognition using this configuration. This may only be provided for the first input object (the main input file). For direct uploads, this first input should omit the url parameter, as the main input file is provided via the direct upload. This will create subtitles based on the audio track ingested from that main input file. Note that subtitle generation happens after initial ingest, so the generated tracks will be in the `preparing` state when the asset transitions to `ready`.. /// The time offset in seconds from the beginning of the video indicating the clip's starting marker. The default value is 0 when not included. This parameter is only applicable for creating clips when `input.url` has `mux://assets/{asset_id}` format.. @@ -119,9 +119,9 @@ public enum TextTypeEnum } /// - /// The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. + /// The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. The maximum size is 4096x4096. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. /// - /// The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. + /// The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. The maximum size is 4096x4096. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input. [DataMember(Name = "url", EmitDefaultValue = false)] public string Url { get; set; } diff --git a/src/Mux.Csharp.Sdk/Model/LiveStream.cs b/src/Mux.Csharp.Sdk/Model/LiveStream.cs index c68dbe2..56f9980 100644 --- a/src/Mux.Csharp.Sdk/Model/LiveStream.cs +++ b/src/Mux.Csharp.Sdk/Model/LiveStream.cs @@ -96,7 +96,8 @@ public enum LatencyModeEnum /// Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags.. /// True means this live stream is a test live stream. Test live streams can be used to help evaluate the Mux Video APIs for free. There is no limit on the number of test live streams, but they are watermarked with the Mux logo, and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours.. /// The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. (default to 43200). - public LiveStream(string id = default(string), string createdAt = default(string), string streamKey = default(string), string activeAssetId = default(string), List recentAssetIds = default(List), LiveStreamStatus? status = default(LiveStreamStatus?), List playbackIds = default(List), CreateAssetRequest newAssetSettings = default(CreateAssetRequest), string passthrough = default(string), bool audioOnly = default(bool), List embeddedSubtitles = default(List), List generatedSubtitles = default(List), float reconnectWindow = 60F, bool useSlateForStandardLatency = false, string reconnectSlateUrl = default(string), bool reducedLatency = default(bool), bool lowLatency = default(bool), List simulcastTargets = default(List), LatencyModeEnum? latencyMode = default(LatencyModeEnum?), bool test = default(bool), int maxContinuousDuration = 43200) + /// Unique key used for encrypting a stream to a Mux SRT endpoint.. + public LiveStream(string id = default(string), string createdAt = default(string), string streamKey = default(string), string activeAssetId = default(string), List recentAssetIds = default(List), LiveStreamStatus? status = default(LiveStreamStatus?), List playbackIds = default(List), CreateAssetRequest newAssetSettings = default(CreateAssetRequest), string passthrough = default(string), bool audioOnly = default(bool), List embeddedSubtitles = default(List), List generatedSubtitles = default(List), float reconnectWindow = 60F, bool useSlateForStandardLatency = false, string reconnectSlateUrl = default(string), bool reducedLatency = default(bool), bool lowLatency = default(bool), List simulcastTargets = default(List), LatencyModeEnum? latencyMode = default(LatencyModeEnum?), bool test = default(bool), int maxContinuousDuration = 43200, string srtPassphrase = default(string)) { this.Id = id; this.CreatedAt = createdAt; @@ -119,6 +120,7 @@ public enum LatencyModeEnum this.LatencyMode = latencyMode; this.Test = test; this.MaxContinuousDuration = maxContinuousDuration; + this.SrtPassphrase = srtPassphrase; this.AdditionalProperties = new Dictionary(); } @@ -256,6 +258,13 @@ public enum LatencyModeEnum [DataMember(Name = "max_continuous_duration", EmitDefaultValue = false)] public int MaxContinuousDuration { get; set; } + /// + /// Unique key used for encrypting a stream to a Mux SRT endpoint. + /// + /// Unique key used for encrypting a stream to a Mux SRT endpoint. + [DataMember(Name = "srt_passphrase", EmitDefaultValue = false)] + public string SrtPassphrase { get; set; } + /// /// Gets or Sets additional properties /// @@ -291,6 +300,7 @@ public override string ToString() sb.Append(" LatencyMode: ").Append(LatencyMode).Append("\n"); sb.Append(" Test: ").Append(Test).Append("\n"); sb.Append(" MaxContinuousDuration: ").Append(MaxContinuousDuration).Append("\n"); + sb.Append(" SrtPassphrase: ").Append(SrtPassphrase).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -427,6 +437,11 @@ public bool Equals(LiveStream input) ( this.MaxContinuousDuration == input.MaxContinuousDuration || this.MaxContinuousDuration.Equals(input.MaxContinuousDuration) + ) && + ( + this.SrtPassphrase == input.SrtPassphrase || + (this.SrtPassphrase != null && + this.SrtPassphrase.Equals(input.SrtPassphrase)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -497,6 +512,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.LatencyMode.GetHashCode(); hashCode = (hashCode * 59) + this.Test.GetHashCode(); hashCode = (hashCode * 59) + this.MaxContinuousDuration.GetHashCode(); + if (this.SrtPassphrase != null) + { + hashCode = (hashCode * 59) + this.SrtPassphrase.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/src/Mux.Csharp.Sdk/Model/ReferrerDomainRestriction.cs b/src/Mux.Csharp.Sdk/Model/ReferrerDomainRestriction.cs index 8892ec7..e956a0d 100644 --- a/src/Mux.Csharp.Sdk/Model/ReferrerDomainRestriction.cs +++ b/src/Mux.Csharp.Sdk/Model/ReferrerDomainRestriction.cs @@ -35,7 +35,7 @@ public partial class ReferrerDomainRestriction : IEquatable /// Initializes a new instance of the class. /// - /// List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards . + /// List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards . /// A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests. (default to false). public ReferrerDomainRestriction(List allowedDomains = default(List), bool allowNoReferrer = false) { @@ -45,9 +45,9 @@ public partial class ReferrerDomainRestriction : IEquatable - /// List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards + /// List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards /// - /// List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards + /// List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards [DataMember(Name = "allowed_domains", EmitDefaultValue = false)] public List AllowedDomains { get; set; } diff --git a/src/Mux.Csharp.Sdk/Model/Track.cs b/src/Mux.Csharp.Sdk/Model/Track.cs index 255c759..e86e5f2 100644 --- a/src/Mux.Csharp.Sdk/Model/Track.cs +++ b/src/Mux.Csharp.Sdk/Model/Track.cs @@ -192,7 +192,8 @@ public enum StatusEnum /// Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is only set tracks where `type` is `text` and `text_type` is `subtitles`.. /// Arbitrary user-supplied metadata set for the track either when creating the asset or track. This parameter is only set for `text` type tracks. Max 255 characters.. /// The status of the track. This parameter is only set for `text` type tracks.. - public Track(string id = default(string), TypeEnum? type = default(TypeEnum?), double duration = default(double), long maxWidth = default(long), long maxHeight = default(long), double maxFrameRate = default(double), long maxChannels = default(long), string maxChannelLayout = default(string), TextTypeEnum? textType = default(TextTypeEnum?), TextSourceEnum? textSource = default(TextSourceEnum?), string languageCode = default(string), string name = default(string), bool closedCaptions = default(bool), string passthrough = default(string), StatusEnum? status = default(StatusEnum?)) + /// For an audio track, indicates that this is the primary audio track, ingested from the main input for this asset. The primary audio track cannot be deleted.. + public Track(string id = default(string), TypeEnum? type = default(TypeEnum?), double duration = default(double), long maxWidth = default(long), long maxHeight = default(long), double maxFrameRate = default(double), long maxChannels = default(long), string maxChannelLayout = default(string), TextTypeEnum? textType = default(TextTypeEnum?), TextSourceEnum? textSource = default(TextSourceEnum?), string languageCode = default(string), string name = default(string), bool closedCaptions = default(bool), string passthrough = default(string), StatusEnum? status = default(StatusEnum?), bool primary = default(bool)) { this.Id = id; this.Type = type; @@ -209,6 +210,7 @@ public enum StatusEnum this.ClosedCaptions = closedCaptions; this.Passthrough = passthrough; this.Status = status; + this.Primary = primary; this.AdditionalProperties = new Dictionary(); } @@ -290,6 +292,13 @@ public enum StatusEnum [DataMember(Name = "passthrough", EmitDefaultValue = false)] public string Passthrough { get; set; } + /// + /// For an audio track, indicates that this is the primary audio track, ingested from the main input for this asset. The primary audio track cannot be deleted. + /// + /// For an audio track, indicates that this is the primary audio track, ingested from the main input for this asset. The primary audio track cannot be deleted. + [DataMember(Name = "primary", EmitDefaultValue = true)] + public bool Primary { get; set; } + /// /// Gets or Sets additional properties /// @@ -319,6 +328,7 @@ public override string ToString() sb.Append(" ClosedCaptions: ").Append(ClosedCaptions).Append("\n"); sb.Append(" Passthrough: ").Append(Passthrough).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Primary: ").Append(Primary).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -419,6 +429,10 @@ public bool Equals(Track input) ( this.Status == input.Status || this.Status.Equals(input.Status) + ) && + ( + this.Primary == input.Primary || + this.Primary.Equals(input.Primary) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -462,6 +476,7 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Passthrough.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); + hashCode = (hashCode * 59) + this.Primary.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/src/Mux.Csharp.Sdk/Model/VideoView.cs b/src/Mux.Csharp.Sdk/Model/VideoView.cs index 95fc7fc..53388f6 100644 --- a/src/Mux.Csharp.Sdk/Model/VideoView.cs +++ b/src/Mux.Csharp.Sdk/Model/VideoView.cs @@ -176,9 +176,20 @@ public partial class VideoView : IEquatable, IValidatableObject /// viewDroppedFrameCount. /// viewHasAd. /// videoStartupFailure. + /// adAttemptCount. + /// adBreakCount. + /// adBreakErrorCount. + /// adBreakErrorPercentage. + /// adErrorCount. + /// adErrorPercentage. + /// adImpressionCount. + /// adStartupErrorCount. + /// adStartupErrorPercentage. + /// adExitBeforeStartCount. + /// adExitBeforeStartPercentage. /// longResume. /// longRebuffering. - public VideoView(string viewTotalUpscaling = default(string), string prerollAdAssetHostname = default(string), string playerSourceDomain = default(string), string region = default(string), string viewerUserAgent = default(string), bool? prerollRequested = default(bool?), string pageType = default(string), string startupScore = default(string), long? viewSeekDuration = default(long?), string countryName = default(string), int? playerSourceHeight = default(int?), string longitude = default(string), long? bufferingCount = default(long?), long? videoDuration = default(long?), string playerSourceType = default(string), string city = default(string), string viewId = default(string), string platformDescription = default(string), long? videoStartupPrerollRequestTime = default(long?), string viewerDeviceName = default(string), string videoSeries = default(string), string viewerApplicationName = default(string), string updatedAt = default(string), long? viewTotalContentPlaybackTime = default(long?), string cdn = default(string), string playerInstanceId = default(string), string videoLanguage = default(string), int? playerSourceWidth = default(int?), string playerErrorMessage = default(string), string playerMuxPluginVersion = default(string), bool watched = default(bool), string playbackScore = default(string), string pageUrl = default(string), string metro = default(string), long? viewMaxRequestLatency = default(long?), long? requestsForFirstPreroll = default(long?), string viewTotalDownscaling = default(string), string latitude = default(string), string playerSourceHostName = default(string), string insertedAt = default(string), string viewEnd = default(string), string muxEmbedVersion = default(string), string playerLanguage = default(string), long? pageLoadTime = default(long?), string viewerDeviceCategory = default(string), long? videoStartupPrerollLoadTime = default(long?), string playerVersion = default(string), long? watchTime = default(long?), string playerSourceStreamType = default(string), string prerollAdTagHostname = default(string), string viewerDeviceManufacturer = default(string), string rebufferingScore = default(string), string experimentName = default(string), string viewerOsVersion = default(string), bool playerPreload = default(bool), long? bufferingDuration = default(long?), long? playerViewCount = default(long?), string playerSoftware = default(string), long? playerLoadTime = default(long?), string platformSummary = default(string), string videoEncodingVariant = default(string), int? playerWidth = default(int?), long? viewSeekCount = default(long?), string viewerExperienceScore = default(string), int? viewErrorId = default(int?), string videoVariantName = default(string), bool? prerollPlayed = default(bool?), string viewerApplicationEngine = default(string), string viewerOsArchitecture = default(string), string playerErrorCode = default(string), string bufferingRate = default(string), List events = default(List), string playerName = default(string), string viewStart = default(string), long? viewAverageRequestThroughput = default(long?), string videoProducer = default(string), int? errorTypeId = default(int?), string muxViewerId = default(string), string videoId = default(string), string continentCode = default(string), string sessionId = default(string), bool exitBeforeVideoStart = default(bool), string videoContentType = default(string), string viewerOsFamily = default(string), string playerPoster = default(string), long? viewAverageRequestLatency = default(long?), string videoVariantId = default(string), long? playerSourceDuration = default(long?), string playerSourceUrl = default(string), string muxApiVersion = default(string), string videoTitle = default(string), string id = default(string), string shortTime = default(string), string rebufferPercentage = default(string), long? timeToFirstFrame = default(long?), string viewerUserId = default(string), string videoStreamType = default(string), long? playerStartupTime = default(long?), string viewerApplicationVersion = default(string), string viewMaxDownscalePercentage = default(string), string viewMaxUpscalePercentage = default(string), string countryCode = default(string), bool usedFullscreen = default(bool), string isp = default(string), long propertyId = default(long), bool playerAutoplay = default(bool), int? playerHeight = default(int?), long? asn = default(long?), string asnName = default(string), string qualityScore = default(string), string playerSoftwareVersion = default(string), string playerMuxPluginName = default(string), string subPropertyId = default(string), bool? playerRemotePlayed = default(bool?), string viewMaxPlayheadPosition = default(string), string viewPlayingTime = default(string), string viewSessionId = default(string), string viewerConnectionType = default(string), string viewerDeviceModel = default(string), long? weightedAverageBitrate = default(long?), string custom1 = default(string), string custom2 = default(string), string custom3 = default(string), string custom4 = default(string), string custom5 = default(string), string custom6 = default(string), string custom7 = default(string), string custom8 = default(string), string custom9 = default(string), string custom10 = default(string), long? liveStreamLatency = default(long?), string assetId = default(string), string environmentId = default(string), string liveStreamId = default(string), string muxEmbed = default(string), string playbackId = default(string), string playerErrorContext = default(string), string viewDrmType = default(string), long? viewDroppedFrameCount = default(long?), bool viewHasAd = default(bool), bool videoStartupFailure = default(bool), bool longResume = default(bool), bool longRebuffering = default(bool)) + public VideoView(string viewTotalUpscaling = default(string), string prerollAdAssetHostname = default(string), string playerSourceDomain = default(string), string region = default(string), string viewerUserAgent = default(string), bool? prerollRequested = default(bool?), string pageType = default(string), string startupScore = default(string), long? viewSeekDuration = default(long?), string countryName = default(string), int? playerSourceHeight = default(int?), string longitude = default(string), long? bufferingCount = default(long?), long? videoDuration = default(long?), string playerSourceType = default(string), string city = default(string), string viewId = default(string), string platformDescription = default(string), long? videoStartupPrerollRequestTime = default(long?), string viewerDeviceName = default(string), string videoSeries = default(string), string viewerApplicationName = default(string), string updatedAt = default(string), long? viewTotalContentPlaybackTime = default(long?), string cdn = default(string), string playerInstanceId = default(string), string videoLanguage = default(string), int? playerSourceWidth = default(int?), string playerErrorMessage = default(string), string playerMuxPluginVersion = default(string), bool watched = default(bool), string playbackScore = default(string), string pageUrl = default(string), string metro = default(string), long? viewMaxRequestLatency = default(long?), long? requestsForFirstPreroll = default(long?), string viewTotalDownscaling = default(string), string latitude = default(string), string playerSourceHostName = default(string), string insertedAt = default(string), string viewEnd = default(string), string muxEmbedVersion = default(string), string playerLanguage = default(string), long? pageLoadTime = default(long?), string viewerDeviceCategory = default(string), long? videoStartupPrerollLoadTime = default(long?), string playerVersion = default(string), long? watchTime = default(long?), string playerSourceStreamType = default(string), string prerollAdTagHostname = default(string), string viewerDeviceManufacturer = default(string), string rebufferingScore = default(string), string experimentName = default(string), string viewerOsVersion = default(string), bool playerPreload = default(bool), long? bufferingDuration = default(long?), long? playerViewCount = default(long?), string playerSoftware = default(string), long? playerLoadTime = default(long?), string platformSummary = default(string), string videoEncodingVariant = default(string), int? playerWidth = default(int?), long? viewSeekCount = default(long?), string viewerExperienceScore = default(string), int? viewErrorId = default(int?), string videoVariantName = default(string), bool? prerollPlayed = default(bool?), string viewerApplicationEngine = default(string), string viewerOsArchitecture = default(string), string playerErrorCode = default(string), string bufferingRate = default(string), List events = default(List), string playerName = default(string), string viewStart = default(string), long? viewAverageRequestThroughput = default(long?), string videoProducer = default(string), int? errorTypeId = default(int?), string muxViewerId = default(string), string videoId = default(string), string continentCode = default(string), string sessionId = default(string), bool exitBeforeVideoStart = default(bool), string videoContentType = default(string), string viewerOsFamily = default(string), string playerPoster = default(string), long? viewAverageRequestLatency = default(long?), string videoVariantId = default(string), long? playerSourceDuration = default(long?), string playerSourceUrl = default(string), string muxApiVersion = default(string), string videoTitle = default(string), string id = default(string), string shortTime = default(string), string rebufferPercentage = default(string), long? timeToFirstFrame = default(long?), string viewerUserId = default(string), string videoStreamType = default(string), long? playerStartupTime = default(long?), string viewerApplicationVersion = default(string), string viewMaxDownscalePercentage = default(string), string viewMaxUpscalePercentage = default(string), string countryCode = default(string), bool usedFullscreen = default(bool), string isp = default(string), long propertyId = default(long), bool playerAutoplay = default(bool), int? playerHeight = default(int?), long? asn = default(long?), string asnName = default(string), string qualityScore = default(string), string playerSoftwareVersion = default(string), string playerMuxPluginName = default(string), string subPropertyId = default(string), bool? playerRemotePlayed = default(bool?), string viewMaxPlayheadPosition = default(string), string viewPlayingTime = default(string), string viewSessionId = default(string), string viewerConnectionType = default(string), string viewerDeviceModel = default(string), double? weightedAverageBitrate = default(double?), string custom1 = default(string), string custom2 = default(string), string custom3 = default(string), string custom4 = default(string), string custom5 = default(string), string custom6 = default(string), string custom7 = default(string), string custom8 = default(string), string custom9 = default(string), string custom10 = default(string), long? liveStreamLatency = default(long?), string assetId = default(string), string environmentId = default(string), string liveStreamId = default(string), string muxEmbed = default(string), string playbackId = default(string), string playerErrorContext = default(string), string viewDrmType = default(string), long? viewDroppedFrameCount = default(long?), bool viewHasAd = default(bool), bool videoStartupFailure = default(bool), int? adAttemptCount = default(int?), int? adBreakCount = default(int?), int? adBreakErrorCount = default(int?), string adBreakErrorPercentage = default(string), int? adErrorCount = default(int?), string adErrorPercentage = default(string), int? adImpressionCount = default(int?), int? adStartupErrorCount = default(int?), string adStartupErrorPercentage = default(string), int? adExitBeforeStartCount = default(int?), string adExitBeforeStartPercentage = default(string), bool longResume = default(bool), bool longRebuffering = default(bool)) { this.ViewTotalUpscaling = viewTotalUpscaling; this.PrerollAdAssetHostname = prerollAdAssetHostname; @@ -321,6 +332,17 @@ public partial class VideoView : IEquatable, IValidatableObject this.ViewDroppedFrameCount = viewDroppedFrameCount; this.ViewHasAd = viewHasAd; this.VideoStartupFailure = videoStartupFailure; + this.AdAttemptCount = adAttemptCount; + this.AdBreakCount = adBreakCount; + this.AdBreakErrorCount = adBreakErrorCount; + this.AdBreakErrorPercentage = adBreakErrorPercentage; + this.AdErrorCount = adErrorCount; + this.AdErrorPercentage = adErrorPercentage; + this.AdImpressionCount = adImpressionCount; + this.AdStartupErrorCount = adStartupErrorCount; + this.AdStartupErrorPercentage = adStartupErrorPercentage; + this.AdExitBeforeStartCount = adExitBeforeStartCount; + this.AdExitBeforeStartPercentage = adExitBeforeStartPercentage; this.LongResume = longResume; this.LongRebuffering = longRebuffering; this.AdditionalProperties = new Dictionary(); @@ -1044,7 +1066,7 @@ public partial class VideoView : IEquatable, IValidatableObject /// Gets or Sets WeightedAverageBitrate /// [DataMember(Name = "weighted_average_bitrate", EmitDefaultValue = true)] - public long? WeightedAverageBitrate { get; set; } + public double? WeightedAverageBitrate { get; set; } /// /// Gets or Sets Custom1 @@ -1172,6 +1194,72 @@ public partial class VideoView : IEquatable, IValidatableObject [DataMember(Name = "video_startup_failure", EmitDefaultValue = true)] public bool VideoStartupFailure { get; set; } + /// + /// Gets or Sets AdAttemptCount + /// + [DataMember(Name = "ad_attempt_count", EmitDefaultValue = true)] + public int? AdAttemptCount { get; set; } + + /// + /// Gets or Sets AdBreakCount + /// + [DataMember(Name = "ad_break_count", EmitDefaultValue = true)] + public int? AdBreakCount { get; set; } + + /// + /// Gets or Sets AdBreakErrorCount + /// + [DataMember(Name = "ad_break_error_count", EmitDefaultValue = true)] + public int? AdBreakErrorCount { get; set; } + + /// + /// Gets or Sets AdBreakErrorPercentage + /// + [DataMember(Name = "ad_break_error_percentage", EmitDefaultValue = true)] + public string AdBreakErrorPercentage { get; set; } + + /// + /// Gets or Sets AdErrorCount + /// + [DataMember(Name = "ad_error_count", EmitDefaultValue = true)] + public int? AdErrorCount { get; set; } + + /// + /// Gets or Sets AdErrorPercentage + /// + [DataMember(Name = "ad_error_percentage", EmitDefaultValue = true)] + public string AdErrorPercentage { get; set; } + + /// + /// Gets or Sets AdImpressionCount + /// + [DataMember(Name = "ad_impression_count", EmitDefaultValue = true)] + public int? AdImpressionCount { get; set; } + + /// + /// Gets or Sets AdStartupErrorCount + /// + [DataMember(Name = "ad_startup_error_count", EmitDefaultValue = true)] + public int? AdStartupErrorCount { get; set; } + + /// + /// Gets or Sets AdStartupErrorPercentage + /// + [DataMember(Name = "ad_startup_error_percentage", EmitDefaultValue = true)] + public string AdStartupErrorPercentage { get; set; } + + /// + /// Gets or Sets AdExitBeforeStartCount + /// + [DataMember(Name = "ad_exit_before_start_count", EmitDefaultValue = true)] + public int? AdExitBeforeStartCount { get; set; } + + /// + /// Gets or Sets AdExitBeforeStartPercentage + /// + [DataMember(Name = "ad_exit_before_start_percentage", EmitDefaultValue = true)] + public string AdExitBeforeStartPercentage { get; set; } + /// /// Gets or Sets LongResume /// @@ -1339,6 +1427,17 @@ public override string ToString() sb.Append(" ViewDroppedFrameCount: ").Append(ViewDroppedFrameCount).Append("\n"); sb.Append(" ViewHasAd: ").Append(ViewHasAd).Append("\n"); sb.Append(" VideoStartupFailure: ").Append(VideoStartupFailure).Append("\n"); + sb.Append(" AdAttemptCount: ").Append(AdAttemptCount).Append("\n"); + sb.Append(" AdBreakCount: ").Append(AdBreakCount).Append("\n"); + sb.Append(" AdBreakErrorCount: ").Append(AdBreakErrorCount).Append("\n"); + sb.Append(" AdBreakErrorPercentage: ").Append(AdBreakErrorPercentage).Append("\n"); + sb.Append(" AdErrorCount: ").Append(AdErrorCount).Append("\n"); + sb.Append(" AdErrorPercentage: ").Append(AdErrorPercentage).Append("\n"); + sb.Append(" AdImpressionCount: ").Append(AdImpressionCount).Append("\n"); + sb.Append(" AdStartupErrorCount: ").Append(AdStartupErrorCount).Append("\n"); + sb.Append(" AdStartupErrorPercentage: ").Append(AdStartupErrorPercentage).Append("\n"); + sb.Append(" AdExitBeforeStartCount: ").Append(AdExitBeforeStartCount).Append("\n"); + sb.Append(" AdExitBeforeStartPercentage: ").Append(AdExitBeforeStartPercentage).Append("\n"); sb.Append(" LongResume: ").Append(LongResume).Append("\n"); sb.Append(" LongRebuffering: ").Append(LongRebuffering).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); @@ -2075,6 +2174,61 @@ public bool Equals(VideoView input) this.VideoStartupFailure == input.VideoStartupFailure || this.VideoStartupFailure.Equals(input.VideoStartupFailure) ) && + ( + this.AdAttemptCount == input.AdAttemptCount || + (this.AdAttemptCount != null && + this.AdAttemptCount.Equals(input.AdAttemptCount)) + ) && + ( + this.AdBreakCount == input.AdBreakCount || + (this.AdBreakCount != null && + this.AdBreakCount.Equals(input.AdBreakCount)) + ) && + ( + this.AdBreakErrorCount == input.AdBreakErrorCount || + (this.AdBreakErrorCount != null && + this.AdBreakErrorCount.Equals(input.AdBreakErrorCount)) + ) && + ( + this.AdBreakErrorPercentage == input.AdBreakErrorPercentage || + (this.AdBreakErrorPercentage != null && + this.AdBreakErrorPercentage.Equals(input.AdBreakErrorPercentage)) + ) && + ( + this.AdErrorCount == input.AdErrorCount || + (this.AdErrorCount != null && + this.AdErrorCount.Equals(input.AdErrorCount)) + ) && + ( + this.AdErrorPercentage == input.AdErrorPercentage || + (this.AdErrorPercentage != null && + this.AdErrorPercentage.Equals(input.AdErrorPercentage)) + ) && + ( + this.AdImpressionCount == input.AdImpressionCount || + (this.AdImpressionCount != null && + this.AdImpressionCount.Equals(input.AdImpressionCount)) + ) && + ( + this.AdStartupErrorCount == input.AdStartupErrorCount || + (this.AdStartupErrorCount != null && + this.AdStartupErrorCount.Equals(input.AdStartupErrorCount)) + ) && + ( + this.AdStartupErrorPercentage == input.AdStartupErrorPercentage || + (this.AdStartupErrorPercentage != null && + this.AdStartupErrorPercentage.Equals(input.AdStartupErrorPercentage)) + ) && + ( + this.AdExitBeforeStartCount == input.AdExitBeforeStartCount || + (this.AdExitBeforeStartCount != null && + this.AdExitBeforeStartCount.Equals(input.AdExitBeforeStartCount)) + ) && + ( + this.AdExitBeforeStartPercentage == input.AdExitBeforeStartPercentage || + (this.AdExitBeforeStartPercentage != null && + this.AdExitBeforeStartPercentage.Equals(input.AdExitBeforeStartPercentage)) + ) && ( this.LongResume == input.LongResume || this.LongResume.Equals(input.LongResume) @@ -2635,6 +2789,50 @@ public override int GetHashCode() } hashCode = (hashCode * 59) + this.ViewHasAd.GetHashCode(); hashCode = (hashCode * 59) + this.VideoStartupFailure.GetHashCode(); + if (this.AdAttemptCount != null) + { + hashCode = (hashCode * 59) + this.AdAttemptCount.GetHashCode(); + } + if (this.AdBreakCount != null) + { + hashCode = (hashCode * 59) + this.AdBreakCount.GetHashCode(); + } + if (this.AdBreakErrorCount != null) + { + hashCode = (hashCode * 59) + this.AdBreakErrorCount.GetHashCode(); + } + if (this.AdBreakErrorPercentage != null) + { + hashCode = (hashCode * 59) + this.AdBreakErrorPercentage.GetHashCode(); + } + if (this.AdErrorCount != null) + { + hashCode = (hashCode * 59) + this.AdErrorCount.GetHashCode(); + } + if (this.AdErrorPercentage != null) + { + hashCode = (hashCode * 59) + this.AdErrorPercentage.GetHashCode(); + } + if (this.AdImpressionCount != null) + { + hashCode = (hashCode * 59) + this.AdImpressionCount.GetHashCode(); + } + if (this.AdStartupErrorCount != null) + { + hashCode = (hashCode * 59) + this.AdStartupErrorCount.GetHashCode(); + } + if (this.AdStartupErrorPercentage != null) + { + hashCode = (hashCode * 59) + this.AdStartupErrorPercentage.GetHashCode(); + } + if (this.AdExitBeforeStartCount != null) + { + hashCode = (hashCode * 59) + this.AdExitBeforeStartCount.GetHashCode(); + } + if (this.AdExitBeforeStartPercentage != null) + { + hashCode = (hashCode * 59) + this.AdExitBeforeStartPercentage.GetHashCode(); + } hashCode = (hashCode * 59) + this.LongResume.GetHashCode(); hashCode = (hashCode * 59) + this.LongRebuffering.GetHashCode(); if (this.AdditionalProperties != null) diff --git a/src/Mux.Csharp.Sdk/Mux.Csharp.Sdk.csproj b/src/Mux.Csharp.Sdk/Mux.Csharp.Sdk.csproj index 8fd5d4e..ac52922 100644 --- a/src/Mux.Csharp.Sdk/Mux.Csharp.Sdk.csproj +++ b/src/Mux.Csharp.Sdk/Mux.Csharp.Sdk.csproj @@ -12,7 +12,7 @@ The Mux API SDK for .NET Framework and .NET Core. Check https://github.com/muxinc/mux-csharp for release notes and visit https://docs.mux.com for details on using Mux. (C) 2023 Mux, Inc. Mux.Csharp.Sdk - 0.8.0 + 0.9.0 bin\$(Configuration)\$(TargetFramework)\Mux.Csharp.Sdk.xml https://github.com/GIT_USER_ID/GIT_REPO_ID.git git