-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthew Watkins <[email protected]>
- Loading branch information
1 parent
a6b2e15
commit 6a20076
Showing
15 changed files
with
230 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ services: | |
|
||
networks: | ||
localnet: | ||
external: true | ||
external: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "osc-dm-monitor-srv" | ||
version = "v0.1.1" | ||
dynamic = ["version"] | ||
description = "Ecosystem Platform Monitor." | ||
authors = [ | ||
{ name = "Eric Broda", email = "[email protected]" }, | ||
|
@@ -71,7 +71,7 @@ dependencies = [ | |
|
||
[tool.setuptools.package-data] | ||
itr = [ | ||
"py.typed" | ||
"py.typed", "types-PyYAML" | ||
] | ||
|
||
[project.urls] | ||
|
@@ -83,7 +83,7 @@ Documentation = "https://github.com/brodagroupsoftware/osc-dm-mesh-doc" | |
"Source Code" = "https://github.com/os-climate/osc-dm-monitor-srv" | ||
|
||
[build-system] | ||
requires = ["pdm-backend"] | ||
requires = ["pdm-backend", "types-PyYAML"] | ||
build-backend = "pdm.backend" | ||
|
||
[tool.pdm.scripts] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,19 @@ | |
# | ||
# Created: 2024-04-15 by [email protected] | ||
|
||
import asyncio | ||
|
||
# Library imports | ||
import logging | ||
|
||
import uvicorn as uvicorn | ||
from fastapi import FastAPI, HTTPException | ||
import yaml | ||
import asyncio | ||
from fastapi import FastAPI, HTTPException | ||
|
||
import state | ||
|
||
# Project imports | ||
import utilities | ||
import state | ||
|
||
# Set up logging | ||
LOGGING_FORMAT = \ | ||
|
@@ -173,4 +175,4 @@ async def _repeat_every(interval_sec, func, *args): | |
except Exception as e: | ||
logger.info(f"STOPPING service, exception:{e}") | ||
finally: | ||
logger.info(f"TERMINATING service on host:{args.host} port:{args.port}") | ||
logger.info(f"TERMINATING service on host:{args.host} port:{args.port}") |
Oops, something went wrong.