-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathschema.graphql
More file actions
123 lines (117 loc) · 4.31 KB
/
schema.graphql
File metadata and controls
123 lines (117 loc) · 4.31 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
type awsEc2MetadataOptions
@generate(
query: { get: false, query: false, aggregate: false }
mutation: { add: false, delete: false }
subscription: false
) {
state: String!
httpTokens: String!
httpPutResponseHopLimit: Int
httpEndpoint: String!
}
type blockDeviceEbs
@generate(
query: { get: false, query: true, aggregate: false }
mutation: { add: false, delete: false }
subscription: false
) {
attachTime: String!
deleteOnTermination: Boolean!
status: String!
volumeId: String! @id
}
type awsEc2Blockdevice
@generate(
query: { get: false, query: true, aggregate: false }
mutation: { add: false, delete: false }
subscription: false
) {
deviceName: String! @id
ebs: blockDeviceEbs
}
type awsEc2CloudWatchMetricsTimePeriods
@generate(
query: { get: false, query: false, aggregate: false }
mutation: { add: false, delete: false }
subscription: false
) {
last6Hours: awsEc2CloudWatchMetrics
last24Hours: awsEc2CloudWatchMetrics
lastWeek: awsEc2CloudWatchMetrics
lastMonth: awsEc2CloudWatchMetrics
}
type awsEc2CloudWatchMetrics
@generate(
query: { get: false, query: false, aggregate: false }
mutation: { add: false, delete: false }
subscription: false
) {
cpuUtilizationAverage: Float
networkInAverage: Float
networkOutAverage: Float
networkPacketsInAverage: Float
networkPacketsOutAverage: Float
statusCheckFailedSum: Float
statusCheckFailedInstanceSum: Float
statusCheckFailedSystemSum: Float
diskReadOpsAverage: Float
diskWriteOpsAverage: Float
diskReadBytesAverage: Float
diskWriteBytesAverage: Float
}
type awsEc2KeyPair {
id: String @search(by: [hash, regexp])
fingerprint: String @search(by: [hash, regexp])
name: String @search(by: [hash, regexp])
type: String @search(by: [hash, regexp])
tags: [awsRawTag]
}
type awsEc2 implements awsBaseService @key(fields: "arn") {
ami: String @search(by: [hash, regexp])
tenancy: String @search(by: [hash, regexp])
elasticIps: String @search(by: [hash, regexp])
publicDns: String @search(by: [hash, regexp])
privateDns: String @search(by: [hash, regexp])
monitoring: String @search(by: [hash, regexp])
privateIps: String @search(by: [hash, regexp])
keyPair: awsEc2KeyPair
cpuCoreCount: Int @search
hibernation: String @search(by: [hash, regexp])
ebsOptimized: String @search(by: [hash, regexp])
ipv4PublicIp: String @search(by: [hash, regexp])
instanceType: String @search(by: [hash, regexp])
ipv6Addresses: [String] @search(by: [hash, regexp])
placementGroup: String @search(by: [hash, regexp])
instanceState: String @search(by: [hash, regexp])
sourceDestCheck: String @search(by: [hash, regexp])
availabilityZone: String @search(by: [hash, regexp])
cpuThreadsPerCore: Int @search
deletionProtection: String @search(by: [hash, regexp])
dailyCost: awsTotalBillingInfo
primaryNetworkInterface: String @search(by: [hash, regexp])
metadataOptions: awsEc2MetadataOptions
metadatasecurityGroupIdsOptions: [String] @search(by: [hash])
securityGroupIds: [String] @search(by: [hash])
ephemeralBlockDevices: [awsEc2Blockdevice]
publicIpAddress: String @search(by: [hash, regexp])
platformDetails: String @search(by: [hash, regexp])
cloudWatchMetricData: awsEc2CloudWatchMetricsTimePeriods
instanceLifecycle: String @search(by: [hash, regexp])
launchTime: DateTime @search(by: [day])
tags: [awsRawTag]
alb: [awsAlb] @hasInverse(field: ec2Instance)
asg: [awsAsg] @hasInverse(field: ec2Instance)
ebs: [awsEbs] @hasInverse(field: ec2Instance)
ecsContainer: [awsEcsContainer] @hasInverse(field: ec2Instances)
eip: [awsEip] @hasInverse(field: ec2Instance)
eksCluster: [awsEksCluster] @hasInverse(field: ec2Instances)
elasticBeanstalkEnv: [awsElasticBeanstalkEnv] @hasInverse(field: ec2Instances)
emrInstance: [awsEmrInstance] @hasInverse(field: ec2Instance)
iamInstanceProfile: [awsIamInstanceProfile] @hasInverse(field: ec2Instances)
iamRole: [awsIamRole] @hasInverse(field: ec2Instances)
networkInterfaces: [awsNetworkInterface] @hasInverse(field: ec2Instance)
opsWorksInstances: [awsOpsWorksInstance] @hasInverse(field: ec2Instance)
securityGroups: [awsSecurityGroup] @hasInverse(field: ec2Instance)
subnets: [awsSubnet] @hasInverse(field: ec2Instances)
systemsManagerInstance: [awsSystemsManagerInstance] @hasInverse(field: ec2Instance)
}