Skip to content

Commit 2e7e2c2

Browse files
committed
Add anonymized API fixtures
For later usage with testing
1 parent 80a2c35 commit 2e7e2c2

File tree

3 files changed

+950
-0
lines changed

3 files changed

+950
-0
lines changed

test/fixtures/alarms.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"results" : [ {
3+
"id" : "UUID",
4+
"feature_name" : "intelligence_health",
5+
"event_type" : "storage_latency_high",
6+
"feature_display_name" : "Intelligence Health",
7+
"event_type_display_name" : "Storage Latency High",
8+
"summary" : "Intelligence node storage latency is high.",
9+
"description" : "The storage latency of disk partition /var/log on Intelligence node UUID is above the high threshold value of 50 milliseconds.",
10+
"recommended_action" : "Transient high storage latency may happen due to spike of I/O requests. If storage latency remains high for more than 30 minutes, consider deploying NSX Intelligence appliance in a low latency disk, or not sharing the same storage device with other VMs.",
11+
"node_id" : "UUID",
12+
"node_resource_type" : "IntelligenceNode",
13+
"entity_id" : "UUID",
14+
"last_reported_time" : 1619450718535,
15+
"resolved_by" : null,
16+
"resolved_time" : null,
17+
"status" : "OPEN",
18+
"severity" : "MEDIUM",
19+
"node_display_name" : "node1",
20+
"node_ip_addresses" : [ "10.0.0.1" ],
21+
"reoccurrences_while_suppressed" : 0,
22+
"entity_resource_type" : "IntelligenceNode",
23+
"alarm_source_type" : "SYSTEM_ID",
24+
"alarm_source" : [ "UUID" ],
25+
"resource_type" : "Alarm",
26+
"display_name" : "UUID",
27+
"_create_user" : "system",
28+
"_create_time" : 1619450718535,
29+
"_last_modified_user" : "system",
30+
"_system_owned" : false,
31+
"_last_modified_time" : 1619450778534,
32+
"_protection" : "NOT_PROTECTED",
33+
"_revision" : 1
34+
} ],
35+
"result_count" : 1,
36+
"sort_by" : "_create_time",
37+
"sort_ascending" : false
38+
}

test/fixtures/capacity-usage.json

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
{
2+
"capacity_usage" : [ {
3+
"usage_type" : "NUMBER_OF_NAT_RULES",
4+
"display_name" : "System-wide NAT rules",
5+
"current_usage_count" : 0,
6+
"max_supported_count" : 25000,
7+
"min_threshold_percentage" : 70.0,
8+
"max_threshold_percentage" : 100.0,
9+
"current_usage_percentage" : 0.0,
10+
"severity" : "INFO"
11+
}, {
12+
"usage_type" : "NUMBER_OF_SI_RULES",
13+
"display_name" : "Network Introspection Rules",
14+
"current_usage_count" : 1,
15+
"max_supported_count" : 10000,
16+
"min_threshold_percentage" : 70.0,
17+
"max_threshold_percentage" : 100.0,
18+
"current_usage_percentage" : 0.01,
19+
"severity" : "INFO"
20+
}, {
21+
"usage_type" : "NUMBER_OF_GI_PROTECTED_HOSTS",
22+
"display_name" : "System-wide Endpoint Protection Enabled Hosts",
23+
"current_usage_count" : 0,
24+
"max_supported_count" : 256,
25+
"min_threshold_percentage" : 70.0,
26+
"max_threshold_percentage" : 100.0,
27+
"current_usage_percentage" : 0.0,
28+
"severity" : "INFO"
29+
}, {
30+
"usage_type" : "NUMBER_OF_PREPARED_HOSTS",
31+
"display_name" : "Hypervisor Hosts",
32+
"current_usage_count" : 18,
33+
"max_supported_count" : 1024,
34+
"min_threshold_percentage" : 70.0,
35+
"max_threshold_percentage" : 100.0,
36+
"current_usage_percentage" : 1.75,
37+
"severity" : "INFO"
38+
}, {
39+
"usage_type" : "NUMBER_OF_FIREWALL_RULES",
40+
"display_name" : "System-wide Firewall Rules",
41+
"current_usage_count" : 81,
42+
"max_supported_count" : 100000,
43+
"min_threshold_percentage" : 70.0,
44+
"max_threshold_percentage" : 100.0,
45+
"current_usage_percentage" : 0.08,
46+
"severity" : "INFO"
47+
}, {
48+
"usage_type" : "NUMBER_OF_DHCP_IP_POOLS",
49+
"display_name" : "System-wide DHCP Pools",
50+
"current_usage_count" : 0,
51+
"max_supported_count" : 10000,
52+
"min_threshold_percentage" : 70.0,
53+
"max_threshold_percentage" : 100.0,
54+
"current_usage_percentage" : 0.0,
55+
"severity" : "INFO"
56+
}, {
57+
"usage_type" : "NUMBER_OF_EDGE_NODES",
58+
"display_name" : "System-wide Edge Nodes",
59+
"current_usage_count" : 10,
60+
"max_supported_count" : 320,
61+
"min_threshold_percentage" : 70.0,
62+
"max_threshold_percentage" : 100.0,
63+
"current_usage_percentage" : 3.12,
64+
"severity" : "INFO"
65+
}, {
66+
"usage_type" : "NUMBER_OF_ACTIVE_DIRECTORY_DOMAINS",
67+
"display_name" : "Active Directory Domains (Identity Firewall)",
68+
"current_usage_count" : 0,
69+
"max_supported_count" : 4,
70+
"min_threshold_percentage" : 70.0,
71+
"max_threshold_percentage" : 100.0,
72+
"current_usage_percentage" : 0.0,
73+
"severity" : "INFO"
74+
}, {
75+
"usage_type" : "NUMBER_OF_VCENTER_CLUSTERS",
76+
"display_name" : "vSphere Clusters Prepared for NSX",
77+
"current_usage_count" : 4,
78+
"max_supported_count" : 128,
79+
"min_threshold_percentage" : 70.0,
80+
"max_threshold_percentage" : 100.0,
81+
"current_usage_percentage" : 3.12,
82+
"severity" : "INFO"
83+
}, {
84+
"usage_type" : "NUMBER_OF_PREFIX_LIST",
85+
"display_name" : "Prefix-lists",
86+
"current_usage_count" : 20,
87+
"max_supported_count" : 500,
88+
"min_threshold_percentage" : 70.0,
89+
"max_threshold_percentage" : 100.0,
90+
"current_usage_percentage" : 4.0,
91+
"severity" : "INFO"
92+
}, {
93+
"usage_type" : "NUMBER_OF_LOGICAL_SWITCHES",
94+
"display_name" : "Logical Switches",
95+
"current_usage_count" : 12,
96+
"max_supported_count" : 10000,
97+
"min_threshold_percentage" : 70.0,
98+
"max_threshold_percentage" : 100.0,
99+
"current_usage_percentage" : 0.12,
100+
"severity" : "INFO"
101+
}, {
102+
"usage_type" : "NUMBER_OF_LOGICAL_PORTS",
103+
"display_name" : "System-wide Logical Switch Ports",
104+
"current_usage_count" : 145,
105+
"max_supported_count" : 25000,
106+
"min_threshold_percentage" : 70.0,
107+
"max_threshold_percentage" : 100.0,
108+
"current_usage_percentage" : 0.58,
109+
"severity" : "INFO"
110+
}, {
111+
"usage_type" : "NUMBER_OF_ACTIVE_DIRECTORY_GROUPS",
112+
"display_name" : "Active Directory Groups (Identity Firewall)",
113+
"current_usage_count" : 0,
114+
"max_supported_count" : 100000,
115+
"min_threshold_percentage" : 70.0,
116+
"max_threshold_percentage" : 100.0,
117+
"current_usage_percentage" : 0.0,
118+
"severity" : "INFO"
119+
}, {
120+
"usage_type" : "NUMBER_OF_DFW_RULES",
121+
"display_name" : "Distributed Firewall Rules",
122+
"current_usage_count" : 75,
123+
"max_supported_count" : 100000,
124+
"min_threshold_percentage" : 70.0,
125+
"max_threshold_percentage" : 100.0,
126+
"current_usage_percentage" : 0.07,
127+
"severity" : "INFO"
128+
}, {
129+
"usage_type" : "NUMBER_OF_GI_PROTECTED_VMS",
130+
"display_name" : "System-wide Endpoint Protection Enabled Virtual Machines",
131+
"current_usage_count" : 0,
132+
"max_supported_count" : 7500,
133+
"min_threshold_percentage" : 70.0,
134+
"max_threshold_percentage" : 100.0,
135+
"current_usage_percentage" : 0.0,
136+
"severity" : "INFO"
137+
}, {
138+
"usage_type" : "NUMBER_OF_DFW_SECTIONS",
139+
"display_name" : "Distributed Firewall Sections",
140+
"current_usage_count" : 23,
141+
"max_supported_count" : 10000,
142+
"min_threshold_percentage" : 70.0,
143+
"max_threshold_percentage" : 100.0,
144+
"current_usage_percentage" : 0.23,
145+
"severity" : "INFO"
146+
}, {
147+
"usage_type" : "NUMBER_OF_GROUPS_BASED_ON_IP_SETS",
148+
"display_name" : "Groups Based on IP Sets",
149+
"current_usage_count" : 37,
150+
"max_supported_count" : 10000,
151+
"min_threshold_percentage" : 70.0,
152+
"max_threshold_percentage" : 100.0,
153+
"current_usage_percentage" : 0.37,
154+
"severity" : "INFO"
155+
}, {
156+
"usage_type" : "NUMBER_OF_EDGE_CLUSTERS",
157+
"display_name" : "Edge Clusters",
158+
"current_usage_count" : 3,
159+
"max_supported_count" : 160,
160+
"min_threshold_percentage" : 70.0,
161+
"max_threshold_percentage" : 100.0,
162+
"current_usage_percentage" : 1.87,
163+
"severity" : "INFO"
164+
}, {
165+
"usage_type" : "NUMBER_OF_TIER1_WITH_NAT_RULE",
166+
"display_name" : "Tier-1 Logical Routers with NAT Enabled",
167+
"current_usage_count" : 0,
168+
"max_supported_count" : 4000,
169+
"min_threshold_percentage" : 70.0,
170+
"max_threshold_percentage" : 100.0,
171+
"current_usage_percentage" : 0.0,
172+
"severity" : "INFO"
173+
}, {
174+
"usage_type" : "NUMBER_OF_FIREWALL_SECTIONS",
175+
"display_name" : "System-wide Firewall Sections",
176+
"current_usage_count" : 29,
177+
"max_supported_count" : 10000,
178+
"min_threshold_percentage" : 70.0,
179+
"max_threshold_percentage" : 100.0,
180+
"current_usage_percentage" : 0.29,
181+
"severity" : "INFO"
182+
}, {
183+
"usage_type" : "NUMBER_OF_SI_SECTIONS",
184+
"display_name" : "Network Introspection Sections",
185+
"current_usage_count" : 1,
186+
"max_supported_count" : 500,
187+
"min_threshold_percentage" : 70.0,
188+
"max_threshold_percentage" : 100.0,
189+
"current_usage_percentage" : 0.2,
190+
"severity" : "INFO"
191+
}, {
192+
"usage_type" : "NUMBER_OF_NSGROUP",
193+
"display_name" : "Groups",
194+
"current_usage_count" : 74,
195+
"max_supported_count" : 20000,
196+
"min_threshold_percentage" : 70.0,
197+
"max_threshold_percentage" : 100.0,
198+
"current_usage_percentage" : 0.37,
199+
"severity" : "INFO"
200+
}, {
201+
"usage_type" : "NUMBER_OF_TIER1_ROUTERS",
202+
"display_name" : "Tier-1 Logical Routers",
203+
"current_usage_count" : 4,
204+
"max_supported_count" : 4000,
205+
"min_threshold_percentage" : 70.0,
206+
"max_threshold_percentage" : 100.0,
207+
"current_usage_percentage" : 0.1,
208+
"severity" : "INFO"
209+
}, {
210+
"usage_type" : "NUMBER_OF_IPSETS",
211+
"display_name" : "IP Sets",
212+
"current_usage_count" : 37,
213+
"max_supported_count" : 10000,
214+
"min_threshold_percentage" : 70.0,
215+
"max_threshold_percentage" : 100.0,
216+
"current_usage_percentage" : 0.37,
217+
"severity" : "INFO"
218+
}, {
219+
"usage_type" : "NUMBER_OF_SI_SERVICE_CHAINS",
220+
"display_name" : "Network Introspection Service Chains",
221+
"current_usage_count" : 0,
222+
"max_supported_count" : 24,
223+
"min_threshold_percentage" : 70.0,
224+
"max_threshold_percentage" : 100.0,
225+
"current_usage_percentage" : 0.0,
226+
"severity" : "INFO"
227+
}, {
228+
"usage_type" : "NUMBER_OF_SI_SERVICE_PATHS",
229+
"display_name" : "Network Introspection Service Paths",
230+
"current_usage_count" : 0,
231+
"max_supported_count" : 4000,
232+
"min_threshold_percentage" : 70.0,
233+
"max_threshold_percentage" : 100.0,
234+
"current_usage_percentage" : 0.0,
235+
"severity" : "INFO"
236+
}, {
237+
"usage_type" : "NUMBER_OF_TIER0_ROUTERS",
238+
"display_name" : "Tier-0 Logical Routers",
239+
"current_usage_count" : 2,
240+
"max_supported_count" : 160,
241+
"min_threshold_percentage" : 70.0,
242+
"max_threshold_percentage" : 100.0,
243+
"current_usage_percentage" : 1.25,
244+
"severity" : "INFO"
245+
}, {
246+
"usage_type" : "NUMBER_OF_DHCP_SERVERS",
247+
"display_name" : "DHCP Server Instances",
248+
"current_usage_count" : 0,
249+
"max_supported_count" : 10000,
250+
"min_threshold_percentage" : 70.0,
251+
"max_threshold_percentage" : 100.0,
252+
"current_usage_percentage" : 0.0,
253+
"severity" : "INFO"
254+
} ],
255+
"meta_info" : {
256+
"last_updated_timestamp" : 1619774260161,
257+
"min_global_threshold_percentage" : 70.0,
258+
"max_global_threshold_percentage" : 100.0
259+
},
260+
"unreported_usage_types" : [ ],
261+
"_protection" : "NOT_PROTECTED"
262+
}

0 commit comments

Comments
 (0)