Documentation
¶
Index ¶
- type BrowserContext
- type BrowserContextDeviceType
- type BrowserContextParam
- type CustomDimensionUnion
- type CustomDimensionUnionParam
- type CustomDimensions
- type CustomDimensionsParam
- type EventContext
- type EventContextBrowserNameUnion
- func (u EventContextBrowserNameUnion) AsBool() (v bool)
- func (u EventContextBrowserNameUnion) AsFloat() (v float64)
- func (u EventContextBrowserNameUnion) AsString() (v string)
- func (u EventContextBrowserNameUnion) RawJSON() string
- func (r *EventContextBrowserNameUnion) UnmarshalJSON(data []byte) error
- type EventContextBrowserVersionUnion
- func (u EventContextBrowserVersionUnion) AsBool() (v bool)
- func (u EventContextBrowserVersionUnion) AsFloat() (v float64)
- func (u EventContextBrowserVersionUnion) AsString() (v string)
- func (u EventContextBrowserVersionUnion) RawJSON() string
- func (r *EventContextBrowserVersionUnion) UnmarshalJSON(data []byte) error
- type EventContextContinent
- type EventContextDeviceFamilyUnion
- func (u EventContextDeviceFamilyUnion) AsBool() (v bool)
- func (u EventContextDeviceFamilyUnion) AsFloat() (v float64)
- func (u EventContextDeviceFamilyUnion) AsString() (v string)
- func (u EventContextDeviceFamilyUnion) RawJSON() string
- func (r *EventContextDeviceFamilyUnion) UnmarshalJSON(data []byte) error
- type EventContextDeviceTypeUnion
- type EventContextLanguagePrefixUnion
- func (u EventContextLanguagePrefixUnion) AsBool() (v bool)
- func (u EventContextLanguagePrefixUnion) AsFloat() (v float64)
- func (u EventContextLanguagePrefixUnion) AsString() (v string)
- func (u EventContextLanguagePrefixUnion) RawJSON() string
- func (r *EventContextLanguagePrefixUnion) UnmarshalJSON(data []byte) error
- type EventContextLanguageUnion
- type EventContextOsNameUnion
- type EventContextOsVersionUnion
- type EventContextPixelRatioUnion
- type EventContextScreenHeightPxUnion
- func (u EventContextScreenHeightPxUnion) AsBool() (v bool)
- func (u EventContextScreenHeightPxUnion) AsFloat() (v float64)
- func (u EventContextScreenHeightPxUnion) AsString() (v string)
- func (u EventContextScreenHeightPxUnion) RawJSON() string
- func (r *EventContextScreenHeightPxUnion) UnmarshalJSON(data []byte) error
- type EventContextScreenWidthPxUnion
- func (u EventContextScreenWidthPxUnion) AsBool() (v bool)
- func (u EventContextScreenWidthPxUnion) AsFloat() (v float64)
- func (u EventContextScreenWidthPxUnion) AsString() (v string)
- func (u EventContextScreenWidthPxUnion) RawJSON() string
- func (r *EventContextScreenWidthPxUnion) UnmarshalJSON(data []byte) error
- type EventContextTimezoneOffsetMinutesUnion
- func (u EventContextTimezoneOffsetMinutesUnion) AsBool() (v bool)
- func (u EventContextTimezoneOffsetMinutesUnion) AsFloat() (v float64)
- func (u EventContextTimezoneOffsetMinutesUnion) AsString() (v string)
- func (u EventContextTimezoneOffsetMinutesUnion) RawJSON() string
- func (r *EventContextTimezoneOffsetMinutesUnion) UnmarshalJSON(data []byte) error
- type EventContextTimezoneUnion
- type EventContextUserAgentUnion
- type EventContextViewportHeightPxUnion
- func (u EventContextViewportHeightPxUnion) AsBool() (v bool)
- func (u EventContextViewportHeightPxUnion) AsFloat() (v float64)
- func (u EventContextViewportHeightPxUnion) AsString() (v string)
- func (u EventContextViewportHeightPxUnion) RawJSON() string
- func (r *EventContextViewportHeightPxUnion) UnmarshalJSON(data []byte) error
- type EventContextViewportWidthPxUnion
- func (u EventContextViewportWidthPxUnion) AsBool() (v bool)
- func (u EventContextViewportWidthPxUnion) AsFloat() (v float64)
- func (u EventContextViewportWidthPxUnion) AsString() (v string)
- func (u EventContextViewportWidthPxUnion) RawJSON() string
- func (r *EventContextViewportWidthPxUnion) UnmarshalJSON(data []byte) error
- type MetricCountRatio
- type OtlpAnyValue
- type OtlpAnyValueArrayValue
- type OtlpAnyValueIntValueUnion
- type OtlpAnyValueKvlistValue
- type OtlpAttribute
- type OtlpAttributeValueObject
- type OtlpAttributeValueObject2
- type OtlpAttributeValueObject3
- type OtlpAttributeValueObject4
- type OtlpAttributeValueObject5
- type OtlpAttributeValueObject6
- type OtlpAttributeValueObject7
- type OtlpAttributeValueUnion
- func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject() (v OtlpAttributeValueObject)
- func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject2() (v OtlpAttributeValueObject2)
- func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject3() (v OtlpAttributeValueObject3)
- func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject4() (v OtlpAttributeValueObject4)
- func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject5() (v OtlpAttributeValueObject5)
- func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject6() (v OtlpAttributeValueObject6)
- func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject7() (v OtlpAttributeValueObject7)
- func (u OtlpAttributeValueUnion) RawJSON() string
- func (r *OtlpAttributeValueUnion) UnmarshalJSON(data []byte) error
- type OtlpContextAttribute
- type OtlpLogRecord
- type OtlpResource
- type OtlpScope
- type PlaybackRatePlayingTime
- type PlaybackRatePlayingTimeParam
- type PlaybackScore
- type PlayedRange
- type PlayedRangeParam
- type ProgressReached
- type RenditionPlayingTime
- type RenditionPlayingTimeParam
- type StartupOutcomes
- type StoredOtlpContext
- type StoredOtlpContextResourceLogs
- type StoredOtlpContextScopeLogs
- type SubtitlePlayingTime
- type SubtitlePlayingTimeParam
- type WatchTimeDistribution
- type WatchTimeDistributionDistribution
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserContext ¶
type BrowserContext struct {
SchemaVersion float64 `json:"schema_version" api:"required"`
BrowserName string `json:"browser_name" api:"nullable"`
BrowserVersion string `json:"browser_version" api:"nullable"`
DeviceFamily string `json:"device_family" api:"nullable"`
// Any of "desktop", "mobile", "tablet", "unknown".
DeviceType BrowserContextDeviceType `json:"device_type"`
Language string `json:"language" api:"nullable"`
LanguagePrefix string `json:"language_prefix" api:"nullable"`
OsName string `json:"os_name" api:"nullable"`
OsVersion string `json:"os_version" api:"nullable"`
// Current document HTTP(S) origin, without credentials. Null when unavailable or
// longer than 2048 characters.
PageOrigin string `json:"page_origin" api:"nullable"`
// Current document pathname, without query parameters or fragment. Null when
// unavailable or longer than 2048 characters. Paths may contain
// application-defined identifiers.
PagePath string `json:"page_path" api:"nullable"`
PixelRatio float64 `json:"pixel_ratio" api:"nullable"`
ScreenHeightPx int64 `json:"screen_height_px" api:"nullable"`
ScreenWidthPx int64 `json:"screen_width_px" api:"nullable"`
Timezone string `json:"timezone" api:"nullable"`
TimezoneOffsetMinutes int64 `json:"timezone_offset_minutes" api:"nullable"`
UserAgent string `json:"user_agent" api:"nullable"`
ViewportHeightPx int64 `json:"viewport_height_px" api:"nullable"`
ViewportWidthPx int64 `json:"viewport_width_px" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
SchemaVersion respjson.Field
BrowserName respjson.Field
BrowserVersion respjson.Field
DeviceFamily respjson.Field
DeviceType respjson.Field
Language respjson.Field
LanguagePrefix respjson.Field
OsName respjson.Field
OsVersion respjson.Field
PageOrigin respjson.Field
PagePath respjson.Field
PixelRatio respjson.Field
ScreenHeightPx respjson.Field
ScreenWidthPx respjson.Field
Timezone respjson.Field
TimezoneOffsetMinutes respjson.Field
UserAgent respjson.Field
ViewportHeightPx respjson.Field
ViewportWidthPx respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Browser and device information. The Chunkify player sends every field, with null for unavailable measurements. Other integrations may omit any field except schema_version. Extra properties are preserved.
func (BrowserContext) RawJSON ¶
func (r BrowserContext) RawJSON() string
Returns the unmodified JSON received from the API
func (BrowserContext) ToParam ¶
func (r BrowserContext) ToParam() BrowserContextParam
ToParam converts this BrowserContext to a BrowserContextParam.
Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with BrowserContextParam.Overrides()
func (*BrowserContext) UnmarshalJSON ¶
func (r *BrowserContext) UnmarshalJSON(data []byte) error
type BrowserContextDeviceType ¶
type BrowserContextDeviceType string
const ( BrowserContextDeviceTypeDesktop BrowserContextDeviceType = "desktop" BrowserContextDeviceTypeMobile BrowserContextDeviceType = "mobile" BrowserContextDeviceTypeTablet BrowserContextDeviceType = "tablet" BrowserContextDeviceTypeUnknown BrowserContextDeviceType = "unknown" )
type BrowserContextParam ¶
type BrowserContextParam struct {
BrowserName param.Opt[string] `json:"browser_name,omitzero"`
BrowserVersion param.Opt[string] `json:"browser_version,omitzero"`
DeviceFamily param.Opt[string] `json:"device_family,omitzero"`
Language param.Opt[string] `json:"language,omitzero"`
LanguagePrefix param.Opt[string] `json:"language_prefix,omitzero"`
OsName param.Opt[string] `json:"os_name,omitzero"`
OsVersion param.Opt[string] `json:"os_version,omitzero"`
// Current document HTTP(S) origin, without credentials. Null when unavailable or
// longer than 2048 characters.
PageOrigin param.Opt[string] `json:"page_origin,omitzero"`
// Current document pathname, without query parameters or fragment. Null when
// unavailable or longer than 2048 characters. Paths may contain
// application-defined identifiers.
PagePath param.Opt[string] `json:"page_path,omitzero"`
PixelRatio param.Opt[float64] `json:"pixel_ratio,omitzero"`
ScreenHeightPx param.Opt[int64] `json:"screen_height_px,omitzero"`
ScreenWidthPx param.Opt[int64] `json:"screen_width_px,omitzero"`
Timezone param.Opt[string] `json:"timezone,omitzero"`
TimezoneOffsetMinutes param.Opt[int64] `json:"timezone_offset_minutes,omitzero"`
UserAgent param.Opt[string] `json:"user_agent,omitzero"`
ViewportHeightPx param.Opt[int64] `json:"viewport_height_px,omitzero"`
ViewportWidthPx param.Opt[int64] `json:"viewport_width_px,omitzero"`
// Any of "desktop", "mobile", "tablet", "unknown".
DeviceType BrowserContextDeviceType `json:"device_type,omitzero"`
// This field can be elided, and will marshal its zero value as 1.
SchemaVersion float64 `json:"schema_version,omitzero" api:"required"`
// contains filtered or unexported fields
}
Browser and device information. The Chunkify player sends every field, with null for unavailable measurements. Other integrations may omit any field except schema_version. Extra properties are preserved.
The property SchemaVersion is required.
func (BrowserContextParam) MarshalJSON ¶
func (r BrowserContextParam) MarshalJSON() (data []byte, err error)
func (*BrowserContextParam) UnmarshalJSON ¶
func (r *BrowserContextParam) UnmarshalJSON(data []byte) error
type CustomDimensionUnion ¶
type CustomDimensionUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
CustomDimensionUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (CustomDimensionUnion) AsBool ¶
func (u CustomDimensionUnion) AsBool() (v bool)
func (CustomDimensionUnion) AsFloat ¶
func (u CustomDimensionUnion) AsFloat() (v float64)
func (CustomDimensionUnion) AsString ¶
func (u CustomDimensionUnion) AsString() (v string)
func (CustomDimensionUnion) RawJSON ¶
func (u CustomDimensionUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*CustomDimensionUnion) UnmarshalJSON ¶
func (r *CustomDimensionUnion) UnmarshalJSON(data []byte) error
type CustomDimensionUnionParam ¶
type CustomDimensionUnionParam struct {
OfString param.Opt[string] `json:",omitzero,inline"`
OfFloat param.Opt[float64] `json:",omitzero,inline"`
OfBool param.Opt[bool] `json:",omitzero,inline"`
// contains filtered or unexported fields
}
Only one field can be non-zero.
Use param.IsOmitted to confirm if a field is set.
func (CustomDimensionUnionParam) MarshalJSON ¶
func (u CustomDimensionUnionParam) MarshalJSON() ([]byte, error)
func (*CustomDimensionUnionParam) UnmarshalJSON ¶
func (u *CustomDimensionUnionParam) UnmarshalJSON(data []byte) error
type CustomDimensions ¶
type CustomDimensions map[string]CustomDimensionUnion
type CustomDimensionsParam ¶
type CustomDimensionsParam map[string]CustomDimensionUnionParam
type EventContext ¶
type EventContext struct {
SchemaVersion float64 `json:"schema_version" api:"required"`
// Copied from browser_context.browser_name when primitive. See BrowserContext for
// the SDK type; the collector currently accepts any primitive here.
BrowserName EventContextBrowserNameUnion `json:"browser_name" api:"nullable"`
// Copied from browser_context.browser_version when primitive. See BrowserContext
// for the SDK type; the collector currently accepts any primitive here.
BrowserVersion EventContextBrowserVersionUnion `json:"browser_version" api:"nullable"`
// Approximate city name in English from the local City MMDB lookup. Null when
// unknown. Location displays using the bundled DB-IP data must link to
// https://db-ip.com.
City string `json:"city" api:"nullable"`
// Continent code from the local City MMDB lookup: Africa, Antarctica, Asia,
// Europe, North America, Oceania or South America. Null when unknown.
//
// Any of "AF", "AN", "AS", "EU", "NA", "OC", "SA".
Continent EventContextContinent `json:"continent" api:"nullable"`
// Country ISO 3166-1 alpha-2 code from the local City MMDB lookup. Null when
// unknown. The request IP is discarded.
Country string `json:"country" api:"nullable"`
// Copied from browser_context.device_family when primitive. See BrowserContext for
// the SDK type; the collector currently accepts any primitive here.
DeviceFamily EventContextDeviceFamilyUnion `json:"device_family" api:"nullable"`
// Copied from browser_context.device_type when primitive. See BrowserContext for
// the SDK type; the collector currently accepts any primitive here.
DeviceType EventContextDeviceTypeUnion `json:"device_type" api:"nullable"`
// Copied from browser_context.language when primitive. See BrowserContext for the
// SDK type; the collector currently accepts any primitive here.
Language EventContextLanguageUnion `json:"language" api:"nullable"`
// Copied from browser_context.language_prefix when primitive. See BrowserContext
// for the SDK type; the collector currently accepts any primitive here.
LanguagePrefix EventContextLanguagePrefixUnion `json:"language_prefix" api:"nullable"`
// Copied from browser_context.os_name when primitive. See BrowserContext for the
// SDK type; the collector currently accepts any primitive here.
OsName EventContextOsNameUnion `json:"os_name" api:"nullable"`
// Copied from browser_context.os_version when primitive. See BrowserContext for
// the SDK type; the collector currently accepts any primitive here.
OsVersion EventContextOsVersionUnion `json:"os_version" api:"nullable"`
// Current document HTTP(S) origin, without credentials. Null when unavailable or
// longer than 2048 characters.
PageOrigin string `json:"page_origin" api:"nullable"`
// Current document pathname, without query parameters or fragment. Null when
// unavailable or longer than 2048 characters. Paths may contain
// application-defined identifiers.
PagePath string `json:"page_path" api:"nullable"`
// Copied from browser_context.pixel_ratio when primitive. See BrowserContext for
// the SDK type; the collector currently accepts any primitive here.
PixelRatio EventContextPixelRatioUnion `json:"pixel_ratio" api:"nullable"`
// Copied from browser_context.screen_height_px when primitive. See BrowserContext
// for the SDK type; the collector currently accepts any primitive here.
ScreenHeightPx EventContextScreenHeightPxUnion `json:"screen_height_px" api:"nullable"`
// Copied from browser_context.screen_width_px when primitive. See BrowserContext
// for the SDK type; the collector currently accepts any primitive here.
ScreenWidthPx EventContextScreenWidthPxUnion `json:"screen_width_px" api:"nullable"`
// Copied from browser_context.timezone when primitive. See BrowserContext for the
// SDK type; the collector currently accepts any primitive here.
Timezone EventContextTimezoneUnion `json:"timezone" api:"nullable"`
// Copied from browser_context.timezone_offset_minutes when primitive. See
// BrowserContext for the SDK type; the collector currently accepts any primitive
// here.
TimezoneOffsetMinutes EventContextTimezoneOffsetMinutesUnion `json:"timezone_offset_minutes" api:"nullable"`
// Copied from browser_context.user_agent when primitive. See BrowserContext for
// the SDK type; the collector currently accepts any primitive here.
UserAgent EventContextUserAgentUnion `json:"user_agent" api:"nullable"`
// Copied from browser_context.viewport_height_px when primitive. See
// BrowserContext for the SDK type; the collector currently accepts any primitive
// here.
ViewportHeightPx EventContextViewportHeightPxUnion `json:"viewport_height_px" api:"nullable"`
// Copied from browser_context.viewport_width_px when primitive. See BrowserContext
// for the SDK type; the collector currently accepts any primitive here.
ViewportWidthPx EventContextViewportWidthPxUnion `json:"viewport_width_px" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
SchemaVersion respjson.Field
BrowserName respjson.Field
BrowserVersion respjson.Field
City respjson.Field
Continent respjson.Field
Country respjson.Field
DeviceFamily respjson.Field
DeviceType respjson.Field
Language respjson.Field
LanguagePrefix respjson.Field
OsName respjson.Field
OsVersion respjson.Field
PageOrigin respjson.Field
PagePath respjson.Field
PixelRatio respjson.Field
ScreenHeightPx respjson.Field
ScreenWidthPx respjson.Field
Timezone respjson.Field
TimezoneOffsetMinutes respjson.Field
UserAgent respjson.Field
ViewportHeightPx respjson.Field
ViewportWidthPx respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Browser context and locally derived continent/country/city. Request IP addresses are never added to events or stored context.
func (EventContext) RawJSON ¶
func (r EventContext) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContext) UnmarshalJSON ¶
func (r *EventContext) UnmarshalJSON(data []byte) error
type EventContextBrowserNameUnion ¶
type EventContextBrowserNameUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextBrowserNameUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextBrowserNameUnion) AsBool ¶
func (u EventContextBrowserNameUnion) AsBool() (v bool)
func (EventContextBrowserNameUnion) AsFloat ¶
func (u EventContextBrowserNameUnion) AsFloat() (v float64)
func (EventContextBrowserNameUnion) AsString ¶
func (u EventContextBrowserNameUnion) AsString() (v string)
func (EventContextBrowserNameUnion) RawJSON ¶
func (u EventContextBrowserNameUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextBrowserNameUnion) UnmarshalJSON ¶
func (r *EventContextBrowserNameUnion) UnmarshalJSON(data []byte) error
type EventContextBrowserVersionUnion ¶
type EventContextBrowserVersionUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextBrowserVersionUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextBrowserVersionUnion) AsBool ¶
func (u EventContextBrowserVersionUnion) AsBool() (v bool)
func (EventContextBrowserVersionUnion) AsFloat ¶
func (u EventContextBrowserVersionUnion) AsFloat() (v float64)
func (EventContextBrowserVersionUnion) AsString ¶
func (u EventContextBrowserVersionUnion) AsString() (v string)
func (EventContextBrowserVersionUnion) RawJSON ¶
func (u EventContextBrowserVersionUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextBrowserVersionUnion) UnmarshalJSON ¶
func (r *EventContextBrowserVersionUnion) UnmarshalJSON(data []byte) error
type EventContextContinent ¶
type EventContextContinent string
Continent code from the local City MMDB lookup: Africa, Antarctica, Asia, Europe, North America, Oceania or South America. Null when unknown.
const ( EventContextContinentAf EventContextContinent = "AF" EventContextContinentAn EventContextContinent = "AN" EventContextContinentAs EventContextContinent = "AS" EventContextContinentEu EventContextContinent = "EU" EventContextContinentNa EventContextContinent = "NA" EventContextContinentOc EventContextContinent = "OC" EventContextContinentSa EventContextContinent = "SA" )
type EventContextDeviceFamilyUnion ¶
type EventContextDeviceFamilyUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextDeviceFamilyUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextDeviceFamilyUnion) AsBool ¶
func (u EventContextDeviceFamilyUnion) AsBool() (v bool)
func (EventContextDeviceFamilyUnion) AsFloat ¶
func (u EventContextDeviceFamilyUnion) AsFloat() (v float64)
func (EventContextDeviceFamilyUnion) AsString ¶
func (u EventContextDeviceFamilyUnion) AsString() (v string)
func (EventContextDeviceFamilyUnion) RawJSON ¶
func (u EventContextDeviceFamilyUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextDeviceFamilyUnion) UnmarshalJSON ¶
func (r *EventContextDeviceFamilyUnion) UnmarshalJSON(data []byte) error
type EventContextDeviceTypeUnion ¶
type EventContextDeviceTypeUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextDeviceTypeUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextDeviceTypeUnion) AsBool ¶
func (u EventContextDeviceTypeUnion) AsBool() (v bool)
func (EventContextDeviceTypeUnion) AsFloat ¶
func (u EventContextDeviceTypeUnion) AsFloat() (v float64)
func (EventContextDeviceTypeUnion) AsString ¶
func (u EventContextDeviceTypeUnion) AsString() (v string)
func (EventContextDeviceTypeUnion) RawJSON ¶
func (u EventContextDeviceTypeUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextDeviceTypeUnion) UnmarshalJSON ¶
func (r *EventContextDeviceTypeUnion) UnmarshalJSON(data []byte) error
type EventContextLanguagePrefixUnion ¶
type EventContextLanguagePrefixUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextLanguagePrefixUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextLanguagePrefixUnion) AsBool ¶
func (u EventContextLanguagePrefixUnion) AsBool() (v bool)
func (EventContextLanguagePrefixUnion) AsFloat ¶
func (u EventContextLanguagePrefixUnion) AsFloat() (v float64)
func (EventContextLanguagePrefixUnion) AsString ¶
func (u EventContextLanguagePrefixUnion) AsString() (v string)
func (EventContextLanguagePrefixUnion) RawJSON ¶
func (u EventContextLanguagePrefixUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextLanguagePrefixUnion) UnmarshalJSON ¶
func (r *EventContextLanguagePrefixUnion) UnmarshalJSON(data []byte) error
type EventContextLanguageUnion ¶
type EventContextLanguageUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextLanguageUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextLanguageUnion) AsBool ¶
func (u EventContextLanguageUnion) AsBool() (v bool)
func (EventContextLanguageUnion) AsFloat ¶
func (u EventContextLanguageUnion) AsFloat() (v float64)
func (EventContextLanguageUnion) AsString ¶
func (u EventContextLanguageUnion) AsString() (v string)
func (EventContextLanguageUnion) RawJSON ¶
func (u EventContextLanguageUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextLanguageUnion) UnmarshalJSON ¶
func (r *EventContextLanguageUnion) UnmarshalJSON(data []byte) error
type EventContextOsNameUnion ¶
type EventContextOsNameUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextOsNameUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextOsNameUnion) AsBool ¶
func (u EventContextOsNameUnion) AsBool() (v bool)
func (EventContextOsNameUnion) AsFloat ¶
func (u EventContextOsNameUnion) AsFloat() (v float64)
func (EventContextOsNameUnion) AsString ¶
func (u EventContextOsNameUnion) AsString() (v string)
func (EventContextOsNameUnion) RawJSON ¶
func (u EventContextOsNameUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextOsNameUnion) UnmarshalJSON ¶
func (r *EventContextOsNameUnion) UnmarshalJSON(data []byte) error
type EventContextOsVersionUnion ¶
type EventContextOsVersionUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextOsVersionUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextOsVersionUnion) AsBool ¶
func (u EventContextOsVersionUnion) AsBool() (v bool)
func (EventContextOsVersionUnion) AsFloat ¶
func (u EventContextOsVersionUnion) AsFloat() (v float64)
func (EventContextOsVersionUnion) AsString ¶
func (u EventContextOsVersionUnion) AsString() (v string)
func (EventContextOsVersionUnion) RawJSON ¶
func (u EventContextOsVersionUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextOsVersionUnion) UnmarshalJSON ¶
func (r *EventContextOsVersionUnion) UnmarshalJSON(data []byte) error
type EventContextPixelRatioUnion ¶
type EventContextPixelRatioUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextPixelRatioUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextPixelRatioUnion) AsBool ¶
func (u EventContextPixelRatioUnion) AsBool() (v bool)
func (EventContextPixelRatioUnion) AsFloat ¶
func (u EventContextPixelRatioUnion) AsFloat() (v float64)
func (EventContextPixelRatioUnion) AsString ¶
func (u EventContextPixelRatioUnion) AsString() (v string)
func (EventContextPixelRatioUnion) RawJSON ¶
func (u EventContextPixelRatioUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextPixelRatioUnion) UnmarshalJSON ¶
func (r *EventContextPixelRatioUnion) UnmarshalJSON(data []byte) error
type EventContextScreenHeightPxUnion ¶
type EventContextScreenHeightPxUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextScreenHeightPxUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextScreenHeightPxUnion) AsBool ¶
func (u EventContextScreenHeightPxUnion) AsBool() (v bool)
func (EventContextScreenHeightPxUnion) AsFloat ¶
func (u EventContextScreenHeightPxUnion) AsFloat() (v float64)
func (EventContextScreenHeightPxUnion) AsString ¶
func (u EventContextScreenHeightPxUnion) AsString() (v string)
func (EventContextScreenHeightPxUnion) RawJSON ¶
func (u EventContextScreenHeightPxUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextScreenHeightPxUnion) UnmarshalJSON ¶
func (r *EventContextScreenHeightPxUnion) UnmarshalJSON(data []byte) error
type EventContextScreenWidthPxUnion ¶
type EventContextScreenWidthPxUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextScreenWidthPxUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextScreenWidthPxUnion) AsBool ¶
func (u EventContextScreenWidthPxUnion) AsBool() (v bool)
func (EventContextScreenWidthPxUnion) AsFloat ¶
func (u EventContextScreenWidthPxUnion) AsFloat() (v float64)
func (EventContextScreenWidthPxUnion) AsString ¶
func (u EventContextScreenWidthPxUnion) AsString() (v string)
func (EventContextScreenWidthPxUnion) RawJSON ¶
func (u EventContextScreenWidthPxUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextScreenWidthPxUnion) UnmarshalJSON ¶
func (r *EventContextScreenWidthPxUnion) UnmarshalJSON(data []byte) error
type EventContextTimezoneOffsetMinutesUnion ¶
type EventContextTimezoneOffsetMinutesUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextTimezoneOffsetMinutesUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextTimezoneOffsetMinutesUnion) AsBool ¶
func (u EventContextTimezoneOffsetMinutesUnion) AsBool() (v bool)
func (EventContextTimezoneOffsetMinutesUnion) AsFloat ¶
func (u EventContextTimezoneOffsetMinutesUnion) AsFloat() (v float64)
func (EventContextTimezoneOffsetMinutesUnion) AsString ¶
func (u EventContextTimezoneOffsetMinutesUnion) AsString() (v string)
func (EventContextTimezoneOffsetMinutesUnion) RawJSON ¶
func (u EventContextTimezoneOffsetMinutesUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextTimezoneOffsetMinutesUnion) UnmarshalJSON ¶
func (r *EventContextTimezoneOffsetMinutesUnion) UnmarshalJSON(data []byte) error
type EventContextTimezoneUnion ¶
type EventContextTimezoneUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextTimezoneUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextTimezoneUnion) AsBool ¶
func (u EventContextTimezoneUnion) AsBool() (v bool)
func (EventContextTimezoneUnion) AsFloat ¶
func (u EventContextTimezoneUnion) AsFloat() (v float64)
func (EventContextTimezoneUnion) AsString ¶
func (u EventContextTimezoneUnion) AsString() (v string)
func (EventContextTimezoneUnion) RawJSON ¶
func (u EventContextTimezoneUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextTimezoneUnion) UnmarshalJSON ¶
func (r *EventContextTimezoneUnion) UnmarshalJSON(data []byte) error
type EventContextUserAgentUnion ¶
type EventContextUserAgentUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextUserAgentUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextUserAgentUnion) AsBool ¶
func (u EventContextUserAgentUnion) AsBool() (v bool)
func (EventContextUserAgentUnion) AsFloat ¶
func (u EventContextUserAgentUnion) AsFloat() (v float64)
func (EventContextUserAgentUnion) AsString ¶
func (u EventContextUserAgentUnion) AsString() (v string)
func (EventContextUserAgentUnion) RawJSON ¶
func (u EventContextUserAgentUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextUserAgentUnion) UnmarshalJSON ¶
func (r *EventContextUserAgentUnion) UnmarshalJSON(data []byte) error
type EventContextViewportHeightPxUnion ¶
type EventContextViewportHeightPxUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextViewportHeightPxUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextViewportHeightPxUnion) AsBool ¶
func (u EventContextViewportHeightPxUnion) AsBool() (v bool)
func (EventContextViewportHeightPxUnion) AsFloat ¶
func (u EventContextViewportHeightPxUnion) AsFloat() (v float64)
func (EventContextViewportHeightPxUnion) AsString ¶
func (u EventContextViewportHeightPxUnion) AsString() (v string)
func (EventContextViewportHeightPxUnion) RawJSON ¶
func (u EventContextViewportHeightPxUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextViewportHeightPxUnion) UnmarshalJSON ¶
func (r *EventContextViewportHeightPxUnion) UnmarshalJSON(data []byte) error
type EventContextViewportWidthPxUnion ¶
type EventContextViewportWidthPxUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [float64] instead of an object.
OfFloat float64 `json:",inline"`
// This field will be present if the value is a [bool] instead of an object.
OfBool bool `json:",inline"`
JSON struct {
OfString respjson.Field
OfFloat respjson.Field
OfBool respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
EventContextViewportWidthPxUnion contains all possible properties and values from [string], [float64], [bool].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]
func (EventContextViewportWidthPxUnion) AsBool ¶
func (u EventContextViewportWidthPxUnion) AsBool() (v bool)
func (EventContextViewportWidthPxUnion) AsFloat ¶
func (u EventContextViewportWidthPxUnion) AsFloat() (v float64)
func (EventContextViewportWidthPxUnion) AsString ¶
func (u EventContextViewportWidthPxUnion) AsString() (v string)
func (EventContextViewportWidthPxUnion) RawJSON ¶
func (u EventContextViewportWidthPxUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*EventContextViewportWidthPxUnion) UnmarshalJSON ¶
func (r *EventContextViewportWidthPxUnion) UnmarshalJSON(data []byte) error
type MetricCountRatio ¶
type MetricCountRatio struct {
Ratio float64 `json:"ratio" api:"required"`
Views int64 `json:"views" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Ratio respjson.Field
Views respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
View count and fraction of its documented denominator. The ratio is null when that denominator is zero.
func (MetricCountRatio) RawJSON ¶
func (r MetricCountRatio) RawJSON() string
Returns the unmodified JSON received from the API
func (*MetricCountRatio) UnmarshalJSON ¶
func (r *MetricCountRatio) UnmarshalJSON(data []byte) error
type OtlpAnyValue ¶
type OtlpAnyValue struct {
ArrayValue OtlpAnyValueArrayValue `json:"arrayValue" api:"nullable"`
BoolValue bool `json:"boolValue" api:"nullable"`
BytesValue string `json:"bytesValue" api:"nullable"`
DoubleValue float64 `json:"doubleValue" api:"nullable"`
// Signed int64. Strings avoid JavaScript precision loss.
IntValue OtlpAnyValueIntValueUnion `json:"intValue" api:"nullable"`
KvlistValue OtlpAnyValueKvlistValue `json:"kvlistValue" api:"nullable"`
StringValue string `json:"stringValue" api:"nullable"`
ExtraFields map[string]any `json:"" api:"extrafields"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
IntValue respjson.Field
KvlistValue respjson.Field
StringValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Standard OTLP AnyValue in a preserved resource, scope or body. This collector does not decode these fields into the event.
func (OtlpAnyValue) RawJSON ¶
func (r OtlpAnyValue) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAnyValue) UnmarshalJSON ¶
func (r *OtlpAnyValue) UnmarshalJSON(data []byte) error
type OtlpAnyValueArrayValue ¶
type OtlpAnyValueArrayValue struct {
Values []OtlpAnyValue `json:"values" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAnyValueArrayValue) RawJSON ¶
func (r OtlpAnyValueArrayValue) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAnyValueArrayValue) UnmarshalJSON ¶
func (r *OtlpAnyValueArrayValue) UnmarshalJSON(data []byte) error
type OtlpAnyValueIntValueUnion ¶
type OtlpAnyValueIntValueUnion struct {
// This field will be present if the value is a [string] instead of an object.
OfString string `json:",inline"`
// This field will be present if the value is a [int64] instead of an object.
OfInt int64 `json:",inline"`
JSON struct {
OfString respjson.Field
OfInt respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OtlpAnyValueIntValueUnion contains all possible properties and values from [string], [int64].
Use the methods beginning with 'As' to cast the union to one of its variants.
If the underlying value is not a json object, one of the following properties will be valid: OfString OfInt]
func (OtlpAnyValueIntValueUnion) AsInt ¶
func (u OtlpAnyValueIntValueUnion) AsInt() (v int64)
func (OtlpAnyValueIntValueUnion) AsString ¶
func (u OtlpAnyValueIntValueUnion) AsString() (v string)
func (OtlpAnyValueIntValueUnion) RawJSON ¶
func (u OtlpAnyValueIntValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAnyValueIntValueUnion) UnmarshalJSON ¶
func (r *OtlpAnyValueIntValueUnion) UnmarshalJSON(data []byte) error
type OtlpAnyValueKvlistValue ¶
type OtlpAnyValueKvlistValue struct {
Values []OtlpContextAttribute `json:"values" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Values respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAnyValueKvlistValue) RawJSON ¶
func (r OtlpAnyValueKvlistValue) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAnyValueKvlistValue) UnmarshalJSON ¶
func (r *OtlpAnyValueKvlistValue) UnmarshalJSON(data []byte) error
type OtlpAttribute ¶
type OtlpAttribute struct {
Key string `json:"key" api:"nullable"`
// A typed log attribute. At most one value field can be set. Binary values are
// unsupported.
Value OtlpAttributeValueUnion `json:"value" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Key respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
An absent or null key decodes to the empty string; duplicate decoded keys reject the request. An absent value decodes to null.
func (OtlpAttribute) RawJSON ¶
func (r OtlpAttribute) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttribute) UnmarshalJSON ¶
func (r *OtlpAttribute) UnmarshalJSON(data []byte) error
type OtlpAttributeValueObject ¶
type OtlpAttributeValueObject struct {
ArrayValue any `json:"arrayValue" api:"nullable"`
BoolValue any `json:"boolValue" api:"nullable"`
BytesValue any `json:"bytesValue" api:"nullable"`
DoubleValue any `json:"doubleValue" api:"nullable"`
IntValue any `json:"intValue" api:"nullable"`
KvlistValue any `json:"kvlistValue" api:"nullable"`
StringValue any `json:"stringValue" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
IntValue respjson.Field
KvlistValue respjson.Field
StringValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAttributeValueObject) RawJSON ¶
func (r OtlpAttributeValueObject) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueObject) UnmarshalJSON ¶
func (r *OtlpAttributeValueObject) UnmarshalJSON(data []byte) error
type OtlpAttributeValueObject2 ¶
type OtlpAttributeValueObject2 struct {
StringValue any `json:"stringValue" api:"required"`
ArrayValue any `json:"arrayValue" api:"nullable"`
BoolValue any `json:"boolValue" api:"nullable"`
BytesValue any `json:"bytesValue" api:"nullable"`
DoubleValue any `json:"doubleValue" api:"nullable"`
IntValue any `json:"intValue" api:"nullable"`
KvlistValue any `json:"kvlistValue" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
StringValue respjson.Field
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
IntValue respjson.Field
KvlistValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAttributeValueObject2) RawJSON ¶
func (r OtlpAttributeValueObject2) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueObject2) UnmarshalJSON ¶
func (r *OtlpAttributeValueObject2) UnmarshalJSON(data []byte) error
type OtlpAttributeValueObject3 ¶
type OtlpAttributeValueObject3 struct {
BoolValue any `json:"boolValue" api:"required"`
ArrayValue any `json:"arrayValue" api:"nullable"`
BytesValue any `json:"bytesValue" api:"nullable"`
DoubleValue any `json:"doubleValue" api:"nullable"`
IntValue any `json:"intValue" api:"nullable"`
KvlistValue any `json:"kvlistValue" api:"nullable"`
StringValue any `json:"stringValue" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
BoolValue respjson.Field
ArrayValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
IntValue respjson.Field
KvlistValue respjson.Field
StringValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAttributeValueObject3) RawJSON ¶
func (r OtlpAttributeValueObject3) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueObject3) UnmarshalJSON ¶
func (r *OtlpAttributeValueObject3) UnmarshalJSON(data []byte) error
type OtlpAttributeValueObject4 ¶
type OtlpAttributeValueObject4 struct {
IntValue any `json:"intValue" api:"required"`
ArrayValue any `json:"arrayValue" api:"nullable"`
BoolValue any `json:"boolValue" api:"nullable"`
BytesValue any `json:"bytesValue" api:"nullable"`
DoubleValue any `json:"doubleValue" api:"nullable"`
KvlistValue any `json:"kvlistValue" api:"nullable"`
StringValue any `json:"stringValue" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
IntValue respjson.Field
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
KvlistValue respjson.Field
StringValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAttributeValueObject4) RawJSON ¶
func (r OtlpAttributeValueObject4) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueObject4) UnmarshalJSON ¶
func (r *OtlpAttributeValueObject4) UnmarshalJSON(data []byte) error
type OtlpAttributeValueObject5 ¶
type OtlpAttributeValueObject5 struct {
DoubleValue any `json:"doubleValue" api:"required"`
ArrayValue any `json:"arrayValue" api:"nullable"`
BoolValue any `json:"boolValue" api:"nullable"`
BytesValue any `json:"bytesValue" api:"nullable"`
IntValue any `json:"intValue" api:"nullable"`
KvlistValue any `json:"kvlistValue" api:"nullable"`
StringValue any `json:"stringValue" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
DoubleValue respjson.Field
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
IntValue respjson.Field
KvlistValue respjson.Field
StringValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAttributeValueObject5) RawJSON ¶
func (r OtlpAttributeValueObject5) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueObject5) UnmarshalJSON ¶
func (r *OtlpAttributeValueObject5) UnmarshalJSON(data []byte) error
type OtlpAttributeValueObject6 ¶
type OtlpAttributeValueObject6 struct {
ArrayValue any `json:"arrayValue" api:"required"`
BoolValue any `json:"boolValue" api:"nullable"`
BytesValue any `json:"bytesValue" api:"nullable"`
DoubleValue any `json:"doubleValue" api:"nullable"`
IntValue any `json:"intValue" api:"nullable"`
KvlistValue any `json:"kvlistValue" api:"nullable"`
StringValue any `json:"stringValue" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
IntValue respjson.Field
KvlistValue respjson.Field
StringValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAttributeValueObject6) RawJSON ¶
func (r OtlpAttributeValueObject6) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueObject6) UnmarshalJSON ¶
func (r *OtlpAttributeValueObject6) UnmarshalJSON(data []byte) error
type OtlpAttributeValueObject7 ¶
type OtlpAttributeValueObject7 struct {
KvlistValue any `json:"kvlistValue" api:"required"`
ArrayValue any `json:"arrayValue" api:"nullable"`
BoolValue any `json:"boolValue" api:"nullable"`
BytesValue any `json:"bytesValue" api:"nullable"`
DoubleValue any `json:"doubleValue" api:"nullable"`
IntValue any `json:"intValue" api:"nullable"`
StringValue any `json:"stringValue" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
KvlistValue respjson.Field
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
IntValue respjson.Field
StringValue respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpAttributeValueObject7) RawJSON ¶
func (r OtlpAttributeValueObject7) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueObject7) UnmarshalJSON ¶
func (r *OtlpAttributeValueObject7) UnmarshalJSON(data []byte) error
type OtlpAttributeValueUnion ¶
type OtlpAttributeValueUnion struct {
ArrayValue any `json:"arrayValue"`
BoolValue any `json:"boolValue"`
BytesValue any `json:"bytesValue"`
DoubleValue any `json:"doubleValue"`
IntValue any `json:"intValue"`
KvlistValue any `json:"kvlistValue"`
StringValue any `json:"stringValue"`
JSON struct {
ArrayValue respjson.Field
BoolValue respjson.Field
BytesValue respjson.Field
DoubleValue respjson.Field
IntValue respjson.Field
KvlistValue respjson.Field
StringValue respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
OtlpAttributeValueUnion contains all possible properties and values from OtlpAttributeValueObject, OtlpAttributeValueObject2, OtlpAttributeValueObject3, OtlpAttributeValueObject4, OtlpAttributeValueObject5, OtlpAttributeValueObject6, OtlpAttributeValueObject7.
Use the methods beginning with 'As' to cast the union to one of its variants.
func (OtlpAttributeValueUnion) AsOtlpAttributeValueObject ¶
func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject() (v OtlpAttributeValueObject)
func (OtlpAttributeValueUnion) AsOtlpAttributeValueObject2 ¶
func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject2() (v OtlpAttributeValueObject2)
func (OtlpAttributeValueUnion) AsOtlpAttributeValueObject3 ¶
func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject3() (v OtlpAttributeValueObject3)
func (OtlpAttributeValueUnion) AsOtlpAttributeValueObject4 ¶
func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject4() (v OtlpAttributeValueObject4)
func (OtlpAttributeValueUnion) AsOtlpAttributeValueObject5 ¶
func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject5() (v OtlpAttributeValueObject5)
func (OtlpAttributeValueUnion) AsOtlpAttributeValueObject6 ¶
func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject6() (v OtlpAttributeValueObject6)
func (OtlpAttributeValueUnion) AsOtlpAttributeValueObject7 ¶
func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject7() (v OtlpAttributeValueObject7)
func (OtlpAttributeValueUnion) RawJSON ¶
func (u OtlpAttributeValueUnion) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpAttributeValueUnion) UnmarshalJSON ¶
func (r *OtlpAttributeValueUnion) UnmarshalJSON(data []byte) error
type OtlpContextAttribute ¶
type OtlpContextAttribute struct {
Key string `json:"key" api:"required"`
// Standard OTLP AnyValue in a preserved resource, scope or body. This collector
// does not decode these fields into the event.
Value *OtlpAnyValue `json:"value" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Key respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpContextAttribute) RawJSON ¶
func (r OtlpContextAttribute) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpContextAttribute) UnmarshalJSON ¶
func (r *OtlpContextAttribute) UnmarshalJSON(data []byte) error
type OtlpLogRecord ¶
type OtlpLogRecord struct {
Attributes []OtlpAttribute `json:"attributes" api:"required"`
// Standard OTLP AnyValue in a preserved resource, scope or body. This collector
// does not decode these fields into the event.
Body OtlpAnyValue `json:"body" api:"nullable"`
DroppedAttributesCount int64 `json:"droppedAttributesCount" api:"nullable"`
EventName string `json:"eventName" api:"nullable"`
Flags int64 `json:"flags" api:"nullable"`
ObservedTimeUnixNano string `json:"observedTimeUnixNano" api:"nullable"`
SeverityNumber int64 `json:"severityNumber" api:"nullable"`
SeverityText string `json:"severityText" api:"nullable"`
SpanID string `json:"spanId" api:"nullable"`
TimeUnixNano string `json:"timeUnixNano" api:"nullable"`
TraceID string `json:"traceId" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Attributes respjson.Field
Body respjson.Field
DroppedAttributesCount respjson.Field
EventName respjson.Field
Flags respjson.Field
ObservedTimeUnixNano respjson.Field
SeverityNumber respjson.Field
SeverityText respjson.Field
SpanID respjson.Field
TimeUnixNano respjson.Field
TraceID respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
A playback event in log attributes. Duplicate attributes and invalid event fields reject the request.
func (OtlpLogRecord) RawJSON ¶
func (r OtlpLogRecord) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpLogRecord) UnmarshalJSON ¶
func (r *OtlpLogRecord) UnmarshalJSON(data []byte) error
type OtlpResource ¶
type OtlpResource struct {
Attributes []OtlpContextAttribute `json:"attributes" api:"nullable"`
DroppedAttributesCount int64 `json:"droppedAttributesCount" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Attributes respjson.Field
DroppedAttributesCount respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (OtlpResource) RawJSON ¶
func (r OtlpResource) RawJSON() string
Returns the unmodified JSON received from the API
func (*OtlpResource) UnmarshalJSON ¶
func (r *OtlpResource) UnmarshalJSON(data []byte) error
type OtlpScope ¶
type OtlpScope struct {
Attributes []OtlpContextAttribute `json:"attributes" api:"nullable"`
DroppedAttributesCount int64 `json:"droppedAttributesCount" api:"nullable"`
Name string `json:"name" api:"nullable"`
Version string `json:"version" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Attributes respjson.Field
DroppedAttributesCount respjson.Field
Name respjson.Field
Version respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (*OtlpScope) UnmarshalJSON ¶
type PlaybackRatePlayingTime ¶
type PlaybackRatePlayingTime struct {
PlayingTimeMs float64 `json:"playing_time_ms" api:"required"`
// Playback rate, rounded to two decimals.
Rate float64 `json:"rate" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
PlayingTimeMs respjson.Field
Rate respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (PlaybackRatePlayingTime) RawJSON ¶
func (r PlaybackRatePlayingTime) RawJSON() string
Returns the unmodified JSON received from the API
func (PlaybackRatePlayingTime) ToParam ¶
func (r PlaybackRatePlayingTime) ToParam() PlaybackRatePlayingTimeParam
ToParam converts this PlaybackRatePlayingTime to a PlaybackRatePlayingTimeParam.
Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with PlaybackRatePlayingTimeParam.Overrides()
func (*PlaybackRatePlayingTime) UnmarshalJSON ¶
func (r *PlaybackRatePlayingTime) UnmarshalJSON(data []byte) error
type PlaybackRatePlayingTimeParam ¶
type PlaybackRatePlayingTimeParam struct {
PlayingTimeMs float64 `json:"playing_time_ms" api:"required"`
// Playback rate, rounded to two decimals.
Rate float64 `json:"rate" api:"required"`
// contains filtered or unexported fields
}
The properties PlayingTimeMs, Rate are required.
func (PlaybackRatePlayingTimeParam) MarshalJSON ¶
func (r PlaybackRatePlayingTimeParam) MarshalJSON() (data []byte, err error)
func (*PlaybackRatePlayingTimeParam) UnmarshalJSON ¶
func (r *PlaybackRatePlayingTimeParam) UnmarshalJSON(data []byte) error
type PlaybackScore ¶
type PlaybackScore struct {
// Sessions contributing a score, including recorded failures. A per-session result
// is zero or one.
SampleViews int64 `json:"sample_views" api:"required"`
// Mean of measured per-session playback scores, or null without scored sessions.
// Each session uses startup = 8 / (8 + startup_time_ms / 1000), smoothness =
// exp(-10 _ buffering_ratio), and scores 100 _ startup^0.30 \* smoothness^0.70.
// Buffering ratio is rebuffer duration divided by playing plus rebuffer duration.
// The 30% startup and 70% smoothness weights are heuristic. A recorded fatal error
// or failed_before_start outcome scores zero. Other sessions require positive
// playing time and known startup and rebuffer durations; ended_before_start and
// unknown outcomes are unscored. Buffering excludes startup, pauses and seeks. The
// score does not use interruption count or measure picture quality.
Value float64 `json:"value" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
SampleViews respjson.Field
Value respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (PlaybackScore) RawJSON ¶
func (r PlaybackScore) RawJSON() string
Returns the unmodified JSON received from the API
func (*PlaybackScore) UnmarshalJSON ¶
func (r *PlaybackScore) UnmarshalJSON(data []byte) error
type PlayedRange ¶
type PlayedRange struct {
// Exclusive media position in seconds, greater than start_seconds.
EndSeconds float64 `json:"end_seconds" api:"required"`
// Inclusive media position in seconds.
StartSeconds float64 `json:"start_seconds" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
EndSeconds respjson.Field
StartSeconds respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (PlayedRange) RawJSON ¶
func (r PlayedRange) RawJSON() string
Returns the unmodified JSON received from the API
func (PlayedRange) ToParam ¶
func (r PlayedRange) ToParam() PlayedRangeParam
ToParam converts this PlayedRange to a PlayedRangeParam.
Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with PlayedRangeParam.Overrides()
func (*PlayedRange) UnmarshalJSON ¶
func (r *PlayedRange) UnmarshalJSON(data []byte) error
type PlayedRangeParam ¶
type PlayedRangeParam struct {
// Exclusive media position in seconds, greater than start_seconds.
EndSeconds float64 `json:"end_seconds" api:"required"`
// Inclusive media position in seconds.
StartSeconds float64 `json:"start_seconds" api:"required"`
// contains filtered or unexported fields
}
The properties EndSeconds, StartSeconds are required.
func (PlayedRangeParam) MarshalJSON ¶
func (r PlayedRangeParam) MarshalJSON() (data []byte, err error)
func (*PlayedRangeParam) UnmarshalJSON ¶
func (r *PlayedRangeParam) UnmarshalJSON(data []byte) error
type ProgressReached ¶
type ProgressReached struct {
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
At100Percent MetricCountRatio `json:"at_100_percent" api:"required"`
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
At25Percent MetricCountRatio `json:"at_25_percent" api:"required"`
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
At50Percent MetricCountRatio `json:"at_50_percent" api:"required"`
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
At75Percent MetricCountRatio `json:"at_75_percent" api:"required"`
SampleViews int64 `json:"sample_views" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
At100Percent respjson.Field
At25Percent respjson.Field
At50Percent respjson.Field
At75Percent respjson.Field
SampleViews respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Furthest progress on the selected final event or latest snapshot. Only views with a positive known media duration and a progress ratio in [0,1] are samples. Each milestone ratio uses sample_views. Seeking can count; this is not watched coverage or audience retention.
func (ProgressReached) RawJSON ¶
func (r ProgressReached) RawJSON() string
Returns the unmodified JSON received from the API
func (*ProgressReached) UnmarshalJSON ¶
func (r *ProgressReached) UnmarshalJSON(data []byte) error
type RenditionPlayingTime ¶
type RenditionPlayingTime struct {
BitrateBps float64 `json:"bitrate_bps" api:"required"`
Codec string `json:"codec" api:"required"`
FrameRate float64 `json:"frame_rate" api:"required"`
Height float64 `json:"height" api:"required"`
PlayingTimeMs float64 `json:"playing_time_ms" api:"required"`
Width float64 `json:"width" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
BitrateBps respjson.Field
Codec respjson.Field
FrameRate respjson.Field
Height respjson.Field
PlayingTimeMs respjson.Field
Width respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (RenditionPlayingTime) RawJSON ¶
func (r RenditionPlayingTime) RawJSON() string
Returns the unmodified JSON received from the API
func (RenditionPlayingTime) ToParam ¶
func (r RenditionPlayingTime) ToParam() RenditionPlayingTimeParam
ToParam converts this RenditionPlayingTime to a RenditionPlayingTimeParam.
Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with RenditionPlayingTimeParam.Overrides()
func (*RenditionPlayingTime) UnmarshalJSON ¶
func (r *RenditionPlayingTime) UnmarshalJSON(data []byte) error
type RenditionPlayingTimeParam ¶
type RenditionPlayingTimeParam struct {
BitrateBps param.Opt[float64] `json:"bitrate_bps,omitzero" api:"required"`
Codec param.Opt[string] `json:"codec,omitzero" api:"required"`
FrameRate param.Opt[float64] `json:"frame_rate,omitzero" api:"required"`
Height param.Opt[float64] `json:"height,omitzero" api:"required"`
Width param.Opt[float64] `json:"width,omitzero" api:"required"`
PlayingTimeMs float64 `json:"playing_time_ms" api:"required"`
// contains filtered or unexported fields
}
The properties BitrateBps, Codec, FrameRate, Height, PlayingTimeMs, Width are required.
func (RenditionPlayingTimeParam) MarshalJSON ¶
func (r RenditionPlayingTimeParam) MarshalJSON() (data []byte, err error)
func (*RenditionPlayingTimeParam) UnmarshalJSON ¶
func (r *RenditionPlayingTimeParam) UnmarshalJSON(data []byte) error
type StartupOutcomes ¶
type StartupOutcomes struct {
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
EndedBeforeStart MetricCountRatio `json:"ended_before_start" api:"required"`
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
FailedBeforeStart MetricCountRatio `json:"failed_before_start" api:"required"`
SampleViews int64 `json:"sample_views" api:"required"`
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
Started MetricCountRatio `json:"started" api:"required"`
// View count and fraction of its documented denominator. The ratio is null when
// that denominator is zero.
Unknown MetricCountRatio `json:"unknown" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
EndedBeforeStart respjson.Field
FailedBeforeStart respjson.Field
SampleViews respjson.Field
Started respjson.Field
Unknown respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Mutually exclusive outcomes. An explicit startup_outcome on the selected final event takes precedence. Otherwise an available startup time, including zero, or positive playing time on the selected measurement proves started. All other views are unknown. sample_views excludes unknown; every ratio uses all selected attempts, including unknown. Missing final delivery does not prove an exit or failure.
func (StartupOutcomes) RawJSON ¶
func (r StartupOutcomes) RawJSON() string
Returns the unmodified JSON received from the API
func (*StartupOutcomes) UnmarshalJSON ¶
func (r *StartupOutcomes) UnmarshalJSON(data []byte) error
type StoredOtlpContext ¶
type StoredOtlpContext struct {
// A playback event in log attributes. Duplicate attributes and invalid event
// fields reject the request.
LogRecord OtlpLogRecord `json:"log_record" api:"required"`
// Original resource group excluding scopeLogs.
ResourceLogs StoredOtlpContextResourceLogs `json:"resource_logs" api:"required"`
// Original scope group excluding logRecords.
ScopeLogs StoredOtlpContextScopeLogs `json:"scope_logs" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
LogRecord respjson.Field
ResourceLogs respjson.Field
ScopeLogs respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Legacy context present for an event received through OTLP by an earlier collector version. Existing context remains readable; new ingestion accepts native JSON events only.
func (StoredOtlpContext) RawJSON ¶
func (r StoredOtlpContext) RawJSON() string
Returns the unmodified JSON received from the API
func (*StoredOtlpContext) UnmarshalJSON ¶
func (r *StoredOtlpContext) UnmarshalJSON(data []byte) error
type StoredOtlpContextResourceLogs ¶
type StoredOtlpContextResourceLogs struct {
Resource OtlpResource `json:"resource" api:"nullable"`
SchemaURL string `json:"schemaUrl" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Resource respjson.Field
SchemaURL respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Original resource group excluding scopeLogs.
func (StoredOtlpContextResourceLogs) RawJSON ¶
func (r StoredOtlpContextResourceLogs) RawJSON() string
Returns the unmodified JSON received from the API
func (*StoredOtlpContextResourceLogs) UnmarshalJSON ¶
func (r *StoredOtlpContextResourceLogs) UnmarshalJSON(data []byte) error
type StoredOtlpContextScopeLogs ¶
type StoredOtlpContextScopeLogs struct {
SchemaURL string `json:"schemaUrl" api:"nullable"`
Scope OtlpScope `json:"scope" api:"nullable"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
SchemaURL respjson.Field
Scope respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Original scope group excluding logRecords.
func (StoredOtlpContextScopeLogs) RawJSON ¶
func (r StoredOtlpContextScopeLogs) RawJSON() string
Returns the unmodified JSON received from the API
func (*StoredOtlpContextScopeLogs) UnmarshalJSON ¶
func (r *StoredOtlpContextScopeLogs) UnmarshalJSON(data []byte) error
type SubtitlePlayingTime ¶
type SubtitlePlayingTime struct {
// Subtitle language tag, or null for subtitles off.
Language string `json:"language" api:"required"`
PlayingTimeMs float64 `json:"playing_time_ms" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Language respjson.Field
PlayingTimeMs respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
func (SubtitlePlayingTime) RawJSON ¶
func (r SubtitlePlayingTime) RawJSON() string
Returns the unmodified JSON received from the API
func (SubtitlePlayingTime) ToParam ¶
func (r SubtitlePlayingTime) ToParam() SubtitlePlayingTimeParam
ToParam converts this SubtitlePlayingTime to a SubtitlePlayingTimeParam.
Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with SubtitlePlayingTimeParam.Overrides()
func (*SubtitlePlayingTime) UnmarshalJSON ¶
func (r *SubtitlePlayingTime) UnmarshalJSON(data []byte) error
type SubtitlePlayingTimeParam ¶
type SubtitlePlayingTimeParam struct {
// Subtitle language tag, or null for subtitles off.
Language param.Opt[string] `json:"language,omitzero" api:"required"`
PlayingTimeMs float64 `json:"playing_time_ms" api:"required"`
// contains filtered or unexported fields
}
The properties Language, PlayingTimeMs are required.
func (SubtitlePlayingTimeParam) MarshalJSON ¶
func (r SubtitlePlayingTimeParam) MarshalJSON() (data []byte, err error)
func (*SubtitlePlayingTimeParam) UnmarshalJSON ¶
func (r *SubtitlePlayingTimeParam) UnmarshalJSON(data []byte) error
type WatchTimeDistribution ¶
type WatchTimeDistribution struct {
// Mutually exclusive playing-time buckets: [0,10s), [10s,30s), [30s,60s), [1m,5m),
// [5m,infinity). Counts sum to sample_views.
Distribution WatchTimeDistributionDistribution `json:"distribution" api:"required"`
Median float64 `json:"median" api:"required"`
P95 float64 `json:"p95" api:"required"`
SampleViews int64 `json:"sample_views" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
Distribution respjson.Field
Median respjson.Field
P95 respjson.Field
SampleViews respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Playing time in milliseconds from one selected final event or latest snapshot per view. Measured zero is included; missing measurements are excluded. Percentiles use linear interpolation and are null without samples. This sample denominator differs from average_playing_time_ms, which uses all attempts.
func (WatchTimeDistribution) RawJSON ¶
func (r WatchTimeDistribution) RawJSON() string
Returns the unmodified JSON received from the API
func (*WatchTimeDistribution) UnmarshalJSON ¶
func (r *WatchTimeDistribution) UnmarshalJSON(data []byte) error
type WatchTimeDistributionDistribution ¶
type WatchTimeDistributionDistribution struct {
AtLeast5Minutes int64 `json:"at_least_5_minutes" api:"required"`
From1To5Minutes int64 `json:"from_1_to_5_minutes" api:"required"`
From10To30Seconds int64 `json:"from_10_to_30_seconds" api:"required"`
From30To60Seconds int64 `json:"from_30_to_60_seconds" api:"required"`
Under10Seconds int64 `json:"under_10_seconds" api:"required"`
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
JSON struct {
AtLeast5Minutes respjson.Field
From1To5Minutes respjson.Field
From10To30Seconds respjson.Field
From30To60Seconds respjson.Field
Under10Seconds respjson.Field
ExtraFields map[string]respjson.Field
// contains filtered or unexported fields
} `json:"-"`
}
Mutually exclusive playing-time buckets: [0,10s), [10s,30s), [30s,60s), [1m,5m), [5m,infinity). Counts sum to sample_views.
func (WatchTimeDistributionDistribution) RawJSON ¶
func (r WatchTimeDistributionDistribution) RawJSON() string
Returns the unmodified JSON received from the API
func (*WatchTimeDistributionDistribution) UnmarshalJSON ¶
func (r *WatchTimeDistributionDistribution) UnmarshalJSON(data []byte) error