#![cfg(feature = "cloudflare_radar")]
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
#![allow(clippy::missing_errors_doc, clippy::doc_markdown, clippy::useless_format)]
#![allow(unused_imports)]
use foundation_netio::{DynNetClient, PreparedRequestBuilder};
use foundation_netio::shared::client::http_client::HttpClient;
use serde::{Deserialize, Serialize};
use foundation_macros::JsonHash;
use super::shared::ApiResponse;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponse {
pub result: RadarGetAnnotationsOutagesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponseResult {
pub annotations: Vec<RadarGetAnnotationsOutagesResponseResultAnnotationsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponseResultAnnotationsItem {
pub asns: Vec<i64>,
#[serde(rename = "asnsDetails")]
pub asns_details: Vec<RadarGetAnnotationsOutagesResponseResultAnnotationsItemAsnsDetailsItem>,
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: Option<String>,
#[serde(rename = "endDate")]
pub end_date: Option<String>,
#[serde(rename = "eventType")]
pub event_type: String,
pub id: String,
#[serde(rename = "linkedUrl")]
pub linked_url: Option<String>,
pub locations: Vec<String>,
#[serde(rename = "locationsDetails")]
pub locations_details: Vec<RadarGetAnnotationsOutagesResponseResultAnnotationsItemLocationsDetailsItem>,
pub origins: Vec<String>,
#[serde(rename = "originsDetails")]
pub origins_details: Vec<RadarGetAnnotationsOutagesResponseResultAnnotationsItemOriginsDetailsItem>,
pub outage: RadarGetAnnotationsOutagesResponseResultAnnotationsItemOutage,
pub scope: Option<String>,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponseResultAnnotationsItemAsnsDetailsItem {
pub asn: String,
pub locations: Option<RadarGetAnnotationsOutagesResponseResultAnnotationsItemAsnsDetailsItemLocations>,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponseResultAnnotationsItemAsnsDetailsItemLocations {
pub code: String,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponseResultAnnotationsItemLocationsDetailsItem {
pub code: String,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponseResultAnnotationsItemOriginsDetailsItem {
pub name: String,
pub origin: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesResponseResultAnnotationsItemOutage {
#[serde(rename = "outageCause")]
pub outage_cause: String,
#[serde(rename = "outageType")]
pub outage_type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesTopResponse {
pub result: RadarGetAnnotationsOutagesTopResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesTopResponseResult {
pub annotations: Vec<RadarGetAnnotationsOutagesTopResponseResultAnnotationsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesTopResponseResultAnnotationsItem {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponse {
pub result: RadarGetAnnotationsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponseResult {
pub annotations: Vec<RadarGetAnnotationsResponseResultAnnotationsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponseResultAnnotationsItem {
pub asns: Vec<i64>,
#[serde(rename = "asnsDetails")]
pub asns_details: Vec<RadarGetAnnotationsResponseResultAnnotationsItemAsnsDetailsItem>,
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: Option<String>,
#[serde(rename = "endDate")]
pub end_date: Option<String>,
#[serde(rename = "eventType")]
pub event_type: String,
pub id: String,
#[serde(rename = "linkedUrl")]
pub linked_url: Option<String>,
pub locations: Vec<String>,
#[serde(rename = "locationsDetails")]
pub locations_details: Vec<RadarGetAnnotationsResponseResultAnnotationsItemLocationsDetailsItem>,
pub origins: Vec<String>,
#[serde(rename = "originsDetails")]
pub origins_details: Vec<RadarGetAnnotationsResponseResultAnnotationsItemOriginsDetailsItem>,
pub outage: RadarGetAnnotationsResponseResultAnnotationsItemOutage,
pub scope: Option<String>,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponseResultAnnotationsItemAsnsDetailsItem {
pub asn: String,
pub locations: Option<RadarGetAnnotationsResponseResultAnnotationsItemAsnsDetailsItemLocations>,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponseResultAnnotationsItemAsnsDetailsItemLocations {
pub code: String,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponseResultAnnotationsItemLocationsDetailsItem {
pub code: String,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponseResultAnnotationsItemOriginsDetailsItem {
pub name: String,
pub origin: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAnnotationsResponseResultAnnotationsItemOutage {
#[serde(rename = "outageCause")]
pub outage_cause: String,
#[serde(rename = "outageType")]
pub outage_type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAsnsAsSetResponse {
pub result: RadarGetAsnsAsSetResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAsnsAsSetResponseResult {
pub as_sets: Vec<RadarGetAsnsAsSetResponseResultAsSetsItem>,
pub paths: Vec<Vec<String>>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAsnsAsSetResponseResultAsSetsItem {
pub as_members_count: i64,
pub as_set_members_count: i64,
pub as_set_upstreams_count: i64,
pub asn_cone_size: i64,
pub hierarchical_asn: Option<i64>,
pub inferred_asn: Option<i64>,
pub irr_sources: Vec<String>,
pub name: String,
pub peeringdb_asn: Option<i64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAsnsRelResponse {
pub result: RadarGetAsnsRelResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAsnsRelResponseResult {
pub meta: RadarGetAsnsRelResponseResultMeta,
pub rels: Vec<RadarGetAsnsRelResponseResultRelsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAsnsRelResponseResultMeta {
pub data_time: String,
pub query_time: String,
pub total_peers: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetAsnsRelResponseResultRelsItem {
pub asn1: i64,
pub asn1_country: String,
pub asn1_name: String,
pub asn2: i64,
pub asn2_country: String,
pub asn2_name: String,
pub rel: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateAuthoritiesResponse {
pub result: RadarGetCertificateAuthoritiesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateAuthoritiesResponseResult {
#[serde(rename = "certificateAuthorities")]
pub certificate_authorities: Vec<RadarGetCertificateAuthoritiesResponseResultCertificateAuthoritiesItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateAuthoritiesResponseResultCertificateAuthoritiesItem {
#[serde(rename = "certificateRecordType")]
pub certificate_record_type: String,
pub country: String,
#[serde(rename = "countryName")]
pub country_name: String,
pub name: String,
pub owner: String,
#[serde(rename = "parentName")]
pub parent_name: String,
#[serde(rename = "parentSha256Fingerprint")]
pub parent_sha256_fingerprint: String,
#[serde(rename = "revocationStatus")]
pub revocation_status: String,
#[serde(rename = "sha256Fingerprint")]
pub sha256_fingerprint: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateAuthorityDetailsResponse {
pub result: RadarGetCertificateAuthorityDetailsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateAuthorityDetailsResponseResult {
#[serde(rename = "certificateAuthority")]
pub certificate_authority: RadarGetCertificateAuthorityDetailsResponseResultCertificateAuthority,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateAuthorityDetailsResponseResultCertificateAuthority {
#[serde(rename = "appleStatus")]
pub apple_status: String,
#[serde(rename = "authorityKeyIdentifier")]
pub authority_key_identifier: String,
#[serde(rename = "certificateRecordType")]
pub certificate_record_type: String,
#[serde(rename = "chromeStatus")]
pub chrome_status: String,
pub country: String,
#[serde(rename = "countryName")]
pub country_name: String,
#[serde(rename = "microsoftStatus")]
pub microsoft_status: String,
#[serde(rename = "mozillaStatus")]
pub mozilla_status: String,
pub name: String,
pub owner: String,
#[serde(rename = "parentName")]
pub parent_name: String,
#[serde(rename = "parentSha256Fingerprint")]
pub parent_sha256_fingerprint: String,
pub related: Vec<RadarGetCertificateAuthorityDetailsResponseResultCertificateAuthorityRelatedItem>,
#[serde(rename = "revocationStatus")]
pub revocation_status: String,
#[serde(rename = "sha256Fingerprint")]
pub sha256_fingerprint: String,
#[serde(rename = "subjectKeyIdentifier")]
pub subject_key_identifier: String,
#[serde(rename = "validFrom")]
pub valid_from: String,
#[serde(rename = "validTo")]
pub valid_to: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateAuthorityDetailsResponseResultCertificateAuthorityRelatedItem {
#[serde(rename = "certificateRecordType")]
pub certificate_record_type: String,
pub name: String,
#[serde(rename = "revocationStatus")]
pub revocation_status: String,
#[serde(rename = "sha256Fingerprint")]
pub sha256_fingerprint: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogDetailsResponse {
pub result: RadarGetCertificateLogDetailsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogDetailsResponseResult {
#[serde(rename = "certificateLog")]
pub certificate_log: RadarGetCertificateLogDetailsResponseResultCertificateLog,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogDetailsResponseResultCertificateLog {
pub api: String,
#[serde(rename = "avgThroughput")]
pub avg_throughput: f64,
pub description: String,
#[serde(rename = "endExclusive")]
pub end_exclusive: String,
#[serde(rename = "lastUpdate")]
pub last_update: String,
pub operator: String,
pub performance: Option<RadarGetCertificateLogDetailsResponseResultCertificateLogPerformance>,
pub related: Vec<RadarGetCertificateLogDetailsResponseResultCertificateLogRelatedItem>,
pub slug: String,
#[serde(rename = "startInclusive")]
pub start_inclusive: String,
pub state: String,
#[serde(rename = "stateTimestamp")]
pub state_timestamp: String,
#[serde(rename = "submittableCertCount")]
pub submittable_cert_count: Option<String>,
#[serde(rename = "submittedCertCount")]
pub submitted_cert_count: Option<String>,
pub url: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogDetailsResponseResultCertificateLogPerformance {
pub endpoints: Vec<RadarGetCertificateLogDetailsResponseResultCertificateLogPerformanceEndpointsItem>,
#[serde(rename = "responseTime")]
pub response_time: f64,
pub uptime: f64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogDetailsResponseResultCertificateLogPerformanceEndpointsItem {
pub endpoint: String,
#[serde(rename = "responseTime")]
pub response_time: f64,
pub uptime: f64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogDetailsResponseResultCertificateLogRelatedItem {
pub description: String,
#[serde(rename = "endExclusive")]
pub end_exclusive: String,
pub slug: String,
#[serde(rename = "startInclusive")]
pub start_inclusive: String,
pub state: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogsResponse {
pub result: RadarGetCertificateLogsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogsResponseResult {
#[serde(rename = "certificateLogs")]
pub certificate_logs: Vec<RadarGetCertificateLogsResponseResultCertificateLogsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCertificateLogsResponseResultCertificateLogsItem {
pub api: String,
pub description: String,
#[serde(rename = "endExclusive")]
pub end_exclusive: String,
pub operator: String,
pub slug: String,
#[serde(rename = "startInclusive")]
pub start_inclusive: String,
pub state: String,
#[serde(rename = "stateTimestamp")]
pub state_timestamp: String,
pub url: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtSummaryResponse {
pub result: RadarGetCtSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtSummaryResponseResult {
pub meta: RadarGetCtSummaryResponseResultMeta,
pub summary_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetCtSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetCtSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetCtSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetCtSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupResponse {
pub result: RadarGetCtTimeseriesGroupResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupResponseResult {
pub meta: RadarGetCtTimeseriesGroupResponseResultMeta,
pub serie_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetCtTimeseriesGroupResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetCtTimeseriesGroupResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetCtTimeseriesGroupResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetCtTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesResponse {
pub result: RadarGetCtTimeseriesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesResponseResult {
pub meta: RadarGetCtTimeseriesResponseResultMeta,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetCtTimeseriesResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetCtTimeseriesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetCtTimeseriesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetCtTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetCtTimeseriesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryResponse {
pub result: RadarGetDnsAs112SummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryResponseResult {
pub meta: RadarGetDnsAs112SummaryResponseResultMeta,
pub summary_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetDnsAs112SummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetDnsAs112SummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetDnsAs112SummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetDnsAs112SummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponse {
pub result: RadarGetDnsAs112TimeseriesGroupResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponseResult {
pub meta: RadarGetDnsAs112TimeseriesGroupResponseResultMeta,
pub serie_0: RadarGetDnsAs112TimeseriesGroupResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetDnsAs112TimeseriesGroupResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetDnsAs112TimeseriesGroupResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetDnsAs112TimeseriesGroupResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetDnsAs112TimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupResponseResultSerie0 {
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesResponse {
pub result: RadarGetDnsAs112TimeseriesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesResponseResult {
pub meta: RadarGetDnsAs112TimeseriesResponseResultMeta,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetDnsAs112TimeseriesResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetDnsAs112TimeseriesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetDnsAs112TimeseriesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetDnsAs112TimeseriesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponse {
pub result: RadarGetDnsAs112TopLocationsByDnssecResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponseResult {
pub meta: RadarGetDnsAs112TopLocationsByDnssecResponseResultMeta,
pub top_0: Vec<RadarGetDnsAs112TopLocationsByDnssecResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponse {
pub result: RadarGetDnsAs112TopLocationsByEdnsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponseResult {
pub meta: RadarGetDnsAs112TopLocationsByEdnsResponseResultMeta,
pub top_0: Vec<RadarGetDnsAs112TopLocationsByEdnsResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponse {
pub result: RadarGetDnsAs112TopLocationsByIpVersionResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponseResult {
pub meta: RadarGetDnsAs112TopLocationsByIpVersionResponseResultMeta,
pub top_0: Vec<RadarGetDnsAs112TopLocationsByIpVersionResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponse {
pub result: RadarGetDnsAs112TopLocationsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponseResult {
pub meta: RadarGetDnsAs112TopLocationsResponseResultMeta,
pub top_0: Vec<RadarGetDnsAs112TopLocationsResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetDnsAs112TopLocationsResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetDnsAs112TopLocationsResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetDnsAs112TopLocationsResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetDnsAs112TopLocationsResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIdResponse {
pub result: RadarGetEntitiesAsnByIdResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIdResponseResult {
pub asn: RadarGetEntitiesAsnByIdResponseResultAsn,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIdResponseResultAsn {
pub aka: Option<String>,
pub asn: i64,
#[serde(rename = "confidenceLevel")]
pub confidence_level: i64,
pub country: String,
#[serde(rename = "countryName")]
pub country_name: String,
#[serde(rename = "estimatedUsers")]
pub estimated_users: RadarGetEntitiesAsnByIdResponseResultAsnEstimatedUsers,
pub name: String,
#[serde(rename = "orgName")]
pub org_name: String,
pub related: Vec<RadarGetEntitiesAsnByIdResponseResultAsnRelatedItem>,
pub source: String,
pub website: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIdResponseResultAsnEstimatedUsers {
#[serde(rename = "estimatedUsers")]
pub estimated_users: Option<i64>,
pub locations: Vec<RadarGetEntitiesAsnByIdResponseResultAsnEstimatedUsersLocationsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIdResponseResultAsnEstimatedUsersLocationsItem {
#[serde(rename = "estimatedUsers")]
pub estimated_users: Option<i64>,
#[serde(rename = "locationAlpha2")]
pub location_alpha2: String,
#[serde(rename = "locationName")]
pub location_name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIdResponseResultAsnRelatedItem {
pub aka: Option<String>,
pub asn: i64,
#[serde(rename = "estimatedUsers")]
pub estimated_users: Option<i64>,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIpResponse {
pub result: RadarGetEntitiesAsnByIpResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIpResponseResult {
pub asn: RadarGetEntitiesAsnByIpResponseResultAsn,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIpResponseResultAsn {
pub aka: Option<String>,
pub asn: i64,
pub country: String,
#[serde(rename = "countryName")]
pub country_name: String,
#[serde(rename = "estimatedUsers")]
pub estimated_users: RadarGetEntitiesAsnByIpResponseResultAsnEstimatedUsers,
pub name: String,
#[serde(rename = "orgName")]
pub org_name: String,
pub related: Vec<RadarGetEntitiesAsnByIpResponseResultAsnRelatedItem>,
pub source: String,
pub website: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIpResponseResultAsnEstimatedUsers {
#[serde(rename = "estimatedUsers")]
pub estimated_users: Option<i64>,
pub locations: Vec<RadarGetEntitiesAsnByIpResponseResultAsnEstimatedUsersLocationsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIpResponseResultAsnEstimatedUsersLocationsItem {
#[serde(rename = "estimatedUsers")]
pub estimated_users: Option<i64>,
#[serde(rename = "locationAlpha2")]
pub location_alpha2: String,
#[serde(rename = "locationName")]
pub location_name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIpResponseResultAsnRelatedItem {
pub aka: Option<String>,
pub asn: i64,
#[serde(rename = "estimatedUsers")]
pub estimated_users: Option<i64>,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnListResponse {
pub result: RadarGetEntitiesAsnListResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnListResponseResult {
pub asns: Vec<RadarGetEntitiesAsnListResponseResultAsnsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesAsnListResponseResultAsnsItem {
pub aka: Option<String>,
pub asn: i64,
pub country: String,
#[serde(rename = "countryName")]
pub country_name: String,
pub name: String,
#[serde(rename = "orgName")]
pub org_name: Option<String>,
pub website: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesIpResponse {
pub result: RadarGetEntitiesIpResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesIpResponseResult {
pub ip: RadarGetEntitiesIpResponseResultIp,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesIpResponseResultIp {
pub asn: String,
#[serde(rename = "asnLocation")]
pub asn_location: String,
#[serde(rename = "asnName")]
pub asn_name: String,
#[serde(rename = "asnOrgName")]
pub asn_org_name: String,
pub ip: String,
#[serde(rename = "ipVersion")]
pub ip_version: String,
pub location: String,
#[serde(rename = "locationName")]
pub location_name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesLocationByAlpha2Response {
pub result: RadarGetEntitiesLocationByAlpha2ResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesLocationByAlpha2ResponseResult {
pub location: RadarGetEntitiesLocationByAlpha2ResponseResultLocation,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesLocationByAlpha2ResponseResultLocation {
pub alpha2: String,
#[serde(rename = "confidenceLevel")]
pub confidence_level: i64,
pub continent: String,
pub latitude: String,
pub longitude: String,
pub name: String,
pub region: String,
pub subregion: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesLocationsResponse {
pub result: RadarGetEntitiesLocationsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesLocationsResponseResult {
pub locations: Vec<RadarGetEntitiesLocationsResponseResultLocationsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetEntitiesLocationsResponseResultLocationsItem {
pub alpha2: String,
pub continent: String,
pub latitude: String,
pub longitude: String,
pub name: String,
pub region: String,
pub subregion: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationDetailsResponse {
pub result: RadarGetGeolocationDetailsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationDetailsResponseResult {
pub geolocation: RadarGetGeolocationDetailsResponseResultGeolocation,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationDetailsResponseResultGeolocation {
pub code: Option<String>,
#[serde(rename = "geoId")]
pub geo_id: String,
pub latitude: String,
pub locale: Option<String>,
pub longitude: String,
pub name: String,
pub parent: RadarGetGeolocationDetailsResponseResultGeolocationParent,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationDetailsResponseResultGeolocationParent {
pub code: Option<String>,
#[serde(rename = "geoId")]
pub geo_id: String,
pub latitude: String,
pub locale: Option<String>,
pub longitude: String,
pub name: String,
pub parent: RadarGetGeolocationDetailsResponseResultGeolocationParentParent,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationDetailsResponseResultGeolocationParentParent {
pub code: Option<String>,
#[serde(rename = "geoId")]
pub geo_id: String,
pub latitude: String,
pub locale: Option<String>,
pub longitude: String,
pub name: String,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationsResponse {
pub result: RadarGetGeolocationsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationsResponseResult {
pub geolocations: Vec<RadarGetGeolocationsResponseResultGeolocationsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationsResponseResultGeolocationsItem {
pub code: Option<String>,
#[serde(rename = "geoId")]
pub geo_id: String,
pub latitude: String,
pub locale: Option<String>,
pub longitude: String,
pub name: String,
pub parent: RadarGetGeolocationsResponseResultGeolocationsItemParent,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationsResponseResultGeolocationsItemParent {
pub code: Option<String>,
#[serde(rename = "geoId")]
pub geo_id: String,
pub latitude: String,
pub locale: Option<String>,
pub longitude: String,
pub name: String,
pub parent: RadarGetGeolocationsResponseResultGeolocationsItemParentParent,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetGeolocationsResponseResultGeolocationsItemParentParent {
pub code: Option<String>,
#[serde(rename = "geoId")]
pub geo_id: String,
pub latitude: String,
pub locale: Option<String>,
pub longitude: String,
pub name: String,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpSummaryResponse {
pub result: RadarGetHttpSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpSummaryResponseResult {
pub meta: RadarGetHttpSummaryResponseResultMeta,
pub summary_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetHttpSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponse {
pub result: RadarGetHttpTimeseriesGroupResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponseResult {
pub meta: RadarGetHttpTimeseriesGroupResponseResultMeta,
pub serie_0: RadarGetHttpTimeseriesGroupResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetHttpTimeseriesGroupResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTimeseriesGroupResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTimeseriesGroupResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupResponseResultSerie0 {
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesResponse {
pub result: RadarGetHttpTimeseriesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesResponseResult {
pub meta: RadarGetHttpTimeseriesResponseResultMeta,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetHttpTimeseriesResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTimeseriesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTimeseriesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTimeseriesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponse {
pub result: RadarGetHttpTopAsesByBrowserFamilyResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponseResult {
pub meta: RadarGetHttpTopAsesByBrowserFamilyResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByBrowserFamilyResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponse {
pub result: RadarGetHttpTopAsesByDeviceTypeResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponseResult {
pub meta: RadarGetHttpTopAsesByDeviceTypeResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByDeviceTypeResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByDeviceTypeResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByDeviceTypeResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByDeviceTypeResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByDeviceTypeResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponse {
pub result: RadarGetHttpTopAsesByHttpProtocolResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponseResult {
pub meta: RadarGetHttpTopAsesByHttpProtocolResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByHttpProtocolResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByHttpProtocolResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByHttpProtocolResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByHttpProtocolResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByHttpProtocolResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponse {
pub result: RadarGetHttpTopAsesByHttpRequestsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponseResult {
pub meta: RadarGetHttpTopAsesByHttpRequestsResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByHttpRequestsResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByHttpRequestsResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByHttpRequestsResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByHttpRequestsResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByHttpRequestsResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponse {
pub result: RadarGetHttpTopAsesByHttpVersionResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponseResult {
pub meta: RadarGetHttpTopAsesByHttpVersionResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByHttpVersionResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByHttpVersionResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByHttpVersionResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByHttpVersionResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByHttpVersionResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponse {
pub result: RadarGetHttpTopAsesByIpVersionResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponseResult {
pub meta: RadarGetHttpTopAsesByIpVersionResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByIpVersionResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByIpVersionResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByIpVersionResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByIpVersionResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByIpVersionResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponse {
pub result: RadarGetHttpTopAsesByOperatingSystemResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponseResult {
pub meta: RadarGetHttpTopAsesByOperatingSystemResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByOperatingSystemResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByOperatingSystemResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByOperatingSystemResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByOperatingSystemResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByOperatingSystemResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponse {
pub result: RadarGetHttpTopAsesByTlsVersionResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponseResult {
pub meta: RadarGetHttpTopAsesByTlsVersionResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopAsesByTlsVersionResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopAsesByTlsVersionResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopAsesByTlsVersionResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopAsesByTlsVersionResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopAsesByTlsVersionResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: i64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponse {
pub result: RadarGetHttpTopLocationsByBrowserFamilyResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponseResult {
pub meta: RadarGetHttpTopLocationsByBrowserFamilyResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByBrowserFamilyResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponse {
pub result: RadarGetHttpTopLocationsByDeviceTypeResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponseResult {
pub meta: RadarGetHttpTopLocationsByDeviceTypeResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByDeviceTypeResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponse {
pub result: RadarGetHttpTopLocationsByHttpProtocolResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponseResult {
pub meta: RadarGetHttpTopLocationsByHttpProtocolResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByHttpProtocolResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponse {
pub result: RadarGetHttpTopLocationsByHttpRequestsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponseResult {
pub meta: RadarGetHttpTopLocationsByHttpRequestsResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByHttpRequestsResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponse {
pub result: RadarGetHttpTopLocationsByHttpVersionResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponseResult {
pub meta: RadarGetHttpTopLocationsByHttpVersionResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByHttpVersionResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByHttpVersionResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByHttpVersionResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByHttpVersionResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByHttpVersionResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponse {
pub result: RadarGetHttpTopLocationsByIpVersionResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponseResult {
pub meta: RadarGetHttpTopLocationsByIpVersionResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByIpVersionResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByIpVersionResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByIpVersionResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByIpVersionResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByIpVersionResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponse {
pub result: RadarGetHttpTopLocationsByOperatingSystemResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponseResult {
pub meta: RadarGetHttpTopLocationsByOperatingSystemResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByOperatingSystemResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponse {
pub result: RadarGetHttpTopLocationsByTlsVersionResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponseResult {
pub meta: RadarGetHttpTopLocationsByTlsVersionResponseResultMeta,
pub top_0: Vec<RadarGetHttpTopLocationsByTlsVersionResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetHttpTopLocationsByTlsVersionResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetHttpTopLocationsByTlsVersionResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetHttpTopLocationsByTlsVersionResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetHttpTopLocationsByTlsVersionResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryResponse {
pub result: RadarGetLeakedCredentialChecksSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryResponseResult {
pub meta: RadarGetLeakedCredentialChecksSummaryResponseResultMeta,
pub summary_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetLeakedCredentialChecksSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetLeakedCredentialChecksSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetLeakedCredentialChecksSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetLeakedCredentialChecksSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponse {
pub result: RadarGetLeakedCredentialChecksTimeseriesGroupResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponseResult {
pub meta: RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMeta,
pub serie_0: RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupResponseResultSerie0 {
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsSummaryResponse {
pub result: RadarGetNetflowsSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsSummaryResponseResult {
pub meta: RadarGetNetflowsSummaryResponseResultMeta,
pub summary_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetNetflowsSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetNetflowsSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetNetflowsSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetNetflowsSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponse {
pub result: RadarGetNetflowsTimeseriesGroupResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponseResult {
pub meta: RadarGetNetflowsTimeseriesGroupResponseResultMeta,
pub serie_0: RadarGetNetflowsTimeseriesGroupResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetNetflowsTimeseriesGroupResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetNetflowsTimeseriesGroupResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetNetflowsTimeseriesGroupResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetNetflowsTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupResponseResultSerie0 {
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponse {
pub result: RadarGetNetflowsTimeseriesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponseResult {
pub meta: RadarGetNetflowsTimeseriesResponseResultMeta,
pub serie_0: RadarGetNetflowsTimeseriesResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetNetflowsTimeseriesResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetNetflowsTimeseriesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetNetflowsTimeseriesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetNetflowsTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesResponseResultSerie0 {
pub timestamps: Vec<String>,
pub values: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponse {
pub result: RadarGetNetflowsTopAsesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponseResult {
pub meta: RadarGetNetflowsTopAsesResponseResultMeta,
pub top_0: Vec<RadarGetNetflowsTopAsesResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetNetflowsTopAsesResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetNetflowsTopAsesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetNetflowsTopAsesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetNetflowsTopAsesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesResponseResultTop0Item {
#[serde(rename = "clientASN")]
pub client_asn: f64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponse {
pub result: RadarGetNetflowsTopLocationsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponseResult {
pub meta: RadarGetNetflowsTopLocationsResponseResultMeta,
pub top_0: Vec<RadarGetNetflowsTopLocationsResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetNetflowsTopLocationsResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetNetflowsTopLocationsResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetNetflowsTopLocationsResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetNetflowsTopLocationsResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsResponseResultTop0Item {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginDetailsResponse {
pub result: RadarGetOriginDetailsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginDetailsResponseResult {
pub origin: RadarGetOriginDetailsResponseResultOrigin,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginDetailsResponseResultOrigin {
pub regions: Vec<RadarGetOriginDetailsResponseResultOriginRegionsItem>,
pub slug: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginDetailsResponseResultOriginRegionsItem {
pub region: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryResponse {
pub result: RadarGetOriginPostQuantumSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryResponseResult {
pub meta: RadarGetOriginPostQuantumSummaryResponseResultMeta,
pub summary_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetOriginPostQuantumSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetOriginPostQuantumSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetOriginPostQuantumSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetOriginPostQuantumSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponse {
pub result: RadarGetOriginPostQuantumTimeseriesGroupsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponseResult {
pub meta: RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMeta,
pub serie_0: RadarGetOriginPostQuantumTimeseriesGroupsResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsResponseResultSerie0 {
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsResponse {
pub result: RadarGetOriginsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsResponseResult {
pub origins: Vec<RadarGetOriginsResponseResultOriginsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsResponseResultOriginsItem {
pub regions: Vec<RadarGetOriginsResponseResultOriginsItemRegionsItem>,
pub slug: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsResponseResultOriginsItemRegionsItem {
pub region: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsSummaryResponse {
pub result: RadarGetOriginsSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsSummaryResponseResult {
pub meta: RadarGetOriginsSummaryResponseResultMeta,
pub summary_0: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetOriginsSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetOriginsSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetOriginsSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetOriginsSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponse {
pub result: RadarGetOriginsTimeseriesGroupResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponseResult {
pub meta: RadarGetOriginsTimeseriesGroupResponseResultMeta,
pub serie_0: RadarGetOriginsTimeseriesGroupResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetOriginsTimeseriesGroupResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetOriginsTimeseriesGroupResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetOriginsTimeseriesGroupResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetOriginsTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupResponseResultSerie0 {
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesResponse {
pub result: RadarGetOriginsTimeseriesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesResponseResult {
pub meta: RadarGetOriginsTimeseriesResponseResultMeta,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetOriginsTimeseriesResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetOriginsTimeseriesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetOriginsTimeseriesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetOriginsTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetPostQuantumTlsSupportResponse {
pub result: RadarGetPostQuantumTlsSupportResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetPostQuantumTlsSupportResponseResult {
pub host: String,
pub kex: f64,
#[serde(rename = "kexName")]
pub kex_name: String,
pub pq: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponse {
pub result: RadarGetQualitySpeedHistogramResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponseResult {
pub histogram_0: RadarGetQualitySpeedHistogramResponseResultHistogram0,
pub meta: RadarGetQualitySpeedHistogramResponseResultMeta,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponseResultHistogram0 {
#[serde(rename = "bandwidthDownload")]
pub bandwidth_download: Vec<String>,
#[serde(rename = "bandwidthUpload")]
pub bandwidth_upload: Vec<String>,
#[serde(rename = "bucketMin")]
pub bucket_min: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponseResultMeta {
#[serde(rename = "bucketSize")]
pub bucket_size: i64,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetQualitySpeedHistogramResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetQualitySpeedHistogramResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
#[serde(rename = "totalTests")]
pub total_tests: Vec<i64>,
pub units: Vec<RadarGetQualitySpeedHistogramResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetQualitySpeedHistogramResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponse {
pub result: RadarGetQualitySpeedSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponseResult {
pub meta: RadarGetQualitySpeedSummaryResponseResultMeta,
pub summary_0: RadarGetQualitySpeedSummaryResponseResultSummary0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetQualitySpeedSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetQualitySpeedSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetQualitySpeedSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetQualitySpeedSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryResponseResultSummary0 {
#[serde(rename = "bandwidthDownload")]
pub bandwidth_download: String,
#[serde(rename = "bandwidthUpload")]
pub bandwidth_upload: String,
#[serde(rename = "jitterIdle")]
pub jitter_idle: String,
#[serde(rename = "jitterLoaded")]
pub jitter_loaded: String,
#[serde(rename = "latencyIdle")]
pub latency_idle: String,
#[serde(rename = "latencyLoaded")]
pub latency_loaded: String,
#[serde(rename = "packetLoss")]
pub packet_loss: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponse {
pub result: RadarGetQualitySpeedTopAsesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponseResult {
pub meta: RadarGetQualitySpeedTopAsesResponseResultMeta,
pub top_0: Vec<RadarGetQualitySpeedTopAsesResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetQualitySpeedTopAsesResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetQualitySpeedTopAsesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetQualitySpeedTopAsesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetQualitySpeedTopAsesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesResponseResultTop0Item {
#[serde(rename = "bandwidthDownload")]
pub bandwidth_download: String,
#[serde(rename = "bandwidthUpload")]
pub bandwidth_upload: String,
#[serde(rename = "clientASN")]
pub client_asn: f64,
#[serde(rename = "clientASName")]
pub client_as_name: String,
#[serde(rename = "jitterIdle")]
pub jitter_idle: String,
#[serde(rename = "jitterLoaded")]
pub jitter_loaded: String,
#[serde(rename = "latencyIdle")]
pub latency_idle: String,
#[serde(rename = "latencyLoaded")]
pub latency_loaded: String,
#[serde(rename = "numTests")]
pub num_tests: f64,
#[serde(rename = "rankPower")]
pub rank_power: f64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponse {
pub result: RadarGetQualitySpeedTopLocationsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponseResult {
pub meta: RadarGetQualitySpeedTopLocationsResponseResultMeta,
pub top_0: Vec<RadarGetQualitySpeedTopLocationsResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetQualitySpeedTopLocationsResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetQualitySpeedTopLocationsResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetQualitySpeedTopLocationsResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetQualitySpeedTopLocationsResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsResponseResultTop0Item {
#[serde(rename = "bandwidthDownload")]
pub bandwidth_download: String,
#[serde(rename = "bandwidthUpload")]
pub bandwidth_upload: String,
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
#[serde(rename = "jitterIdle")]
pub jitter_idle: String,
#[serde(rename = "jitterLoaded")]
pub jitter_loaded: String,
#[serde(rename = "latencyIdle")]
pub latency_idle: String,
#[serde(rename = "latencyLoaded")]
pub latency_loaded: String,
#[serde(rename = "numTests")]
pub num_tests: f64,
#[serde(rename = "rankPower")]
pub rank_power: f64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesCategoriesResponse {
pub result: RadarGetRankingInternetServicesCategoriesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesCategoriesResponseResult {
pub categories_0: Vec<RadarGetRankingInternetServicesCategoriesResponseResultCategories0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesCategoriesResponseResultCategories0Item {
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponse {
pub result: RadarGetRankingInternetServicesTimeseriesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponseResult {
pub meta: RadarGetRankingInternetServicesTimeseriesResponseResultMeta,
pub serie_0: RadarGetRankingInternetServicesTimeseriesResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetRankingInternetServicesTimeseriesResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetRankingInternetServicesTimeseriesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetRankingInternetServicesTimeseriesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetRankingInternetServicesTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesResponseResultSerie0 {
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponse {
pub result: RadarGetRankingTopInternetServicesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponseResult {
pub meta: RadarGetRankingTopInternetServicesResponseResultMeta,
pub top_0: Vec<RadarGetRankingTopInternetServicesResponseResultTop0Item>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: Option<RadarGetRankingTopInternetServicesResponseResultMetaConfidenceInfo>,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetRankingTopInternetServicesResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetRankingTopInternetServicesResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetRankingTopInternetServicesResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesResponseResultTop0Item {
pub rank: i64,
pub service: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetReportsDatasetsResponse {
pub result: RadarGetReportsDatasetsResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetReportsDatasetsResponseResult {
pub datasets: Vec<RadarGetReportsDatasetsResponseResultDatasetsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetReportsDatasetsResponseResultDatasetsItem {
pub description: String,
pub id: i64,
pub meta: serde_json::Value,
pub tags: Vec<String>,
pub title: String,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetSearchGlobalResponse {
pub result: RadarGetSearchGlobalResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetSearchGlobalResponseResult {
pub search: Vec<RadarGetSearchGlobalResponseResultSearchItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetSearchGlobalResponseResultSearchItem {
pub code: String,
pub name: String,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponse {
pub result: RadarGetTcpResetsTimeoutsSummaryResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponseResult {
pub meta: RadarGetTcpResetsTimeoutsSummaryResponseResultMeta,
pub summary_0: RadarGetTcpResetsTimeoutsSummaryResponseResultSummary0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponseResultMeta {
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetTcpResetsTimeoutsSummaryResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetTcpResetsTimeoutsSummaryResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetTcpResetsTimeoutsSummaryResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetTcpResetsTimeoutsSummaryResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryResponseResultSummary0 {
pub later_in_flow: String,
pub no_match: String,
pub post_ack: String,
pub post_psh: String,
pub post_syn: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponse {
pub result: RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResult {
pub meta: RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMeta,
pub serie_0: RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultSerie0,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMeta {
#[serde(rename = "aggInterval")]
pub agg_interval: String,
#[serde(rename = "confidenceInfo")]
pub confidence_info: RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaConfidenceInfo,
#[serde(rename = "dateRange")]
pub date_range: Vec<RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaDateRangeItem>,
#[serde(rename = "lastUpdated")]
pub last_updated: String,
pub normalization: String,
pub units: Vec<RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaUnitsItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaConfidenceInfo {
pub annotations: Vec<RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem>,
pub level: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaConfidenceInfoAnnotationsItem {
#[serde(rename = "dataSource")]
pub data_source: String,
pub description: String,
#[serde(rename = "endDate")]
pub end_date: String,
#[serde(rename = "eventType")]
pub event_type: String,
#[serde(rename = "isInstantaneous")]
pub is_instantaneous: bool,
#[serde(rename = "linkedUrl")]
pub linked_url: String,
#[serde(rename = "startDate")]
pub start_date: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaDateRangeItem {
#[serde(rename = "endTime")]
pub end_time: String,
#[serde(rename = "startTime")]
pub start_time: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultMetaUnitsItem {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupResponseResultSerie0 {
pub later_in_flow: Vec<String>,
pub no_match: Vec<String>,
pub post_ack: Vec<String>,
pub post_psh: Vec<String>,
pub post_syn: Vec<String>,
pub timestamps: Vec<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesResponse {
pub result: RadarGetTrafficAnomaliesResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesResponseResult {
#[serde(rename = "trafficAnomalies")]
pub traffic_anomalies: Vec<RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItem {
#[serde(rename = "asnDetails")]
pub asn_details: Option<RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemAsnDetails>,
#[serde(rename = "endDate")]
pub end_date: Option<String>,
#[serde(rename = "locationDetails")]
pub location_details: Option<RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemLocationDetails>,
#[serde(rename = "originDetails")]
pub origin_details: Option<RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemOriginDetails>,
#[serde(rename = "startDate")]
pub start_date: String,
pub status: String,
#[serde(rename = "type")]
pub r#type: String,
pub uuid: String,
#[serde(rename = "visibleInDataSources")]
pub visible_in_data_sources: Option<Vec<String>>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemAsnDetails {
pub asn: String,
pub locations: Option<RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemAsnDetailsLocations>,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemAsnDetailsLocations {
pub code: String,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemLocationDetails {
pub code: String,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesResponseResultTrafficAnomaliesItemOriginDetails {
pub name: String,
pub origin: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesTopResponse {
pub result: RadarGetTrafficAnomaliesTopResponseResult,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesTopResponseResult {
#[serde(rename = "trafficAnomalies")]
pub traffic_anomalies: Vec<RadarGetTrafficAnomaliesTopResponseResultTrafficAnomaliesItem>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesTopResponseResultTrafficAnomaliesItem {
#[serde(rename = "clientCountryAlpha2")]
pub client_country_alpha2: String,
#[serde(rename = "clientCountryName")]
pub client_country_name: String,
pub value: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarPostReportsDatasetDownloadUrlRequest {
#[serde(rename = "datasetId")]
pub dataset_id: i64,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarPostReportsDatasetDownloadUrlResponse {
pub result: RadarPostReportsDatasetDownloadUrlResponseResult,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarPostReportsDatasetDownloadUrlResponseResult {
pub dataset: RadarPostReportsDatasetDownloadUrlResponseResultDataset,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct RadarPostReportsDatasetDownloadUrlResponseResultDataset {
pub url: String,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetAnnotationsArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub data_source: Option<String>,
pub event_type: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub origin: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub origin: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetAnnotationsOutagesTopArgs {
pub limit: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetDnsAs112SummaryArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub query_type: Option<String>,
pub protocol: Option<String>,
pub response_code: Option<String>,
pub limit_per_group: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesArgs {
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub query_type: Option<String>,
pub protocol: Option<String>,
pub response_code: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetDnsAs112TimeseriesGroupArgs {
pub dimension: String,
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub query_type: Option<String>,
pub protocol: Option<String>,
pub response_code: Option<String>,
pub limit_per_group: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByDnssecArgs {
pub dnssec: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByEdnsArgs {
pub edns: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetDnsAs112TopLocationsByIpVersionArgs {
pub ip_version: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetCertificateAuthoritiesArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetCertificateAuthorityDetailsArgs {
pub ca_slug: String,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetCertificateLogsArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetCertificateLogDetailsArgs {
pub log_slug: String,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetCtSummaryArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub limit_per_group: Option<String>,
pub ca: Option<String>,
pub ca_owner: Option<String>,
pub duration: Option<String>,
pub entry_type: Option<String>,
pub expiration_status: Option<String>,
pub has_ips: Option<String>,
pub has_wildcards: Option<String>,
pub log: Option<String>,
pub log_api: Option<String>,
pub log_operator: Option<String>,
pub public_key_algorithm: Option<String>,
pub signature_algorithm: Option<String>,
pub tld: Option<String>,
pub validation_level: Option<String>,
pub unique_entries: Option<String>,
pub normalization: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetCtTimeseriesArgs {
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub ca: Option<String>,
pub ca_owner: Option<String>,
pub duration: Option<String>,
pub entry_type: Option<String>,
pub expiration_status: Option<String>,
pub has_ips: Option<String>,
pub has_wildcards: Option<String>,
pub log: Option<String>,
pub log_api: Option<String>,
pub log_operator: Option<String>,
pub public_key_algorithm: Option<String>,
pub signature_algorithm: Option<String>,
pub tld: Option<String>,
pub validation_level: Option<String>,
pub unique_entries: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetCtTimeseriesGroupArgs {
pub dimension: String,
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub limit_per_group: Option<String>,
pub ca: Option<String>,
pub ca_owner: Option<String>,
pub duration: Option<String>,
pub entry_type: Option<String>,
pub expiration_status: Option<String>,
pub has_ips: Option<String>,
pub has_wildcards: Option<String>,
pub log: Option<String>,
pub log_api: Option<String>,
pub log_operator: Option<String>,
pub public_key_algorithm: Option<String>,
pub signature_algorithm: Option<String>,
pub validation_level: Option<String>,
pub tld: Option<String>,
pub normalization: Option<String>,
pub unique_entries: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetReportsDatasetsArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub dataset_type: Option<String>,
pub date: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarPostReportsDatasetDownloadUrlArgs {
pub format: Option<String>,
pub body: RadarPostReportsDatasetDownloadUrlRequest,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetReportsDatasetDownloadArgs {
pub alias: String,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetEntitiesAsnListArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub order_by: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIpArgs {
pub ip: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetEntitiesAsnByIdArgs {
pub asn: String,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetAsnsAsSetArgs {
pub asn: String,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetAsnsRelArgs {
pub asn: String,
pub asn2: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetEntitiesIpArgs {
pub ip: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetEntitiesLocationsArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub location: Option<String>,
pub region: Option<String>,
pub subregion: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetEntitiesLocationByAlpha2Args {
pub location: String,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetGeolocationsArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub geo_id: Option<String>,
pub location: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetGeolocationDetailsArgs {
pub geo_id: String,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpSummaryArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub limit_per_group: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTimeseriesArgs {
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub normalization: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTimeseriesGroupArgs {
pub dimension: String,
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub limit_per_group: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub normalization: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpRequestsArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByBrowserFamilyArgs {
pub browser_family: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByDeviceTypeArgs {
pub device_type: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpProtocolArgs {
pub http_protocol: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByHttpVersionArgs {
pub http_version: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByIpVersionArgs {
pub ip_version: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByOperatingSystemArgs {
pub os: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopAsesByTlsVersionArgs {
pub tls_version: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpRequestsArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByBrowserFamilyArgs {
pub browser_family: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByDeviceTypeArgs {
pub device_type: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpProtocolArgs {
pub http_protocol: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByHttpVersionArgs {
pub http_version: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByIpVersionArgs {
pub ip_version: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub os: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByOperatingSystemArgs {
pub os: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub tls_version: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetHttpTopLocationsByTlsVersionArgs {
pub tls_version: String,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub bot_class: Option<String>,
pub device_type: Option<String>,
pub http_protocol: Option<String>,
pub http_version: Option<String>,
pub ip_version: Option<String>,
pub os: Option<String>,
pub browser_family: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksSummaryArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub bot_class: Option<String>,
pub compromised: Option<String>,
pub limit_per_group: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetLeakedCredentialChecksTimeseriesGroupArgs {
pub dimension: String,
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub bot_class: Option<String>,
pub compromised: Option<String>,
pub check_result: Option<String>,
pub limit_per_group: Option<String>,
pub normalization: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetNetflowsSummaryArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub product: Option<String>,
pub limit_per_group: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesArgs {
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub product: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub normalization: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetNetflowsTimeseriesGroupArgs {
pub dimension: String,
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub limit_per_group: Option<String>,
pub normalization: Option<String>,
pub product: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetNetflowsTopAsesArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetNetflowsTopLocationsArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub geo_id: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetOriginsArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetOriginsSummaryArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub limit_per_group: Option<String>,
pub origin: Option<String>,
pub metric: Option<String>,
pub region: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesArgs {
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub origin: Option<String>,
pub metric: Option<String>,
pub region: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetOriginsTimeseriesGroupArgs {
pub dimension: String,
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub limit_per_group: Option<String>,
pub origin: Option<String>,
pub metric: Option<String>,
pub region: Option<String>,
pub normalization: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetOriginDetailsArgs {
pub slug: String,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetOriginPostQuantumSummaryArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetOriginPostQuantumTimeseriesGroupsArgs {
pub dimension: String,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetPostQuantumTlsSupportArgs {
pub host: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetQualitySpeedHistogramArgs {
pub name: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub bucket_size: Option<String>,
pub metric_group: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetQualitySpeedSummaryArgs {
pub name: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetQualitySpeedTopAsesArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub order_by: Option<String>,
pub reverse: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetQualitySpeedTopLocationsArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub order_by: Option<String>,
pub reverse: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetRankingInternetServicesCategoriesArgs {
pub limit: Option<String>,
pub name: Option<String>,
pub date: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetRankingInternetServicesTimeseriesArgs {
pub service_category: Option<String>,
pub limit: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetRankingTopInternetServicesArgs {
pub service_category: Option<String>,
pub limit: Option<String>,
pub name: Option<String>,
pub date: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetSearchGlobalArgs {
pub limit: Option<String>,
pub limit_per_group: Option<String>,
pub query: Option<String>,
pub include: Option<String>,
pub exclude: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsSummaryArgs {
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetTcpResetsTimeoutsTimeseriesGroupArgs {
pub agg_interval: Option<String>,
pub name: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub continent: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesArgs {
pub limit: Option<String>,
pub offset: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub status: Option<String>,
pub r#type: Option<String>,
pub asn: Option<String>,
pub location: Option<String>,
pub origin: Option<String>,
pub format: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RadarGetTrafficAnomaliesTopArgs {
pub limit: Option<String>,
pub date_range: Option<String>,
pub date_start: Option<String>,
pub date_end: Option<String>,
pub status: Option<String>,
pub format: Option<String>,
}
pub async fn radar_get_annotations_request<F>(
client: DynNetClient,
args: &RadarGetAnnotationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetAnnotationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/annotations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("dataSource", args.data_source.as_deref());
builder = builder.query("eventType", args.event_type.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("origin", args.origin.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetAnnotationsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_annotations_outages_request<F>(
client: DynNetClient,
args: &RadarGetAnnotationsOutagesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetAnnotationsOutagesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/annotations/outages",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("origin", args.origin.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetAnnotationsOutagesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_annotations_outages_top_request<F>(
client: DynNetClient,
args: &RadarGetAnnotationsOutagesTopArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetAnnotationsOutagesTopResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/annotations/outages/locations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetAnnotationsOutagesTopResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_dns_as112_summary_request<F>(
client: DynNetClient,
args: &RadarGetDnsAs112SummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetDnsAs112SummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/as112/summary/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("queryType", args.query_type.as_deref());
builder = builder.query("protocol", args.protocol.as_deref());
builder = builder.query("responseCode", args.response_code.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetDnsAs112SummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_dns_as112_timeseries_request<F>(
client: DynNetClient,
args: &RadarGetDnsAs112TimeseriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetDnsAs112TimeseriesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/as112/timeseries",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("queryType", args.query_type.as_deref());
builder = builder.query("protocol", args.protocol.as_deref());
builder = builder.query("responseCode", args.response_code.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetDnsAs112TimeseriesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_dns_as112_timeseries_group_request<F>(
client: DynNetClient,
args: &RadarGetDnsAs112TimeseriesGroupArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetDnsAs112TimeseriesGroupResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/as112/timeseries_groups/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("queryType", args.query_type.as_deref());
builder = builder.query("protocol", args.protocol.as_deref());
builder = builder.query("responseCode", args.response_code.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetDnsAs112TimeseriesGroupResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_dns_as112_top_locations_request<F>(
client: DynNetClient,
args: &RadarGetDnsAs112TopLocationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetDnsAs112TopLocationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/as112/top/locations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetDnsAs112TopLocationsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_dns_as112_top_locations_by_dnssec_request<F>(
client: DynNetClient,
args: &RadarGetDnsAs112TopLocationsByDnssecArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetDnsAs112TopLocationsByDnssecResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/as112/top/locations/dnssec/{}",
args.dnssec,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetDnsAs112TopLocationsByDnssecResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_dns_as112_top_locations_by_edns_request<F>(
client: DynNetClient,
args: &RadarGetDnsAs112TopLocationsByEdnsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetDnsAs112TopLocationsByEdnsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/as112/top/locations/edns/{}",
args.edns,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetDnsAs112TopLocationsByEdnsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_dns_as112_top_locations_by_ip_version_request<F>(
client: DynNetClient,
args: &RadarGetDnsAs112TopLocationsByIpVersionArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetDnsAs112TopLocationsByIpVersionResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/as112/top/locations/ip_version/{}",
args.ip_version,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetDnsAs112TopLocationsByIpVersionResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_certificate_authorities_request<F>(
client: DynNetClient,
args: &RadarGetCertificateAuthoritiesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetCertificateAuthoritiesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ct/authorities",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetCertificateAuthoritiesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_certificate_authority_details_request<F>(
client: DynNetClient,
args: &RadarGetCertificateAuthorityDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetCertificateAuthorityDetailsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ct/authorities/{}",
args.ca_slug,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetCertificateAuthorityDetailsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_certificate_logs_request<F>(
client: DynNetClient,
args: &RadarGetCertificateLogsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetCertificateLogsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ct/logs",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetCertificateLogsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_certificate_log_details_request<F>(
client: DynNetClient,
args: &RadarGetCertificateLogDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetCertificateLogDetailsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ct/logs/{}",
args.log_slug,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetCertificateLogDetailsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_ct_summary_request<F>(
client: DynNetClient,
args: &RadarGetCtSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetCtSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ct/summary/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("ca", args.ca.as_deref());
builder = builder.query("caOwner", args.ca_owner.as_deref());
builder = builder.query("duration", args.duration.as_deref());
builder = builder.query("entryType", args.entry_type.as_deref());
builder = builder.query("expirationStatus", args.expiration_status.as_deref());
builder = builder.query("hasIps", args.has_ips.as_deref());
builder = builder.query("hasWildcards", args.has_wildcards.as_deref());
builder = builder.query("log", args.log.as_deref());
builder = builder.query("logApi", args.log_api.as_deref());
builder = builder.query("logOperator", args.log_operator.as_deref());
builder = builder.query("publicKeyAlgorithm", args.public_key_algorithm.as_deref());
builder = builder.query("signatureAlgorithm", args.signature_algorithm.as_deref());
builder = builder.query("tld", args.tld.as_deref());
builder = builder.query("validationLevel", args.validation_level.as_deref());
builder = builder.query("uniqueEntries", args.unique_entries.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetCtSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_ct_timeseries_request<F>(
client: DynNetClient,
args: &RadarGetCtTimeseriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetCtTimeseriesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ct/timeseries",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("ca", args.ca.as_deref());
builder = builder.query("caOwner", args.ca_owner.as_deref());
builder = builder.query("duration", args.duration.as_deref());
builder = builder.query("entryType", args.entry_type.as_deref());
builder = builder.query("expirationStatus", args.expiration_status.as_deref());
builder = builder.query("hasIps", args.has_ips.as_deref());
builder = builder.query("hasWildcards", args.has_wildcards.as_deref());
builder = builder.query("log", args.log.as_deref());
builder = builder.query("logApi", args.log_api.as_deref());
builder = builder.query("logOperator", args.log_operator.as_deref());
builder = builder.query("publicKeyAlgorithm", args.public_key_algorithm.as_deref());
builder = builder.query("signatureAlgorithm", args.signature_algorithm.as_deref());
builder = builder.query("tld", args.tld.as_deref());
builder = builder.query("validationLevel", args.validation_level.as_deref());
builder = builder.query("uniqueEntries", args.unique_entries.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetCtTimeseriesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_ct_timeseries_group_request<F>(
client: DynNetClient,
args: &RadarGetCtTimeseriesGroupArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetCtTimeseriesGroupResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ct/timeseries_groups/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("ca", args.ca.as_deref());
builder = builder.query("caOwner", args.ca_owner.as_deref());
builder = builder.query("duration", args.duration.as_deref());
builder = builder.query("entryType", args.entry_type.as_deref());
builder = builder.query("expirationStatus", args.expiration_status.as_deref());
builder = builder.query("hasIps", args.has_ips.as_deref());
builder = builder.query("hasWildcards", args.has_wildcards.as_deref());
builder = builder.query("log", args.log.as_deref());
builder = builder.query("logApi", args.log_api.as_deref());
builder = builder.query("logOperator", args.log_operator.as_deref());
builder = builder.query("publicKeyAlgorithm", args.public_key_algorithm.as_deref());
builder = builder.query("signatureAlgorithm", args.signature_algorithm.as_deref());
builder = builder.query("validationLevel", args.validation_level.as_deref());
builder = builder.query("tld", args.tld.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("uniqueEntries", args.unique_entries.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetCtTimeseriesGroupResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_reports_datasets_request<F>(
client: DynNetClient,
args: &RadarGetReportsDatasetsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetReportsDatasetsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/datasets",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("datasetType", args.dataset_type.as_deref());
builder = builder.query("date", args.date.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetReportsDatasetsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_post_reports_dataset_download_url_request<F>(
client: DynNetClient,
args: &RadarPostReportsDatasetDownloadUrlArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarPostReportsDatasetDownloadUrlResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/datasets/download",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
builder = builder.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarPostReportsDatasetDownloadUrlResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_reports_dataset_download_request<F>(
client: DynNetClient,
args: &RadarGetReportsDatasetDownloadArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<()>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/datasets/{}",
args.alias,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
Ok(ApiResponse { status: status as u16, headers, body: () })
}
pub async fn radar_get_entities_asn_list_request<F>(
client: DynNetClient,
args: &RadarGetEntitiesAsnListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetEntitiesAsnListResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/asns",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("orderBy", args.order_by.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetEntitiesAsnListResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_entities_asn_by_ip_request<F>(
client: DynNetClient,
args: &RadarGetEntitiesAsnByIpArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetEntitiesAsnByIpResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/asns/ip",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("ip", args.ip.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetEntitiesAsnByIpResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_entities_asn_by_id_request<F>(
client: DynNetClient,
args: &RadarGetEntitiesAsnByIdArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetEntitiesAsnByIdResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/asns/{}",
args.asn,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetEntitiesAsnByIdResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_asns_as_set_request<F>(
client: DynNetClient,
args: &RadarGetAsnsAsSetArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetAsnsAsSetResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/asns/{}/as_set",
args.asn,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetAsnsAsSetResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_asns_rel_request<F>(
client: DynNetClient,
args: &RadarGetAsnsRelArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetAsnsRelResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/asns/{}/rel",
args.asn,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("asn2", args.asn2.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetAsnsRelResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_entities_ip_request<F>(
client: DynNetClient,
args: &RadarGetEntitiesIpArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetEntitiesIpResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/ip",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("ip", args.ip.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetEntitiesIpResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_entities_locations_request<F>(
client: DynNetClient,
args: &RadarGetEntitiesLocationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetEntitiesLocationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/locations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("region", args.region.as_deref());
builder = builder.query("subregion", args.subregion.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetEntitiesLocationsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_entities_location_by_alpha2_request<F>(
client: DynNetClient,
args: &RadarGetEntitiesLocationByAlpha2Args,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetEntitiesLocationByAlpha2Response>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/entities/locations/{}",
args.location,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetEntitiesLocationByAlpha2Response = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_geolocations_request<F>(
client: DynNetClient,
args: &RadarGetGeolocationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetGeolocationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/geolocations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetGeolocationsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_geolocation_details_request<F>(
client: DynNetClient,
args: &RadarGetGeolocationDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetGeolocationDetailsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/geolocations/{}",
args.geo_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetGeolocationDetailsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_summary_request<F>(
client: DynNetClient,
args: &RadarGetHttpSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/summary/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_timeseries_request<F>(
client: DynNetClient,
args: &RadarGetHttpTimeseriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTimeseriesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/timeseries",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTimeseriesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_timeseries_group_request<F>(
client: DynNetClient,
args: &RadarGetHttpTimeseriesGroupArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTimeseriesGroupResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/timeseries_groups/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTimeseriesGroupResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_http_requests_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByHttpRequestsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByHttpRequestsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByHttpRequestsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_browser_family_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByBrowserFamilyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByBrowserFamilyResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases/browser_family/{}",
args.browser_family,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByBrowserFamilyResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_device_type_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByDeviceTypeArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByDeviceTypeResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases/device_type/{}",
args.device_type,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByDeviceTypeResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_http_protocol_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByHttpProtocolArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByHttpProtocolResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases/http_protocol/{}",
args.http_protocol,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByHttpProtocolResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_http_version_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByHttpVersionArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByHttpVersionResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases/http_version/{}",
args.http_version,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByHttpVersionResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_ip_version_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByIpVersionArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByIpVersionResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases/ip_version/{}",
args.ip_version,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByIpVersionResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_operating_system_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByOperatingSystemArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByOperatingSystemResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases/os/{}",
args.os,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByOperatingSystemResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_ases_by_tls_version_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopAsesByTlsVersionArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopAsesByTlsVersionResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/ases/tls_version/{}",
args.tls_version,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopAsesByTlsVersionResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_http_requests_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByHttpRequestsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByHttpRequestsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByHttpRequestsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_browser_family_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByBrowserFamilyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByBrowserFamilyResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations/browser_family/{}",
args.browser_family,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByBrowserFamilyResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_device_type_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByDeviceTypeArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByDeviceTypeResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations/device_type/{}",
args.device_type,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByDeviceTypeResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_http_protocol_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByHttpProtocolArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByHttpProtocolResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations/http_protocol/{}",
args.http_protocol,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByHttpProtocolResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_http_version_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByHttpVersionArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByHttpVersionResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations/http_version/{}",
args.http_version,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByHttpVersionResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_ip_version_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByIpVersionArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByIpVersionResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations/ip_version/{}",
args.ip_version,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByIpVersionResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_operating_system_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByOperatingSystemArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByOperatingSystemResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations/os/{}",
args.os,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("tlsVersion", args.tls_version.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByOperatingSystemResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_http_top_locations_by_tls_version_request<F>(
client: DynNetClient,
args: &RadarGetHttpTopLocationsByTlsVersionArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetHttpTopLocationsByTlsVersionResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/http/top/locations/tls_version/{}",
args.tls_version,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("deviceType", args.device_type.as_deref());
builder = builder.query("httpProtocol", args.http_protocol.as_deref());
builder = builder.query("httpVersion", args.http_version.as_deref());
builder = builder.query("ipVersion", args.ip_version.as_deref());
builder = builder.query("os", args.os.as_deref());
builder = builder.query("browserFamily", args.browser_family.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetHttpTopLocationsByTlsVersionResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_leaked_credential_checks_summary_request<F>(
client: DynNetClient,
args: &RadarGetLeakedCredentialChecksSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetLeakedCredentialChecksSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/leaked_credential_checks/summary/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("compromised", args.compromised.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetLeakedCredentialChecksSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_leaked_credential_checks_timeseries_group_request<F>(
client: DynNetClient,
args: &RadarGetLeakedCredentialChecksTimeseriesGroupArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetLeakedCredentialChecksTimeseriesGroupResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/leaked_credential_checks/timeseries_groups/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("botClass", args.bot_class.as_deref());
builder = builder.query("compromised", args.compromised.as_deref());
builder = builder.query("checkResult", args.check_result.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetLeakedCredentialChecksTimeseriesGroupResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_netflows_summary_request<F>(
client: DynNetClient,
args: &RadarGetNetflowsSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetNetflowsSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/netflows/summary/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("product", args.product.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetNetflowsSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_netflows_timeseries_request<F>(
client: DynNetClient,
args: &RadarGetNetflowsTimeseriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetNetflowsTimeseriesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/netflows/timeseries",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("product", args.product.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetNetflowsTimeseriesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_netflows_timeseries_group_request<F>(
client: DynNetClient,
args: &RadarGetNetflowsTimeseriesGroupArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetNetflowsTimeseriesGroupResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/netflows/timeseries_groups/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("product", args.product.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetNetflowsTimeseriesGroupResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_netflows_top_ases_request<F>(
client: DynNetClient,
args: &RadarGetNetflowsTopAsesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetNetflowsTopAsesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/netflows/top/ases",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetNetflowsTopAsesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_netflows_top_locations_request<F>(
client: DynNetClient,
args: &RadarGetNetflowsTopLocationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetNetflowsTopLocationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/netflows/top/locations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("geoId", args.geo_id.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetNetflowsTopLocationsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_origins_request<F>(
client: DynNetClient,
args: &RadarGetOriginsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetOriginsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/origins",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetOriginsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_origins_summary_request<F>(
client: DynNetClient,
args: &RadarGetOriginsSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetOriginsSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/origins/summary/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("origin", args.origin.as_deref());
builder = builder.query("metric", args.metric.as_deref());
builder = builder.query("region", args.region.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetOriginsSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_origins_timeseries_request<F>(
client: DynNetClient,
args: &RadarGetOriginsTimeseriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetOriginsTimeseriesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/origins/timeseries",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("origin", args.origin.as_deref());
builder = builder.query("metric", args.metric.as_deref());
builder = builder.query("region", args.region.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetOriginsTimeseriesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_origins_timeseries_group_request<F>(
client: DynNetClient,
args: &RadarGetOriginsTimeseriesGroupArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetOriginsTimeseriesGroupResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/origins/timeseries_groups/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("origin", args.origin.as_deref());
builder = builder.query("metric", args.metric.as_deref());
builder = builder.query("region", args.region.as_deref());
builder = builder.query("normalization", args.normalization.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetOriginsTimeseriesGroupResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_origin_details_request<F>(
client: DynNetClient,
args: &RadarGetOriginDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetOriginDetailsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/origins/{}",
args.slug,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetOriginDetailsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_origin_post_quantum_summary_request<F>(
client: DynNetClient,
args: &RadarGetOriginPostQuantumSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetOriginPostQuantumSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/post_quantum/origin/summary/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetOriginPostQuantumSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_origin_post_quantum_timeseries_groups_request<F>(
client: DynNetClient,
args: &RadarGetOriginPostQuantumTimeseriesGroupsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetOriginPostQuantumTimeseriesGroupsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/post_quantum/origin/timeseries_groups/{}",
args.dimension,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetOriginPostQuantumTimeseriesGroupsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_post_quantum_tls_support_request<F>(
client: DynNetClient,
args: &RadarGetPostQuantumTlsSupportArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetPostQuantumTlsSupportResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/post_quantum/tls/support",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("host", args.host.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetPostQuantumTlsSupportResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_quality_speed_histogram_request<F>(
client: DynNetClient,
args: &RadarGetQualitySpeedHistogramArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetQualitySpeedHistogramResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/quality/speed/histogram",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("bucketSize", args.bucket_size.as_deref());
builder = builder.query("metricGroup", args.metric_group.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetQualitySpeedHistogramResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_quality_speed_summary_request<F>(
client: DynNetClient,
args: &RadarGetQualitySpeedSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetQualitySpeedSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/quality/speed/summary",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetQualitySpeedSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_quality_speed_top_ases_request<F>(
client: DynNetClient,
args: &RadarGetQualitySpeedTopAsesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetQualitySpeedTopAsesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/quality/speed/top/ases",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("orderBy", args.order_by.as_deref());
builder = builder.query("reverse", args.reverse.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetQualitySpeedTopAsesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_quality_speed_top_locations_request<F>(
client: DynNetClient,
args: &RadarGetQualitySpeedTopLocationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetQualitySpeedTopLocationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/quality/speed/top/locations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("orderBy", args.order_by.as_deref());
builder = builder.query("reverse", args.reverse.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetQualitySpeedTopLocationsResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_ranking_internet_services_categories_request<F>(
client: DynNetClient,
args: &RadarGetRankingInternetServicesCategoriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetRankingInternetServicesCategoriesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ranking/internet_services/categories",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("date", args.date.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetRankingInternetServicesCategoriesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_ranking_internet_services_timeseries_request<F>(
client: DynNetClient,
args: &RadarGetRankingInternetServicesTimeseriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetRankingInternetServicesTimeseriesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ranking/internet_services/timeseries_groups",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("serviceCategory", args.service_category.as_deref());
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetRankingInternetServicesTimeseriesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_ranking_top_internet_services_request<F>(
client: DynNetClient,
args: &RadarGetRankingTopInternetServicesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetRankingTopInternetServicesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/ranking/internet_services/top",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("serviceCategory", args.service_category.as_deref());
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("date", args.date.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetRankingTopInternetServicesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_search_global_request<F>(
client: DynNetClient,
args: &RadarGetSearchGlobalArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetSearchGlobalResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/search/global",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("limitPerGroup", args.limit_per_group.as_deref());
builder = builder.query("query", args.query.as_deref());
builder = builder.query("include", args.include.as_deref());
builder = builder.query("exclude", args.exclude.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetSearchGlobalResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_tcp_resets_timeouts_summary_request<F>(
client: DynNetClient,
args: &RadarGetTcpResetsTimeoutsSummaryArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetTcpResetsTimeoutsSummaryResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/tcp_resets_timeouts/summary",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetTcpResetsTimeoutsSummaryResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_tcp_resets_timeouts_timeseries_group_request<F>(
client: DynNetClient,
args: &RadarGetTcpResetsTimeoutsTimeseriesGroupArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetTcpResetsTimeoutsTimeseriesGroupResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/tcp_resets_timeouts/timeseries_groups",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("aggInterval", args.agg_interval.as_deref());
builder = builder.query("name", args.name.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("continent", args.continent.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetTcpResetsTimeoutsTimeseriesGroupResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_traffic_anomalies_request<F>(
client: DynNetClient,
args: &RadarGetTrafficAnomaliesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetTrafficAnomaliesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/traffic_anomalies",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("offset", args.offset.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("status", args.status.as_deref());
builder = builder.query("type", args.r#type.as_deref());
builder = builder.query("asn", args.asn.as_deref());
builder = builder.query("location", args.location.as_deref());
builder = builder.query("origin", args.origin.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetTrafficAnomaliesResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}
pub async fn radar_get_traffic_anomalies_top_request<F>(
client: DynNetClient,
args: &RadarGetTrafficAnomaliesTopArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RadarGetTrafficAnomaliesTopResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/radar/traffic_anomalies/locations",
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("limit", args.limit.as_deref());
builder = builder.query("dateRange", args.date_range.as_deref());
builder = builder.query("dateStart", args.date_start.as_deref());
builder = builder.query("dateEnd", args.date_end.as_deref());
builder = builder.query("status", args.status.as_deref());
builder = builder.query("format", args.format.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
let response = client.send_async(builder.build()).await
.map_err(|e| super::shared::ApiError::RequestSendFailed(e.to_string()))?;
let status: usize = response.get_status().into();
let headers = response.get_headers_ref().clone();
if status < 200 || status >= 300 {
let error_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let body = (!error_bytes.is_empty())
.then(|| String::from_utf8_lossy(&error_bytes).into_owned());
return Err(super::shared::ApiError::HttpStatus { code: status as u16, headers, body });
}
let body_bytes = foundation_netio::shared::client::body_reader::collect_bytes_from_send_safe(response.take_body());
let parsed: RadarGetTrafficAnomaliesTopResponse = serde_json::from_slice(&body_bytes).map_err(|e: serde_json::Error| super::shared::ApiError::ParseFailed(e.to_string()))?;
Ok(ApiResponse { status: status as u16, headers, body: parsed })
}