#[macro_export]
macro_rules! service_check {
($stat:expr, $service_status:path) => {
$crate::Datadog::service_check($stat, $service_status, $crate::EMPTY_TAGS, None);
};
($stat:expr, $service_status:path, $options: expr) => {
$crate::Datadog::service_check($stat, $service_status, $crate::EMPTY_TAGS, Some($options));
};
($stat:path, $service_status:path) => {
$crate::Datadog::service_check($stat.as_ref(), $service_status, $crate::EMPTY_TAGS, None);
};
($stat:path, $service_status:path, $options: expr) => {
$crate::Datadog::service_check($stat.as_ref(), $service_status, $crate::EMPTY_TAGS, Some($options));
};
($stat:expr, $service_status:path; $( $key:literal => $value:literal ), *) => {
$crate::Datadog::service_check($stat, $service_status, &[$(::core::concat!($key, ":", $value)), *], None);
};
($stat:expr, $service_status:path, $options: expr; $( $key:literal => $value:literal ), *) => {
$crate::Datadog::service_check($stat, $service_status, &[$(::core::concat!($key, ":", $value)), *], Some($options));
};
($stat:path, $service_status:path; $( $key:literal => $value:literal ), *) => {
$crate::Datadog::service_check($stat.as_ref(), $service_status, &[$(::core::concat!($key, ":", $value)), *], None);
};
($stat:path, $service_status:path, $options: expr; $( $key:literal => $value:literal ), *) => {
$crate::Datadog::service_check($stat.as_ref(), $service_status, &[$(::core::concat!($key, ":", $value)), *], Some($options));
};
($stat:expr, $service_status:path; $( $key:expr => $value:expr ), *) => {
$crate::Datadog::service_check($stat, $service_status, &[$(::std::format!("{}:{}", $key, $value).as_str()), *], None);
};
($stat:expr, $service_status:path, $options: expr; $( $key:expr => $value:expr ), *) => {
$crate::Datadog::service_check($stat, $service_status, &[$(::std::format!("{}:{}", $key, $value).as_str()), *], Some($options));
};
($stat:path, $service_status:path; $( $key:expr => $value:expr ), *) => {
$crate::Datadog::service_check($stat.as_ref(), $service_status, &[$(::std::format!("{}:{}", $key, $value).as_str()), *], None);
};
($stat:path, $service_status:path, $options: expr; $( $key:expr => $value:expr ), *) => {
$crate::Datadog::service_check($stat.as_ref(), $service_status, &[$(::std::format!("{}:{}", $key, $value).as_str()), *], Some($options));
};
}