NEWRELIC.OBSERVABILITY

Accounts_List

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

BillingInfo_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
}

ConnectedPartnerResources_List

valid {
    input.Body == 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
}

MonitoredSubscriptions_CreateOrUpdate

enum_ConfigurationNameParameter := [ "default" ]
enum_MonitoredSubscriptionStatus := [ "InProgress", "Active", "Failed", "Deleting" ]
enum_SendAadLogsStatus := [ "Enabled", "Disabled" ]
enum_SendActivityLogsStatus := [ "Enabled", "Disabled" ]
enum_SendMetricsStatus := [ "Enabled", "Disabled" ]
enum_SendSubscriptionLogsStatus := [ "Enabled", "Disabled" ]
enum_SubscriptionListPatchOperation := [ "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", "Active" ]
enum_TagAction := [ "Include", "Exclude" ]

valid {
    input.Body.properties.patchOperation == enum_SubscriptionListPatchOperation[_]
    input.Body.properties.monitoredSubscriptionList[_].subscriptionId == STRING
    input.Body.properties.monitoredSubscriptionList[_].status == enum_MonitoredSubscriptionStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].error == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendAadLogs == enum_SendAadLogsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendSubscriptionLogs == enum_SendSubscriptionLogsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendActivityLogs == enum_SendActivityLogsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.sendMetrics == enum_SendMetricsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.userEmail == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == enum_ConfigurationNameParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

MonitoredSubscriptions_Delete

enum_ConfigurationNameParameter := [ "default" ]

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

MonitoredSubscriptions_Get

enum_ConfigurationNameParameter := [ "default" ]

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

MonitoredSubscriptions_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
}

MonitoredSubscriptions_Update

enum_ConfigurationNameParameter := [ "default" ]
enum_MonitoredSubscriptionStatus := [ "InProgress", "Active", "Failed", "Deleting" ]
enum_SendAadLogsStatus := [ "Enabled", "Disabled" ]
enum_SendActivityLogsStatus := [ "Enabled", "Disabled" ]
enum_SendMetricsStatus := [ "Enabled", "Disabled" ]
enum_SendSubscriptionLogsStatus := [ "Enabled", "Disabled" ]
enum_SubscriptionListPatchOperation := [ "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", "Active" ]
enum_TagAction := [ "Include", "Exclude" ]

valid {
    input.Body.properties.patchOperation == enum_SubscriptionListPatchOperation[_]
    input.Body.properties.monitoredSubscriptionList[_].subscriptionId == STRING
    input.Body.properties.monitoredSubscriptionList[_].status == enum_MonitoredSubscriptionStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].error == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendAadLogs == enum_SendAadLogsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendSubscriptionLogs == enum_SendSubscriptionLogsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.sendActivityLogs == enum_SendActivityLogsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.logRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.sendMetrics == enum_SendMetricsStatus[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].name == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].value == STRING
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.monitoredSubscriptionList[_].tagRules.metricRules.userEmail == STRING
    input.ReqMap.SubscriptionID == STRING
    input.ReqMap.ResourceGroup == STRING
    input.ReqMap.monitorName == STRING
    input.ReqMap.configurationName == enum_ConfigurationNameParameter[_]
    input.Qs.api-version == STRING
    input.ProviderMetadata.Region == STRING
    input.ProviderMetadata.SubscriptionID == STRING
    input.ProviderMetadata.ResourceGroup == STRING
}

Monitors_CreateOrUpdate

enum_AccountCreationSource := [ "LIFTR", "NEWRELIC" ]
enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" ]
enum_OrgCreationSource := [ "LIFTR", "NEWRELIC" ]
enum_ProvisioningState := [ "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified" ]
enum_SingleSignOnStates := [ "Initial", "Enable", "Disable", "Existing" ]
enum_UsageType := [ "PAYG", "COMMITTED" ]

valid {
    input.Body.properties.newRelicAccountProperties.userId == STRING
    input.Body.properties.newRelicAccountProperties.accountInfo.accountId == STRING
    input.Body.properties.newRelicAccountProperties.accountInfo.ingestionKey == STRING
    input.Body.properties.newRelicAccountProperties.accountInfo.region == STRING
    input.Body.properties.newRelicAccountProperties.organizationInfo.organizationId == STRING
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.singleSignOnState == enum_SingleSignOnStates[_]
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.enterpriseAppId == STRING
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.singleSignOnUrl == STRING
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.provisioningState == enum_ProvisioningState[_]
    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 == enum_UsageType[_]
    input.Body.properties.planData.billingCycle == STRING
    input.Body.properties.planData.planDetails == STRING
    input.Body.properties.planData.effectiveDate == STRING
    input.Body.properties.orgCreationSource == enum_OrgCreationSource[_]
    input.Body.properties.accountCreationSource == enum_AccountCreationSource[_]
    input.Body.properties.subscriptionState == STRING
    input.Body.properties.saaSAzureSubscriptionStatus == STRING
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.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.Qs.userEmail == 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_GetMetricRules

valid {
    input.Body.userEmail == 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_GetMetricStatus

valid {
    input.Body.azureResourceIds[_] == STRING
    input.Body.userEmail == 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_ListAppServices

valid {
    input.Body.azureResourceIds[_] == STRING
    input.Body.userEmail == 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_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_ListBySubscription

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

Monitors_ListHosts

valid {
    input.Body.vmIds[_] == STRING
    input.Body.userEmail == 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_ListLinkedResources

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_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_SwitchBilling

enum_UsageType := [ "PAYG", "COMMITTED" ]

valid {
    input.Body.azureResourceId == STRING
    input.Body.organizationId == STRING
    input.Body.planData.usageType == enum_UsageType[_]
    input.Body.planData.billingCycle == STRING
    input.Body.planData.planDetails == STRING
    input.Body.planData.effectiveDate == STRING
    input.Body.userEmail == 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_Update

enum_AccountCreationSource := [ "LIFTR", "NEWRELIC" ]
enum_ManagedServiceIdentityType := [ "None", "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned" ]
enum_OrgCreationSource := [ "LIFTR", "NEWRELIC" ]
enum_ProvisioningState := [ "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified" ]
enum_SingleSignOnStates := [ "Initial", "Enable", "Disable", "Existing" ]
enum_UsageType := [ "PAYG", "COMMITTED" ]

valid {
    input.Body.identity.type == enum_ManagedServiceIdentityType[_]
    input.Body.identity.userAssignedIdentities.STRING == {}
    input.Body.tags.STRING == STRING
    input.Body.properties.newRelicAccountProperties.userId == STRING
    input.Body.properties.newRelicAccountProperties.accountInfo.accountId == STRING
    input.Body.properties.newRelicAccountProperties.accountInfo.ingestionKey == STRING
    input.Body.properties.newRelicAccountProperties.accountInfo.region == STRING
    input.Body.properties.newRelicAccountProperties.organizationInfo.organizationId == STRING
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.singleSignOnState == enum_SingleSignOnStates[_]
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.enterpriseAppId == STRING
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.singleSignOnUrl == STRING
    input.Body.properties.newRelicAccountProperties.singleSignOnProperties.provisioningState == enum_ProvisioningState[_]
    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 == enum_UsageType[_]
    input.Body.properties.planData.billingCycle == STRING
    input.Body.properties.planData.planDetails == STRING
    input.Body.properties.planData.effectiveDate == STRING
    input.Body.properties.orgCreationSource == enum_OrgCreationSource[_]
    input.Body.properties.accountCreationSource == enum_AccountCreationSource[_]
    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_VmHostPayload

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
}

Operations_List

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

Organizations_List

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

Plans_List

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

TagRules_CreateOrUpdate

enum_SendAadLogsStatus := [ "Enabled", "Disabled" ]
enum_SendActivityLogsStatus := [ "Enabled", "Disabled" ]
enum_SendMetricsStatus := [ "Enabled", "Disabled" ]
enum_SendSubscriptionLogsStatus := [ "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.sendMetrics == enum_SendMetricsStatus[_]
    input.Body.properties.metricRules.filteringTags[_].name == STRING
    input.Body.properties.metricRules.filteringTags[_].value == STRING
    input.Body.properties.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.metricRules.userEmail == STRING
    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_ListByNewRelicMonitorResource

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_SendMetricsStatus := [ "Enabled", "Disabled" ]
enum_SendSubscriptionLogsStatus := [ "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.sendMetrics == enum_SendMetricsStatus[_]
    input.Body.properties.metricRules.filteringTags[_].name == STRING
    input.Body.properties.metricRules.filteringTags[_].value == STRING
    input.Body.properties.metricRules.filteringTags[_].action == enum_TagAction[_]
    input.Body.properties.metricRules.userEmail == 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
}