tencentcloud-sdk-eb 3.0.536 → 3.0.537

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
  SHA1:
3
- metadata.gz: 65b9e9ed3abdc3be54b414cd305949b5e4d664af
4
- data.tar.gz: d18e2d0829182fbed56fa2bf5dfbe888985a15e4
3
+ metadata.gz: 651f5e04f60cf2385e7588fa8e1c90eb342ab48e
4
+ data.tar.gz: 5d1b52fee8f83d75c9f27687708f4559c4235110
5
5
  SHA512:
6
- metadata.gz: e5860467be5b8e85d596346d3f3afed94b29f8dd6ac45956fa15bad26d5c7407069a80b9f453c441ae518ef4950b46353ec3eb6e7dfe2421a89c7f4a2adfcb89
7
- data.tar.gz: 3ef55d12810caf9bb7b78161b2753ddecbbeaf7332e0177aa186dd96dfb79129405d8c0fcf19f83eaf8fd10b941e02deaf73bb42cc2bf80adf62ae5dcb504dbe
6
+ metadata.gz: 61e31386bb024de0b31a11fb0b7e97eb4626a5fd051c93cb9bb69b9ca30ee0cd5549b81b6ecf49defee7b80fdd56b933f0ac3511ecf0b3805642180c4ea39335
7
+ data.tar.gz: 0b3f5e8a0da0160e2f1310ceb65777f953b5d731a2e5e6a0df7bea1c2d2d03f9e0c8d9dfd1f5ead02737628a80a8f5df9fa0e1bf2fa98ebc471f9ad6526675b9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.536
1
+ 3.0.537
@@ -317,6 +317,30 @@ module TencentCloud
317
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
318
  end
319
319
 
320
+ # 查询日志索引维度值
321
+
322
+ # @param request: Request instance for DescribeLogTagValue.
323
+ # @type request: :class:`Tencentcloud::eb::V20210416::DescribeLogTagValueRequest`
324
+ # @rtype: :class:`Tencentcloud::eb::V20210416::DescribeLogTagValueResponse`
325
+ def DescribeLogTagValue(request)
326
+ body = send_request('DescribeLogTagValue', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeLogTagValueResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
320
344
  # 获取事件集详情
321
345
 
322
346
  # @param request: Request instance for GetEventBus.
@@ -533,6 +557,30 @@ module TencentCloud
533
557
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
558
  end
535
559
 
560
+ # 日志检索
561
+
562
+ # @param request: Request instance for SearchLog.
563
+ # @type request: :class:`Tencentcloud::eb::V20210416::SearchLogRequest`
564
+ # @rtype: :class:`Tencentcloud::eb::V20210416::SearchLogResponse`
565
+ def SearchLog(request)
566
+ body = send_request('SearchLog', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = SearchLogResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
536
584
  # 更新事件连接器
537
585
 
538
586
  # @param request: Request instance for UpdateConnection.
@@ -771,6 +771,74 @@ module TencentCloud
771
771
  end
772
772
  end
773
773
 
774
+ # DescribeLogTagValue请求参数结构体
775
+ class DescribeLogTagValueRequest < TencentCloud::Common::AbstractModel
776
+ # @param StartTime: 起始时间
777
+ # @type StartTime: Integer
778
+ # @param EndTime: 结束时间
779
+ # @type EndTime: Integer
780
+ # @param EventBusId: 事件集ID
781
+ # @type EventBusId: String
782
+ # @param GroupField: 聚合字段
783
+ # @type GroupField: String
784
+ # @param Page: 页数
785
+ # @type Page: Integer
786
+ # @param Limit: 每页数据大小
787
+ # @type Limit: Integer
788
+ # @param Filter: 筛选条件
789
+ # @type Filter: Array
790
+
791
+ attr_accessor :StartTime, :EndTime, :EventBusId, :GroupField, :Page, :Limit, :Filter
792
+
793
+ def initialize(starttime=nil, endtime=nil, eventbusid=nil, groupfield=nil, page=nil, limit=nil, filter=nil)
794
+ @StartTime = starttime
795
+ @EndTime = endtime
796
+ @EventBusId = eventbusid
797
+ @GroupField = groupfield
798
+ @Page = page
799
+ @Limit = limit
800
+ @Filter = filter
801
+ end
802
+
803
+ def deserialize(params)
804
+ @StartTime = params['StartTime']
805
+ @EndTime = params['EndTime']
806
+ @EventBusId = params['EventBusId']
807
+ @GroupField = params['GroupField']
808
+ @Page = params['Page']
809
+ @Limit = params['Limit']
810
+ unless params['Filter'].nil?
811
+ @Filter = []
812
+ params['Filter'].each do |i|
813
+ logfilter_tmp = LogFilter.new
814
+ logfilter_tmp.deserialize(i)
815
+ @Filter << logfilter_tmp
816
+ end
817
+ end
818
+ end
819
+ end
820
+
821
+ # DescribeLogTagValue返回参数结构体
822
+ class DescribeLogTagValueResponse < TencentCloud::Common::AbstractModel
823
+ # @param Results: 索引检索维度值
824
+ # 注意:此字段可能返回 null,表示取不到有效值。
825
+ # @type Results: Array
826
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
827
+ # @type RequestId: String
828
+
829
+ attr_accessor :Results, :RequestId
830
+
831
+ def initialize(results=nil, requestid=nil)
832
+ @Results = results
833
+ @RequestId = requestid
834
+ end
835
+
836
+ def deserialize(params)
837
+ @Results = params['Results']
838
+ @RequestId = params['RequestId']
839
+ end
840
+ end
841
+
774
842
  # 描述Es规则目标
775
843
  class ESTargetParams < TencentCloud::Common::AbstractModel
776
844
  # @param NetMode: 网络连接类型
@@ -1445,6 +1513,69 @@ module TencentCloud
1445
1513
  end
1446
1514
  end
1447
1515
 
1516
+ # 日志查询相关接口filter参数定义
1517
+ class LogFilter < TencentCloud::Common::AbstractModel
1518
+ # @param Key: 过滤字段名称
1519
+ # @type Key: String
1520
+ # @param Operator: 运算符,全等 eq,不等 neq,相似 like,排除相似 not like, 小于 lt,小于且等于 lte,大于 gt,大于且等于 gte,在范围内 range,不在范围内 norange
1521
+ # @type Operator: String
1522
+ # @param Value: 过滤值,范围运算需要同时输入两个值,以英文逗号分隔
1523
+ # @type Value: String
1524
+ # @param Type: 该层级filters逻辑关系,取值 "AND" 或 "OR"
1525
+ # @type Type: String
1526
+ # @param Filters: LogFilters数组
1527
+ # @type Filters: Array
1528
+
1529
+ attr_accessor :Key, :Operator, :Value, :Type, :Filters
1530
+
1531
+ def initialize(key=nil, operator=nil, value=nil, type=nil, filters=nil)
1532
+ @Key = key
1533
+ @Operator = operator
1534
+ @Value = value
1535
+ @Type = type
1536
+ @Filters = filters
1537
+ end
1538
+
1539
+ def deserialize(params)
1540
+ @Key = params['Key']
1541
+ @Operator = params['Operator']
1542
+ @Value = params['Value']
1543
+ @Type = params['Type']
1544
+ unless params['Filters'].nil?
1545
+ @Filters = []
1546
+ params['Filters'].each do |i|
1547
+ logfilters_tmp = LogFilters.new
1548
+ logfilters_tmp.deserialize(i)
1549
+ @Filters << logfilters_tmp
1550
+ end
1551
+ end
1552
+ end
1553
+ end
1554
+
1555
+ # 日志存储过滤条件
1556
+ class LogFilters < TencentCloud::Common::AbstractModel
1557
+ # @param Key: 过滤字段名称
1558
+ # @type Key: String
1559
+ # @param Operator: 运算符, 全等 eq,不等 neq,相似 like,排除相似 not like, 小于 lt,小于且等于 lte,大于 gt,大于且等于 gte,在范围内 range,不在范围内 norange
1560
+ # @type Operator: String
1561
+ # @param Value: 过滤值,范围运算需要同时输入两个值,以英文逗号分隔
1562
+ # @type Value: String
1563
+
1564
+ attr_accessor :Key, :Operator, :Value
1565
+
1566
+ def initialize(key=nil, operator=nil, value=nil)
1567
+ @Key = key
1568
+ @Operator = operator
1569
+ @Value = value
1570
+ end
1571
+
1572
+ def deserialize(params)
1573
+ @Key = params['Key']
1574
+ @Operator = params['Operator']
1575
+ @Value = params['Value']
1576
+ end
1577
+ end
1578
+
1448
1579
  # Transform输出参数
1449
1580
  class OutputStructParam < TencentCloud::Common::AbstractModel
1450
1581
  # @param Key: 对应输出json中的key
@@ -1663,6 +1794,152 @@ module TencentCloud
1663
1794
  end
1664
1795
  end
1665
1796
 
1797
+ # SearchLog请求参数结构体
1798
+ class SearchLogRequest < TencentCloud::Common::AbstractModel
1799
+ # @param StartTime: 起始时间unix 毫秒时间戳
1800
+ # @type StartTime: Integer
1801
+ # @param EndTime: 结束时间unix 毫秒时间戳
1802
+ # @type EndTime: Integer
1803
+ # @param EventBusId: 事件集ID
1804
+ # @type EventBusId: String
1805
+ # @param Page: 页码
1806
+ # @type Page: Integer
1807
+ # @param Limit: 每页数据大小
1808
+ # @type Limit: Integer
1809
+ # @param Filter: 筛选条件
1810
+ # @type Filter: Array
1811
+ # @param OrderFields: 排序数组
1812
+ # @type OrderFields: Array
1813
+ # @param OrderBy: 排序方式,asc 从旧到新,desc 从新到旧
1814
+ # @type OrderBy: String
1815
+
1816
+ attr_accessor :StartTime, :EndTime, :EventBusId, :Page, :Limit, :Filter, :OrderFields, :OrderBy
1817
+
1818
+ def initialize(starttime=nil, endtime=nil, eventbusid=nil, page=nil, limit=nil, filter=nil, orderfields=nil, orderby=nil)
1819
+ @StartTime = starttime
1820
+ @EndTime = endtime
1821
+ @EventBusId = eventbusid
1822
+ @Page = page
1823
+ @Limit = limit
1824
+ @Filter = filter
1825
+ @OrderFields = orderfields
1826
+ @OrderBy = orderby
1827
+ end
1828
+
1829
+ def deserialize(params)
1830
+ @StartTime = params['StartTime']
1831
+ @EndTime = params['EndTime']
1832
+ @EventBusId = params['EventBusId']
1833
+ @Page = params['Page']
1834
+ @Limit = params['Limit']
1835
+ unless params['Filter'].nil?
1836
+ @Filter = []
1837
+ params['Filter'].each do |i|
1838
+ logfilter_tmp = LogFilter.new
1839
+ logfilter_tmp.deserialize(i)
1840
+ @Filter << logfilter_tmp
1841
+ end
1842
+ end
1843
+ @OrderFields = params['OrderFields']
1844
+ @OrderBy = params['OrderBy']
1845
+ end
1846
+ end
1847
+
1848
+ # SearchLog返回参数结构体
1849
+ class SearchLogResponse < TencentCloud::Common::AbstractModel
1850
+ # @param Total: 日志总数
1851
+ # 注意:此字段可能返回 null,表示取不到有效值。
1852
+ # @type Total: Integer
1853
+ # @param Limit: 每页日志条数
1854
+ # 注意:此字段可能返回 null,表示取不到有效值。
1855
+ # @type Limit: Integer
1856
+ # @param Page: 页码
1857
+ # 注意:此字段可能返回 null,表示取不到有效值。
1858
+ # @type Page: Integer
1859
+ # @param Results: 日志检索结果
1860
+ # 注意:此字段可能返回 null,表示取不到有效值。
1861
+ # @type Results: Array
1862
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1863
+ # @type RequestId: String
1864
+
1865
+ attr_accessor :Total, :Limit, :Page, :Results, :RequestId
1866
+
1867
+ def initialize(total=nil, limit=nil, page=nil, results=nil, requestid=nil)
1868
+ @Total = total
1869
+ @Limit = limit
1870
+ @Page = page
1871
+ @Results = results
1872
+ @RequestId = requestid
1873
+ end
1874
+
1875
+ def deserialize(params)
1876
+ @Total = params['Total']
1877
+ @Limit = params['Limit']
1878
+ @Page = params['Page']
1879
+ unless params['Results'].nil?
1880
+ @Results = []
1881
+ params['Results'].each do |i|
1882
+ searchlogresult_tmp = SearchLogResult.new
1883
+ searchlogresult_tmp.deserialize(i)
1884
+ @Results << searchlogresult_tmp
1885
+ end
1886
+ end
1887
+ @RequestId = params['RequestId']
1888
+ end
1889
+ end
1890
+
1891
+ # 日志检索详情
1892
+ class SearchLogResult < TencentCloud::Common::AbstractModel
1893
+ # @param Timestamp: 单条日志上报时间
1894
+ # 注意:此字段可能返回 null,表示取不到有效值。
1895
+ # @type Timestamp: String
1896
+ # @param Message: 日志内容详情
1897
+ # 注意:此字段可能返回 null,表示取不到有效值。
1898
+ # @type Message: String
1899
+ # @param Source: 事件来源
1900
+ # 注意:此字段可能返回 null,表示取不到有效值。
1901
+ # @type Source: String
1902
+ # @param Type: 事件类型
1903
+ # 注意:此字段可能返回 null,表示取不到有效值。
1904
+ # @type Type: String
1905
+ # @param RuleIds: 事件匹配规则
1906
+ # 注意:此字段可能返回 null,表示取不到有效值。
1907
+ # @type RuleIds: String
1908
+ # @param Subject: 实例ID
1909
+ # 注意:此字段可能返回 null,表示取不到有效值。
1910
+ # @type Subject: String
1911
+ # @param Region: 地域
1912
+ # 注意:此字段可能返回 null,表示取不到有效值。
1913
+ # @type Region: String
1914
+ # @param Status: 事件状态
1915
+ # 注意:此字段可能返回 null,表示取不到有效值。
1916
+ # @type Status: String
1917
+
1918
+ attr_accessor :Timestamp, :Message, :Source, :Type, :RuleIds, :Subject, :Region, :Status
1919
+
1920
+ def initialize(timestamp=nil, message=nil, source=nil, type=nil, ruleids=nil, subject=nil, region=nil, status=nil)
1921
+ @Timestamp = timestamp
1922
+ @Message = message
1923
+ @Source = source
1924
+ @Type = type
1925
+ @RuleIds = ruleids
1926
+ @Subject = subject
1927
+ @Region = region
1928
+ @Status = status
1929
+ end
1930
+
1931
+ def deserialize(params)
1932
+ @Timestamp = params['Timestamp']
1933
+ @Message = params['Message']
1934
+ @Source = params['Source']
1935
+ @Type = params['Type']
1936
+ @RuleIds = params['RuleIds']
1937
+ @Subject = params['Subject']
1938
+ @Region = params['Region']
1939
+ @Status = params['Status']
1940
+ end
1941
+ end
1942
+
1666
1943
  # Target信息
1667
1944
  class Target < TencentCloud::Common::AbstractModel
1668
1945
  # @param Type: 目标类型
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-eb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.536
4
+ version: 3.0.537
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-23 00:00:00.000000000 Z
11
+ date: 2023-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common