@php
$parameters[] = [
'name' => 'name',
'type' => $type,
'format' => 'string',
'description' => __('Name') . '.'
];
$parameters[] = [
'name' => 'url',
'type' => $type,
'format' => 'string',
'description' => __('URL') . '.'
];
$parameters[] = [
'name' => 'interval',
'type' => $type,
'format' => 'integer',
'description' => __('Interval') . '. '. __('Possible values are: :values.', [
'values' => '' . implode(', ', config('intervals.http')) . ''])
];
$parameters[] = [
'name' => 'alert_condition',
'type' => $type,
'format' => 'string',
'description' => __('Alert condition') . '. ' . __('Possible values are: :values.', [
'values' => implode(', ', array_map(function($value, $name) { return __(':value for :name', ['value' => '' . $value . '', 'name' => '' . __($name) . '']); }, array_keys(config('alert.conditions')), config('alert.conditions')))])
];
$parameters[] = [
'name' => 'alert_text_lookup',
'type' => 0,
'format' => 'string',
'description' => __('Text to be looked-up to trigger alerts.') . ' ' . __('Only works with :field field set to :value.', ['field' => 'alert_condition', 'value' => 'url_text, url_no_text'])
];
$parameters[] = [
'name' => 'request_method',
'type' => $type,
'format' => 'string',
'description' => __('Request method') . '. '. __('Possible values are: :values.', [
'values' => '' . implode(', ', config('request.methods')) . ''])
];
$parameters[] = [
'name' => 'request_headers[index][key]',
'type' => 0,
'format' => 'string',
'description' => __('Request header name.')
];
$parameters[] = [
'name' => 'request_headers[index][value]',
'type' => 0,
'format' => 'string',
'description' => __('Request header value.')
];
$parameters[] = [
'name' => 'request_auth_username',
'type' => 0,
'format' => 'string',
'description' => __('Username for Basic HTTP request authentication.')
];
$parameters[] = [
'name' => 'request_auth_password',
'type' => 0,
'format' => 'string',
'description' => __('Password for Basic HTTP request authentication.')
];
$parameters[] = [
'name' => 'cache_buster',
'type' => 0,
'format' => 'integer',
'description' => __('Cache buster') . '. ' . __('Possible values are: :values.', [
'values' => implode(', ', [
__(':value for :name', ['value' => '0', 'name' => ''.__('Disabled').'']),
__(':value for :name', ['value' => '1', 'name' => ''.__('Enabled').''])
])
]) . ($type ? ' ' . __('Defaults to: :value.', ['value' => '0']) : '')
];
$parameters[] = [
'name' => 'ssl_alert_days',
'type' => 0,
'format' => 'integer',
'description' => __('The number of days before SSL certificate expiration to receive an alert.') . ' '. __('Possible values are: :values.', [
'values' => '' . implode(', ', config('intervals.ssl')) . ''])
];
$parameters[] = [
'name' => 'domain_alert_days',
'type' => 0,
'format' => 'integer',
'description' => __('The number of days before domain name expiration to receive an alert.') . ' '. __('Possible values are: :values.', [
'values' => '' . implode(', ', config('intervals.ssl')) . ''])
];
$parameters[] = [
'name' => 'maintenance_start_at',
'type' => 0,
'format' => 'string',
'description' => __('Maintenance starting date in :format format.', ['format' => 'Y-m-d H:i'])
];
$parameters[] = [
'name' => 'maintenance_end_at',
'type' => 0,
'format' => 'string',
'description' => __('Maintenance ending date in :format format.', ['format' => 'Y-m-d H:i'])
];
$parameters[] = [
'name' => 'alerts[index][key]',
'type' => 0,
'format' => 'string',
'description' => __('Alert channels') . '. ' . __('Possible values are: :values.', [
'values' => implode(', ', array_map(function($value, $name) { return __(':value for :name', ['value' => '' . $value . '', 'name' => '' . $name . '']); }, array_keys(config('alert.channels')), config('alert.channels')))])
];
$parameters[] = [
'name' => 'alerts[index][value]',
'type' => 0,
'format' => 'string',
'description' => __('Value of the alert.')
];
if(!$type) {
$parameters[] = [
'name' => 'paused',
'type' => 0,
'format' => 'boolean',
'description' => __('Paused') . '.'
];
}
@endphp
@include('developers.parameters')