// -*- mode: C++ -*-
// AUTOGENERATED BY glean_parser. DO NOT EDIT.
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_GleanNetwerkDnsMetrics_h
#define mozilla_GleanNetwerkDnsMetrics_h
#include "mozilla/glean/bindings/MetricTypes.h"
namespace mozilla::glean {
namespace dns {
/**
* generated from dns.by_type_cleanup_age
* DNS Cache Entry Age for by-type queries at Removal Time (minutes)
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_BY_TYPE_CLEANUP_AGE.
*/
constexpr impl::TimingDistributionMetric by_type_cleanup_age(4479);
/**
* generated from dns.by_type_failed_lookup_time
* Time for a completed by-type resolution that has a negative answer (msec).
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_BY_TYPE_FAILED_LOOKUP_TIME.
*/
constexpr impl::TimingDistributionMetric by_type_failed_lookup_time(4480);
/**
* generated from dns.by_type_premature_eviction
* DNS Cache Entry Age for by-type queries at Removal Time of non-expired entries (minutes)
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_BY_TYPE_PREMATURE_EVICTION.
*/
constexpr impl::TimingDistributionMetric by_type_premature_eviction(4481);
/**
* generated from dns.by_type_succeeded_lookup_time
* Time for a completed by-type resolution that succeeded (msec).
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_BY_TYPE_SUCCEEDED_LOOKUP_TIME.
*/
constexpr impl::TimingDistributionMetric by_type_succeeded_lookup_time(4482);
/**
* generated from dns.cleanup_age
* DNS Cache Entry Age at Removal Time (minutes)
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_CLEANUP_AGE.
*/
constexpr impl::TimingDistributionMetric cleanup_age(4483);
/**
* generated from dns.lookup_algorithm
*/
enum class LookupAlgorithmLabel: uint16_t {
eNativeonly = 0,
eTrrrace = 1,
eTrrfirst = 2,
eTrronly = 3,
eTrrshadow = 4,
e__Other__,
};
/**
* DNS: lookup algorithm
* This metric was generated to correspond to the Legacy Telemetry categorical histogram DNS_LOOKUP_ALGORITHM.
*/
constexpr impl::Labeled<impl::CounterMetric<impl::CounterType::eBaseOrLabeled>, LookupAlgorithmLabel> lookup_algorithm(4484);
/**
* generated from dns.lookup_disposition
* DNS: lookup algorithm; Keyed by TRR domain
* This metric was generated to correspond to the Legacy Telemetry categorical histogram DNS_LOOKUP_DISPOSITION3.
*/
constexpr impl::DualLabeledCounterMetric lookup_disposition(4485);
/**
* generated from dns.lookup_method
* DNS Lookup Type (hit, renewal, negative-hit, literal, overflow, network-first, network-shared)
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram DNS_LOOKUP_METHOD2.
*/
constexpr impl::CustomDistributionMetric lookup_method(4486);
/**
* generated from dns.native_lookup_time
* Time for a completed native name resolution (msec)
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_NATIVE_LOOKUP_TIME.
*/
constexpr impl::TimingDistributionMetric native_lookup_time(4487);
/**
* generated from dns.native_queuing
* Time in resolve queue waiting to getaddrinfo (msec)
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_NATIVE_QUEUING.
*/
constexpr impl::TimingDistributionMetric native_queuing(4488);
/**
* generated from dns.premature_eviction
* DNS Cache Entry Age at Removal Time of non-expired entries (minutes)
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_PREMATURE_EVICTION.
*/
constexpr impl::TimingDistributionMetric premature_eviction(4489);
/**
* generated from dns.trr_attempt_count
* Number of times we attempted TRR for a successful lookup in TRR-first mode. Keyed by provider.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_ATTEMPT_COUNT.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_attempt_count(4490);
/**
* generated from dns.trr_blacklisted
* DNS check for TRR was blocked by blacklist; Keyed by TRR domain
* This metric was generated to correspond to the Legacy Telemetry boolean histogram DNS_TRR_BLACKLISTED3.
*/
constexpr impl::DualLabeledCounterMetric trr_blacklisted(4491);
/**
* generated from dns.trr_disabled
* Resolve success rate when in TRR-first and called TRR-disabled (fall-back mode); Keyed by TRR domain
* This metric was generated to correspond to the Legacy Telemetry boolean histogram DNS_TRR_DISABLED3.
*/
constexpr impl::DualLabeledCounterMetric trr_disabled(4492);
/**
* generated from dns.trr_first
* TRR-first mode distribution. 0=Worked, 1=fell back fine after TRR fail, 2=native worked, 3=both failed; Keyed by TRR domain
* This metric was generated to correspond to the Legacy Telemetry categorical histogram DNS_TRR_FIRST4.
*/
constexpr impl::DualLabeledCounterMetric trr_first(4493);
/**
* generated from dns.trr_http3_0rtt_state
*/
enum class TrrHttp30rttStateLabel: uint16_t {
eNotUsed = 0,
eSucceeded = 1,
eRejected = 2,
eConnError = 3,
eConnClosedByNecko = 4,
e__Other__,
};
/**
* Outcome of 0-RTT usage for TRR HTTP/3 connections: - "not_used": 0RTT was not used - "succeeded": 0RTT was used and succeeded - "rejected": 0RTT was used but rejected by the server - "conn_error": 0RTT was used but connection error occurred - "conn_closed_by_necko": 0RTT was used but connection was closed by necko
*/
constexpr impl::Labeled<impl::CounterMetric<impl::CounterType::eBaseOrLabeled>, TrrHttp30rttStateLabel> trr_http3_0rtt_state(4494);
/**
* generated from dns.trr_http3_0rtt_state_duration
*/
enum class TrrHttp30rttStateDurationLabel: uint16_t {
eSucceeded = 0,
eRejected = 1,
eConnError = 2,
eConnClosedByNecko = 3,
eNotUsed = 4,
e__Other__,
};
/**
* The time a TRR HTTP/3 connection was in the 0-RTT state before transitioning to a final outcome.
*/
constexpr impl::Labeled<impl::TimingDistributionMetric, TrrHttp30rttStateDurationLabel> trr_http3_0rtt_state_duration(4495);
/**
* generated from dns.trr_http_version
* HTTP version used by DoH endpoint
* This metric was generated to correspond to the Legacy Telemetry categorical histogram DNS_TRR_HTTP_VERSION2.
*/
constexpr impl::DualLabeledCounterMetric trr_http_version(4496);
/**
* generated from dns.trr_lookup_time
* Time for a completed TRR resolution (msec); Keyed by TRR domain
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_TRR_LOOKUP_TIME3.
*/
constexpr impl::Labeled<impl::TimingDistributionMetric, DynamicLabel> trr_lookup_time(4497);
/**
* generated from dns.trr_ns_verfified
* TRR managed to verify NS entry; Keyed by TRR domain
* This metric was generated to correspond to the Legacy Telemetry boolean histogram DNS_TRR_NS_VERFIFIED3.
*/
constexpr impl::DualLabeledCounterMetric trr_ns_verfified(4498);
/**
* generated from dns.trr_processing_time
* Time from the last received byte of the response until we have notified the consumer with a DNS record (msec)
* This metric was generated to correspond to the Legacy Telemetry exponential histogram DNS_TRR_PROCESSING_TIME.
*/
constexpr impl::TimingDistributionMetric trr_processing_time(4499);
/**
* generated from dns.trr_relevant_skip_reason_native_failed
* When in TRR-first mode, if TRR was skipped and native failed, it lists the reason we may have skipped TRR, keyed by the provider. Does not include requests that intentionally skip TRR.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_RELEVANT_SKIP_REASON_NATIVE_FAILED.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_relevant_skip_reason_native_failed(4500);
/**
* generated from dns.trr_relevant_skip_reason_native_success
* When in TRR-first mode, if TRR was skipped and native succeeded, it lists the reason we may have skipped TRR, keyed by the provider. Does not include requests that intentionally skip TRR.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_RELEVANT_SKIP_REASON_NATIVE_SUCCESS.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_relevant_skip_reason_native_success(4501);
/**
* generated from dns.trr_relevant_skip_reason_trr_first
* When in TRR-first mode, it lists the reason we may have skipped TRR, keyed by the provider. Does not include requests that intentionally skip TRR.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_RELEVANT_SKIP_REASON_TRR_FIRST.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_relevant_skip_reason_trr_first(4502);
/**
* generated from dns.trr_relevant_skip_reason_trr_first_type_rec
* When in TRR-first mode, it lists the reason we may have skipped TRR for HTTPS RR, keyed by the provider. Does not include requests that intentionally skip TRR.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_RELEVANT_SKIP_REASON_TRR_FIRST_TYPE_REC.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_relevant_skip_reason_trr_first_type_rec(4503);
/**
* generated from dns.trr_skip_reason_native_failed
* When in TRR-first mode, if TRR was skipped and native failed, it lists the reason we may have skipped TRR, keyed by the provider.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_SKIP_REASON_NATIVE_FAILED.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_skip_reason_native_failed(4504);
/**
* generated from dns.trr_skip_reason_native_success
* When in TRR-first mode, if TRR was skipped and native succeeded, it lists the reason we may have skipped TRR, keyed by the provider.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_SKIP_REASON_NATIVE_SUCCESS.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_skip_reason_native_success(4505);
/**
* generated from dns.trr_skip_reason_retry_failed
* When in TRR-first mode, if TRR failed once and retried unsuccessfully, it lists the reason for the first failure, keyed by the provider.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_SKIP_REASON_RETRY_FAILED.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_skip_reason_retry_failed(4506);
/**
* generated from dns.trr_skip_reason_retry_success
* When in TRR-first mode, if TRR failed once and was successfully retried, it lists the reason for the first failure, keyed by the provider.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_SKIP_REASON_RETRY_SUCCESS.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_skip_reason_retry_success(4507);
/**
* generated from dns.trr_skip_reason_strict_mode
* When in TRR-first mode, it lists the reason we may have skipped TRR. The key is like `<provider>|<skip reason of first attempt>` or just `<provider>` used when there was no second attempt.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_SKIP_REASON_STRICT_MODE.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_skip_reason_strict_mode(4508);
/**
* generated from dns.trr_skip_reason_trr_first
* When in TRR-first mode, it lists the reason we may have skipped TRR, keyed by the provider.
* This metric was generated to correspond to the Legacy Telemetry enumerated histogram TRR_SKIP_REASON_TRR_FIRST2.
*/
constexpr impl::Labeled<impl::CustomDistributionMetric, DynamicLabel> trr_skip_reason_trr_first(4509);
/**
* generated from dns.trr_success
* How often TRR (Trusted Recursive Resolver) requests are fine, time-out or error. Keyed by TRR domain
* This metric was generated to correspond to the Legacy Telemetry categorical histogram DNS_TRR_SUCCESS3.
*/
constexpr impl::DualLabeledCounterMetric trr_success(4510);
}
} // namespace mozilla::glean
#endif // mozilla_GleanNetwerkDnsMetrics_h