DYNATRACE.OBSERVABILITY

Monitors_CreateOrUpdate

enum_ManagedIdentityType := [ "SystemAssigned", "UserAssigned", "SystemAndUserAssigned" ]
enum_MarketplaceSubscriptionStatus := [ "Active", "Suspended" ]
enum_MonitoringStatus := [ "Enabled", "Disabled" ]
enum_SingleSignOnStates := [ "Initial", "Enable", "Disable", "Existing" ]

valid {
    input.Body.properties.monitoringStatus == enum_MonitoringStatus[_]
    input.Body.properties.marketplaceSubscriptionStatus == enum_MarketplaceSubscriptionStatus[_]
    input.Body.properties.dynatraceEnvironmentProperties.userId == STRING
    input.Body.properties.dynatraceEnvironmentProperties.accountInfo.accountId == STRING
    input.Body.properties.dynatraceEnvironmentProperties.accountInfo.regionId == STRING
    input.Body.properties.dynatraceEnvironmentProperties.environmentInfo.environmentId == STRING
    input.Body.properties.dynatraceEnvironmentProperties.environmentInfo.ingestionKey == STRING
    input.Body.properties.dynatraceEnvironmentProperties.environmentInfo.logsIngestionEndpoint == STRING
    input.Body.properties.dynatraceEnvironmentProperties.environmentInfo.landingURL == STRING
    input.Body.properties.dynatraceEnvironmentProperties.singleSignOnProperties.singleSignOnState == enum_SingleSignOnStates[_]
    input.Body.properties.dynatraceEnvironmentProperties.singleSignOnProperties.enterpriseAppId == STRING
    input.Body.properties.dynatraceEnvironmentProperties.singleSignOnProperties.singleSignOnUrl == STRING
    input.Body.properties.dynatraceEnvironmentProperties.singleSignOnProperties.aadDomains[_] == STRING
    input.Body.properties.userInfo.firstName == STRING
    input.Body.properties.userInfo.lastName == STRING
    input.Body.properties.userInfo.emailAddress == STRING
    input.Body.properties.userInfo.phoneNumber == STRING
    input.Body.properties.userInfo.country == STRING
    input.Body.properties.planData.usageType == STRING
    input.Body.properties.planData.billingCycle == STRING
    input.Body.properties.planData.planDetails == STRING
    input.Body.properties.planData.effectiveDate == STRING
    input.Body.identity.type == enum_ManagedIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING.clientId == STRING
    input.Body.identity.userAssignedIdentities.STRING.principalId == STRING
    input.Body.tags.STRING == STRING
    input.Body.location == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_Delete

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_GetAccountCredentials

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_GetMarketplaceSaaSResourceDetails

valid {
    input.Body.tenantId == STRING
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Monitors_GetMetricStatus

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_GetSSODetails

valid {
    input.Body.userPrincipal == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_GetVMHostPayload

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListAppServices

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListByResourceGroup

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListBySubscriptionId

valid {
    input.ReqMap.SubscriptionID == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
}

Monitors_ListHosts

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListLinkableEnvironments

valid {
    input.Body.tenantId == STRING
    input.Body.userPrincipal == STRING
    input.Body.region == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_ListMonitoredResources

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_Update

valid {
    input.Body.tags.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Operations_List

valid {
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
}

SingleSignOn_CreateOrUpdate

enum_SingleSignOnStates := [ "Initial", "Enable", "Disable", "Existing" ]

valid {
    input.Body.properties.singleSignOnState == enum_SingleSignOnStates[_]
    input.Body.properties.enterpriseAppId == STRING
    input.Body.properties.singleSignOnUrl == STRING
    input.Body.properties.aadDomains[_] == STRING
    input.Body.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SingleSignOn_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

SingleSignOn_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_CreateOrUpdate

enum_SendAadLogsStatus := [ "Enabled", "Disabled" ]
enum_SendActivityLogsStatus := [ "Enabled", "Disabled" ]
enum_SendSubscriptionLogsStatus := [ "Enabled", "Disabled" ]
enum_SendingMetricsStatus := [ "Enabled", "Disabled" ]
enum_TagAction := [ "Include", "Exclude" ]

valid {
    input.Body.properties.logRules.sendAadLogs == enum_SendAadLogsStatus[_]
    input.Body.properties.logRules.sendSubscriptionLogs == enum_SendSubscriptionLogsStatus[_]
    input.Body.properties.logRules.sendActivityLogs == enum_SendActivityLogsStatus[_]
    input.Body.properties.logRules.filteringTags[_].name == STRING
    input.Body.properties.logRules.filteringTags[_].value == STRING
    input.Body.properties.logRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.metricRules.sendingMetrics == enum_SendingMetricsStatus[_]
    input.Body.properties.metricRules.filteringTags[_].name == STRING
    input.Body.properties.metricRules.filteringTags[_].value == STRING
    input.Body.properties.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.STRING == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.ruleSetName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_Delete

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.ruleSetName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_Get

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.ruleSetName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_List

valid {
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

TagRules_Update

enum_SendAadLogsStatus := [ "Enabled", "Disabled" ]
enum_SendActivityLogsStatus := [ "Enabled", "Disabled" ]
enum_SendSubscriptionLogsStatus := [ "Enabled", "Disabled" ]
enum_TagAction := [ "Include", "Exclude" ]

valid {
    input.Body.logRules.sendAadLogs == enum_SendAadLogsStatus[_]
    input.Body.logRules.sendSubscriptionLogs == enum_SendSubscriptionLogsStatus[_]
    input.Body.logRules.sendActivityLogs == enum_SendActivityLogsStatus[_]
    input.Body.logRules.filteringTags[_].name == STRING
    input.Body.logRules.filteringTags[_].value == STRING
    input.Body.logRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.metricRules.filteringTags[_].name == STRING
    input.Body.metricRules.filteringTags[_].value == STRING
    input.Body.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.ruleSetName == STRING
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}