""" Options: Date: 2025-04-03 08:57:19 Version: 8.61 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://blazordiffusion.com #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetAnalyticsReports.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class RequestSummary: name: Optional[str] = None total_requests: int = 0 total_request_length: int = 0 min_request_length: int = 0 max_request_length: int = 0 total_duration: float = 0.0 min_duration: float = 0.0 max_duration: float = 0.0 status: Optional[Dict[int, int]] = None durations: Optional[Dict[str, int]] = None apis: Optional[Dict[str, int]] = None users: Optional[Dict[str, int]] = None ips: Optional[Dict[str, int]] = None api_keys: Optional[Dict[str, int]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AnalyticsReports: id: int = 0 created: datetime.datetime = datetime.datetime(1, 1, 1) version: Decimal = decimal.Decimal(0) apis: Optional[Dict[str, RequestSummary]] = None users: Optional[Dict[str, RequestSummary]] = None tags: Optional[Dict[str, RequestSummary]] = None status: Optional[Dict[str, RequestSummary]] = None days: Optional[Dict[str, RequestSummary]] = None api_keys: Optional[Dict[str, RequestSummary]] = None ips: Optional[Dict[str, RequestSummary]] = None browsers: Optional[Dict[str, RequestSummary]] = None devices: Optional[Dict[str, RequestSummary]] = None bots: Optional[Dict[str, RequestSummary]] = None durations: Optional[Dict[str, int]] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetAnalyticsReportsResponse: result: Optional[AnalyticsReports] = None response_status: Optional[ResponseStatus] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetAnalyticsReports(IReturn[GetAnalyticsReportsResponse], IGet): month: Optional[datetime.datetime] = None filter: Optional[str] = None value: Optional[str] = None force: Optional[bool] = None