Skip to content

Commit

Permalink
fix: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgrant committed Sep 11, 2024
1 parent 426e3df commit 76365c4
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
import { makeFilterable } from './util'
import type { AbsoluteTimeRangeV4, ExploreFilterTypesV2, RequestFilterTypeEqualsV2, RequestFilterTypeMetricV2, RequestFilterTypeWildcardV2 } from './common'
import { queryableExploreDimensions, type ExploreFilter } from './advanced'
import { type ExploreFilter } from './advanced'

// status_code and upstream_status_code are treated as metric filters
export const queryableRequestDimensions = [
...queryableExploreDimensions.filter(d => (d !== 'status_code' && d !== 'status_code_grouped')),
'api_product',
'api_product_version',
'application',
'auth_type',
'client_ip',
'consumer',
'consumer_group',
'control_plane',
'control_plane_group',
'data_plane_node',
'gateway_service',
'header_host',
'header_user_agent',
'http_method',
'iso_code',
'request_id',
'request_uri',
'response_header_content_type',
'response_source',
'request_uri',
'route',
'service_port',
'service_protocol',
'sse',
'status_code_grouped',
'time',
'upstream_uri',
'websocket',
] as const
Expand All @@ -34,7 +46,7 @@ export const queryableRequestWildcardDimensions = [

export type QueryableRequestWildcardDimensions = typeof queryableRequestWildcardDimensions[number]

export const filterableRequestWildcardDimensions = makeFilterable(queryableRequestWildcardDimensions)
export const filterableRequestWildcardDimensions = queryableRequestWildcardDimensions

export type FilterableRequestWildcardDimensions = typeof filterableRequestWildcardDimensions[number]

Expand Down

0 comments on commit 76365c4

Please sign in to comment.