Skip to main content

LegacyAlert

Represents a single Alert document.

type LegacyAlert {
id: ID!
dataset: String!
class: LegacyAlertClass!
title: String!
text: String!
source: String
value: Float
variable: String!
polarity: Int!
company: LegacyAlertCompany
relatedCompanies: [LegacyAlertCompany!]
payload: LegacyJSON!
resource: LegacyAlertResource
topics: [LegacyAlertTopic!]!
period: String! @deprecated
publishedAt: String!
occuredAt: String!
}

Fields​

LegacyAlert.id ● ID! non-null scalar​

UUID to identify this Alert document

LegacyAlert.dataset ● String! non-null scalar​

Dataset represents type of the source data used to generate this alert

LegacyAlert.class ● LegacyAlertClass! non-null object​

Class of this Alert, contains machine-frienly "code" as well as human-readable "label" fields.

LegacyAlert.title ● String! non-null scalar​

Short summary describing the Alert contents

LegacyAlert.text ● String! non-null scalar​

Full text of the Alert

LegacyAlert.source ● String scalar​

Represents news source URL for Alerts from the "news" dataset

LegacyAlert.value ● Float scalar​

Stores the value of the Alert's dataset at the point when Alert was created

LegacyAlert.variable ● String! non-null scalar​

Describes the variable from the dataset which was used to create the Alert

LegacyAlert.polarity ● Int! non-null scalar​

Represents the polarity of the signal.

Typical values are: -1 - negative polarity 0 - neutral 1 - positive polarity

LegacyAlert.company ● LegacyAlertCompany object​

Holds additional data about the Company which this Alert belongs to.

May be "null" in case Alert is related to multiple companies at the same time, when none of them is specifically an Alert target.

For example, a change of the aluminum price may affect many dependent manufacturers, but being a result of overall market movement, rather than an Alert for a specific company.

Contains all the companies related to the parent Alert.

For example, a change of the steel price may affect multiple manufacturers.

When filtering by where.company.id, this list will still contain a full set of companies related to the Alert, not just those with matching IDs (but at least one of them will have a desired ID.)

LegacyAlert.payload ● LegacyJSON! non-null scalar​

Holds additional metadata related to the specific Alert.

Please, note that the metadata structure varies depending on the Alert's dataset, variable and class.

LegacyAlert.resource ● LegacyAlertResource object​

Resource that is affected by the given Alert, such as steel, coal, oil, etc. May be missing for Alerts from the datasets that are describing other type of events.

LegacyAlert.topics ● [LegacyAlertTopic!]! non-null object​

Topics are "tags" associated with a particular Alert. Every Alert belongs to one or more different topics, which you can be subscribed to with Craft.

For example, you can be subscribed to Alerts related to "resource:steel" or "company:429" topics.

All the topics are associated with metadata allowing presentation of the topic in a human-readable way.

Example topics:

  • "dataset:news"
  • "class:awards"
  • "resource:steel"
  • "company:429"
  • "location.country:us"
  • "location.region:asia"

You may filter Alerts by topics using the where.topics boolean expression field that supports "eq", "in" and "like" operators. For example:

{ topics: { eq: "company:429" } } { topics: { in: ["company:429", "company:430"] } } { topics: { startsWith: "company" } }

LegacyAlert.publishedAt ● String! non-null scalar​

The date when Alert was validated by Craft

LegacyAlert.occuredAt ● String! non-null scalar​

The date of change in the tracked value causing this Alert to be created

Show deprecated

LegacyAlert.period ● String! deprecated non-null scalar​

DEPRECATED

Using this field will be always resolved to default

DEPRECATED For timeseries Alerts, defines the time window over which the change of variable was detected

Member Of​

Legacy object