diff --git a/CHANGELOG.md b/CHANGELOG.md index aefb5db..a7de05c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Development +### Added + +- SSAI attributes + ## 1.2.0 ### Fix diff --git a/src/types/queryAdAttributes.ts b/src/types/queryAdAttributes.ts index 5bfbd76..24a981b 100644 --- a/src/types/queryAdAttributes.ts +++ b/src/types/queryAdAttributes.ts @@ -2,6 +2,7 @@ import { SelectableValue } from '@grafana/data'; const QUERY_AD_ATTRIBUTES = [ 'ADVERTISER_NAME', + 'AD_ABANDONMENT_RATE', 'AD_CLICKTHROUGH_URL', 'AD_DESCRIPTION', 'AD_DURATION', @@ -9,6 +10,7 @@ const QUERY_AD_ATTRIBUTES = [ 'AD_ID', 'AD_ID_PLAYER', 'AD_IMPRESSION_ID', + 'AD_INDEX', 'AD_IS_PERSISTENT', 'AD_MODULE', 'AD_OFFSET', @@ -27,6 +29,7 @@ const QUERY_AD_ATTRIBUTES = [ 'AD_TAG_TYPE', 'AD_TAG_URL', 'AD_TITLE', + 'AD_TYPE', 'AD_WRAPPER_ADS_COUNT', 'ANALYTICS_VERSION', 'APIORG_ID', @@ -49,6 +52,7 @@ const QUERY_AD_ATTRIBUTES = [ 'CLOSE_PERCENTAGE', 'CLOSE_POSITION', 'COMPLETED', + 'COMPLETED_FAILED_BEACON_URL', 'COUNTRY', 'CREATIVE_AD_ID', 'CREATIVE_ID', @@ -102,6 +106,7 @@ const QUERY_AD_ATTRIBUTES = [ 'MEDIA_SERVER', 'MEDIA_URL', 'MIDPOINT', + 'MIDPOINT_FAILED_BEACON_URL', 'MINUTE', 'MIN_SUGGESTED_DURATION', 'MONTH', @@ -120,7 +125,9 @@ const QUERY_AD_ATTRIBUTES = [ 'PLAYER_VERSION', 'PLAY_PERCENTAGE', 'QUARTILE_1', + 'QUARTILE1_FAILED_BEACON_URL', 'QUARTILE_3', + 'QUARTILE3_FAILED_BEACON_URL', 'REGION', 'SCREEN_HEIGHT', 'SCREEN_WIDTH', diff --git a/src/types/queryAttributes.ts b/src/types/queryAttributes.ts index af42b6a..218c005 100644 --- a/src/types/queryAttributes.ts +++ b/src/types/queryAttributes.ts @@ -2,6 +2,10 @@ import { SelectableValue } from '@grafana/data'; const QUERY_ATTRIBUTES = [ 'AD', + 'AD_ID', + 'AD_INDEX', + 'AD_POSITION', + 'AD_SYSTEM', 'ANALYTICS_VERSION', 'AUDIO_BITRATE', 'AUDIO_CODEC', diff --git a/src/utils/filterUtils.ts b/src/utils/filterUtils.ts index 43fe729..c9cc56b 100644 --- a/src/utils/filterUtils.ts +++ b/src/utils/filterUtils.ts @@ -6,6 +6,7 @@ import { QueryAttribute } from '../types/queryAttributes'; const isNullFilter = (filterAttribute: QueryAttribute | QueryAdAttribute): boolean => { switch (filterAttribute) { + case 'AD_TYPE': case 'CDN_PROVIDER': case 'CUSTOM_DATA_1': case 'CUSTOM_DATA_2': @@ -63,6 +64,8 @@ const convertFilterForAds = (rawValue: string, filterAttribute: QueryAdAttribute case 'IS_LINEAR': return rawValue === 'true'; + case 'AD_INDEX': + case 'AD_TYPE': case 'AD_STARTUP_TIME': case 'AD_WRAPPER_ADS_COUNT': case 'AUDIO_BITRATE': @@ -114,6 +117,7 @@ const convertFilter = (rawValue: string, filterAttribute: QueryAttribute) => { return rawValue === 'true'; case 'AUDIO_BITRATE': + case 'AD_INDEX': case 'BUFFERED': case 'CLIENT_TIME': case 'DOWNLOAD_SPEED':