Coverage for fingerprint_server_sdk / models / search_events_rare_device_percentile_bucket.py: 93%
15 statements
« prev ^ index » next coverage.py v7.14.0, created at 2026-05-15 09:18 +0000
« prev ^ index » next coverage.py v7.14.0, created at 2026-05-15 09:18 +0000
1"""
2Server API
3Fingerprint Server API allows you to get, search, and update Events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios.
4Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device.
6The version of the OpenAPI document: 4
7Contact: support@fingerprint.com
8Generated by OpenAPI Generator (https://openapi-generator.tech)
10Do not edit the class manually.
11""" # noqa: E501
13from __future__ import annotations
15import json
16from enum import Enum
18from typing_extensions import Self
21class SearchEventsRareDevicePercentileBucket(str, Enum):
22 """
23 Filter events by Device Rarity percentile bucket. `<p95` - device configuration is in the bottom 95% (most common). `p95-p99` - device is in the 95th to 99th percentile. `p99-p99.5` - device is in the 99th to 99.5th percentile. `p99.5-p99.9` - device is in the 99.5th to 99.9th percentile. `p99.9+` - device is in the top 0.1% (rarest). `not_seen` - device configuration has never been observed before.
24 """
26 """
27 allowed enum values
28 """
29 LESS_THAN_P95 = '<p95'
30 P95_MINUS_P99 = 'p95-p99'
31 P99_MINUS_P99_DOT_5 = 'p99-p99.5'
32 P99_DOT_5_MINUS_P99_DOT_9 = 'p99.5-p99.9'
33 P99_DOT_9_PLUS = 'p99.9+'
34 NOT_SEEN = 'not_seen'
36 @classmethod
37 def from_json(cls, json_str: str) -> Self:
38 """Create an instance of SearchEventsRareDevicePercentileBucket from a JSON string"""
39 return cls(json.loads(json_str))