You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current PING_URL functionality is very limited, as it only supports the simplest GET requests. To better adapt to the invocation methods of notification and health check tools available in the market, the following features will be added:
Add environment variables for attaching curl options to PING_URL, PING_URL_WHEN_START, PING_URL_WHEN_SUCCESS, and PING_URL_WHEN_FAILURE. These will be named by appending the _CURL_OPTIONS suffix. For example, the PING_URL_CURL_OPTIONS environment variable will allow attaching curl options to PING_URL.
Add placeholders for replacing the actual title and content for the eight environment variables mentioned in the first point. The placeholder for the subject is %{subject}, and for the content, it is %{content}. Note that the title and content may contain spaces. For the four environment variables that include _CURL_OPTIONS, the placeholders will be replaced directly, preserving spaces. For the other PING_URL environment variables, spaces will be replaced with + to comply with URL rules.
The planned request command is curl ${PING_URL_CURL_OPTIONS} ${PING_URL}.
The current
PING_URL
functionality is very limited, as it only supports the simplest GET requests. To better adapt to the invocation methods of notification and health check tools available in the market, the following features will be added:Add environment variables for attaching curl options to
PING_URL
,PING_URL_WHEN_START
,PING_URL_WHEN_SUCCESS
, andPING_URL_WHEN_FAILURE
. These will be named by appending the_CURL_OPTIONS
suffix. For example, thePING_URL_CURL_OPTIONS
environment variable will allow attaching curl options toPING_URL
.Add placeholders for replacing the actual title and content for the eight environment variables mentioned in the first point. The placeholder for the subject is
%{subject}
, and for the content, it is%{content}
. Note that the title and content may contain spaces. For the four environment variables that include_CURL_OPTIONS
, the placeholders will be replaced directly, preserving spaces. For the otherPING_URL
environment variables, spaces will be replaced with+
to comply with URL rules.The planned request command is
curl ${PING_URL_CURL_OPTIONS} ${PING_URL}
.Related #161
The text was updated successfully, but these errors were encountered: