fluent-plugin-sdns-api 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed83d441568fce83f35bcadfa0fea53fdafccc7a274588344eb4ace99b094d14
4
- data.tar.gz: 0ce35035202fc91bed7cc957fbacc596aedb120046ad1059f164f3216ed6582b
3
+ metadata.gz: a27f5c40f5051098722918eeda5bd9b75bb8896863e8dc38e4f64a738098d93e
4
+ data.tar.gz: acd7a62f3ff27e3d8abebab6dd0adf39f62579120d5d65488268bb6ebeb98446
5
5
  SHA512:
6
- metadata.gz: 1c998e2331bf12c4d78deab97db0a86fbaa303924c80c485ba70d6711b4ec1a924913d5f20b2a7d1bffed54f3c586b18b00d9788c5c8a00f0fb39d60dcb0029b
7
- data.tar.gz: 9d09a0533a41fea12df19815c3361858486419a18711e4c6995c2efec2d66af614ef8ee007ac5ea9bdf65f5c8cbeadf7f300ff8ff26c4d145ccef565292de5b5
6
+ metadata.gz: 567f3b61d068b508f83414fb291b3aed534eff4880659febd9715eecf048352958a706c8b43766b98969f9b2ae8a7f51958749c7f473ad2b6cd69e2bd81f2060
7
+ data.tar.gz: 378ba7804d1bf01d526dab7809a011415450f2474fac9cbaeadd672b7dae72865105eccbc3a0eeab08422e418383696af6ff2efce51ff44a631b97856c5e84bf
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-sdns-api"
6
- spec.version = "0.1.1"
6
+ spec.version = "0.1.2"
7
7
  spec.authors = ["yinqiwei"]
8
8
  spec.email = ["772006843@qq.com"]
9
9
 
@@ -147,9 +147,8 @@ module Fluent
147
147
  "action" => item["action"],
148
148
  "threat_level" => item["threat_level"],
149
149
  "threat_type" => item["threat_type"],
150
- "event_id" => item["event_id"],
151
- "event_name" => item["event_name"],
152
- "event_description" => item["event_description"].gsub("\n", '\\n').gsub("\t", '\\t'),
150
+ "threat_name" => item["threat_name"],
151
+ "threat_description" => item["threat_description"].gsub("\n", '\\n').gsub("\t", '\\t'),
153
152
  }
154
153
  es = OneEventStream.new(Fluent::EventTime.now, record)
155
154
  router.emit_stream(@tag, es)
@@ -11,7 +11,7 @@ class SdnsApiSignerTest < Test::Unit::TestCase
11
11
  sig.key = "Fad3mbhh9NwadtEd7t0ekFp5HwrNJiDc" # test key
12
12
  sig.secret = "5MLR15LYGn8IeTHQwPs7tZyJslGqNZmYI6g8eHETGrWZYZ6J7U9Ak8CrRlSyCEMT"
13
13
 
14
- r = Fluent::Plugin::SdnsApiSinger::HttpRequest.new("GET", "https://api-fake.dns.qihoo.net/apis/grpc/v2/ListThreatDetail")
14
+ r = Fluent::Plugin::SdnsApiSinger::HttpRequest.new("GET", "https://xxx.net/apis/grpc/v2/ListThreatDetail")
15
15
  r.headers = {"content-type" => "application/json"}
16
16
 
17
17
  r.body = ''
@@ -10,7 +10,7 @@ class SdnsApiListThreatDetailInputTest < Test::Unit::TestCase
10
10
  CONFIG = %[
11
11
  client_ip '1.1.1.1'
12
12
  access_key 'xxx'
13
- endpoint 'https://api-fake.dns.qihoo.net/apis/grpc/v2/ListThreatDetail'
13
+ endpoint 'https://xxx.net/apis/grpc/v2/ListThreatDetail'
14
14
  access_secret 'sdf'
15
15
  ]
16
16
 
@@ -37,7 +37,7 @@ class SdnsApiListThreatDetailInputTest < Test::Unit::TestCase
37
37
  d = create_driver(%[
38
38
  access_key 'L2guCE9mRsuvUhNxUDKfgjKR083RqIFB'
39
39
  access_secret 'Vy4HrnHHZdewCkeQ9pHeiN6repMUgzjeoP2mqzMCVY2Hbne0k4jlKzZ10unYIKo5'
40
- endpoint 'https://api-fake.dns.qihoo.net/apis/grpc/v2/ListThreatDetail'
40
+ endpoint 'https://xxx.net/apis/grpc/v2/ListThreatDetail'
41
41
  page_size 20
42
42
  scrape_interval 600
43
43
  ])
@@ -55,7 +55,7 @@ class SdnsApiListThreatDetailInputTest < Test::Unit::TestCase
55
55
  d = create_driver(%[
56
56
  access_key 'L2guCE9mRsuvUhNxUDKfgjKR083RqIFB'
57
57
  access_secret 'Vy4HrnHHZdewCkeQ9pHeiN6repMUgzjeoP2mqzMCVY2Hbne0k4jlKzZ10unYIKo5'
58
- endpoint 'https://api-fake.dns.qihoo.net/apis/grpc/v2/ListThreatDetail'
58
+ endpoint 'https://xxx.net/apis/grpc/v2/ListThreatDetail'
59
59
  page_size 100
60
60
  scrape_interval 600
61
61
  ])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sdns-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - yinqiwei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-29 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler