App settings service
- Concept
- 1 minute
App settings allows users to store app configuration settings in a centralized location, so that all app users can retrieve the information via the SDK. For example, you can provide a configuration to access an external system.
The app can consume the settings data via the App Settings SDK.
Concepts
You need to know the following concepts to work with the app settings service.
Schemas
Schemas define the structure and constraints of the data stored in app settings. You can define any number of schemas and bundle them with your app.
Effective values
The SDK allows the app to get effective values for the defined schemas. Effective values fall back to the default values defined in the schema if no stored values are available. That way, as an app developer, you can provide the sensible default settings without needing the user to configure them first.
Secrets handling
App settings allow you to define secret properties to store sensitive information like access tokens. The autogenerated UI will mask the properties with the type secret
. However, you can get the actual values inside an app function.
Local development
For easier development, the App Settings SDK provides a plugin for the Dynatrace App Toolkit that enables you to provide mock data right out of your development environment and manipulate settings without deploying the app. To learn more, look at Local development.