{"modulePath":"github.com/chunkifydev/chunkify-analytics-go","version":"v0.10.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package shared\n\n## Types\n\n```go\ntype BrowserContext struct {\n\tSchemaVersion  float64 `json:\"schema_version\" api:\"required\"`\n\tBrowserName    string  `json:\"browser_name\" api:\"nullable\"`\n\tBrowserVersion string  `json:\"browser_version\" api:\"nullable\"`\n\tDeviceFamily   string  `json:\"device_family\" api:\"nullable\"`\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType     BrowserContextDeviceType `json:\"device_type\"`\n\tLanguage       string                   `json:\"language\" api:\"nullable\"`\n\tLanguagePrefix string                   `json:\"language_prefix\" api:\"nullable\"`\n\tOsName         string                   `json:\"os_name\" api:\"nullable\"`\n\tOsVersion      string                   `json:\"os_version\" api:\"nullable\"`\n\t// Current document HTTP(S) origin, without credentials. Null when unavailable or\n\t// longer than 2048 characters.\n\tPageOrigin string `json:\"page_origin\" api:\"nullable\"`\n\t// Current document pathname, without query parameters or fragment. Null when\n\t// unavailable or longer than 2048 characters. Paths may contain\n\t// application-defined identifiers.\n\tPagePath              string  `json:\"page_path\" api:\"nullable\"`\n\tPixelRatio            float64 `json:\"pixel_ratio\" api:\"nullable\"`\n\tScreenHeightPx        int64   `json:\"screen_height_px\" api:\"nullable\"`\n\tScreenWidthPx         int64   `json:\"screen_width_px\" api:\"nullable\"`\n\tTimezone              string  `json:\"timezone\" api:\"nullable\"`\n\tTimezoneOffsetMinutes int64   `json:\"timezone_offset_minutes\" api:\"nullable\"`\n\tUserAgent             string  `json:\"user_agent\" api:\"nullable\"`\n\tViewportHeightPx      int64   `json:\"viewport_height_px\" api:\"nullable\"`\n\tViewportWidthPx       int64   `json:\"viewport_width_px\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSchemaVersion         respjson.Field\n\t\tBrowserName           respjson.Field\n\t\tBrowserVersion        respjson.Field\n\t\tDeviceFamily          respjson.Field\n\t\tDeviceType            respjson.Field\n\t\tLanguage              respjson.Field\n\t\tLanguagePrefix        respjson.Field\n\t\tOsName                respjson.Field\n\t\tOsVersion             respjson.Field\n\t\tPageOrigin            respjson.Field\n\t\tPagePath              respjson.Field\n\t\tPixelRatio            respjson.Field\n\t\tScreenHeightPx        respjson.Field\n\t\tScreenWidthPx         respjson.Field\n\t\tTimezone              respjson.Field\n\t\tTimezoneOffsetMinutes respjson.Field\n\t\tUserAgent             respjson.Field\n\t\tViewportHeightPx      respjson.Field\n\t\tViewportWidthPx       respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser 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.\n\n```go\nfunc (r BrowserContext) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r BrowserContext) ToParam() BrowserContextParam\n```\nToParam converts this BrowserContext to a BrowserContextParam.\n\nWarning: 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()\n\n```go\nfunc (r *BrowserContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype BrowserContextDeviceType string\n```\n\n```go\nconst (\n\tBrowserContextDeviceTypeDesktop BrowserContextDeviceType = \"desktop\"\n\tBrowserContextDeviceTypeMobile  BrowserContextDeviceType = \"mobile\"\n\tBrowserContextDeviceTypeTablet  BrowserContextDeviceType = \"tablet\"\n\tBrowserContextDeviceTypeUnknown BrowserContextDeviceType = \"unknown\"\n)\n```\n\n```go\ntype BrowserContextParam struct {\n\tBrowserName    param.Opt[string] `json:\"browser_name,omitzero\"`\n\tBrowserVersion param.Opt[string] `json:\"browser_version,omitzero\"`\n\tDeviceFamily   param.Opt[string] `json:\"device_family,omitzero\"`\n\tLanguage       param.Opt[string] `json:\"language,omitzero\"`\n\tLanguagePrefix param.Opt[string] `json:\"language_prefix,omitzero\"`\n\tOsName         param.Opt[string] `json:\"os_name,omitzero\"`\n\tOsVersion      param.Opt[string] `json:\"os_version,omitzero\"`\n\t// Current document HTTP(S) origin, without credentials. Null when unavailable or\n\t// longer than 2048 characters.\n\tPageOrigin param.Opt[string] `json:\"page_origin,omitzero\"`\n\t// Current document pathname, without query parameters or fragment. Null when\n\t// unavailable or longer than 2048 characters. Paths may contain\n\t// application-defined identifiers.\n\tPagePath              param.Opt[string]  `json:\"page_path,omitzero\"`\n\tPixelRatio            param.Opt[float64] `json:\"pixel_ratio,omitzero\"`\n\tScreenHeightPx        param.Opt[int64]   `json:\"screen_height_px,omitzero\"`\n\tScreenWidthPx         param.Opt[int64]   `json:\"screen_width_px,omitzero\"`\n\tTimezone              param.Opt[string]  `json:\"timezone,omitzero\"`\n\tTimezoneOffsetMinutes param.Opt[int64]   `json:\"timezone_offset_minutes,omitzero\"`\n\tUserAgent             param.Opt[string]  `json:\"user_agent,omitzero\"`\n\tViewportHeightPx      param.Opt[int64]   `json:\"viewport_height_px,omitzero\"`\n\tViewportWidthPx       param.Opt[int64]   `json:\"viewport_width_px,omitzero\"`\n\t// Any of \"desktop\", \"mobile\", \"tablet\", \"unknown\".\n\tDeviceType BrowserContextDeviceType `json:\"device_type,omitzero\"`\n\t// This field can be elided, and will marshal its zero value as 1.\n\tSchemaVersion float64 `json:\"schema_version,omitzero\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nBrowser 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.\n\nThe property SchemaVersion is required.\n\n```go\nfunc (r BrowserContextParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *BrowserContextParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CustomDimensionUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nCustomDimensionUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u CustomDimensionUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u CustomDimensionUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u CustomDimensionUnion) AsString() (v string)\n```\n\n```go\nfunc (u CustomDimensionUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *CustomDimensionUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CustomDimensionUnionParam struct {\n\tOfString param.Opt[string]  `json:\",omitzero,inline\"`\n\tOfFloat  param.Opt[float64] `json:\",omitzero,inline\"`\n\tOfBool   param.Opt[bool]    `json:\",omitzero,inline\"`\n\t// contains filtered or unexported fields\n}\n```\nOnly one field can be non-zero.\n\nUse [param.IsOmitted](/github.com/chunkifydev/chunkify-analytics-go/packages/param#IsOmitted) to confirm if a field is set.\n\n```go\nfunc (u CustomDimensionUnionParam) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (u *CustomDimensionUnionParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CustomDimensions map[string]CustomDimensionUnion\n```\n\n```go\ntype CustomDimensionsParam map[string]CustomDimensionUnionParam\n```\n\n```go\ntype EventContext struct {\n\tSchemaVersion float64 `json:\"schema_version\" api:\"required\"`\n\t// Copied from browser_context.browser_name when primitive. See BrowserContext for\n\t// the SDK type; the collector currently accepts any primitive here.\n\tBrowserName EventContextBrowserNameUnion `json:\"browser_name\" api:\"nullable\"`\n\t// Copied from browser_context.browser_version when primitive. See BrowserContext\n\t// for the SDK type; the collector currently accepts any primitive here.\n\tBrowserVersion EventContextBrowserVersionUnion `json:\"browser_version\" api:\"nullable\"`\n\t// Approximate city name in English from the local City MMDB lookup. Null when\n\t// unknown. Location displays using the bundled DB-IP data must link to\n\t// https://db-ip.com.\n\tCity string `json:\"city\" api:\"nullable\"`\n\t// Continent code from the local City MMDB lookup: Africa, Antarctica, Asia,\n\t// Europe, North America, Oceania or South America. Null when unknown.\n\t//\n\t// Any of \"AF\", \"AN\", \"AS\", \"EU\", \"NA\", \"OC\", \"SA\".\n\tContinent EventContextContinent `json:\"continent\" api:\"nullable\"`\n\t// Country ISO 3166-1 alpha-2 code from the local City MMDB lookup. Null when\n\t// unknown. The request IP is discarded.\n\tCountry string `json:\"country\" api:\"nullable\"`\n\t// Copied from browser_context.device_family when primitive. See BrowserContext for\n\t// the SDK type; the collector currently accepts any primitive here.\n\tDeviceFamily EventContextDeviceFamilyUnion `json:\"device_family\" api:\"nullable\"`\n\t// Copied from browser_context.device_type when primitive. See BrowserContext for\n\t// the SDK type; the collector currently accepts any primitive here.\n\tDeviceType EventContextDeviceTypeUnion `json:\"device_type\" api:\"nullable\"`\n\t// Copied from browser_context.language when primitive. See BrowserContext for the\n\t// SDK type; the collector currently accepts any primitive here.\n\tLanguage EventContextLanguageUnion `json:\"language\" api:\"nullable\"`\n\t// Copied from browser_context.language_prefix when primitive. See BrowserContext\n\t// for the SDK type; the collector currently accepts any primitive here.\n\tLanguagePrefix EventContextLanguagePrefixUnion `json:\"language_prefix\" api:\"nullable\"`\n\t// Copied from browser_context.os_name when primitive. See BrowserContext for the\n\t// SDK type; the collector currently accepts any primitive here.\n\tOsName EventContextOsNameUnion `json:\"os_name\" api:\"nullable\"`\n\t// Copied from browser_context.os_version when primitive. See BrowserContext for\n\t// the SDK type; the collector currently accepts any primitive here.\n\tOsVersion EventContextOsVersionUnion `json:\"os_version\" api:\"nullable\"`\n\t// Current document HTTP(S) origin, without credentials. Null when unavailable or\n\t// longer than 2048 characters.\n\tPageOrigin string `json:\"page_origin\" api:\"nullable\"`\n\t// Current document pathname, without query parameters or fragment. Null when\n\t// unavailable or longer than 2048 characters. Paths may contain\n\t// application-defined identifiers.\n\tPagePath string `json:\"page_path\" api:\"nullable\"`\n\t// Copied from browser_context.pixel_ratio when primitive. See BrowserContext for\n\t// the SDK type; the collector currently accepts any primitive here.\n\tPixelRatio EventContextPixelRatioUnion `json:\"pixel_ratio\" api:\"nullable\"`\n\t// Copied from browser_context.screen_height_px when primitive. See BrowserContext\n\t// for the SDK type; the collector currently accepts any primitive here.\n\tScreenHeightPx EventContextScreenHeightPxUnion `json:\"screen_height_px\" api:\"nullable\"`\n\t// Copied from browser_context.screen_width_px when primitive. See BrowserContext\n\t// for the SDK type; the collector currently accepts any primitive here.\n\tScreenWidthPx EventContextScreenWidthPxUnion `json:\"screen_width_px\" api:\"nullable\"`\n\t// Copied from browser_context.timezone when primitive. See BrowserContext for the\n\t// SDK type; the collector currently accepts any primitive here.\n\tTimezone EventContextTimezoneUnion `json:\"timezone\" api:\"nullable\"`\n\t// Copied from browser_context.timezone_offset_minutes when primitive. See\n\t// BrowserContext for the SDK type; the collector currently accepts any primitive\n\t// here.\n\tTimezoneOffsetMinutes EventContextTimezoneOffsetMinutesUnion `json:\"timezone_offset_minutes\" api:\"nullable\"`\n\t// Copied from browser_context.user_agent when primitive. See BrowserContext for\n\t// the SDK type; the collector currently accepts any primitive here.\n\tUserAgent EventContextUserAgentUnion `json:\"user_agent\" api:\"nullable\"`\n\t// Copied from browser_context.viewport_height_px when primitive. See\n\t// BrowserContext for the SDK type; the collector currently accepts any primitive\n\t// here.\n\tViewportHeightPx EventContextViewportHeightPxUnion `json:\"viewport_height_px\" api:\"nullable\"`\n\t// Copied from browser_context.viewport_width_px when primitive. See BrowserContext\n\t// for the SDK type; the collector currently accepts any primitive here.\n\tViewportWidthPx EventContextViewportWidthPxUnion `json:\"viewport_width_px\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSchemaVersion         respjson.Field\n\t\tBrowserName           respjson.Field\n\t\tBrowserVersion        respjson.Field\n\t\tCity                  respjson.Field\n\t\tContinent             respjson.Field\n\t\tCountry               respjson.Field\n\t\tDeviceFamily          respjson.Field\n\t\tDeviceType            respjson.Field\n\t\tLanguage              respjson.Field\n\t\tLanguagePrefix        respjson.Field\n\t\tOsName                respjson.Field\n\t\tOsVersion             respjson.Field\n\t\tPageOrigin            respjson.Field\n\t\tPagePath              respjson.Field\n\t\tPixelRatio            respjson.Field\n\t\tScreenHeightPx        respjson.Field\n\t\tScreenWidthPx         respjson.Field\n\t\tTimezone              respjson.Field\n\t\tTimezoneOffsetMinutes respjson.Field\n\t\tUserAgent             respjson.Field\n\t\tViewportHeightPx      respjson.Field\n\t\tViewportWidthPx       respjson.Field\n\t\tExtraFields           map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nBrowser context and locally derived continent/country/city. Request IP addresses are never added to events or stored context.\n\n```go\nfunc (r EventContext) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextBrowserNameUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextBrowserNameUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextBrowserNameUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextBrowserNameUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextBrowserNameUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextBrowserNameUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextBrowserNameUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextBrowserVersionUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextBrowserVersionUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextBrowserVersionUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextBrowserVersionUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextBrowserVersionUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextBrowserVersionUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextBrowserVersionUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextContinent string\n```\nContinent code from the local City MMDB lookup: Africa, Antarctica, Asia, Europe, North America, Oceania or South America. Null when unknown.\n\n```go\nconst (\n\tEventContextContinentAf EventContextContinent = \"AF\"\n\tEventContextContinentAn EventContextContinent = \"AN\"\n\tEventContextContinentAs EventContextContinent = \"AS\"\n\tEventContextContinentEu EventContextContinent = \"EU\"\n\tEventContextContinentNa EventContextContinent = \"NA\"\n\tEventContextContinentOc EventContextContinent = \"OC\"\n\tEventContextContinentSa EventContextContinent = \"SA\"\n)\n```\n\n```go\ntype EventContextDeviceFamilyUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextDeviceFamilyUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextDeviceFamilyUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextDeviceFamilyUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextDeviceFamilyUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextDeviceFamilyUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextDeviceFamilyUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextDeviceTypeUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextDeviceTypeUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextDeviceTypeUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextDeviceTypeUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextDeviceTypeUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextDeviceTypeUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextDeviceTypeUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextLanguagePrefixUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextLanguagePrefixUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextLanguagePrefixUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextLanguagePrefixUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextLanguagePrefixUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextLanguagePrefixUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextLanguagePrefixUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextLanguageUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextLanguageUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextLanguageUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextLanguageUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextLanguageUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextLanguageUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextLanguageUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextOsNameUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextOsNameUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextOsNameUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextOsNameUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextOsNameUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextOsNameUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextOsNameUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextOsVersionUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextOsVersionUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextOsVersionUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextOsVersionUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextOsVersionUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextOsVersionUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextOsVersionUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextPixelRatioUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextPixelRatioUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextPixelRatioUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextPixelRatioUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextPixelRatioUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextPixelRatioUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextPixelRatioUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextScreenHeightPxUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextScreenHeightPxUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextScreenHeightPxUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextScreenHeightPxUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextScreenHeightPxUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextScreenHeightPxUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextScreenHeightPxUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextScreenWidthPxUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextScreenWidthPxUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextScreenWidthPxUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextScreenWidthPxUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextScreenWidthPxUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextScreenWidthPxUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextScreenWidthPxUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextTimezoneOffsetMinutesUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextTimezoneOffsetMinutesUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextTimezoneOffsetMinutesUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextTimezoneOffsetMinutesUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextTimezoneOffsetMinutesUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextTimezoneOffsetMinutesUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextTimezoneOffsetMinutesUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextTimezoneUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextTimezoneUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextTimezoneUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextTimezoneUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextTimezoneUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextTimezoneUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextTimezoneUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextUserAgentUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextUserAgentUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextUserAgentUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextUserAgentUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextUserAgentUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextUserAgentUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextUserAgentUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextViewportHeightPxUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextViewportHeightPxUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextViewportHeightPxUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextViewportHeightPxUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextViewportHeightPxUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextViewportHeightPxUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextViewportHeightPxUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype EventContextViewportWidthPxUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [float64] instead of an object.\n\tOfFloat float64 `json:\",inline\"`\n\t// This field will be present if the value is a [bool] instead of an object.\n\tOfBool bool `json:\",inline\"`\n\tJSON   struct {\n\t\tOfString respjson.Field\n\t\tOfFloat  respjson.Field\n\t\tOfBool   respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nEventContextViewportWidthPxUnion contains all possible properties and values from \\[string], \\[float64], \\[bool].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfFloat OfBool]\n\n```go\nfunc (u EventContextViewportWidthPxUnion) AsBool() (v bool)\n```\n\n```go\nfunc (u EventContextViewportWidthPxUnion) AsFloat() (v float64)\n```\n\n```go\nfunc (u EventContextViewportWidthPxUnion) AsString() (v string)\n```\n\n```go\nfunc (u EventContextViewportWidthPxUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *EventContextViewportWidthPxUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype MetricCountRatio struct {\n\tRatio float64 `json:\"ratio\" api:\"required\"`\n\tViews int64   `json:\"views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tRatio       respjson.Field\n\t\tViews       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nView count and fraction of its documented denominator. The ratio is null when that denominator is zero.\n\n```go\nfunc (r MetricCountRatio) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *MetricCountRatio) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAnyValue struct {\n\tArrayValue  OtlpAnyValueArrayValue `json:\"arrayValue\" api:\"nullable\"`\n\tBoolValue   bool                   `json:\"boolValue\" api:\"nullable\"`\n\tBytesValue  string                 `json:\"bytesValue\" api:\"nullable\"`\n\tDoubleValue float64                `json:\"doubleValue\" api:\"nullable\"`\n\t// Signed int64. Strings avoid JavaScript precision loss.\n\tIntValue    OtlpAnyValueIntValueUnion `json:\"intValue\" api:\"nullable\"`\n\tKvlistValue OtlpAnyValueKvlistValue   `json:\"kvlistValue\" api:\"nullable\"`\n\tStringValue string                    `json:\"stringValue\" api:\"nullable\"`\n\tExtraFields map[string]any            `json:\"\" api:\"extrafields\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tIntValue    respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tStringValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nStandard OTLP AnyValue in a preserved resource, scope or body. This collector does not decode these fields into the event.\n\n```go\nfunc (r OtlpAnyValue) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAnyValue) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAnyValueArrayValue struct {\n\tValues []OtlpAnyValue `json:\"values\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tValues      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAnyValueArrayValue) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAnyValueArrayValue) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAnyValueIntValueUnion struct {\n\t// This field will be present if the value is a [string] instead of an object.\n\tOfString string `json:\",inline\"`\n\t// This field will be present if the value is a [int64] instead of an object.\n\tOfInt int64 `json:\",inline\"`\n\tJSON  struct {\n\t\tOfString respjson.Field\n\t\tOfInt    respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOtlpAnyValueIntValueUnion contains all possible properties and values from \\[string], \\[int64].\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\nIf the underlying value is not a json object, one of the following properties will be valid: OfString OfInt]\n\n```go\nfunc (u OtlpAnyValueIntValueUnion) AsInt() (v int64)\n```\n\n```go\nfunc (u OtlpAnyValueIntValueUnion) AsString() (v string)\n```\n\n```go\nfunc (u OtlpAnyValueIntValueUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAnyValueIntValueUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAnyValueKvlistValue struct {\n\tValues []OtlpContextAttribute `json:\"values\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tValues      respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAnyValueKvlistValue) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAnyValueKvlistValue) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttribute struct {\n\tKey string `json:\"key\" api:\"nullable\"`\n\t// A typed log attribute. At most one value field can be set. Binary values are\n\t// unsupported.\n\tValue OtlpAttributeValueUnion `json:\"value\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey         respjson.Field\n\t\tValue       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nAn absent or null key decodes to the empty string; duplicate decoded keys reject the request. An absent value decodes to null.\n\n```go\nfunc (r OtlpAttribute) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttribute) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueObject struct {\n\tArrayValue  any `json:\"arrayValue\" api:\"nullable\"`\n\tBoolValue   any `json:\"boolValue\" api:\"nullable\"`\n\tBytesValue  any `json:\"bytesValue\" api:\"nullable\"`\n\tDoubleValue any `json:\"doubleValue\" api:\"nullable\"`\n\tIntValue    any `json:\"intValue\" api:\"nullable\"`\n\tKvlistValue any `json:\"kvlistValue\" api:\"nullable\"`\n\tStringValue any `json:\"stringValue\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tIntValue    respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tStringValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAttributeValueObject) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueObject) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueObject2 struct {\n\tStringValue any `json:\"stringValue\" api:\"required\"`\n\tArrayValue  any `json:\"arrayValue\" api:\"nullable\"`\n\tBoolValue   any `json:\"boolValue\" api:\"nullable\"`\n\tBytesValue  any `json:\"bytesValue\" api:\"nullable\"`\n\tDoubleValue any `json:\"doubleValue\" api:\"nullable\"`\n\tIntValue    any `json:\"intValue\" api:\"nullable\"`\n\tKvlistValue any `json:\"kvlistValue\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStringValue respjson.Field\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tIntValue    respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAttributeValueObject2) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueObject2) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueObject3 struct {\n\tBoolValue   any `json:\"boolValue\" api:\"required\"`\n\tArrayValue  any `json:\"arrayValue\" api:\"nullable\"`\n\tBytesValue  any `json:\"bytesValue\" api:\"nullable\"`\n\tDoubleValue any `json:\"doubleValue\" api:\"nullable\"`\n\tIntValue    any `json:\"intValue\" api:\"nullable\"`\n\tKvlistValue any `json:\"kvlistValue\" api:\"nullable\"`\n\tStringValue any `json:\"stringValue\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBoolValue   respjson.Field\n\t\tArrayValue  respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tIntValue    respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tStringValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAttributeValueObject3) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueObject3) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueObject4 struct {\n\tIntValue    any `json:\"intValue\" api:\"required\"`\n\tArrayValue  any `json:\"arrayValue\" api:\"nullable\"`\n\tBoolValue   any `json:\"boolValue\" api:\"nullable\"`\n\tBytesValue  any `json:\"bytesValue\" api:\"nullable\"`\n\tDoubleValue any `json:\"doubleValue\" api:\"nullable\"`\n\tKvlistValue any `json:\"kvlistValue\" api:\"nullable\"`\n\tStringValue any `json:\"stringValue\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tIntValue    respjson.Field\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tStringValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAttributeValueObject4) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueObject4) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueObject5 struct {\n\tDoubleValue any `json:\"doubleValue\" api:\"required\"`\n\tArrayValue  any `json:\"arrayValue\" api:\"nullable\"`\n\tBoolValue   any `json:\"boolValue\" api:\"nullable\"`\n\tBytesValue  any `json:\"bytesValue\" api:\"nullable\"`\n\tIntValue    any `json:\"intValue\" api:\"nullable\"`\n\tKvlistValue any `json:\"kvlistValue\" api:\"nullable\"`\n\tStringValue any `json:\"stringValue\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDoubleValue respjson.Field\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tIntValue    respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tStringValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAttributeValueObject5) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueObject5) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueObject6 struct {\n\tArrayValue  any `json:\"arrayValue\" api:\"required\"`\n\tBoolValue   any `json:\"boolValue\" api:\"nullable\"`\n\tBytesValue  any `json:\"bytesValue\" api:\"nullable\"`\n\tDoubleValue any `json:\"doubleValue\" api:\"nullable\"`\n\tIntValue    any `json:\"intValue\" api:\"nullable\"`\n\tKvlistValue any `json:\"kvlistValue\" api:\"nullable\"`\n\tStringValue any `json:\"stringValue\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tIntValue    respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tStringValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAttributeValueObject6) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueObject6) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueObject7 struct {\n\tKvlistValue any `json:\"kvlistValue\" api:\"required\"`\n\tArrayValue  any `json:\"arrayValue\" api:\"nullable\"`\n\tBoolValue   any `json:\"boolValue\" api:\"nullable\"`\n\tBytesValue  any `json:\"bytesValue\" api:\"nullable\"`\n\tDoubleValue any `json:\"doubleValue\" api:\"nullable\"`\n\tIntValue    any `json:\"intValue\" api:\"nullable\"`\n\tStringValue any `json:\"stringValue\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKvlistValue respjson.Field\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tIntValue    respjson.Field\n\t\tStringValue respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpAttributeValueObject7) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueObject7) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpAttributeValueUnion struct {\n\tArrayValue  any `json:\"arrayValue\"`\n\tBoolValue   any `json:\"boolValue\"`\n\tBytesValue  any `json:\"bytesValue\"`\n\tDoubleValue any `json:\"doubleValue\"`\n\tIntValue    any `json:\"intValue\"`\n\tKvlistValue any `json:\"kvlistValue\"`\n\tStringValue any `json:\"stringValue\"`\n\tJSON        struct {\n\t\tArrayValue  respjson.Field\n\t\tBoolValue   respjson.Field\n\t\tBytesValue  respjson.Field\n\t\tDoubleValue respjson.Field\n\t\tIntValue    respjson.Field\n\t\tKvlistValue respjson.Field\n\t\tStringValue respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOtlpAttributeValueUnion contains all possible properties and values from [OtlpAttributeValueObject](#OtlpAttributeValueObject), [OtlpAttributeValueObject2](#OtlpAttributeValueObject2), [OtlpAttributeValueObject3](#OtlpAttributeValueObject3), [OtlpAttributeValueObject4](#OtlpAttributeValueObject4), [OtlpAttributeValueObject5](#OtlpAttributeValueObject5), [OtlpAttributeValueObject6](#OtlpAttributeValueObject6), [OtlpAttributeValueObject7](#OtlpAttributeValueObject7).\n\nUse the methods beginning with 'As' to cast the union to one of its variants.\n\n```go\nfunc (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject() (v OtlpAttributeValueObject)\n```\n\n```go\nfunc (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject2() (v OtlpAttributeValueObject2)\n```\n\n```go\nfunc (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject3() (v OtlpAttributeValueObject3)\n```\n\n```go\nfunc (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject4() (v OtlpAttributeValueObject4)\n```\n\n```go\nfunc (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject5() (v OtlpAttributeValueObject5)\n```\n\n```go\nfunc (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject6() (v OtlpAttributeValueObject6)\n```\n\n```go\nfunc (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject7() (v OtlpAttributeValueObject7)\n```\n\n```go\nfunc (u OtlpAttributeValueUnion) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpAttributeValueUnion) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpContextAttribute struct {\n\tKey string `json:\"key\" api:\"required\"`\n\t// Standard OTLP AnyValue in a preserved resource, scope or body. This collector\n\t// does not decode these fields into the event.\n\tValue *OtlpAnyValue `json:\"value\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tKey         respjson.Field\n\t\tValue       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpContextAttribute) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpContextAttribute) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpLogRecord struct {\n\tAttributes []OtlpAttribute `json:\"attributes\" api:\"required\"`\n\t// Standard OTLP AnyValue in a preserved resource, scope or body. This collector\n\t// does not decode these fields into the event.\n\tBody                   OtlpAnyValue `json:\"body\" api:\"nullable\"`\n\tDroppedAttributesCount int64        `json:\"droppedAttributesCount\" api:\"nullable\"`\n\tEventName              string       `json:\"eventName\" api:\"nullable\"`\n\tFlags                  int64        `json:\"flags\" api:\"nullable\"`\n\tObservedTimeUnixNano   string       `json:\"observedTimeUnixNano\" api:\"nullable\"`\n\tSeverityNumber         int64        `json:\"severityNumber\" api:\"nullable\"`\n\tSeverityText           string       `json:\"severityText\" api:\"nullable\"`\n\tSpanID                 string       `json:\"spanId\" api:\"nullable\"`\n\tTimeUnixNano           string       `json:\"timeUnixNano\" api:\"nullable\"`\n\tTraceID                string       `json:\"traceId\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAttributes             respjson.Field\n\t\tBody                   respjson.Field\n\t\tDroppedAttributesCount respjson.Field\n\t\tEventName              respjson.Field\n\t\tFlags                  respjson.Field\n\t\tObservedTimeUnixNano   respjson.Field\n\t\tSeverityNumber         respjson.Field\n\t\tSeverityText           respjson.Field\n\t\tSpanID                 respjson.Field\n\t\tTimeUnixNano           respjson.Field\n\t\tTraceID                respjson.Field\n\t\tExtraFields            map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nA playback event in log attributes. Duplicate attributes and invalid event fields reject the request.\n\n```go\nfunc (r OtlpLogRecord) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpLogRecord) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpResource struct {\n\tAttributes             []OtlpContextAttribute `json:\"attributes\" api:\"nullable\"`\n\tDroppedAttributesCount int64                  `json:\"droppedAttributesCount\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAttributes             respjson.Field\n\t\tDroppedAttributesCount respjson.Field\n\t\tExtraFields            map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpResource) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpResource) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype OtlpScope struct {\n\tAttributes             []OtlpContextAttribute `json:\"attributes\" api:\"nullable\"`\n\tDroppedAttributesCount int64                  `json:\"droppedAttributesCount\" api:\"nullable\"`\n\tName                   string                 `json:\"name\" api:\"nullable\"`\n\tVersion                string                 `json:\"version\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAttributes             respjson.Field\n\t\tDroppedAttributesCount respjson.Field\n\t\tName                   respjson.Field\n\t\tVersion                respjson.Field\n\t\tExtraFields            map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r OtlpScope) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *OtlpScope) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRatePlayingTime struct {\n\tPlayingTimeMs float64 `json:\"playing_time_ms\" api:\"required\"`\n\t// Playback rate, rounded to two decimals.\n\tRate float64 `json:\"rate\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tPlayingTimeMs respjson.Field\n\t\tRate          respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PlaybackRatePlayingTime) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r PlaybackRatePlayingTime) ToParam() PlaybackRatePlayingTimeParam\n```\nToParam converts this PlaybackRatePlayingTime to a PlaybackRatePlayingTimeParam.\n\nWarning: 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()\n\n```go\nfunc (r *PlaybackRatePlayingTime) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackRatePlayingTimeParam struct {\n\tPlayingTimeMs float64 `json:\"playing_time_ms\" api:\"required\"`\n\t// Playback rate, rounded to two decimals.\n\tRate float64 `json:\"rate\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties PlayingTimeMs, Rate are required.\n\n```go\nfunc (r PlaybackRatePlayingTimeParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlaybackRatePlayingTimeParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlaybackScore struct {\n\t// Sessions contributing a score, including recorded failures. A per-session result\n\t// is zero or one.\n\tSampleViews int64 `json:\"sample_views\" api:\"required\"`\n\t// Mean of measured per-session playback scores, or null without scored sessions.\n\t// Each session uses startup = 8 / (8 + startup_time_ms / 1000), smoothness =\n\t// exp(-10 _ buffering_ratio), and scores 100 _ startup^0.30 \\* smoothness^0.70.\n\t// Buffering ratio is rebuffer duration divided by playing plus rebuffer duration.\n\t// The 30% startup and 70% smoothness weights are heuristic. A recorded fatal error\n\t// or failed_before_start outcome scores zero. Other sessions require positive\n\t// playing time and known startup and rebuffer durations; ended_before_start and\n\t// unknown outcomes are unscored. Buffering excludes startup, pauses and seeks. The\n\t// score does not use interruption count or measure picture quality.\n\tValue float64 `json:\"value\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSampleViews respjson.Field\n\t\tValue       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PlaybackScore) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PlaybackScore) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayedRange struct {\n\t// Exclusive media position in seconds, greater than start_seconds.\n\tEndSeconds float64 `json:\"end_seconds\" api:\"required\"`\n\t// Inclusive media position in seconds.\n\tStartSeconds float64 `json:\"start_seconds\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEndSeconds   respjson.Field\n\t\tStartSeconds respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PlayedRange) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r PlayedRange) ToParam() PlayedRangeParam\n```\nToParam converts this PlayedRange to a PlayedRangeParam.\n\nWarning: 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()\n\n```go\nfunc (r *PlayedRange) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PlayedRangeParam struct {\n\t// Exclusive media position in seconds, greater than start_seconds.\n\tEndSeconds float64 `json:\"end_seconds\" api:\"required\"`\n\t// Inclusive media position in seconds.\n\tStartSeconds float64 `json:\"start_seconds\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties EndSeconds, StartSeconds are required.\n\n```go\nfunc (r PlayedRangeParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *PlayedRangeParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ProgressReached struct {\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tAt100Percent MetricCountRatio `json:\"at_100_percent\" api:\"required\"`\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tAt25Percent MetricCountRatio `json:\"at_25_percent\" api:\"required\"`\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tAt50Percent MetricCountRatio `json:\"at_50_percent\" api:\"required\"`\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tAt75Percent MetricCountRatio `json:\"at_75_percent\" api:\"required\"`\n\tSampleViews int64            `json:\"sample_views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAt100Percent respjson.Field\n\t\tAt25Percent  respjson.Field\n\t\tAt50Percent  respjson.Field\n\t\tAt75Percent  respjson.Field\n\t\tSampleViews  respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nFurthest 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.\n\n```go\nfunc (r ProgressReached) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ProgressReached) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionPlayingTime struct {\n\tBitrateBps    float64 `json:\"bitrate_bps\" api:\"required\"`\n\tCodec         string  `json:\"codec\" api:\"required\"`\n\tFrameRate     float64 `json:\"frame_rate\" api:\"required\"`\n\tHeight        float64 `json:\"height\" api:\"required\"`\n\tPlayingTimeMs float64 `json:\"playing_time_ms\" api:\"required\"`\n\tWidth         float64 `json:\"width\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBitrateBps    respjson.Field\n\t\tCodec         respjson.Field\n\t\tFrameRate     respjson.Field\n\t\tHeight        respjson.Field\n\t\tPlayingTimeMs respjson.Field\n\t\tWidth         respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r RenditionPlayingTime) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r RenditionPlayingTime) ToParam() RenditionPlayingTimeParam\n```\nToParam converts this RenditionPlayingTime to a RenditionPlayingTimeParam.\n\nWarning: 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()\n\n```go\nfunc (r *RenditionPlayingTime) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype RenditionPlayingTimeParam struct {\n\tBitrateBps    param.Opt[float64] `json:\"bitrate_bps,omitzero\" api:\"required\"`\n\tCodec         param.Opt[string]  `json:\"codec,omitzero\" api:\"required\"`\n\tFrameRate     param.Opt[float64] `json:\"frame_rate,omitzero\" api:\"required\"`\n\tHeight        param.Opt[float64] `json:\"height,omitzero\" api:\"required\"`\n\tWidth         param.Opt[float64] `json:\"width,omitzero\" api:\"required\"`\n\tPlayingTimeMs float64            `json:\"playing_time_ms\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties BitrateBps, Codec, FrameRate, Height, PlayingTimeMs, Width are required.\n\n```go\nfunc (r RenditionPlayingTimeParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *RenditionPlayingTimeParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StartupOutcomes struct {\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tEndedBeforeStart MetricCountRatio `json:\"ended_before_start\" api:\"required\"`\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tFailedBeforeStart MetricCountRatio `json:\"failed_before_start\" api:\"required\"`\n\tSampleViews       int64            `json:\"sample_views\" api:\"required\"`\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tStarted MetricCountRatio `json:\"started\" api:\"required\"`\n\t// View count and fraction of its documented denominator. The ratio is null when\n\t// that denominator is zero.\n\tUnknown MetricCountRatio `json:\"unknown\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEndedBeforeStart  respjson.Field\n\t\tFailedBeforeStart respjson.Field\n\t\tSampleViews       respjson.Field\n\t\tStarted           respjson.Field\n\t\tUnknown           respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nMutually 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.\n\n```go\nfunc (r StartupOutcomes) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StartupOutcomes) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StoredOtlpContext struct {\n\t// A playback event in log attributes. Duplicate attributes and invalid event\n\t// fields reject the request.\n\tLogRecord OtlpLogRecord `json:\"log_record\" api:\"required\"`\n\t// Original resource group excluding scopeLogs.\n\tResourceLogs StoredOtlpContextResourceLogs `json:\"resource_logs\" api:\"required\"`\n\t// Original scope group excluding logRecords.\n\tScopeLogs StoredOtlpContextScopeLogs `json:\"scope_logs\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLogRecord    respjson.Field\n\t\tResourceLogs respjson.Field\n\t\tScopeLogs    respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nLegacy context present for an event received through OTLP by an earlier collector version. Existing context remains readable; new ingestion accepts native JSON events only.\n\n```go\nfunc (r StoredOtlpContext) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StoredOtlpContext) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StoredOtlpContextResourceLogs struct {\n\tResource  OtlpResource `json:\"resource\" api:\"nullable\"`\n\tSchemaURL string       `json:\"schemaUrl\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tResource    respjson.Field\n\t\tSchemaURL   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOriginal resource group excluding scopeLogs.\n\n```go\nfunc (r StoredOtlpContextResourceLogs) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StoredOtlpContextResourceLogs) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StoredOtlpContextScopeLogs struct {\n\tSchemaURL string    `json:\"schemaUrl\" api:\"nullable\"`\n\tScope     OtlpScope `json:\"scope\" api:\"nullable\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tSchemaURL   respjson.Field\n\t\tScope       respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nOriginal scope group excluding logRecords.\n\n```go\nfunc (r StoredOtlpContextScopeLogs) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *StoredOtlpContextScopeLogs) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitlePlayingTime struct {\n\t// Subtitle language tag, or null for subtitles off.\n\tLanguage      string  `json:\"language\" api:\"required\"`\n\tPlayingTimeMs float64 `json:\"playing_time_ms\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tLanguage      respjson.Field\n\t\tPlayingTimeMs respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r SubtitlePlayingTime) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r SubtitlePlayingTime) ToParam() SubtitlePlayingTimeParam\n```\nToParam converts this SubtitlePlayingTime to a SubtitlePlayingTimeParam.\n\nWarning: 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()\n\n```go\nfunc (r *SubtitlePlayingTime) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype SubtitlePlayingTimeParam struct {\n\t// Subtitle language tag, or null for subtitles off.\n\tLanguage      param.Opt[string] `json:\"language,omitzero\" api:\"required\"`\n\tPlayingTimeMs float64           `json:\"playing_time_ms\" api:\"required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Language, PlayingTimeMs are required.\n\n```go\nfunc (r SubtitlePlayingTimeParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *SubtitlePlayingTimeParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WatchTimeDistribution struct {\n\t// Mutually exclusive playing-time buckets: [0,10s), [10s,30s), [30s,60s), [1m,5m),\n\t// [5m,infinity). Counts sum to sample_views.\n\tDistribution WatchTimeDistributionDistribution `json:\"distribution\" api:\"required\"`\n\tMedian       float64                           `json:\"median\" api:\"required\"`\n\tP95          float64                           `json:\"p95\" api:\"required\"`\n\tSampleViews  int64                             `json:\"sample_views\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tDistribution respjson.Field\n\t\tMedian       respjson.Field\n\t\tP95          respjson.Field\n\t\tSampleViews  respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nPlaying 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.\n\n```go\nfunc (r WatchTimeDistribution) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WatchTimeDistribution) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WatchTimeDistributionDistribution struct {\n\tAtLeast5Minutes   int64 `json:\"at_least_5_minutes\" api:\"required\"`\n\tFrom1To5Minutes   int64 `json:\"from_1_to_5_minutes\" api:\"required\"`\n\tFrom10To30Seconds int64 `json:\"from_10_to_30_seconds\" api:\"required\"`\n\tFrom30To60Seconds int64 `json:\"from_30_to_60_seconds\" api:\"required\"`\n\tUnder10Seconds    int64 `json:\"under_10_seconds\" api:\"required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAtLeast5Minutes   respjson.Field\n\t\tFrom1To5Minutes   respjson.Field\n\t\tFrom10To30Seconds respjson.Field\n\t\tFrom30To60Seconds respjson.Field\n\t\tUnder10Seconds    respjson.Field\n\t\tExtraFields       map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\nMutually exclusive playing-time buckets: \\[0,10s), \\[10s,30s), \\[30s,60s), \\[1m,5m), \\[5m,infinity). Counts sum to sample\\_views.\n\n```go\nfunc (r WatchTimeDistributionDistribution) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WatchTimeDistributionDistribution) UnmarshalJSON(data []byte) error\n```\n\n","path":"github.com/chunkifydev/chunkify-analytics-go/shared","name":"shared","synopsis":"","isRedistributable":true}
