CHROMEUXREPORT

chromeuxreport.records.queryHistoryRecord

enum_QueryHistoryRequestFormFactor := [ "ALL_FORM_FACTORS", "PHONE", "DESKTOP", "TABLET" ]

valid {
    input.Body.formFactor == enum_QueryHistoryRequestFormFactor[_]
    input.Body.metrics[_] == STRING
    input.Body.origin == STRING
    input.Body.url == STRING
    input.ProviderMetadata.Region == STRING
}

chromeuxreport.records.queryRecord

enum_QueryRequestFormFactor := [ "ALL_FORM_FACTORS", "PHONE", "DESKTOP", "TABLET" ]

valid {
    input.Body.effectiveConnectionType == STRING
    input.Body.formFactor == enum_QueryRequestFormFactor[_]
    input.Body.metrics[_] == STRING
    input.Body.origin == STRING
    input.Body.url == STRING
    input.ProviderMetadata.Region == STRING
}