stigg 0.1.0.pre.alpha.14 → 0.1.0.pre.alpha.15
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 +1 -1
- data/lib/stigg/models/v1/usage_history_params.rb +13 -1
- data/lib/stigg/resources/v1/usage.rb +7 -1
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/v1/usage_history_params.rbi +13 -0
- data/rbi/stigg/resources/v1/usage.rbi +4 -0
- data/sig/stigg/models/v1/usage_history_params.rbs +7 -0
- data/sig/stigg/resources/v1/usage.rbs +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1bf10deb5ac90c697e27940afd010a06196ecb38e3f8ee95d5536302df5fef6b
|
|
4
|
+
data.tar.gz: 1b56af44714f378fb8b44c2a69d5cbcc2c7923af6529282b6a05e8446c09f841
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56240ae9f89167ae24b51499f3047ccd7cb455ac3ae195437cc3fd19ddaa7f789d899347928289070a934a09339268cbd985c99f104e1f3044a571c16b333e71
|
|
7
|
+
data.tar.gz: 76c3f9dd46def0ab92d8a3eaaf0de9f74ca740cc3bcbc60e5bfdb2e46e8f9192129b6ee056cb539b7d6c54b5f879714266210d998919162559618bdc3c832d5c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.15 (2026-03-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8f6f8c5](https://github.com/stiggio/stigg-ruby/commit/8f6f8c5601aa612ea42f29724195b58b59bcff8f))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.14 (2026-03-05)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
|
data/README.md
CHANGED
|
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
|
24
24
|
<!-- x-release-please-start-version -->
|
|
25
25
|
|
|
26
26
|
```ruby
|
|
27
|
-
gem "stigg", "~> 0.1.0.pre.alpha.
|
|
27
|
+
gem "stigg", "~> 0.1.0.pre.alpha.15"
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
<!-- x-release-please-end -->
|
|
@@ -30,13 +30,23 @@ module Stigg
|
|
|
30
30
|
# @return [String, nil]
|
|
31
31
|
optional :group_by, String
|
|
32
32
|
|
|
33
|
+
# @!attribute include_historical_usage
|
|
34
|
+
# When true, includes usage data from the most recent cancelled or expired
|
|
35
|
+
# subscription
|
|
36
|
+
#
|
|
37
|
+
# @return [Boolean, nil]
|
|
38
|
+
optional :include_historical_usage, Stigg::Internal::Type::Boolean
|
|
39
|
+
|
|
33
40
|
# @!attribute resource_id
|
|
34
41
|
# Resource id
|
|
35
42
|
#
|
|
36
43
|
# @return [String, nil]
|
|
37
44
|
optional :resource_id, String, nil?: true
|
|
38
45
|
|
|
39
|
-
# @!method initialize(customer_id:, start_date:, end_date: nil, group_by: nil, resource_id: nil, request_options: {})
|
|
46
|
+
# @!method initialize(customer_id:, start_date:, end_date: nil, group_by: nil, include_historical_usage: nil, resource_id: nil, request_options: {})
|
|
47
|
+
# Some parameter documentations has been truncated, see
|
|
48
|
+
# {Stigg::Models::V1::UsageHistoryParams} for more details.
|
|
49
|
+
#
|
|
40
50
|
# @param customer_id [String]
|
|
41
51
|
#
|
|
42
52
|
# @param start_date [Time] The start date of the range
|
|
@@ -45,6 +55,8 @@ module Stigg
|
|
|
45
55
|
#
|
|
46
56
|
# @param group_by [String]
|
|
47
57
|
#
|
|
58
|
+
# @param include_historical_usage [Boolean] When true, includes usage data from the most recent cancelled or expired subscri
|
|
59
|
+
#
|
|
48
60
|
# @param resource_id [String, nil] Resource id
|
|
49
61
|
#
|
|
50
62
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -5,9 +5,12 @@ module Stigg
|
|
|
5
5
|
class V1
|
|
6
6
|
# Operations related to usage & metering
|
|
7
7
|
class Usage
|
|
8
|
+
# Some parameter documentations has been truncated, see
|
|
9
|
+
# {Stigg::Models::V1::UsageHistoryParams} for more details.
|
|
10
|
+
#
|
|
8
11
|
# Retrieves historical usage data for a customer's metered feature over time.
|
|
9
12
|
#
|
|
10
|
-
# @overload history(feature_id, customer_id:, start_date:, end_date: nil, group_by: nil, resource_id: nil, request_options: {})
|
|
13
|
+
# @overload history(feature_id, customer_id:, start_date:, end_date: nil, group_by: nil, include_historical_usage: nil, resource_id: nil, request_options: {})
|
|
11
14
|
#
|
|
12
15
|
# @param feature_id [String] Path param: Feature id
|
|
13
16
|
#
|
|
@@ -19,6 +22,8 @@ module Stigg
|
|
|
19
22
|
#
|
|
20
23
|
# @param group_by [String] Query param
|
|
21
24
|
#
|
|
25
|
+
# @param include_historical_usage [Boolean] Query param: When true, includes usage data from the most recent cancelled or ex
|
|
26
|
+
#
|
|
22
27
|
# @param resource_id [String, nil] Query param: Resource id
|
|
23
28
|
#
|
|
24
29
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -40,6 +45,7 @@ module Stigg
|
|
|
40
45
|
start_date: "startDate",
|
|
41
46
|
end_date: "endDate",
|
|
42
47
|
group_by: "groupBy",
|
|
48
|
+
include_historical_usage: "includeHistoricalUsage",
|
|
43
49
|
resource_id: "resourceId"
|
|
44
50
|
),
|
|
45
51
|
model: Stigg::Models::V1::UsageHistoryResponse,
|
data/lib/stigg/version.rb
CHANGED
|
@@ -32,6 +32,14 @@ module Stigg
|
|
|
32
32
|
sig { params(group_by: String).void }
|
|
33
33
|
attr_writer :group_by
|
|
34
34
|
|
|
35
|
+
# When true, includes usage data from the most recent cancelled or expired
|
|
36
|
+
# subscription
|
|
37
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
38
|
+
attr_reader :include_historical_usage
|
|
39
|
+
|
|
40
|
+
sig { params(include_historical_usage: T::Boolean).void }
|
|
41
|
+
attr_writer :include_historical_usage
|
|
42
|
+
|
|
35
43
|
# Resource id
|
|
36
44
|
sig { returns(T.nilable(String)) }
|
|
37
45
|
attr_accessor :resource_id
|
|
@@ -42,6 +50,7 @@ module Stigg
|
|
|
42
50
|
start_date: Time,
|
|
43
51
|
end_date: Time,
|
|
44
52
|
group_by: String,
|
|
53
|
+
include_historical_usage: T::Boolean,
|
|
45
54
|
resource_id: T.nilable(String),
|
|
46
55
|
request_options: Stigg::RequestOptions::OrHash
|
|
47
56
|
).returns(T.attached_class)
|
|
@@ -53,6 +62,9 @@ module Stigg
|
|
|
53
62
|
# The end date of the range
|
|
54
63
|
end_date: nil,
|
|
55
64
|
group_by: nil,
|
|
65
|
+
# When true, includes usage data from the most recent cancelled or expired
|
|
66
|
+
# subscription
|
|
67
|
+
include_historical_usage: nil,
|
|
56
68
|
# Resource id
|
|
57
69
|
resource_id: nil,
|
|
58
70
|
request_options: {}
|
|
@@ -66,6 +78,7 @@ module Stigg
|
|
|
66
78
|
start_date: Time,
|
|
67
79
|
end_date: Time,
|
|
68
80
|
group_by: String,
|
|
81
|
+
include_historical_usage: T::Boolean,
|
|
69
82
|
resource_id: T.nilable(String),
|
|
70
83
|
request_options: Stigg::RequestOptions
|
|
71
84
|
}
|
|
@@ -13,6 +13,7 @@ module Stigg
|
|
|
13
13
|
start_date: Time,
|
|
14
14
|
end_date: Time,
|
|
15
15
|
group_by: String,
|
|
16
|
+
include_historical_usage: T::Boolean,
|
|
16
17
|
resource_id: T.nilable(String),
|
|
17
18
|
request_options: Stigg::RequestOptions::OrHash
|
|
18
19
|
).returns(Stigg::Models::V1::UsageHistoryResponse)
|
|
@@ -28,6 +29,9 @@ module Stigg
|
|
|
28
29
|
end_date: nil,
|
|
29
30
|
# Query param
|
|
30
31
|
group_by: nil,
|
|
32
|
+
# Query param: When true, includes usage data from the most recent cancelled or
|
|
33
|
+
# expired subscription
|
|
34
|
+
include_historical_usage: nil,
|
|
31
35
|
# Query param: Resource id
|
|
32
36
|
resource_id: nil,
|
|
33
37
|
request_options: {}
|
|
@@ -7,6 +7,7 @@ module Stigg
|
|
|
7
7
|
start_date: Time,
|
|
8
8
|
end_date: Time,
|
|
9
9
|
group_by: String,
|
|
10
|
+
include_historical_usage: bool,
|
|
10
11
|
resource_id: String?
|
|
11
12
|
}
|
|
12
13
|
& Stigg::Internal::Type::request_parameters
|
|
@@ -27,6 +28,10 @@ module Stigg
|
|
|
27
28
|
|
|
28
29
|
def group_by=: (String) -> String
|
|
29
30
|
|
|
31
|
+
attr_reader include_historical_usage: bool?
|
|
32
|
+
|
|
33
|
+
def include_historical_usage=: (bool) -> bool
|
|
34
|
+
|
|
30
35
|
attr_accessor resource_id: String?
|
|
31
36
|
|
|
32
37
|
def initialize: (
|
|
@@ -34,6 +39,7 @@ module Stigg
|
|
|
34
39
|
start_date: Time,
|
|
35
40
|
?end_date: Time,
|
|
36
41
|
?group_by: String,
|
|
42
|
+
?include_historical_usage: bool,
|
|
37
43
|
?resource_id: String?,
|
|
38
44
|
?request_options: Stigg::request_opts
|
|
39
45
|
) -> void
|
|
@@ -43,6 +49,7 @@ module Stigg
|
|
|
43
49
|
start_date: Time,
|
|
44
50
|
end_date: Time,
|
|
45
51
|
group_by: String,
|
|
52
|
+
include_historical_usage: bool,
|
|
46
53
|
resource_id: String?,
|
|
47
54
|
request_options: Stigg::RequestOptions
|
|
48
55
|
}
|