App settings service
App settings provide the storage that an app can use to store structured settings data accessible to all users. It's designed to solve the use case of user-facing, structured, and validated settings configured by the user and consumed by the app. For example, if an app needs to connect to an external system, you can use the app settings to configure the connection to that 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.