1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
use serde_derive::Deserialize;
use serde_derive::Serialize;
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct JobRunStateChange {
pub job_name: String,
pub severity: String,
pub state: String,
pub job_run_id: String,
pub message: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CrawlerStarted {
pub account_id: String,
pub crawler_name: String,
pub start_time: String,
pub state: String,
pub message: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CrawlerSucceeded {
pub tables_created: String,
pub warning_message: String,
pub partitions_updated: String,
pub tables_updated: String,
pub message: String,
pub partitions_deleted: String,
pub account_id: String,
#[serde(rename = "runningTime (sec)")]
pub running_time_sec: String,
pub tables_deleted: String,
pub crawler_name: String,
pub completion_date: String,
pub state: String,
pub partitions_created: String,
pub cloud_watch_log_link: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CrawlerFailed {
pub crawler_name: String,
pub error_message: String,
pub account_id: String,
pub cloud_watch_log_link: String,
pub state: String,
pub message: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct JobRunStatus {
pub job_name: String,
pub severity: String,
pub notification_condition: NotificationCondition,
pub state: String,
pub job_run_id: String,
pub message: String,
pub started_on: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct NotificationCondition {
#[serde(rename = "NotifyDelayAfter")]
pub notify_delay_after: f64,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DataCatalogTableStateChange {
pub database_name: String,
pub changed_partitions: Vec<String>,
pub type_of_change: String,
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DataCatalogDatabaseStateChange {
pub database_name: String,
pub type_of_change: String,
pub changed_tables: Vec<String>,
}