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
use crate::ids::ScheduledQueryRunId;
use crate::params::{Object, Timestamp};
use crate::resources::File;
use serde_derive::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct ScheduledQueryRun {
pub id: ScheduledQueryRunId,
pub created: Timestamp,
pub data_load_time: Timestamp,
#[serde(skip_serializing_if = "Option::is_none")]
pub error: Option<SigmaScheduledQueryRunError>,
#[serde(skip_serializing_if = "Option::is_none")]
pub file: Option<File>,
pub livemode: bool,
pub result_available_until: Timestamp,
pub sql: String,
pub status: String,
pub title: String,
}
impl Object for ScheduledQueryRun {
type Id = ScheduledQueryRunId;
fn id(&self) -> Self::Id {
self.id.clone()
}
fn object(&self) -> &'static str {
"scheduled_query_run"
}
}
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SigmaScheduledQueryRunError {
pub message: String,
}