Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add organization metadata to additional Usage API responses #1317

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-27 16:01:43.454600",
"spec_repo_commit": "c738c50"
"regenerated": "2022-01-31 10:15:52.937368",
"spec_repo_commit": "28778f1"
},
"v2": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-27 16:01:43.466103",
"spec_repo_commit": "c738c50"
"regenerated": "2022-01-31 10:15:52.951673",
"spec_repo_commit": "28778f1"
}
}
}
42 changes: 42 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12428,6 +12428,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageAnalyzedLogsResponse:
description: A response containing the number of analyzed logs for each hour
Expand Down Expand Up @@ -13347,6 +13353,12 @@ components:
of the given hour's month until the given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIncidentManagementResponse:
description: Response containing the incident management usage for each hour
Expand All @@ -13369,6 +13381,12 @@ components:
description: Contains the number of spans indexed.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIndexedSpansResponse:
description: A response containing indexed spans usage.
Expand All @@ -13392,6 +13410,12 @@ components:
hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIngestedSpansResponse:
description: Response containing the ingested spans usage for each hour for
Expand All @@ -13414,6 +13438,12 @@ components:
description: The total number of IoT devices during a given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIoTResponse:
description: Response containing the IoT usage for each hour for a given organization.
Expand Down Expand Up @@ -13641,6 +13671,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageProfilingResponse:
description: Response containing the number of profiled hosts for each hour
Expand Down Expand Up @@ -13782,6 +13818,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
snmp_devices:
description: Contains the number of SNMP devices.
format: int64
Expand Down
52 changes: 52 additions & 0 deletions api/v1/datadog/docs/UsageAnalyzedLogsHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ---------------- | ------------------------ | ------------------------------------- | ---------- |
| **AnalyzedLogs** | Pointer to **int64** | Contains the number of analyzed logs. | [optional] |
| **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] |
| **OrgName** | Pointer to **string** | The organization name. | [optional] |
| **PublicId** | Pointer to **string** | The organization public ID. | [optional] |

## Methods

Expand Down Expand Up @@ -76,4 +78,54 @@ SetHour sets Hour field to given value.

HasHour returns a boolean if a field has been set.

### GetOrgName

`func (o *UsageAnalyzedLogsHour) GetOrgName() string`

GetOrgName returns the OrgName field if non-nil, zero value otherwise.

### GetOrgNameOk

`func (o *UsageAnalyzedLogsHour) GetOrgNameOk() (*string, bool)`

GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetOrgName

`func (o *UsageAnalyzedLogsHour) SetOrgName(v string)`

SetOrgName sets OrgName field to given value.

### HasOrgName

`func (o *UsageAnalyzedLogsHour) HasOrgName() bool`

HasOrgName returns a boolean if a field has been set.

### GetPublicId

`func (o *UsageAnalyzedLogsHour) GetPublicId() string`

GetPublicId returns the PublicId field if non-nil, zero value otherwise.

### GetPublicIdOk

`func (o *UsageAnalyzedLogsHour) GetPublicIdOk() (*string, bool)`

GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetPublicId

`func (o *UsageAnalyzedLogsHour) SetPublicId(v string)`

SetPublicId sets PublicId field to given value.

### HasPublicId

`func (o *UsageAnalyzedLogsHour) HasPublicId() bool`

HasPublicId returns a boolean if a field has been set.

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
52 changes: 52 additions & 0 deletions api/v1/datadog/docs/UsageIncidentManagementHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ---------------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------- | ---------- |
| **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] |
| **MonthlyActiveUsers** | Pointer to **int64** | Contains the total number monthly active users from the start of the given hour's month until the given hour. | [optional] |
| **OrgName** | Pointer to **string** | The organization name. | [optional] |
| **PublicId** | Pointer to **string** | The organization public ID. | [optional] |

## Methods

Expand Down Expand Up @@ -76,4 +78,54 @@ SetMonthlyActiveUsers sets MonthlyActiveUsers field to given value.

HasMonthlyActiveUsers returns a boolean if a field has been set.

### GetOrgName

`func (o *UsageIncidentManagementHour) GetOrgName() string`

GetOrgName returns the OrgName field if non-nil, zero value otherwise.

### GetOrgNameOk

`func (o *UsageIncidentManagementHour) GetOrgNameOk() (*string, bool)`

GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetOrgName

`func (o *UsageIncidentManagementHour) SetOrgName(v string)`

SetOrgName sets OrgName field to given value.

### HasOrgName

`func (o *UsageIncidentManagementHour) HasOrgName() bool`

HasOrgName returns a boolean if a field has been set.

### GetPublicId

`func (o *UsageIncidentManagementHour) GetPublicId() string`

GetPublicId returns the PublicId field if non-nil, zero value otherwise.

### GetPublicIdOk

`func (o *UsageIncidentManagementHour) GetPublicIdOk() (*string, bool)`

GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetPublicId

`func (o *UsageIncidentManagementHour) SetPublicId(v string)`

SetPublicId sets PublicId field to given value.

### HasPublicId

`func (o *UsageIncidentManagementHour) HasPublicId() bool`

HasPublicId returns a boolean if a field has been set.

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
52 changes: 52 additions & 0 deletions api/v1/datadog/docs/UsageIndexedSpansHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ---------------------- | ------------------------ | ------------------------------------- | ---------- |
| **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] |
| **IndexedEventsCount** | Pointer to **int64** | Contains the number of spans indexed. | [optional] |
| **OrgName** | Pointer to **string** | The organization name. | [optional] |
| **PublicId** | Pointer to **string** | The organization public ID. | [optional] |

## Methods

Expand Down Expand Up @@ -76,4 +78,54 @@ SetIndexedEventsCount sets IndexedEventsCount field to given value.

HasIndexedEventsCount returns a boolean if a field has been set.

### GetOrgName

`func (o *UsageIndexedSpansHour) GetOrgName() string`

GetOrgName returns the OrgName field if non-nil, zero value otherwise.

### GetOrgNameOk

`func (o *UsageIndexedSpansHour) GetOrgNameOk() (*string, bool)`

GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetOrgName

`func (o *UsageIndexedSpansHour) SetOrgName(v string)`

SetOrgName sets OrgName field to given value.

### HasOrgName

`func (o *UsageIndexedSpansHour) HasOrgName() bool`

HasOrgName returns a boolean if a field has been set.

### GetPublicId

`func (o *UsageIndexedSpansHour) GetPublicId() string`

GetPublicId returns the PublicId field if non-nil, zero value otherwise.

### GetPublicIdOk

`func (o *UsageIndexedSpansHour) GetPublicIdOk() (*string, bool)`

GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetPublicId

`func (o *UsageIndexedSpansHour) SetPublicId(v string)`

SetPublicId sets PublicId field to given value.

### HasPublicId

`func (o *UsageIndexedSpansHour) HasPublicId() bool`

HasPublicId returns a boolean if a field has been set.

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
52 changes: 52 additions & 0 deletions api/v1/datadog/docs/UsageIngestedSpansHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ----------------------- | ------------------------ | ---------------------------------------------------------------- | ---------- |
| **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] |
| **IngestedEventsBytes** | Pointer to **int64** | Contains the total number of bytes ingested during a given hour. | [optional] |
| **OrgName** | Pointer to **string** | The organization name. | [optional] |
| **PublicId** | Pointer to **string** | The organization public ID. | [optional] |

## Methods

Expand Down Expand Up @@ -76,4 +78,54 @@ SetIngestedEventsBytes sets IngestedEventsBytes field to given value.

HasIngestedEventsBytes returns a boolean if a field has been set.

### GetOrgName

`func (o *UsageIngestedSpansHour) GetOrgName() string`

GetOrgName returns the OrgName field if non-nil, zero value otherwise.

### GetOrgNameOk

`func (o *UsageIngestedSpansHour) GetOrgNameOk() (*string, bool)`

GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetOrgName

`func (o *UsageIngestedSpansHour) SetOrgName(v string)`

SetOrgName sets OrgName field to given value.

### HasOrgName

`func (o *UsageIngestedSpansHour) HasOrgName() bool`

HasOrgName returns a boolean if a field has been set.

### GetPublicId

`func (o *UsageIngestedSpansHour) GetPublicId() string`

GetPublicId returns the PublicId field if non-nil, zero value otherwise.

### GetPublicIdOk

`func (o *UsageIngestedSpansHour) GetPublicIdOk() (*string, bool)`

GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetPublicId

`func (o *UsageIngestedSpansHour) SetPublicId(v string)`

SetPublicId sets PublicId field to given value.

### HasPublicId

`func (o *UsageIngestedSpansHour) HasPublicId() bool`

HasPublicId returns a boolean if a field has been set.

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Loading