Function generateGatusExternalEndpointURL

  • Generates a URL to the API endpoint where external statuses should be posted. If hostname starts with localhost, the http protocol is assumed instead of https.

    Parameters

    • hostname: string

      Hostname of the Gatus webserver. Without http(s) prefix.

    • endpointKey: string

      Endpoint key for the external endpoint you are targetting.

    Returns string

    The URL of the external endpoint on the regular Gatus API.

    generateEndpointKey