Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON config support #7

Open
plusreed opened this issue Nov 17, 2022 · 1 comment · May be fixed by #10
Open

JSON config support #7

plusreed opened this issue Nov 17, 2022 · 1 comment · May be fixed by #10
Assignees
Labels
enhancement New feature or request

Comments

@plusreed
Copy link
Member

Config file would look something like this and would be saved as tkrcfg.json:

{
    "tkrConfigSchemaVersion": 1,
    "config": {
        "db2": {
            "serializeOnBoot": true,
            "serializeCronString": "*/5 * * * *"
        },
        "timeoutMs": 5000,
        "checks": [
            {
                "type": "common",
                "params": [
                    "https://api.prod.hype.space",
                    "hypeapi"
                ]
            },
            {
                "type": "common",
                "params": [
                    "https://ws.prod.hype.space",
                    "hypeapi-websocket"
                ]
            },
            {
                "type": "common",
                "params": [
                    "https://telemetry.prod.hype.space",
                    "api-telemetry"
                ]
            },
            {
                "type": "stream",
                "params": [
                    "internet_high"
                ]
            },
            {
                "type": "stream",
                "params": [
                    "intranet_high"
                ]
            },
            {
                "type": "stream",
                "params": [
                    "wirecast_high"
                ]
            }
        ]
    }
}
@plusreed plusreed added the enhancement New feature or request label Nov 17, 2022
@plusreed plusreed self-assigned this Nov 17, 2022
@plusreed
Copy link
Member Author

a9d1d18 lays out the structure for parsing the config file without any actual code for now.

@plusreed plusreed linked a pull request Jan 17, 2023 that will close this issue
@plusreed plusreed linked a pull request Jan 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant