NCCConfidence 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/nccconfidence/test_builder.rb +118 -0
- data/lib/nccconfidence/test_filters.rb +13 -0
- data/lib/nccconfidence/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9440f5737827f6711bb03d81b11e7350d8a0f3fa
|
4
|
+
data.tar.gz: 0261bc2d802ef34a1be561d218df99c15d2ad014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14f0ec2942618ba1e78c202b4b41db225210a0acbf6f0b422c6af66c76924c426b53b07c3512e815e544a84602aa79b033f25cec6286c573220fc201f9c3c444
|
7
|
+
data.tar.gz: e94b7e6bb1882b449a402df9fab3fee0a81a8f2af667ed1ed0794a3f85c4c8c11458e4cbbd0f975ba99a0d3a7ef2f1312190214bcf75bdc9d5cd983a2822226e
|
data/.gitignore
CHANGED
@@ -0,0 +1,118 @@
|
|
1
|
+
module NCCConfidence
|
2
|
+
module Builder
|
3
|
+
class Test
|
4
|
+
attr_reader :attributes
|
5
|
+
|
6
|
+
class << self
|
7
|
+
def make &script
|
8
|
+
t = self.new
|
9
|
+
t.instance_eval(&script)
|
10
|
+
t.attributes["Format"] = 'JSON'
|
11
|
+
t.attributes
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def initialize
|
16
|
+
@attributes = {}
|
17
|
+
end
|
18
|
+
|
19
|
+
def account_id value
|
20
|
+
@attributes["AccountId"] = value
|
21
|
+
end
|
22
|
+
|
23
|
+
def id value
|
24
|
+
@attributes["Id"] = value
|
25
|
+
end
|
26
|
+
|
27
|
+
def start_date value
|
28
|
+
@attributes["StartDate"] = value
|
29
|
+
end
|
30
|
+
|
31
|
+
def start_time value
|
32
|
+
@attributes["StartTime"] = value
|
33
|
+
end
|
34
|
+
|
35
|
+
def end_date value
|
36
|
+
@attributes["EndDate"] = value
|
37
|
+
end
|
38
|
+
|
39
|
+
def end_time value
|
40
|
+
@attributes["EndTime"] = value
|
41
|
+
end
|
42
|
+
|
43
|
+
def start_timestamp value
|
44
|
+
@attributes["StartTimestamp"] = value
|
45
|
+
end
|
46
|
+
|
47
|
+
def end_time_stamp value
|
48
|
+
@attributes["EndTimestamp"] = value
|
49
|
+
end
|
50
|
+
|
51
|
+
def script_type value
|
52
|
+
@attributes["ScriptType"] = value
|
53
|
+
end
|
54
|
+
|
55
|
+
def show_steps value
|
56
|
+
@attributes["ShowSteps"] = value
|
57
|
+
end
|
58
|
+
|
59
|
+
def limit_errors_open value
|
60
|
+
@attributes["LimitErrorsOpen"] = value
|
61
|
+
end
|
62
|
+
|
63
|
+
def offset_errors_open value
|
64
|
+
@attributes["OffsetErrorsOpen"] = value
|
65
|
+
end
|
66
|
+
|
67
|
+
def limit_errors_closed value
|
68
|
+
@attributes["LimitErrorsClosed"] = value
|
69
|
+
end
|
70
|
+
|
71
|
+
def offset_errors_closed value
|
72
|
+
@attributes["OffsetErrorsClosed"] = value
|
73
|
+
end
|
74
|
+
|
75
|
+
def limit_test_results value
|
76
|
+
@attributes["LimitTestResults"] = value
|
77
|
+
end
|
78
|
+
|
79
|
+
def offset_test_results value
|
80
|
+
@attributes["OffsetTestResults"] = value
|
81
|
+
end
|
82
|
+
|
83
|
+
def up_time_min value
|
84
|
+
@attributes["UptimeMin"] = value
|
85
|
+
end
|
86
|
+
|
87
|
+
def up_time_max value
|
88
|
+
@attributes["UptimeMax"] = value
|
89
|
+
end
|
90
|
+
|
91
|
+
def kpi_min value
|
92
|
+
@attributes["KPIMin"] = value
|
93
|
+
end
|
94
|
+
|
95
|
+
def kpi_max value
|
96
|
+
@attributes["KPIMax"] = value
|
97
|
+
end
|
98
|
+
|
99
|
+
def status_code value
|
100
|
+
@attributes["StatusCode"] = value
|
101
|
+
end
|
102
|
+
|
103
|
+
def result_code value
|
104
|
+
@attributes["ResultCode"] = value
|
105
|
+
end
|
106
|
+
|
107
|
+
def exclude_re_test value
|
108
|
+
@attributes["ExcludeRetest"] = value
|
109
|
+
end
|
110
|
+
|
111
|
+
def format value
|
112
|
+
@attributes["Format"] = value
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
#takes in test_filters and returns a url_component
|
2
|
+
module NCCConfidence
|
3
|
+
class T_Filters
|
4
|
+
class << self
|
5
|
+
def build filter_object
|
6
|
+
filter_object.inject("") do |result,(filter_name,filter_value)|
|
7
|
+
"#{result}/#{filter_name}/#{filter_value}"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: NCCConfidence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thermatix
|
@@ -102,6 +102,8 @@ files:
|
|
102
102
|
- lib/nccconfidence/data_builder.rb
|
103
103
|
- lib/nccconfidence/data_filters.rb
|
104
104
|
- lib/nccconfidence/http_client.rb
|
105
|
+
- lib/nccconfidence/test_builder.rb
|
106
|
+
- lib/nccconfidence/test_filters.rb
|
105
107
|
- lib/nccconfidence/url_builder.rb
|
106
108
|
- lib/nccconfidence/version.rb
|
107
109
|
homepage: https://github.com/Thermatix/NCCConfidence_API
|