Types
Reference for each object, enum, and scalar in the schema of the Prescient GraphQL API, with the fields and the values of each one.
The schema has 15 types. Each query page links to the types that the query uses.
Objects
Section titled “Objects”An object is a set of fields that a query returns.
The name of the model
The unit in which this model's metrics are measured in
Used by: models.
ModeledMetricQuery
Section titled “ModeledMetricQuery”The array containing the modeled metric rows
Pagination info for the query
Used by: modeledMetrics.
ModeledMetricRow
Section titled “ModeledMetricRow”The type of the metric
The value of the metric
The date the metric was created or last updated
The date the metric corresponds to. This is a date string in the format of YYYY-MM-DD
The ID for the campaign
The name of the campaign
The tactic the campaign is labeled with in the Data Center, if any
The data source channel of the campaign
The name of the model that produced this metric
The channel that the modeling attributes credit for this metric. Only applies to second order metrics.
Used by: ModeledMetricQuery.
PageInfo
Section titled “PageInfo”The cursor for the next page, if there is one
Whether a next page exists or not
Used by: ModeledMetricQuery, ReportedMetricQuery.
ReportedMetricQuery
Section titled “ReportedMetricQuery”The array containing the reported metric rows
Pagination info for the query
Used by: reportedMetrics.
ReportedMetricRow
Section titled “ReportedMetricRow”The ID for the campaign
The name of the campaign
The data source channel of the campaign
The date the metric was created or last updated
The date the metric corresponds to
The spend amount for the campaign on this date
Used by: ReportedMetricQuery.
An enum is a fixed list of values. Write a value without quotation marks in a query, and as a string in the variables.
MetricName
Section titled “MetricName”New Customers attributed to direct conversions from the campaign, such as last click attribution
Leads attributed to direct conversions from the campaign, such as last click attribution
Revenue attributed to direct conversions from the campaign, such as last click attribution
Subscriptions attributed to direct conversions from the campaign, such as last click attribution
New Customers attributed to halo effects from the campaign
Leads attributed to halo effects from the campaign
Revenue attributed to halo effects from the campaign
Subscriptions attributed to halo effects from the campaign
Used by: ModeledMetricRow.
MetricUnit
Section titled “MetricUnit”The metrics are measured in new customers
The metrics are measured by revenue in USD
The metrics are measured in subscriptions
Used by: Model.
SalesChannelEnum
Section titled “SalesChannelEnum”Sales channel for filtering modeled metrics output
Used by: modeledMetrics.
Scalars
Section titled “Scalars”A scalar is one value, for example a date or a number.
BigInt
Section titled “BigInt”Represents non-fractional signed whole numeric values. Since the value may exceed the size of a 32-bit integer, it’s encoded as a string.
Used by: modeledMetrics, reportedMetrics.
Boolean
Section titled “Boolean”The Boolean scalar type represents true or false.
Used by: PageInfo.
The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.
Used by: ModeledMetricRow, ReportedMetricRow.
ISO8601Date
Section titled “ISO8601Date”An ISO 8601-encoded date
Used by: modeledMetrics, reportedMetrics, ReportedMetricRow.
ISO8601DateTime
Section titled “ISO8601DateTime”An ISO 8601-encoded datetime
Used by: ModeledMetricRow.
String
Section titled “String”The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Used by: channelNames, modeledMetrics, reportedMetrics, Model, ModeledMetricRow, PageInfo, ReportedMetricRow.