Class: Infrawrench::NetworkFlowsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::NetworkFlowsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.network_flows
Instance Attribute Summary collapse
-
#settings ⇒ NetworkFlowsSettingsNamespace
readonly
client.network_flows.settings.
Instance Method Summary collapse
-
#get(org_id: nil, from: nil, to: nil, scope: nil, account_id: nil, limit: nil, request_options: nil) ⇒ Hash
Priced source→destination network flow attribution.
-
#initialize(transport) ⇒ NetworkFlowsNamespace
constructor
private
A new instance of NetworkFlowsNamespace.
Constructor Details
#initialize(transport) ⇒ NetworkFlowsNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of NetworkFlowsNamespace.
9787 9788 9789 9790 |
# File 'lib/infrawrench/client.rb', line 9787 def initialize(transport) @transport = transport @settings = NetworkFlowsSettingsNamespace.new(@transport) end |
Instance Attribute Details
#settings ⇒ NetworkFlowsSettingsNamespace (readonly)
Returns client.network_flows.settings.
9783 9784 9785 |
# File 'lib/infrawrench/client.rb', line 9783 def settings @settings end |
Instance Method Details
#get(org_id: nil, from: nil, to: nil, scope: nil, account_id: nil, limit: nil, request_options: nil) ⇒ Hash
Priced source→destination network flow attribution
Which two things are talking, across which billing boundary, and what that costs. Answers the question the cost dimensions structurally cannot: every cost dimension is about one side of a transfer, and a network charge is about a pair.
All figures are estimates and the estimated field says so
unconditionally. Bytes come from the provider's flow logs (which sample,
or drop records under capacity pressure) and are priced at published list
rates with no free tier, no volume tier and no negotiated discount
applied. Use the ranking; do not reconcile the total against an invoice
line.
Accounts whose provider has no readable flow source appear in accounts
with supportsFlows: false and contribute nothing to the totals — never
zero bytes.
Requires permission: costs:read.
GET /api/org/orgId/network-flows
Raises on 400: Bad request
9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 |
# File 'lib/infrawrench/client.rb', line 9827 def get( org_id: nil, from: nil, to: nil, scope: nil, account_id: nil, limit: nil, request_options: nil ) @transport.request( http_method: "GET", path: "/api/org/{orgId}/network-flows", path_params: { "orgId" => org_id }, query: { "from" => from, "to" => to, "scope" => scope, "accountId" => account_id, "limit" => limit }, request_options: ) end |