Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics updates #102

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [1.4.6] - 2024-11-04
- Analytics updates (ccv, views, ...)

## [1.4.5] - 2024-10-21
- Add summary feature

Expand Down
384 changes: 363 additions & 21 deletions api/openapi.yaml

Large diffs are not rendered by default.

124 changes: 86 additions & 38 deletions api_analytics.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (c *Client) prepareRequest(
req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue)
}

req.Header.Set("AV-Origin-Client", "go:1.4.5")
req.Header.Set("AV-Origin-Client", "go:1.4.6")

for headerName := range headerParams {
req.Header.Set(headerName, headerParams[headerName])
Expand Down Expand Up @@ -534,7 +534,7 @@ func (c *Client) auth(req *http.Request) (*http.Request, error) {
req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue)
}

req.Header.Set("AV-Origin-Client", "go:1.4.5")
req.Header.Set("AV-Origin-Client", "go:1.4.6")

resp, err := c.httpClient.Do(req)

Expand Down
48 changes: 30 additions & 18 deletions docs/Analytics.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/AnalyticsAggregatedMetricsResponseContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Metric** | Pointer to **string** | Returns the metric you selected. | [optional]
**Metric** | Pointer to **string** | Returns the metric and relevant parameters you selected. | [optional]
**Aggregation** | Pointer to **string** | Returns the aggregation you selected. | [optional]
**Timeframe** | Pointer to [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/AnalyticsMetricsBreakdownResponseContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Metric** | Pointer to **string** | Returns the metric you selected. | [optional]
**Metric** | Pointer to **string** | Returns the metric and relevant parameters you selected. | [optional]
**Breakdown** | Pointer to **string** | Returns the dimension you selected. | [optional]
**Timeframe** | Pointer to [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/AnalyticsMetricsOverTimeResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Context** | [**AnalyticsMetricsOverTimeResponseContext**](AnalyticsMetricsOverTimeResponseContext.md) | |
**Data** | [**[]AnalyticsMetricsOverTimeResponseData**](AnalyticsMetricsOverTimeResponseData.md) | Returns an array of metrics and the timestamps . |
**Data** | [**[]AnalyticsMetricsOverTimeResponseData**](AnalyticsMetricsOverTimeResponseData.md) | Returns an array of metrics and the timestamps. |
**Pagination** | [**Pagination**](Pagination.md) | |

## Methods
Expand Down
2 changes: 1 addition & 1 deletion docs/AnalyticsMetricsOverTimeResponseContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Metric** | Pointer to **string** | Returns the metric you selected. | [optional]
**Metric** | Pointer to **string** | Returns the metric and relevant parameters you selected. | [optional]
**Interval** | Pointer to **string** | Returns the interval you selected. | [optional]
**Timeframe** | Pointer to [**AnalyticsAggregatedMetricsResponseContextTimeframe**](AnalyticsAggregatedMetricsResponseContextTimeframe.md) | | [optional]

Expand Down
26 changes: 26 additions & 0 deletions docs/FilterBy.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**OperatingSystem** | Pointer to **[]string** | Returns analytics based on the operating system used by the viewers. Response values can include `windows`, `mac osx`, `android`, `ios`, `linux`. | [optional]
**Browser** | Pointer to **[]string** | Returns analytics based on the browser used by the viewers. Response values can include `chrome`, `firefox`, `edge`, `opera`. | [optional]
**Tag** | Pointer to **string** | Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata). | [optional]
**Referrer** | Pointer to **[]string** | Filters data based on the URL where the view is originating from. This filter parameter accepts an empty string to filter view events where no referrer is available. - The API filters for exact matches. Include the trailing `/` characters if needed. - The URLs you add must be URL encoded. | [optional]

## Methods

Expand Down Expand Up @@ -232,6 +233,31 @@ SetTag sets Tag field to given value.

HasTag returns a boolean if a field has been set.

### GetReferrer

`func (o *FilterBy) GetReferrer() []string`

GetReferrer returns the Referrer field if non-nil, zero value otherwise.

### GetReferrerOk

`func (o *FilterBy) GetReferrerOk() (*[]string, bool)`

GetReferrerOk returns a tuple with the Referrer field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetReferrer

`func (o *FilterBy) SetReferrer(v []string)`

SetReferrer sets Referrer field to given value.

### HasReferrer

`func (o *FilterBy) HasReferrer() bool`

HasReferrer returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
26 changes: 26 additions & 0 deletions docs/FilterBy1.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**OperatingSystem** | Pointer to **[]string** | Returns analytics based on the operating system used by the viewers. Response values can include `windows`, `mac osx`, `android`, `ios`, `linux`. | [optional]
**Browser** | Pointer to **[]string** | Returns analytics based on the browser used by the viewers. Response values can include `chrome`, `firefox`, `edge`, `opera`. | [optional]
**Tag** | Pointer to **string** | Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata). | [optional]
**Referrer** | Pointer to **[]string** | Filters data based on the URL where the view is originating from. This filter parameter accepts an empty string to filter view events where no referrer is available. - The API filters for exact matches. Include the trailing `/` characters if needed. - The URLs you add must be URL encoded. | [optional]

## Methods

Expand Down Expand Up @@ -232,6 +233,31 @@ SetTag sets Tag field to given value.

HasTag returns a boolean if a field has been set.

### GetReferrer

`func (o *FilterBy1) GetReferrer() []string`

GetReferrer returns the Referrer field if non-nil, zero value otherwise.

### GetReferrerOk

`func (o *FilterBy1) GetReferrerOk() (*[]string, bool)`

GetReferrerOk returns a tuple with the Referrer field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetReferrer

`func (o *FilterBy1) SetReferrer(v []string)`

SetReferrer sets Referrer field to given value.

### HasReferrer

`func (o *FilterBy1) HasReferrer() bool`

HasReferrer returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
26 changes: 26 additions & 0 deletions docs/FilterBy2.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**OperatingSystem** | Pointer to **[]string** | Returns analytics based on the operating system used by the viewers. Response values can include `windows`, `mac osx`, `android`, `ios`, `linux`. | [optional]
**Browser** | Pointer to **[]string** | Returns analytics based on the browser used by the viewers. Response values can include `chrome`, `firefox`, `edge`, `opera`. | [optional]
**Tag** | Pointer to **string** | Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata). | [optional]
**Referrer** | Pointer to **[]string** | Filters data based on the URL where the view is originating from. This filter parameter accepts an empty string to filter view events where no referrer is available. - The API filters for exact matches. Include the trailing `/` characters if needed. - The URLs you add must be URL encoded. | [optional]

## Methods

Expand Down Expand Up @@ -232,6 +233,31 @@ SetTag sets Tag field to given value.

HasTag returns a boolean if a field has been set.

### GetReferrer

`func (o *FilterBy2) GetReferrer() []string`

GetReferrer returns the Referrer field if non-nil, zero value otherwise.

### GetReferrerOk

`func (o *FilterBy2) GetReferrerOk() (*[]string, bool)`

GetReferrerOk returns a tuple with the Referrer field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetReferrer

`func (o *FilterBy2) SetReferrer(v []string)`

SetReferrer sets Referrer field to given value.

### HasReferrer

`func (o *FilterBy2) HasReferrer() bool`

HasReferrer returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion model_analytics_aggregated_metrics_response_context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_analytics_metrics_breakdown_response_context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_analytics_metrics_over_time_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion model_analytics_metrics_over_time_response_context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions model_filter_by.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions model_filter_by_1.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions model_filter_by_2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading