-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimages.view.lkml
72 lines (63 loc) · 1.4 KB
/
images.view.lkml
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
view: images {
sql_table_name: smartdc.images ;;
dimension: name {
description: "The name of the image"
type: string
sql: ${TABLE}.name ;;
}
dimension: compound_primary_key {
primary_key: yes
hidden: yes
sql:${TABLE}.uuid || ${TABLE}.version || ${TABLE}.owner
}
dimension: dcgroup {
description: "JPC or SPC"
type: string
sql: ${TABLE}.dcgroup ;;
}
dimension: os {
description: "image manifest os"
type: string
sql: ${TABLE}.os ;;
}
dimension: owner {
description: "image manifest owner, ufds UUID of the owner(s)"
type: string
sql: ${TABLE}.owner ;;
}
dimension: public {
description: "image manifest public"
type: yesno
sql: ${TABLE}.public ;;
}
dimension: state {
description: "image manifest stat"
type: string
sql: ${TABLE}.state ;;
}
dimension: type {
description: "image manifest type"
type: string
sql: ${TABLE}.type ;;
}
dimension: uuid {
description: "image manifest uuid (uuid of the image)"
type: string
sql: ${TABLE}.uuid ;;
}
dimension: v {
description: "image manifest v"
type: number
sql: ${TABLE}.v ;;
}
dimension: version {
description: "image manifest version"
type: string
sql: ${TABLE}.version ;;
}
measure: count {
description: "Number of distinct images returned in query"
type: count
drill_fields: [name]
}
}