deeprails 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +9 -9
- data/lib/deeprails/models/defend_response.rb +68 -68
- data/lib/deeprails/models/monitor_detail_response.rb +59 -59
- data/lib/deeprails/models/monitor_event_detail_response.rb +1 -0
- data/lib/deeprails/models/monitor_retrieve_event_params.rb +20 -0
- data/lib/deeprails/models/workflow_event_detail_response.rb +112 -112
- data/lib/deeprails/models.rb +2 -0
- data/lib/deeprails/resources/monitor.rb +27 -0
- data/lib/deeprails/version.rb +1 -1
- data/lib/deeprails.rb +1 -0
- data/rbi/deeprails/models/defend_response.rbi +107 -171
- data/rbi/deeprails/models/monitor_detail_response.rbi +82 -121
- data/rbi/deeprails/models/monitor_event_detail_response.rbi +7 -4
- data/rbi/deeprails/models/monitor_retrieve_event_params.rbi +38 -0
- data/rbi/deeprails/models/workflow_event_detail_response.rbi +245 -273
- data/rbi/deeprails/models.rbi +2 -0
- data/rbi/deeprails/resources/monitor.rbi +17 -0
- data/sig/deeprails/models/defend_response.rbs +53 -87
- data/sig/deeprails/models/monitor_detail_response.rbs +39 -59
- data/sig/deeprails/models/monitor_retrieve_event_params.rbs +23 -0
- data/sig/deeprails/models/workflow_event_detail_response.rbs +98 -110
- data/sig/deeprails/models.rbs +2 -0
- data/sig/deeprails/resources/monitor.rbs +6 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ec170552015a190316efdd44dfb6afd54be45edee2c484465512b97fb30dbee
|
|
4
|
+
data.tar.gz: 350afc446f1a5a9901867a1ff294c1a43db4368807baf3f57c09b0e7980e4c3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 686858c77cd34c76d7071f1c67bfbb24b03b787f051cc02e3b237ee6f9f1e499359304830732d0e55e8d0f90ef0c1bdae0a784ea3ae74617c788bd048524de6a
|
|
7
|
+
data.tar.gz: a2276ada84dcd2f1e22e3b9df4c41959ee6debba2ecc39bcf6519e517faf80555ad6e2b39852f09888f3c3cab12a85fd03b6211d12773ccf61535df157e3ad9d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.0 (2025-11-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.12.0...v0.13.0](https://github.com/deeprails/deeprails-ruby-sdk/compare/v0.12.0...v0.13.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add retrieve monitor event and examples ([3179cc0](https://github.com/deeprails/deeprails-ruby-sdk/commit/3179cc06df9d92f96abdb4f162887697e133c688))
|
|
10
|
+
|
|
3
11
|
## 0.12.0 (2025-11-10)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.11.0...v0.12.0](https://github.com/deeprails/deeprails-ruby-sdk/compare/v0.11.0...v0.12.0)
|
data/README.md
CHANGED
|
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
15
15
|
<!-- x-release-please-start-version -->
|
|
16
16
|
|
|
17
17
|
```ruby
|
|
18
|
-
gem "deeprails", "~> 0.
|
|
18
|
+
gem "deeprails", "~> 0.13.0"
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
<!-- x-release-please-end -->
|
|
@@ -33,7 +33,7 @@ deeprails = Deeprails::Client.new(
|
|
|
33
33
|
defend_create_response = deeprails.defend.create_workflow(
|
|
34
34
|
improvement_action: "fixit",
|
|
35
35
|
name: "Push Alert Workflow",
|
|
36
|
-
threshold_type: "
|
|
36
|
+
threshold_type: "custom",
|
|
37
37
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
38
38
|
web_search: true
|
|
39
39
|
)
|
|
@@ -50,7 +50,7 @@ begin
|
|
|
50
50
|
defend = deeprails.defend.create_workflow(
|
|
51
51
|
improvement_action: "fixit",
|
|
52
52
|
name: "Push Alert Workflow",
|
|
53
|
-
threshold_type: "
|
|
53
|
+
threshold_type: "custom",
|
|
54
54
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
55
55
|
web_search: true
|
|
56
56
|
)
|
|
@@ -99,7 +99,7 @@ deeprails = Deeprails::Client.new(
|
|
|
99
99
|
deeprails.defend.create_workflow(
|
|
100
100
|
improvement_action: "fixit",
|
|
101
101
|
name: "Push Alert Workflow",
|
|
102
|
-
threshold_type: "
|
|
102
|
+
threshold_type: "custom",
|
|
103
103
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
104
104
|
web_search: true,
|
|
105
105
|
request_options: {max_retries: 5}
|
|
@@ -120,7 +120,7 @@ deeprails = Deeprails::Client.new(
|
|
|
120
120
|
deeprails.defend.create_workflow(
|
|
121
121
|
improvement_action: "fixit",
|
|
122
122
|
name: "Push Alert Workflow",
|
|
123
|
-
threshold_type: "
|
|
123
|
+
threshold_type: "custom",
|
|
124
124
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
125
125
|
web_search: true,
|
|
126
126
|
request_options: {timeout: 5}
|
|
@@ -158,7 +158,7 @@ defend_create_response =
|
|
|
158
158
|
deeprails.defend.create_workflow(
|
|
159
159
|
improvement_action: "fixit",
|
|
160
160
|
name: "Push Alert Workflow",
|
|
161
|
-
threshold_type: "
|
|
161
|
+
threshold_type: "custom",
|
|
162
162
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
163
163
|
web_search: true,
|
|
164
164
|
request_options: {
|
|
@@ -209,7 +209,7 @@ You can provide typesafe request parameters like so:
|
|
|
209
209
|
deeprails.defend.create_workflow(
|
|
210
210
|
improvement_action: "fixit",
|
|
211
211
|
name: "Push Alert Workflow",
|
|
212
|
-
threshold_type: "
|
|
212
|
+
threshold_type: "custom",
|
|
213
213
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
214
214
|
web_search: true
|
|
215
215
|
)
|
|
@@ -222,7 +222,7 @@ Or, equivalently:
|
|
|
222
222
|
deeprails.defend.create_workflow(
|
|
223
223
|
improvement_action: "fixit",
|
|
224
224
|
name: "Push Alert Workflow",
|
|
225
|
-
threshold_type: "
|
|
225
|
+
threshold_type: "custom",
|
|
226
226
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
227
227
|
web_search: true
|
|
228
228
|
)
|
|
@@ -231,7 +231,7 @@ deeprails.defend.create_workflow(
|
|
|
231
231
|
params = Deeprails::DefendCreateWorkflowParams.new(
|
|
232
232
|
improvement_action: "fixit",
|
|
233
233
|
name: "Push Alert Workflow",
|
|
234
|
-
threshold_type: "
|
|
234
|
+
threshold_type: "custom",
|
|
235
235
|
custom_hallucination_threshold_values: {completeness: 0.7, instruction_adherence: 0.75},
|
|
236
236
|
web_search: true
|
|
237
237
|
)
|
|
@@ -4,96 +4,92 @@ module Deeprails
|
|
|
4
4
|
module Models
|
|
5
5
|
# @see Deeprails::Resources::Defend#retrieve_workflow
|
|
6
6
|
class DefendResponse < Deeprails::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute name
|
|
8
|
-
# Name of the workflow.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :name, String
|
|
12
|
-
|
|
13
|
-
# @!attribute workflow_id
|
|
14
|
-
# A unique workflow ID.
|
|
15
|
-
#
|
|
16
|
-
# @return [String]
|
|
17
|
-
required :workflow_id, String
|
|
18
|
-
|
|
19
7
|
# @!attribute automatic_hallucination_tolerance_levels
|
|
20
8
|
# Mapping of guardrail metric names to tolerance values. Values can be strings
|
|
21
9
|
# (`low`, `medium`, `high`) for automatic tolerance levels.
|
|
22
10
|
#
|
|
23
|
-
# @return [Hash{Symbol=>Symbol, Deeprails::Models::DefendResponse::AutomaticHallucinationToleranceLevel}
|
|
24
|
-
|
|
11
|
+
# @return [Hash{Symbol=>Symbol, Deeprails::Models::DefendResponse::AutomaticHallucinationToleranceLevel}]
|
|
12
|
+
required :automatic_hallucination_tolerance_levels,
|
|
25
13
|
-> { Deeprails::Internal::Type::HashOf[enum: Deeprails::DefendResponse::AutomaticHallucinationToleranceLevel] }
|
|
26
14
|
|
|
27
15
|
# @!attribute capabilities
|
|
28
16
|
# Extended AI capabilities available to the event, if any. Can be `web_search`
|
|
29
17
|
# and/or `file_search`.
|
|
30
18
|
#
|
|
31
|
-
# @return [Array<Deeprails::Models::DefendResponse::Capability
|
|
32
|
-
|
|
19
|
+
# @return [Array<Deeprails::Models::DefendResponse::Capability>]
|
|
20
|
+
required :capabilities, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::DefendResponse::Capability] }
|
|
33
21
|
|
|
34
22
|
# @!attribute created_at
|
|
35
23
|
# The time the workflow was created in UTC.
|
|
36
24
|
#
|
|
37
|
-
# @return [Time
|
|
38
|
-
|
|
25
|
+
# @return [Time]
|
|
26
|
+
required :created_at, Time
|
|
39
27
|
|
|
40
28
|
# @!attribute custom_hallucination_threshold_values
|
|
41
29
|
# Mapping of guardrail metric names to threshold values. Values can be floating
|
|
42
30
|
# point numbers (0.0-1.0) for custom thresholds.
|
|
43
31
|
#
|
|
44
|
-
# @return [Hash{Symbol=>Float}
|
|
45
|
-
|
|
32
|
+
# @return [Hash{Symbol=>Float}]
|
|
33
|
+
required :custom_hallucination_threshold_values, Deeprails::Internal::Type::HashOf[Float]
|
|
46
34
|
|
|
47
35
|
# @!attribute description
|
|
48
36
|
# Description for the workflow.
|
|
49
37
|
#
|
|
50
|
-
# @return [String
|
|
51
|
-
|
|
38
|
+
# @return [String]
|
|
39
|
+
required :description, String
|
|
52
40
|
|
|
53
41
|
# @!attribute events
|
|
54
42
|
# An array of events associated with this workflow.
|
|
55
43
|
#
|
|
56
|
-
# @return [Array<Deeprails::Models::DefendResponse::Event
|
|
57
|
-
|
|
44
|
+
# @return [Array<Deeprails::Models::DefendResponse::Event>]
|
|
45
|
+
required :events, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::DefendResponse::Event] }
|
|
58
46
|
|
|
59
47
|
# @!attribute files
|
|
60
48
|
# List of files associated with the workflow. If this is not empty, models can
|
|
61
49
|
# search these files when performing evaluations or remediations
|
|
62
50
|
#
|
|
63
|
-
# @return [Array<Deeprails::Models::DefendResponse::File
|
|
64
|
-
|
|
51
|
+
# @return [Array<Deeprails::Models::DefendResponse::File>]
|
|
52
|
+
required :files, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::DefendResponse::File] }
|
|
65
53
|
|
|
66
|
-
# @!attribute
|
|
54
|
+
# @!attribute name
|
|
55
|
+
# Name of the workflow.
|
|
67
56
|
#
|
|
68
|
-
# @return [
|
|
69
|
-
|
|
57
|
+
# @return [String]
|
|
58
|
+
required :name, String
|
|
70
59
|
|
|
71
60
|
# @!attribute status
|
|
72
61
|
# Status of the selected workflow. May be `inactive` or `active`. Inactive
|
|
73
62
|
# workflows will not accept events.
|
|
74
63
|
#
|
|
75
|
-
# @return [Symbol, Deeprails::Models::DefendResponse::Status
|
|
76
|
-
|
|
64
|
+
# @return [Symbol, Deeprails::Models::DefendResponse::Status]
|
|
65
|
+
required :status, enum: -> { Deeprails::DefendResponse::Status }
|
|
77
66
|
|
|
78
67
|
# @!attribute threshold_type
|
|
79
68
|
# Type of thresholds used to evaluate the event.
|
|
80
69
|
#
|
|
81
|
-
# @return [Symbol, Deeprails::Models::DefendResponse::ThresholdType
|
|
82
|
-
|
|
70
|
+
# @return [Symbol, Deeprails::Models::DefendResponse::ThresholdType]
|
|
71
|
+
required :threshold_type, enum: -> { Deeprails::DefendResponse::ThresholdType }
|
|
83
72
|
|
|
84
73
|
# @!attribute updated_at
|
|
85
74
|
# The most recent time the workflow was updated in UTC.
|
|
86
75
|
#
|
|
87
|
-
# @return [Time
|
|
88
|
-
|
|
76
|
+
# @return [Time]
|
|
77
|
+
required :updated_at, Time
|
|
89
78
|
|
|
90
|
-
# @!
|
|
91
|
-
#
|
|
92
|
-
# {Deeprails::Models::DefendResponse} for more details.
|
|
79
|
+
# @!attribute workflow_id
|
|
80
|
+
# A unique workflow ID.
|
|
93
81
|
#
|
|
94
|
-
# @
|
|
82
|
+
# @return [String]
|
|
83
|
+
required :workflow_id, String
|
|
84
|
+
|
|
85
|
+
# @!attribute stats
|
|
95
86
|
#
|
|
96
|
-
# @
|
|
87
|
+
# @return [Deeprails::Models::DefendResponse::Stats, nil]
|
|
88
|
+
optional :stats, -> { Deeprails::DefendResponse::Stats }
|
|
89
|
+
|
|
90
|
+
# @!method initialize(automatic_hallucination_tolerance_levels:, capabilities:, created_at:, custom_hallucination_threshold_values:, description:, events:, files:, name:, status:, threshold_type:, updated_at:, workflow_id:, stats: nil)
|
|
91
|
+
# Some parameter documentations has been truncated, see
|
|
92
|
+
# {Deeprails::Models::DefendResponse} for more details.
|
|
97
93
|
#
|
|
98
94
|
# @param automatic_hallucination_tolerance_levels [Hash{Symbol=>Symbol, Deeprails::Models::DefendResponse::AutomaticHallucinationToleranceLevel}] Mapping of guardrail metric names to tolerance values. Values can be strings (`l
|
|
99
95
|
#
|
|
@@ -109,13 +105,17 @@ module Deeprails
|
|
|
109
105
|
#
|
|
110
106
|
# @param files [Array<Deeprails::Models::DefendResponse::File>] List of files associated with the workflow. If this is not empty, models can sea
|
|
111
107
|
#
|
|
112
|
-
# @param
|
|
108
|
+
# @param name [String] Name of the workflow.
|
|
113
109
|
#
|
|
114
110
|
# @param status [Symbol, Deeprails::Models::DefendResponse::Status] Status of the selected workflow. May be `inactive` or `active`. Inactive workf
|
|
115
111
|
#
|
|
116
112
|
# @param threshold_type [Symbol, Deeprails::Models::DefendResponse::ThresholdType] Type of thresholds used to evaluate the event.
|
|
117
113
|
#
|
|
118
114
|
# @param updated_at [Time] The most recent time the workflow was updated in UTC.
|
|
115
|
+
#
|
|
116
|
+
# @param workflow_id [String] A unique workflow ID.
|
|
117
|
+
#
|
|
118
|
+
# @param stats [Deeprails::Models::DefendResponse::Stats]
|
|
119
119
|
|
|
120
120
|
module AutomaticHallucinationToleranceLevel
|
|
121
121
|
extend Deeprails::Internal::Type::Enum
|
|
@@ -303,6 +303,33 @@ module Deeprails
|
|
|
303
303
|
# @param file_size [Integer]
|
|
304
304
|
end
|
|
305
305
|
|
|
306
|
+
# Status of the selected workflow. May be `inactive` or `active`. Inactive
|
|
307
|
+
# workflows will not accept events.
|
|
308
|
+
#
|
|
309
|
+
# @see Deeprails::Models::DefendResponse#status
|
|
310
|
+
module Status
|
|
311
|
+
extend Deeprails::Internal::Type::Enum
|
|
312
|
+
|
|
313
|
+
INACTIVE = :inactive
|
|
314
|
+
ACTIVE = :active
|
|
315
|
+
|
|
316
|
+
# @!method self.values
|
|
317
|
+
# @return [Array<Symbol>]
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# Type of thresholds used to evaluate the event.
|
|
321
|
+
#
|
|
322
|
+
# @see Deeprails::Models::DefendResponse#threshold_type
|
|
323
|
+
module ThresholdType
|
|
324
|
+
extend Deeprails::Internal::Type::Enum
|
|
325
|
+
|
|
326
|
+
CUSTOM = :custom
|
|
327
|
+
AUTOMATIC = :automatic
|
|
328
|
+
|
|
329
|
+
# @!method self.values
|
|
330
|
+
# @return [Array<Symbol>]
|
|
331
|
+
end
|
|
332
|
+
|
|
306
333
|
# @see Deeprails::Models::DefendResponse#stats
|
|
307
334
|
class Stats < Deeprails::Internal::Type::BaseModel
|
|
308
335
|
# @!attribute outputs_below_threshold
|
|
@@ -330,33 +357,6 @@ module Deeprails
|
|
|
330
357
|
#
|
|
331
358
|
# @param outputs_processed [Integer] Total number of AI outputs processed by the workflow.
|
|
332
359
|
end
|
|
333
|
-
|
|
334
|
-
# Status of the selected workflow. May be `inactive` or `active`. Inactive
|
|
335
|
-
# workflows will not accept events.
|
|
336
|
-
#
|
|
337
|
-
# @see Deeprails::Models::DefendResponse#status
|
|
338
|
-
module Status
|
|
339
|
-
extend Deeprails::Internal::Type::Enum
|
|
340
|
-
|
|
341
|
-
INACTIVE = :inactive
|
|
342
|
-
ACTIVE = :active
|
|
343
|
-
|
|
344
|
-
# @!method self.values
|
|
345
|
-
# @return [Array<Symbol>]
|
|
346
|
-
end
|
|
347
|
-
|
|
348
|
-
# Type of thresholds used to evaluate the event.
|
|
349
|
-
#
|
|
350
|
-
# @see Deeprails::Models::DefendResponse#threshold_type
|
|
351
|
-
module ThresholdType
|
|
352
|
-
extend Deeprails::Internal::Type::Enum
|
|
353
|
-
|
|
354
|
-
CUSTOM = :custom
|
|
355
|
-
AUTOMATIC = :automatic
|
|
356
|
-
|
|
357
|
-
# @!method self.values
|
|
358
|
-
# @return [Array<Symbol>]
|
|
359
|
-
end
|
|
360
360
|
end
|
|
361
361
|
end
|
|
362
362
|
end
|
|
@@ -4,109 +4,95 @@ module Deeprails
|
|
|
4
4
|
module Models
|
|
5
5
|
# @see Deeprails::Resources::Monitor#retrieve
|
|
6
6
|
class MonitorDetailResponse < Deeprails::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute monitor_id
|
|
8
|
-
# A unique monitor ID.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :monitor_id, String
|
|
12
|
-
|
|
13
|
-
# @!attribute name
|
|
14
|
-
# Name of this monitor.
|
|
15
|
-
#
|
|
16
|
-
# @return [String]
|
|
17
|
-
required :name, String
|
|
18
|
-
|
|
19
|
-
# @!attribute status
|
|
20
|
-
# Status of the monitor. Can be `active` or `inactive`. Inactive monitors no
|
|
21
|
-
# longer record and evaluate events.
|
|
22
|
-
#
|
|
23
|
-
# @return [Symbol, Deeprails::Models::MonitorDetailResponse::Status]
|
|
24
|
-
required :status, enum: -> { Deeprails::MonitorDetailResponse::Status }
|
|
25
|
-
|
|
26
7
|
# @!attribute capabilities
|
|
27
8
|
# An array of capabilities associated with this monitor.
|
|
28
9
|
#
|
|
29
|
-
# @return [Array<Deeprails::Models::MonitorDetailResponse::Capability
|
|
30
|
-
|
|
10
|
+
# @return [Array<Deeprails::Models::MonitorDetailResponse::Capability>]
|
|
11
|
+
required :capabilities,
|
|
31
12
|
-> { Deeprails::Internal::Type::ArrayOf[Deeprails::MonitorDetailResponse::Capability] }
|
|
32
13
|
|
|
33
14
|
# @!attribute created_at
|
|
34
15
|
# The time the monitor was created in UTC.
|
|
35
16
|
#
|
|
36
|
-
# @return [Time
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
# @!attribute description
|
|
40
|
-
# Description of this monitor.
|
|
41
|
-
#
|
|
42
|
-
# @return [String, nil]
|
|
43
|
-
optional :description, String
|
|
17
|
+
# @return [Time]
|
|
18
|
+
required :created_at, Time
|
|
44
19
|
|
|
45
20
|
# @!attribute evaluations
|
|
46
21
|
# An array of all evaluations performed by this monitor. Each one corresponds to a
|
|
47
22
|
# separate monitor event.
|
|
48
23
|
#
|
|
49
|
-
# @return [Array<Deeprails::Models::MonitorDetailResponse::Evaluation
|
|
50
|
-
|
|
24
|
+
# @return [Array<Deeprails::Models::MonitorDetailResponse::Evaluation>]
|
|
25
|
+
required :evaluations,
|
|
51
26
|
-> { Deeprails::Internal::Type::ArrayOf[Deeprails::MonitorDetailResponse::Evaluation] }
|
|
52
27
|
|
|
53
28
|
# @!attribute files
|
|
54
29
|
# An array of files associated with this monitor.
|
|
55
30
|
#
|
|
56
|
-
# @return [Array<Deeprails::Models::MonitorDetailResponse::File
|
|
57
|
-
|
|
31
|
+
# @return [Array<Deeprails::Models::MonitorDetailResponse::File>]
|
|
32
|
+
required :files, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::MonitorDetailResponse::File] }
|
|
33
|
+
|
|
34
|
+
# @!attribute monitor_id
|
|
35
|
+
# A unique monitor ID.
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :monitor_id, String
|
|
39
|
+
|
|
40
|
+
# @!attribute name
|
|
41
|
+
# Name of this monitor.
|
|
42
|
+
#
|
|
43
|
+
# @return [String]
|
|
44
|
+
required :name, String
|
|
58
45
|
|
|
59
46
|
# @!attribute stats
|
|
60
47
|
# Contains five fields used for stats of this monitor: total evaluations,
|
|
61
48
|
# completed evaluations, failed evaluations, queued evaluations, and in progress
|
|
62
49
|
# evaluations.
|
|
63
50
|
#
|
|
64
|
-
# @return [Deeprails::Models::MonitorDetailResponse::Stats
|
|
65
|
-
|
|
51
|
+
# @return [Deeprails::Models::MonitorDetailResponse::Stats]
|
|
52
|
+
required :stats, -> { Deeprails::MonitorDetailResponse::Stats }
|
|
53
|
+
|
|
54
|
+
# @!attribute status
|
|
55
|
+
# Status of the monitor. Can be `active` or `inactive`. Inactive monitors no
|
|
56
|
+
# longer record and evaluate events.
|
|
57
|
+
#
|
|
58
|
+
# @return [Symbol, Deeprails::Models::MonitorDetailResponse::Status]
|
|
59
|
+
required :status, enum: -> { Deeprails::MonitorDetailResponse::Status }
|
|
66
60
|
|
|
67
61
|
# @!attribute updated_at
|
|
68
62
|
# The most recent time the monitor was modified in UTC.
|
|
69
63
|
#
|
|
70
|
-
# @return [Time
|
|
71
|
-
|
|
64
|
+
# @return [Time]
|
|
65
|
+
required :updated_at, Time
|
|
66
|
+
|
|
67
|
+
# @!attribute description
|
|
68
|
+
# Description of this monitor.
|
|
69
|
+
#
|
|
70
|
+
# @return [String, nil]
|
|
71
|
+
optional :description, String
|
|
72
72
|
|
|
73
|
-
# @!method initialize(
|
|
73
|
+
# @!method initialize(capabilities:, created_at:, evaluations:, files:, monitor_id:, name:, stats:, status:, updated_at:, description: nil)
|
|
74
74
|
# Some parameter documentations has been truncated, see
|
|
75
75
|
# {Deeprails::Models::MonitorDetailResponse} for more details.
|
|
76
76
|
#
|
|
77
|
-
# @param monitor_id [String] A unique monitor ID.
|
|
78
|
-
#
|
|
79
|
-
# @param name [String] Name of this monitor.
|
|
80
|
-
#
|
|
81
|
-
# @param status [Symbol, Deeprails::Models::MonitorDetailResponse::Status] Status of the monitor. Can be `active` or `inactive`. Inactive monitors no lon
|
|
82
|
-
#
|
|
83
77
|
# @param capabilities [Array<Deeprails::Models::MonitorDetailResponse::Capability>] An array of capabilities associated with this monitor.
|
|
84
78
|
#
|
|
85
79
|
# @param created_at [Time] The time the monitor was created in UTC.
|
|
86
80
|
#
|
|
87
|
-
# @param description [String] Description of this monitor.
|
|
88
|
-
#
|
|
89
81
|
# @param evaluations [Array<Deeprails::Models::MonitorDetailResponse::Evaluation>] An array of all evaluations performed by this monitor. Each one corresponds to
|
|
90
82
|
#
|
|
91
83
|
# @param files [Array<Deeprails::Models::MonitorDetailResponse::File>] An array of files associated with this monitor.
|
|
92
84
|
#
|
|
85
|
+
# @param monitor_id [String] A unique monitor ID.
|
|
86
|
+
#
|
|
87
|
+
# @param name [String] Name of this monitor.
|
|
88
|
+
#
|
|
93
89
|
# @param stats [Deeprails::Models::MonitorDetailResponse::Stats] Contains five fields used for stats of this monitor: total evaluations, complete
|
|
94
90
|
#
|
|
91
|
+
# @param status [Symbol, Deeprails::Models::MonitorDetailResponse::Status] Status of the monitor. Can be `active` or `inactive`. Inactive monitors no lon
|
|
92
|
+
#
|
|
95
93
|
# @param updated_at [Time] The most recent time the monitor was modified in UTC.
|
|
96
|
-
|
|
97
|
-
# Status of the monitor. Can be `active` or `inactive`. Inactive monitors no
|
|
98
|
-
# longer record and evaluate events.
|
|
99
94
|
#
|
|
100
|
-
#
|
|
101
|
-
module Status
|
|
102
|
-
extend Deeprails::Internal::Type::Enum
|
|
103
|
-
|
|
104
|
-
ACTIVE = :active
|
|
105
|
-
INACTIVE = :inactive
|
|
106
|
-
|
|
107
|
-
# @!method self.values
|
|
108
|
-
# @return [Array<Symbol>]
|
|
109
|
-
end
|
|
95
|
+
# @param description [String] Description of this monitor.
|
|
110
96
|
|
|
111
97
|
class Capability < Deeprails::Internal::Type::BaseModel
|
|
112
98
|
# @!attribute capability
|
|
@@ -372,6 +358,20 @@ module Deeprails
|
|
|
372
358
|
#
|
|
373
359
|
# @param total_evaluations [Integer] Total number of evaluations performed by this monitor.
|
|
374
360
|
end
|
|
361
|
+
|
|
362
|
+
# Status of the monitor. Can be `active` or `inactive`. Inactive monitors no
|
|
363
|
+
# longer record and evaluate events.
|
|
364
|
+
#
|
|
365
|
+
# @see Deeprails::Models::MonitorDetailResponse#status
|
|
366
|
+
module Status
|
|
367
|
+
extend Deeprails::Internal::Type::Enum
|
|
368
|
+
|
|
369
|
+
ACTIVE = :active
|
|
370
|
+
INACTIVE = :inactive
|
|
371
|
+
|
|
372
|
+
# @!method self.values
|
|
373
|
+
# @return [Array<Symbol>]
|
|
374
|
+
end
|
|
375
375
|
end
|
|
376
376
|
end
|
|
377
377
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Deeprails
|
|
4
|
+
module Models
|
|
5
|
+
# @see Deeprails::Resources::Monitor#retrieve_event
|
|
6
|
+
class MonitorRetrieveEventParams < Deeprails::Internal::Type::BaseModel
|
|
7
|
+
extend Deeprails::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Deeprails::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute monitor_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :monitor_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(monitor_id:, request_options: {})
|
|
16
|
+
# @param monitor_id [String]
|
|
17
|
+
# @param request_options [Deeprails::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|