Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SegmentMetricFilter

import type { SegmentMetricFilter } from "https://googleapis.deno.dev/v1/analyticsreporting:v4.ts";

Metric filter to be used in a segment filter clause.

interface SegmentMetricFilter {
comparisonValue?: string;
maxComparisonValue?: string;
metricName?: string;
operator?:
| "UNSPECIFIED_OPERATOR"
| "LESS_THAN"
| "GREATER_THAN"
| "EQUAL"
| "BETWEEN";
scope?:
| "UNSPECIFIED_SCOPE"
| "PRODUCT"
| "HIT"
| "SESSION"
| "USER";
}

§Properties

§
comparisonValue?: string
[src]

The value to compare against. If the operator is BETWEEN, this value is treated as minimum comparison value.

§
maxComparisonValue?: string
[src]

Max comparison value is only used for BETWEEN operator.

§
metricName?: string
[src]

The metric that will be filtered on. A metricFilter must contain a metric name.

§
operator?: "UNSPECIFIED_OPERATOR" | "LESS_THAN" | "GREATER_THAN" | "EQUAL" | "BETWEEN"
[src]

Specifies is the operation to perform to compare the metric. The default is EQUAL.

§
scope?: "UNSPECIFIED_SCOPE" | "PRODUCT" | "HIT" | "SESSION" | "USER"
[src]

Scope for a metric defines the level at which that metric is defined. The specified metric scope must be equal to or greater than its primary scope as defined in the data model. The primary scope is defined by if the segment is selecting users or sessions.