-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the log_level option in services and jobs (not sync)
- Loading branch information
Showing
7 changed files
with
95 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
export default { | ||
methods: { | ||
getTitleField(value = null) { | ||
return { | ||
name: 'title', | ||
label: 'Title', | ||
schema: {type: 'string'}, | ||
default: null, | ||
value: value, | ||
optional: true | ||
}; | ||
}, | ||
getDescriptionField(value = null) { | ||
return { | ||
name: 'description', | ||
label: 'Description', | ||
schema: {type: 'string', subtype: 'commonmark'}, | ||
default: null, | ||
value: value, | ||
description: 'CommonMark (Markdown) is allowed.', | ||
optional: true | ||
}; | ||
}, | ||
getLogLevelField(value = undefined) { | ||
return { | ||
name: 'log_level', | ||
label: 'Log level', | ||
schema: {type: 'string', enum: ['debug', 'info', 'warning', 'error']}, | ||
default: 'info', | ||
value: value, | ||
description: 'The minimum severity level for log entries that the back-end stores for the processing request.\n\ndebug (all logs) > info > warning > error (only errors)', | ||
optional: true | ||
}; | ||
}, | ||
getBillingPlanField(value = undefined) { | ||
return { | ||
name: 'plan', | ||
label: 'Billing plan', | ||
schema: {type: 'string', subtype: 'billing-plan'}, | ||
value: value, | ||
optional: true | ||
}; | ||
}, | ||
getBudgetField(value = null) { | ||
return { | ||
name: 'budget', | ||
label: 'Budget limit', | ||
schema: {type: 'number', subtype: 'budget'}, | ||
default: null, | ||
value: value, | ||
optional: 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
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