{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/CustomerConfiguration", "title": "CustomerConfiguration", "properties": { "entityType": { "type": "string", "description": "The entityType identifies which applicableEntity of the insight the configuration will impact.

E.g. if the entityType is ACCOUNT, it means that the configurations will impact the ACCOUNT entity during evaluation.

customerConfiguration, when presented in the userSubscription API, represents the customer preferences. It may or may not match the user preferences. If user preferences differe from customer preferrences in the customerConfiguration, the user preferences will be applied for the insight.

Endpoints -", "example": "ACCOUNT", "enum": [ "ACCOUNT", "VIEW" ] }, "isSubscribed": { "type": "boolean", "description": "Insight Subscription APIs allow User to subscribe/unsubscribe at any particular entity level.

If an insight is not subscribed (isSubscribed = false) at the customer level, the insight will not be present in the userSubscription API.

If an insight is subscribed by the customer (isSubscribed = true), the insight will be subscribed automatically by the user and all the default configurations will be inherited.

The user can choose to turn off the insight by setting isSubscribed=false.

Endpoints - ", "example": true, "enum": [ true, false ] }, "frequency": { "type": "string", "description": "Identifies how often the insight will be evaluated.

Note - Evaluation does not mean an insight will be generated. If the conditions for generating an insight are not met, the insight will not get generated even after it being evaluated.

Depending on the insight, it might be editable for customers and users.

Endpoints -", "example": "DAILY", "enum": [ "DAILY", "WEEKLY", "MONTHLY", "MID_MONTHLY" ] }, "duration": { "type": "string", "description": "Identifies the duration for which the data will be considered to generate and insight.

Note Endpoints -", "example": "THIS_MONTH", "enum": [ "THIS_MONTH", "LAST_MONTH", "THREE_MONTHS", "SIX_MONTHS", "ONE_YEAR", "LAST_THREE_MONTHS", "LAST_SIX_MONTHS", "LAST_TWELVE_MONTHS" ] }, "threshold": { "type": "array", "items": { "$ref": "#/components/schemas/Threshold" } }, "isBenchmarkEnabled": { "type": "boolean", "description": "Identifies if peer benchmarking is enabled for a particular insight. The attribute will be returned only for insights that are eligible for peer benchmarking data points\n

The default value of this attribute will be based on the global configuration key to enable/disable peer benchmarking. If the global configuration is true, this attribute will be true and if the global configuration is false, this value will be false.\n

If the peer benchmarking is enabled by the customer (isBenchmarkEnabled = true), the benchmarks will be subscribed automatically by the user.\n

The user can choose to turn off the benchmark configuration for the insight by setting isBenchmarkEnabled=false.\n

Note - There are few insights for which the isBenchmarkEnabled attribute cannot be updated since benchmark amount is essential for the insight evaluation.\n

Endpoints - ", "example": true, "enum": [ true, false ] } } }