context.dev 1.36.0 → 2.1.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 +35 -0
- data/README.md +16 -9
- data/lib/context_dev/client.rb +7 -0
- data/lib/context_dev/models/brand_retrieve_params.rb +1079 -174
- data/lib/context_dev/models/monitor_create_params.rb +364 -0
- data/lib/context_dev/models/monitor_create_response.rb +608 -0
- data/lib/context_dev/models/monitor_delete_params.rb +20 -0
- data/lib/context_dev/models/monitor_delete_response.rb +22 -0
- data/lib/context_dev/models/monitor_list_account_changes_params.rb +93 -0
- data/lib/context_dev/models/monitor_list_account_changes_response.rb +199 -0
- data/lib/context_dev/models/monitor_list_account_runs_params.rb +55 -0
- data/lib/context_dev/models/monitor_list_account_runs_response.rb +227 -0
- data/lib/context_dev/models/monitor_list_changes_params.rb +57 -0
- data/lib/context_dev/models/monitor_list_changes_response.rb +198 -0
- data/lib/context_dev/models/monitor_list_params.rb +161 -0
- data/lib/context_dev/models/monitor_list_response.rb +631 -0
- data/lib/context_dev/models/monitor_list_runs_params.rb +62 -0
- data/lib/context_dev/models/monitor_list_runs_response.rb +227 -0
- data/lib/context_dev/models/monitor_retrieve_change_params.rb +20 -0
- data/lib/context_dev/models/monitor_retrieve_change_response.rb +264 -0
- data/lib/context_dev/models/monitor_retrieve_params.rb +20 -0
- data/lib/context_dev/models/monitor_retrieve_response.rb +608 -0
- data/lib/context_dev/models/monitor_run_params.rb +20 -0
- data/lib/context_dev/models/monitor_run_response.rb +35 -0
- data/lib/context_dev/models/monitor_update_params.rb +371 -0
- data/lib/context_dev/models/monitor_update_response.rb +608 -0
- data/lib/context_dev/models/utility_prefetch_params.rb +70 -6
- data/lib/context_dev/models/utility_prefetch_response.rb +23 -1
- data/lib/context_dev/models/web_extract_response.rb +17 -1
- data/lib/context_dev/models/web_web_crawl_md_params.rb +11 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +11 -1
- data/lib/context_dev/models/web_web_scrape_html_response.rb +10 -2
- data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -1
- data/lib/context_dev/models/web_web_scrape_md_params.rb +11 -1
- data/lib/context_dev/models.rb +20 -12
- data/lib/context_dev/resources/ai.rb +0 -33
- data/lib/context_dev/resources/brand.rb +9 -204
- data/lib/context_dev/resources/monitors.rb +352 -0
- data/lib/context_dev/resources/utility.rb +9 -35
- data/lib/context_dev/resources/web.rb +14 -4
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +23 -14
- data/rbi/context_dev/client.rbi +6 -0
- data/rbi/context_dev/models/brand_retrieve_params.rbi +3858 -678
- data/rbi/context_dev/models/monitor_create_params.rbi +641 -0
- data/rbi/context_dev/models/monitor_create_response.rbi +1020 -0
- data/rbi/context_dev/models/monitor_delete_params.rbi +35 -0
- data/rbi/context_dev/models/monitor_delete_response.rbi +29 -0
- data/rbi/context_dev/models/monitor_list_account_changes_params.rbi +211 -0
- data/rbi/context_dev/models/monitor_list_account_changes_response.rbi +376 -0
- data/rbi/context_dev/models/monitor_list_account_runs_params.rbi +125 -0
- data/rbi/context_dev/models/monitor_list_account_runs_response.rbi +464 -0
- data/rbi/context_dev/models/monitor_list_changes_params.rbi +91 -0
- data/rbi/context_dev/models/monitor_list_changes_response.rbi +372 -0
- data/rbi/context_dev/models/monitor_list_params.rbi +335 -0
- data/rbi/context_dev/models/monitor_list_response.rbi +1089 -0
- data/rbi/context_dev/models/monitor_list_runs_params.rbi +125 -0
- data/rbi/context_dev/models/monitor_list_runs_response.rbi +455 -0
- data/rbi/context_dev/models/monitor_retrieve_change_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_retrieve_change_response.rbi +469 -0
- data/rbi/context_dev/models/monitor_retrieve_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_retrieve_response.rbi +1028 -0
- data/rbi/context_dev/models/monitor_run_params.rbi +35 -0
- data/rbi/context_dev/models/monitor_run_response.rbi +48 -0
- data/rbi/context_dev/models/monitor_update_params.rbi +681 -0
- data/rbi/context_dev/models/monitor_update_response.rbi +1020 -0
- data/rbi/context_dev/models/utility_prefetch_params.rbi +129 -7
- data/rbi/context_dev/models/utility_prefetch_response.rbi +55 -3
- data/rbi/context_dev/models/web_extract_response.rbi +10 -0
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +15 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +15 -0
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +29 -3
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +17 -0
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +15 -0
- data/rbi/context_dev/models.rbi +23 -15
- data/rbi/context_dev/resources/ai.rbi +0 -28
- data/rbi/context_dev/resources/brand.rbi +16 -228
- data/rbi/context_dev/resources/monitors.rbi +286 -0
- data/rbi/context_dev/resources/utility.rbi +14 -29
- data/rbi/context_dev/resources/web.rbi +21 -0
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/brand_retrieve_params.rbs +1586 -281
- data/sig/context_dev/models/monitor_create_params.rbs +301 -0
- data/sig/context_dev/models/monitor_create_response.rbs +433 -0
- data/sig/context_dev/models/monitor_delete_params.rbs +23 -0
- data/sig/context_dev/models/monitor_delete_response.rbs +15 -0
- data/sig/context_dev/models/monitor_list_account_changes_params.rbs +104 -0
- data/sig/context_dev/models/monitor_list_account_changes_response.rbs +176 -0
- data/sig/context_dev/models/monitor_list_account_runs_params.rbs +58 -0
- data/sig/context_dev/models/monitor_list_account_runs_response.rbs +184 -0
- data/sig/context_dev/models/monitor_list_changes_params.rbs +61 -0
- data/sig/context_dev/models/monitor_list_changes_response.rbs +176 -0
- data/sig/context_dev/models/monitor_list_params.rbs +160 -0
- data/sig/context_dev/models/monitor_list_response.rbs +460 -0
- data/sig/context_dev/models/monitor_list_runs_params.rbs +63 -0
- data/sig/context_dev/models/monitor_list_runs_response.rbs +184 -0
- data/sig/context_dev/models/monitor_retrieve_change_params.rbs +23 -0
- data/sig/context_dev/models/monitor_retrieve_change_response.rbs +221 -0
- data/sig/context_dev/models/monitor_retrieve_params.rbs +23 -0
- data/sig/context_dev/models/monitor_retrieve_response.rbs +433 -0
- data/sig/context_dev/models/monitor_run_params.rbs +23 -0
- data/sig/context_dev/models/monitor_run_response.rbs +18 -0
- data/sig/context_dev/models/monitor_update_params.rbs +321 -0
- data/sig/context_dev/models/monitor_update_response.rbs +433 -0
- data/sig/context_dev/models/utility_prefetch_params.rbs +52 -4
- data/sig/context_dev/models/utility_prefetch_response.rbs +22 -3
- data/sig/context_dev/models/web_extract_response.rbs +5 -0
- data/sig/context_dev/models/web_web_crawl_md_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +8 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +7 -0
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +7 -0
- data/sig/context_dev/models.rbs +20 -12
- data/sig/context_dev/resources/ai.rbs +0 -8
- data/sig/context_dev/resources/brand.rbs +1 -56
- data/sig/context_dev/resources/monitors.rbs +101 -0
- data/sig/context_dev/resources/utility.rbs +2 -7
- data/sig/context_dev/resources/web.rbs +4 -0
- metadata +71 -44
- data/lib/context_dev/models/ai_ai_query_params.rb +0 -235
- data/lib/context_dev/models/ai_ai_query_response.rb +0 -133
- data/lib/context_dev/models/brand_identify_from_transaction_params.rb +0 -474
- data/lib/context_dev/models/brand_identify_from_transaction_response.rb +0 -1074
- data/lib/context_dev/models/brand_retrieve_by_email_params.rb +0 -195
- data/lib/context_dev/models/brand_retrieve_by_email_response.rb +0 -1071
- data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +0 -195
- data/lib/context_dev/models/brand_retrieve_by_isin_response.rb +0 -1070
- data/lib/context_dev/models/brand_retrieve_by_name_params.rb +0 -452
- data/lib/context_dev/models/brand_retrieve_by_name_response.rb +0 -1070
- data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +0 -283
- data/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +0 -1072
- data/lib/context_dev/models/utility_prefetch_by_email_params.rb +0 -37
- data/lib/context_dev/models/utility_prefetch_by_email_response.rb +0 -68
- data/rbi/context_dev/models/ai_ai_query_params.rbi +0 -504
- data/rbi/context_dev/models/ai_ai_query_response.rbi +0 -267
- data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +0 -2020
- data/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +0 -3515
- data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +0 -743
- data/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +0 -3511
- data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +0 -743
- data/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +0 -3510
- data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +0 -1982
- data/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +0 -3510
- data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +0 -1153
- data/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +0 -3512
- data/rbi/context_dev/models/utility_prefetch_by_email_params.rbi +0 -65
- data/rbi/context_dev/models/utility_prefetch_by_email_response.rbi +0 -132
- data/sig/context_dev/models/ai_ai_query_params.rbs +0 -218
- data/sig/context_dev/models/ai_ai_query_response.rbs +0 -121
- data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +0 -822
- data/sig/context_dev/models/brand_identify_from_transaction_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +0 -305
- data/sig/context_dev/models/brand_retrieve_by_email_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +0 -305
- data/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +0 -801
- data/sig/context_dev/models/brand_retrieve_by_name_response.rbs +0 -1441
- data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +0 -467
- data/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +0 -1441
- data/sig/context_dev/models/utility_prefetch_by_email_params.rbs +0 -30
- data/sig/context_dev/models/utility_prefetch_by_email_response.rbs +0 -64
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#list_account_changes
|
|
6
|
+
class MonitorListAccountChangesParams < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute change_detection_type
|
|
11
|
+
#
|
|
12
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountChangesParams::ChangeDetectionType, nil]
|
|
13
|
+
optional :change_detection_type,
|
|
14
|
+
enum: -> { ContextDev::MonitorListAccountChangesParams::ChangeDetectionType }
|
|
15
|
+
|
|
16
|
+
# @!attribute cursor
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :cursor, String
|
|
20
|
+
|
|
21
|
+
# @!attribute limit
|
|
22
|
+
#
|
|
23
|
+
# @return [Integer, nil]
|
|
24
|
+
optional :limit, Integer
|
|
25
|
+
|
|
26
|
+
# @!attribute monitor_id
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :monitor_id, String
|
|
30
|
+
|
|
31
|
+
# @!attribute since
|
|
32
|
+
#
|
|
33
|
+
# @return [Time, nil]
|
|
34
|
+
optional :since, Time
|
|
35
|
+
|
|
36
|
+
# @!attribute tag
|
|
37
|
+
# Filter to items that have this tag.
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :tag, String
|
|
41
|
+
|
|
42
|
+
# @!attribute target_type
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountChangesParams::TargetType, nil]
|
|
45
|
+
optional :target_type, enum: -> { ContextDev::MonitorListAccountChangesParams::TargetType }
|
|
46
|
+
|
|
47
|
+
# @!attribute until_
|
|
48
|
+
#
|
|
49
|
+
# @return [Time, nil]
|
|
50
|
+
optional :until_, Time
|
|
51
|
+
|
|
52
|
+
# @!method initialize(change_detection_type: nil, cursor: nil, limit: nil, monitor_id: nil, since: nil, tag: nil, target_type: nil, until_: nil, request_options: {})
|
|
53
|
+
# @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesParams::ChangeDetectionType]
|
|
54
|
+
#
|
|
55
|
+
# @param cursor [String]
|
|
56
|
+
#
|
|
57
|
+
# @param limit [Integer]
|
|
58
|
+
#
|
|
59
|
+
# @param monitor_id [String]
|
|
60
|
+
#
|
|
61
|
+
# @param since [Time]
|
|
62
|
+
#
|
|
63
|
+
# @param tag [String] Filter to items that have this tag.
|
|
64
|
+
#
|
|
65
|
+
# @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesParams::TargetType]
|
|
66
|
+
#
|
|
67
|
+
# @param until_ [Time]
|
|
68
|
+
#
|
|
69
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
70
|
+
|
|
71
|
+
module ChangeDetectionType
|
|
72
|
+
extend ContextDev::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
EXACT = :exact
|
|
75
|
+
SEMANTIC = :semantic
|
|
76
|
+
|
|
77
|
+
# @!method self.values
|
|
78
|
+
# @return [Array<Symbol>]
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
module TargetType
|
|
82
|
+
extend ContextDev::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
PAGE = :page
|
|
85
|
+
SITEMAP = :sitemap
|
|
86
|
+
EXTRACT = :extract
|
|
87
|
+
|
|
88
|
+
# @!method self.values
|
|
89
|
+
# @return [Array<Symbol>]
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#list_account_changes
|
|
6
|
+
class MonitorListAccountChangesResponse < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<ContextDev::Models::MonitorListAccountChangesResponse::Data>]
|
|
10
|
+
required :data,
|
|
11
|
+
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountChangesResponse::Data] }
|
|
12
|
+
|
|
13
|
+
# @!attribute has_more
|
|
14
|
+
#
|
|
15
|
+
# @return [Boolean]
|
|
16
|
+
required :has_more, ContextDev::Internal::Type::Boolean
|
|
17
|
+
|
|
18
|
+
# @!attribute next_cursor
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
required :next_cursor, String, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!method initialize(data:, has_more:, next_cursor:)
|
|
24
|
+
# @param data [Array<ContextDev::Models::MonitorListAccountChangesResponse::Data>]
|
|
25
|
+
# @param has_more [Boolean]
|
|
26
|
+
# @param next_cursor [String, nil]
|
|
27
|
+
|
|
28
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
29
|
+
# @!attribute id
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :id, String
|
|
33
|
+
|
|
34
|
+
# @!attribute change_detection_type
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType]
|
|
37
|
+
required :change_detection_type,
|
|
38
|
+
enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType }
|
|
39
|
+
|
|
40
|
+
# @!attribute detected_at
|
|
41
|
+
#
|
|
42
|
+
# @return [Time]
|
|
43
|
+
required :detected_at, Time
|
|
44
|
+
|
|
45
|
+
# @!attribute mode
|
|
46
|
+
# Top-level monitor category. Always `web` today; the concrete behavior is
|
|
47
|
+
# described by `target` and `change_detection`.
|
|
48
|
+
#
|
|
49
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode]
|
|
50
|
+
required :mode, enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode }
|
|
51
|
+
|
|
52
|
+
# @!attribute monitor_id
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
55
|
+
required :monitor_id, String
|
|
56
|
+
|
|
57
|
+
# @!attribute summary
|
|
58
|
+
#
|
|
59
|
+
# @return [String]
|
|
60
|
+
required :summary, String
|
|
61
|
+
|
|
62
|
+
# @!attribute target_type
|
|
63
|
+
#
|
|
64
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType]
|
|
65
|
+
required :target_type,
|
|
66
|
+
enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType }
|
|
67
|
+
|
|
68
|
+
# @!attribute title
|
|
69
|
+
#
|
|
70
|
+
# @return [String]
|
|
71
|
+
required :title, String
|
|
72
|
+
|
|
73
|
+
# @!attribute url
|
|
74
|
+
#
|
|
75
|
+
# @return [String]
|
|
76
|
+
required :url, String
|
|
77
|
+
|
|
78
|
+
# @!attribute added_url_count
|
|
79
|
+
#
|
|
80
|
+
# @return [Integer, nil]
|
|
81
|
+
optional :added_url_count, Integer
|
|
82
|
+
|
|
83
|
+
# @!attribute confidence
|
|
84
|
+
#
|
|
85
|
+
# @return [Float, nil]
|
|
86
|
+
optional :confidence, Float
|
|
87
|
+
|
|
88
|
+
# @!attribute importance
|
|
89
|
+
#
|
|
90
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance, nil]
|
|
91
|
+
optional :importance, enum: -> { ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance }
|
|
92
|
+
|
|
93
|
+
# @!attribute matched_url_count
|
|
94
|
+
#
|
|
95
|
+
# @return [Integer, nil]
|
|
96
|
+
optional :matched_url_count, Integer
|
|
97
|
+
|
|
98
|
+
# @!attribute removed_url_count
|
|
99
|
+
#
|
|
100
|
+
# @return [Integer, nil]
|
|
101
|
+
optional :removed_url_count, Integer
|
|
102
|
+
|
|
103
|
+
# @!attribute tags
|
|
104
|
+
# User-defined tags for grouping and filtering monitors and their changes.
|
|
105
|
+
#
|
|
106
|
+
# @return [Array<String>, nil]
|
|
107
|
+
optional :tags, ContextDev::Internal::Type::ArrayOf[String]
|
|
108
|
+
|
|
109
|
+
# @!method initialize(id:, change_detection_type:, detected_at:, mode:, monitor_id:, summary:, target_type:, title:, url:, added_url_count: nil, confidence: nil, importance: nil, matched_url_count: nil, removed_url_count: nil, tags: nil)
|
|
110
|
+
# Some parameter documentations has been truncated, see
|
|
111
|
+
# {ContextDev::Models::MonitorListAccountChangesResponse::Data} for more details.
|
|
112
|
+
#
|
|
113
|
+
# A lightweight change summary. `mode` is the constant `web`; `target_type` and
|
|
114
|
+
# `change_detection_type` describe the change, and which optional fields are
|
|
115
|
+
# present depends on them (e.g. sitemap changes include
|
|
116
|
+
# `added_url_count`/`removed_url_count`; semantic changes include
|
|
117
|
+
# `confidence`/`importance`).
|
|
118
|
+
#
|
|
119
|
+
# @param id [String]
|
|
120
|
+
#
|
|
121
|
+
# @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::ChangeDetectionType]
|
|
122
|
+
#
|
|
123
|
+
# @param detected_at [Time]
|
|
124
|
+
#
|
|
125
|
+
# @param mode [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Mode] Top-level monitor category. Always `web` today; the concrete behavior is describ
|
|
126
|
+
#
|
|
127
|
+
# @param monitor_id [String]
|
|
128
|
+
#
|
|
129
|
+
# @param summary [String]
|
|
130
|
+
#
|
|
131
|
+
# @param target_type [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::TargetType]
|
|
132
|
+
#
|
|
133
|
+
# @param title [String]
|
|
134
|
+
#
|
|
135
|
+
# @param url [String]
|
|
136
|
+
#
|
|
137
|
+
# @param added_url_count [Integer]
|
|
138
|
+
#
|
|
139
|
+
# @param confidence [Float]
|
|
140
|
+
#
|
|
141
|
+
# @param importance [Symbol, ContextDev::Models::MonitorListAccountChangesResponse::Data::Importance]
|
|
142
|
+
#
|
|
143
|
+
# @param matched_url_count [Integer]
|
|
144
|
+
#
|
|
145
|
+
# @param removed_url_count [Integer]
|
|
146
|
+
#
|
|
147
|
+
# @param tags [Array<String>] User-defined tags for grouping and filtering monitors and their changes.
|
|
148
|
+
|
|
149
|
+
# @see ContextDev::Models::MonitorListAccountChangesResponse::Data#change_detection_type
|
|
150
|
+
module ChangeDetectionType
|
|
151
|
+
extend ContextDev::Internal::Type::Enum
|
|
152
|
+
|
|
153
|
+
EXACT = :exact
|
|
154
|
+
SEMANTIC = :semantic
|
|
155
|
+
|
|
156
|
+
# @!method self.values
|
|
157
|
+
# @return [Array<Symbol>]
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Top-level monitor category. Always `web` today; the concrete behavior is
|
|
161
|
+
# described by `target` and `change_detection`.
|
|
162
|
+
#
|
|
163
|
+
# @see ContextDev::Models::MonitorListAccountChangesResponse::Data#mode
|
|
164
|
+
module Mode
|
|
165
|
+
extend ContextDev::Internal::Type::Enum
|
|
166
|
+
|
|
167
|
+
WEB = :web
|
|
168
|
+
|
|
169
|
+
# @!method self.values
|
|
170
|
+
# @return [Array<Symbol>]
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# @see ContextDev::Models::MonitorListAccountChangesResponse::Data#target_type
|
|
174
|
+
module TargetType
|
|
175
|
+
extend ContextDev::Internal::Type::Enum
|
|
176
|
+
|
|
177
|
+
PAGE = :page
|
|
178
|
+
SITEMAP = :sitemap
|
|
179
|
+
EXTRACT = :extract
|
|
180
|
+
|
|
181
|
+
# @!method self.values
|
|
182
|
+
# @return [Array<Symbol>]
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# @see ContextDev::Models::MonitorListAccountChangesResponse::Data#importance
|
|
186
|
+
module Importance
|
|
187
|
+
extend ContextDev::Internal::Type::Enum
|
|
188
|
+
|
|
189
|
+
LOW = :low
|
|
190
|
+
MEDIUM = :medium
|
|
191
|
+
HIGH = :high
|
|
192
|
+
|
|
193
|
+
# @!method self.values
|
|
194
|
+
# @return [Array<Symbol>]
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#list_account_runs
|
|
6
|
+
class MonitorListAccountRunsParams < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute cursor
|
|
11
|
+
#
|
|
12
|
+
# @return [String, nil]
|
|
13
|
+
optional :cursor, String
|
|
14
|
+
|
|
15
|
+
# @!attribute limit
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer, nil]
|
|
18
|
+
optional :limit, Integer
|
|
19
|
+
|
|
20
|
+
# @!attribute status
|
|
21
|
+
# Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
|
|
22
|
+
# (insufficient credits, monitor paused, or superseded by a concurrent run).
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status, nil]
|
|
25
|
+
optional :status, enum: -> { ContextDev::MonitorListAccountRunsParams::Status }
|
|
26
|
+
|
|
27
|
+
# @!method initialize(cursor: nil, limit: nil, status: nil, request_options: {})
|
|
28
|
+
# Some parameter documentations has been truncated, see
|
|
29
|
+
# {ContextDev::Models::MonitorListAccountRunsParams} for more details.
|
|
30
|
+
#
|
|
31
|
+
# @param cursor [String]
|
|
32
|
+
#
|
|
33
|
+
# @param limit [Integer]
|
|
34
|
+
#
|
|
35
|
+
# @param status [Symbol, ContextDev::Models::MonitorListAccountRunsParams::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in
|
|
36
|
+
#
|
|
37
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
38
|
+
|
|
39
|
+
# Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
|
|
40
|
+
# (insufficient credits, monitor paused, or superseded by a concurrent run).
|
|
41
|
+
module Status
|
|
42
|
+
extend ContextDev::Internal::Type::Enum
|
|
43
|
+
|
|
44
|
+
QUEUED = :queued
|
|
45
|
+
RUNNING = :running
|
|
46
|
+
COMPLETED = :completed
|
|
47
|
+
FAILED = :failed
|
|
48
|
+
SKIPPED = :skipped
|
|
49
|
+
|
|
50
|
+
# @!method self.values
|
|
51
|
+
# @return [Array<Symbol>]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#list_account_runs
|
|
6
|
+
class MonitorListAccountRunsResponse < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<ContextDev::Models::MonitorListAccountRunsResponse::Data>]
|
|
10
|
+
required :data,
|
|
11
|
+
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::MonitorListAccountRunsResponse::Data] }
|
|
12
|
+
|
|
13
|
+
# @!attribute has_more
|
|
14
|
+
#
|
|
15
|
+
# @return [Boolean]
|
|
16
|
+
required :has_more, ContextDev::Internal::Type::Boolean
|
|
17
|
+
|
|
18
|
+
# @!attribute next_cursor
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
required :next_cursor, String, nil?: true
|
|
22
|
+
|
|
23
|
+
# @!method initialize(data:, has_more:, next_cursor:)
|
|
24
|
+
# @param data [Array<ContextDev::Models::MonitorListAccountRunsResponse::Data>]
|
|
25
|
+
# @param has_more [Boolean]
|
|
26
|
+
# @param next_cursor [String, nil]
|
|
27
|
+
|
|
28
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
29
|
+
# @!attribute id
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :id, String
|
|
33
|
+
|
|
34
|
+
# @!attribute baseline_created
|
|
35
|
+
# True when this run established the monitor's initial baseline; baseline runs
|
|
36
|
+
# perform no change detection.
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean]
|
|
39
|
+
required :baseline_created, ContextDev::Internal::Type::Boolean
|
|
40
|
+
|
|
41
|
+
# @!attribute change_detected
|
|
42
|
+
#
|
|
43
|
+
# @return [Boolean]
|
|
44
|
+
required :change_detected, ContextDev::Internal::Type::Boolean
|
|
45
|
+
|
|
46
|
+
# @!attribute change_detection_type
|
|
47
|
+
#
|
|
48
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType]
|
|
49
|
+
required :change_detection_type,
|
|
50
|
+
enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType }
|
|
51
|
+
|
|
52
|
+
# @!attribute credits_charged
|
|
53
|
+
# Credits charged for this run (0 for skipped/failed runs).
|
|
54
|
+
#
|
|
55
|
+
# @return [Integer]
|
|
56
|
+
required :credits_charged, Integer
|
|
57
|
+
|
|
58
|
+
# @!attribute monitor_id
|
|
59
|
+
#
|
|
60
|
+
# @return [String]
|
|
61
|
+
required :monitor_id, String
|
|
62
|
+
|
|
63
|
+
# @!attribute run_type
|
|
64
|
+
# The first run after monitor creation is a baseline run.
|
|
65
|
+
#
|
|
66
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType]
|
|
67
|
+
required :run_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType }
|
|
68
|
+
|
|
69
|
+
# @!attribute status
|
|
70
|
+
# Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
|
|
71
|
+
# (insufficient credits, monitor paused, or superseded by a concurrent run).
|
|
72
|
+
#
|
|
73
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status]
|
|
74
|
+
required :status, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::Status }
|
|
75
|
+
|
|
76
|
+
# @!attribute target_type
|
|
77
|
+
#
|
|
78
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType]
|
|
79
|
+
required :target_type, enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType }
|
|
80
|
+
|
|
81
|
+
# @!attribute change_id
|
|
82
|
+
#
|
|
83
|
+
# @return [String, nil]
|
|
84
|
+
optional :change_id, String, nil?: true
|
|
85
|
+
|
|
86
|
+
# @!attribute completed_at
|
|
87
|
+
#
|
|
88
|
+
# @return [Time, nil]
|
|
89
|
+
optional :completed_at, Time, nil?: true
|
|
90
|
+
|
|
91
|
+
# @!attribute error
|
|
92
|
+
#
|
|
93
|
+
# @return [ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, nil]
|
|
94
|
+
optional :error, -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::Error }, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute skip_reason
|
|
97
|
+
# Why a skipped run never executed; null unless status is `skipped`.
|
|
98
|
+
#
|
|
99
|
+
# @return [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason, nil]
|
|
100
|
+
optional :skip_reason,
|
|
101
|
+
enum: -> { ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason },
|
|
102
|
+
nil?: true
|
|
103
|
+
|
|
104
|
+
# @!attribute started_at
|
|
105
|
+
#
|
|
106
|
+
# @return [Time, nil]
|
|
107
|
+
optional :started_at, Time, nil?: true
|
|
108
|
+
|
|
109
|
+
# @!method initialize(id:, baseline_created:, change_detected:, change_detection_type:, credits_charged:, monitor_id:, run_type:, status:, target_type:, change_id: nil, completed_at: nil, error: nil, skip_reason: nil, started_at: nil)
|
|
110
|
+
# Some parameter documentations has been truncated, see
|
|
111
|
+
# {ContextDev::Models::MonitorListAccountRunsResponse::Data} for more details.
|
|
112
|
+
#
|
|
113
|
+
# @param id [String]
|
|
114
|
+
#
|
|
115
|
+
# @param baseline_created [Boolean] True when this run established the monitor's initial baseline; baseline runs per
|
|
116
|
+
#
|
|
117
|
+
# @param change_detected [Boolean]
|
|
118
|
+
#
|
|
119
|
+
# @param change_detection_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::ChangeDetectionType]
|
|
120
|
+
#
|
|
121
|
+
# @param credits_charged [Integer] Credits charged for this run (0 for skipped/failed runs).
|
|
122
|
+
#
|
|
123
|
+
# @param monitor_id [String]
|
|
124
|
+
#
|
|
125
|
+
# @param run_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::RunType] The first run after monitor creation is a baseline run.
|
|
126
|
+
#
|
|
127
|
+
# @param status [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::Status] Lifecycle status of a run. `skipped` runs never executed — see `skip_reason` (in
|
|
128
|
+
#
|
|
129
|
+
# @param target_type [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::TargetType]
|
|
130
|
+
#
|
|
131
|
+
# @param change_id [String, nil]
|
|
132
|
+
#
|
|
133
|
+
# @param completed_at [Time, nil]
|
|
134
|
+
#
|
|
135
|
+
# @param error [ContextDev::Models::MonitorListAccountRunsResponse::Data::Error, nil]
|
|
136
|
+
#
|
|
137
|
+
# @param skip_reason [Symbol, ContextDev::Models::MonitorListAccountRunsResponse::Data::SkipReason, nil] Why a skipped run never executed; null unless status is `skipped`.
|
|
138
|
+
#
|
|
139
|
+
# @param started_at [Time, nil]
|
|
140
|
+
|
|
141
|
+
# @see ContextDev::Models::MonitorListAccountRunsResponse::Data#change_detection_type
|
|
142
|
+
module ChangeDetectionType
|
|
143
|
+
extend ContextDev::Internal::Type::Enum
|
|
144
|
+
|
|
145
|
+
EXACT = :exact
|
|
146
|
+
SEMANTIC = :semantic
|
|
147
|
+
|
|
148
|
+
# @!method self.values
|
|
149
|
+
# @return [Array<Symbol>]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# The first run after monitor creation is a baseline run.
|
|
153
|
+
#
|
|
154
|
+
# @see ContextDev::Models::MonitorListAccountRunsResponse::Data#run_type
|
|
155
|
+
module RunType
|
|
156
|
+
extend ContextDev::Internal::Type::Enum
|
|
157
|
+
|
|
158
|
+
BASELINE = :baseline
|
|
159
|
+
SCHEDULED = :scheduled
|
|
160
|
+
|
|
161
|
+
# @!method self.values
|
|
162
|
+
# @return [Array<Symbol>]
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Lifecycle status of a run. `skipped` runs never executed — see `skip_reason`
|
|
166
|
+
# (insufficient credits, monitor paused, or superseded by a concurrent run).
|
|
167
|
+
#
|
|
168
|
+
# @see ContextDev::Models::MonitorListAccountRunsResponse::Data#status
|
|
169
|
+
module Status
|
|
170
|
+
extend ContextDev::Internal::Type::Enum
|
|
171
|
+
|
|
172
|
+
QUEUED = :queued
|
|
173
|
+
RUNNING = :running
|
|
174
|
+
COMPLETED = :completed
|
|
175
|
+
FAILED = :failed
|
|
176
|
+
SKIPPED = :skipped
|
|
177
|
+
|
|
178
|
+
# @!method self.values
|
|
179
|
+
# @return [Array<Symbol>]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# @see ContextDev::Models::MonitorListAccountRunsResponse::Data#target_type
|
|
183
|
+
module TargetType
|
|
184
|
+
extend ContextDev::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
PAGE = :page
|
|
187
|
+
SITEMAP = :sitemap
|
|
188
|
+
EXTRACT = :extract
|
|
189
|
+
|
|
190
|
+
# @!method self.values
|
|
191
|
+
# @return [Array<Symbol>]
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# @see ContextDev::Models::MonitorListAccountRunsResponse::Data#error
|
|
195
|
+
class Error < ContextDev::Internal::Type::BaseModel
|
|
196
|
+
# @!attribute code
|
|
197
|
+
#
|
|
198
|
+
# @return [String]
|
|
199
|
+
required :code, String
|
|
200
|
+
|
|
201
|
+
# @!attribute message
|
|
202
|
+
#
|
|
203
|
+
# @return [String]
|
|
204
|
+
required :message, String
|
|
205
|
+
|
|
206
|
+
# @!method initialize(code:, message:)
|
|
207
|
+
# @param code [String]
|
|
208
|
+
# @param message [String]
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Why a skipped run never executed; null unless status is `skipped`.
|
|
212
|
+
#
|
|
213
|
+
# @see ContextDev::Models::MonitorListAccountRunsResponse::Data#skip_reason
|
|
214
|
+
module SkipReason
|
|
215
|
+
extend ContextDev::Internal::Type::Enum
|
|
216
|
+
|
|
217
|
+
INSUFFICIENT_CREDITS = :insufficient_credits
|
|
218
|
+
MONITOR_PAUSED = :monitor_paused
|
|
219
|
+
SUPERSEDED = :superseded
|
|
220
|
+
|
|
221
|
+
# @!method self.values
|
|
222
|
+
# @return [Array<Symbol>]
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::Monitors#list_changes
|
|
6
|
+
class MonitorListChangesParams < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include ContextDev::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute monitor_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :monitor_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute cursor
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
optional :cursor, String
|
|
19
|
+
|
|
20
|
+
# @!attribute limit
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer, nil]
|
|
23
|
+
optional :limit, Integer
|
|
24
|
+
|
|
25
|
+
# @!attribute since
|
|
26
|
+
#
|
|
27
|
+
# @return [Time, nil]
|
|
28
|
+
optional :since, Time
|
|
29
|
+
|
|
30
|
+
# @!attribute tag
|
|
31
|
+
# Filter to items that have this tag.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :tag, String
|
|
35
|
+
|
|
36
|
+
# @!attribute until_
|
|
37
|
+
#
|
|
38
|
+
# @return [Time, nil]
|
|
39
|
+
optional :until_, Time
|
|
40
|
+
|
|
41
|
+
# @!method initialize(monitor_id:, cursor: nil, limit: nil, since: nil, tag: nil, until_: nil, request_options: {})
|
|
42
|
+
# @param monitor_id [String]
|
|
43
|
+
#
|
|
44
|
+
# @param cursor [String]
|
|
45
|
+
#
|
|
46
|
+
# @param limit [Integer]
|
|
47
|
+
#
|
|
48
|
+
# @param since [Time]
|
|
49
|
+
#
|
|
50
|
+
# @param tag [String] Filter to items that have this tag.
|
|
51
|
+
#
|
|
52
|
+
# @param until_ [Time]
|
|
53
|
+
#
|
|
54
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|