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

AN-835: add vpaas reports #8698

Merged
merged 5 commits into from Aug 27, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -11,6 +11,9 @@ class kDruidBase
const DRUID_SELECTOR_FILTER = 'selector';
const DRUID_IN_FILTER = 'in';
const DRUID_BOUND_FILTER = 'bound';
const DRUID_AND = 'and';
const DRUID_OR = 'or';
const DRUID_NOT = 'not';
const DRUID_TYPE = 'type';
const DRUID_FILTER = 'filter';
const DRUID_DIMENSION = 'dimension';
@@ -48,7 +51,6 @@ class kDruidBase
const DRUID_PRIORITY = 'priority';
const DRUID_SKIP_EMPTY_BUCKETS = 'skipEmptyBuckets';
const DRUID_TIMEOUT = 'timeout';
const DRUID_AND = 'and';
const DRUID_DIRECTION = 'direction';
const DRUID_DIMENSION_ORDER = 'dimensionOrder';
const DRUID_ORDER_LEX = 'lexicographic';
@@ -76,7 +78,6 @@ class kDruidBase
const DRUID_UPPER_STRICT = 'upperStrict';
const DRUID_ORDERING = 'ordering';
const DRUID_DOUBLE_LEAST = 'doubleLeast';
const DRUID_NOT = 'not';
// druid response keywords
const DRUID_TIMESTAMP = 'timestamp';
@@ -162,6 +163,22 @@ protected static function getAndFilter($subFilters)
self::DRUID_FIELDS => $subFilters,
);
}
protected static function getOrFilter($subFilters)
{
return array(
self::DRUID_TYPE => self::DRUID_OR,
self::DRUID_FIELDS => $subFilters,
);
}
protected static function getNotFilter($filter)
{
return array(
self::DRUID_TYPE => self::DRUID_NOT,
self::DRUID_FIELD => $filter,
);
}
protected static function getGranularityAll()
{
@@ -19,6 +19,7 @@ class kKavaBase extends kDruidBase
// dimensions
const DIMENSION_PARTNER_ID = 'partnerId';
const DIMENSION_PARTNER_PARENT_ID = 'partnerParentId';
const DIMENSION_ENTRY_ID = 'entryId';
const DIMENSION_LOCATION_COUNTRY = 'location.country';
const DIMENSION_LOCATION_REGION = 'location.region';
@@ -144,6 +145,7 @@ class kKavaBase extends kDruidBase
self::DATASOURCE_HISTORICAL => array(
self::DIMENSION_EVENT_TYPE => 1,
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_KUSER_ID => 1,
self::DIMENSION_ENTRY_ID => 1,
self::DIMENSION_CATEGORIES => 1,
@@ -173,6 +175,7 @@ class kKavaBase extends kDruidBase
self::DATASOURCE_ENTRY_LIFECYCLE => array(
self::DIMENSION_EVENT_TYPE => 1,
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_CATEGORIES => 1,
self::DIMENSION_ENTRY_ID => 1,
self::DIMENSION_KUSER_ID => 1,
@@ -183,6 +186,7 @@ class kKavaBase extends kDruidBase
self::DATASOURCE_STORAGE_USAGE => array(
self::DIMENSION_EVENT_TYPE => 1,
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_ENTRY_ID => 1,
self::DIMENSION_CATEGORIES => 1,
self::DIMENSION_KUSER_ID => 1,
@@ -191,6 +195,7 @@ class kKavaBase extends kDruidBase
),
self::DATASOURCE_BANDWIDTH_USAGE => array(
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_ENTRY_ID => 1,
self::DIMENSION_CATEGORIES => 1,
self::DIMENSION_ENTRY_OWNER_ID => 1,
@@ -210,6 +215,7 @@ class kKavaBase extends kDruidBase
),
self::DATASOURCE_TRANSCODING_USAGE => array(
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_ENTRY_ID => 1,
self::DIMENSION_CATEGORIES => 1,
self::DIMENSION_KUSER_ID => 1,
@@ -220,11 +226,13 @@ class kKavaBase extends kDruidBase
self::DATASOURCE_USER_LIFECYCLE => array(
self::DIMENSION_EVENT_TYPE => 1,
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_KUSER_ID => 1,
self::DIMENSION_USER_TYPE => 1,
),
self::DATASOURCE_API_USAGE => array(
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_APPLICATION => 1,
self::DIMENSION_DOMAIN => 1,
self::DIMENSION_LOCATION_COUNTRY => 1,
@@ -233,6 +241,7 @@ class kKavaBase extends kDruidBase
),
self::DATASOURCE_REACH_USAGE => array(
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_ENTRY_ID => 1,
self::DIMENSION_CATEGORIES => 1,
self::DIMENSION_ENTRY_OWNER_ID => 1,
@@ -248,6 +257,7 @@ class kKavaBase extends kDruidBase
self::DATASOURCE_REALTIME => array(
self::DIMENSION_EVENT_TYPE => 1,
self::DIMENSION_PARTNER_ID => 1,
self::DIMENSION_PARTNER_PARENT_ID => 1,
self::DIMENSION_KUSER_ID => 1,
self::DIMENSION_ENTRY_ID => 1,
self::DIMENSION_CATEGORIES => 1,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.