fix port type

This commit is contained in:
tahahawa 2025-06-26 10:17:24 -04:00
parent eeae14b6bb
commit cbbe52fe9b
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ async fn main() {
);
let service_monitor_endpoint = ServiceMonitorEndpoint {
port: Some(80),
port: Some("80".to_string()),
target_port: None,
bearer_token_file: None,
interval: None,

View File

@ -96,11 +96,11 @@ pub struct ServiceMonitorTLSConfig {
pub struct ServiceMonitorEndpoint {
// ## Name of the endpoint's service port
// ## Mutually exclusive with targetPort
pub port: Option<u16>,
pub port: Option<String>,
// ## Name or number of the endpoint's target port
// ## Mutually exclusive with port
pub target_port: Option<u16>,
pub target_port: Option<String>,
// ## File containing bearer token to be used when scraping targets
// ##