Compare commits

..

4 Commits

Author SHA1 Message Date
deployer3000 f943abeed2 Merge pull request 'rc' (#32) from rc into master 2025-05-16 14:20:06 +03:00
Vladislav Drozdov e60d4d08e7 Merge pull request 'feature/ecmdb-auth' (#31) from feature/ecmdb-auth into rc
test-org/integration-module/pipeline/pr-master Build succeeded
Reviewed-on: http://git.enode/deployer3000/integration-module/pulls/31
2025-05-16 14:15:43 +03:00
prplV 2430581948 new version
test-org/integration-module/pipeline/pr-rc This commit looks good Details
2025-05-16 05:35:38 -04:00
prplV a0b9365120 new auth 2025-05-16 05:35:34 -04:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "api-grub"
version = "1.0.2"
version = "1.0.11"
edition = "2021"
authors = ["Vladislav Drozdov <maseeeeeeeed@gmail.com>"]
description = "API poller for ZVKS project"

View File

@ -194,7 +194,7 @@ impl MonitoringImporter {
.post(url)
.timeout(tokio::time::Duration::from_secs(self.timeout as u64))
.header("Content-Type", "application/json")
.header("access-token", &self.access_token)
.bearer_auth(&self.access_token)
.json(&Query::default());
let resp = client.send().await?.text().await?;
let resp: Value = serde_json::from_str(&resp)?;
@ -307,7 +307,7 @@ impl MonitoringImporter {
.get(format!("http://{}/e-nms/mirror/measure/{}", arc.ip, &measure))
.timeout(tokio::time::Duration::from_secs(arc.timeout as u64))
.header("Content-Type", "application/json")
.header("access-token", &arc.access_token)
.bearer_auth(&arc.access_token)
.send().await?
.text().await?;
tokio::task::yield_now().await;