Skip to content

feat(cockpit): update wording #2191

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
28 changes: 13 additions & 15 deletions packages_generated/cockpit/src/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
urlParams,
validatePathParam,
} from '@scaleway/sdk-client'
import type { Region as ScwRegion } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
marshalGlobalApiCreateGrafanaUserRequest,
marshalGlobalApiResetGrafanaUserPasswordRequest,
Expand Down Expand Up @@ -386,12 +387,13 @@ Deprecated: retention is now managed at the data source level.
The Cockpit API allows you to create data sources and Cockpit tokens to store and query data types such as metrics, logs, and traces. You can also push your data into Cockpit, and send alerts to your contact points when your resources may require your attention, using the regional Alert manager.
*/
export class RegionalAPI extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: ScwRegion[] = [
'fr-par',
'nl-ams',
'pl-waw',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
regions: ['fr-par', 'nl-ams', 'pl-waw'],
})

/**
* Get the Cockpit configuration.
Expand All @@ -409,10 +411,7 @@ export class RegionalAPI extends ParentAPI {
)

/**
* Create a data source. You must specify the data source type upon creation. Available data source types include:
- metrics
- logs
- traces
* Create a data source. You must specify the data source name and type (metrics, logs, traces) upon creation.
The name of the data source will then be used as reference to name the associated Grafana data source.
*
* @param request - The request {@link RegionalApiCreateDataSourceRequest}
Expand Down Expand Up @@ -450,7 +449,7 @@ The name of the data source will then be used as reference to name the associate
)

/**
* Delete a data source. Delete a given data source, specified by the data source ID. Note that deleting a data source is irreversible, and cannot be undone.
* Delete a data source. Delete a given data source. Note that this action will permanently delete this data source and any data associated with it.
*
* @param request - The request {@link RegionalApiDeleteDataSourceRequest}
*/
Expand Down Expand Up @@ -487,7 +486,6 @@ The name of the data source will then be used as reference to name the associate

/**
* List data sources. Retrieve the list of data sources available in the specified region. By default, the data sources returned in the list are ordered by creation date, in ascending order.
You can list data sources by Project, type and origin.
*
* @param request - The request {@link RegionalApiListDataSourcesRequest}
* @returns A Promise of ListDataSourcesResponse
Expand All @@ -497,7 +495,7 @@ You can list data sources by Project, type and origin.
) => enrichForPagination('dataSources', this.pageOfListDataSources, request)

/**
* Update a data source. Update a given data source name, specified by the data source ID.
* Update a data source. Update a given data source attributes (name and/or retention_days).
*
* @param request - The request {@link RegionalApiUpdateDataSourceRequest}
* @returns A Promise of DataSource
Expand All @@ -519,7 +517,7 @@ You can list data sources by Project, type and origin.
)

/**
* Get data source usage overview. Retrieve the data source usage overview per type for the specified Project.
* Get data source usage overview. Retrieve the volume of data ingested for each of your data sources in the specified project and region.
*
* @param request - The request {@link RegionalApiGetUsageOverviewRequest}
* @returns A Promise of UsageOverview
Expand Down
10 changes: 5 additions & 5 deletions packages_generated/cockpit/src/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export interface DataSource {
*/
synchronizedWithGrafana: boolean
/**
* BETA - Duration for which the data will be retained in the data source.
* Duration for which the data will be retained in the data source.
*/
retentionDays: number
/**
Expand Down Expand Up @@ -754,7 +754,7 @@ export type RegionalApiCreateDataSourceRequest = {
*/
type?: DataSourceType
/**
* Default values are 30 days for metrics, 7 days for logs and traces.
* Default values are 31 days for metrics, 7 days for logs and traces.
*/
retentionDays?: number
}
Expand Down Expand Up @@ -1053,11 +1053,11 @@ export type RegionalApiListDataSourcesRequest = {
*/
projectId?: string
/**
* Origin to filter for, only data sources with matching origin will be returned.
* Origin to filter for, only data sources with matching origin will be returned. If omitted, all types will be returned.
*/
origin?: DataSourceOrigin
/**
* Types to filter for, only data sources with matching types will be returned.
* Types to filter for (metrics, logs, traces), only data sources with matching types will be returned. If omitted, all types will be returned.
*/
types?: DataSourceType[]
}
Expand Down Expand Up @@ -1147,7 +1147,7 @@ export type RegionalApiUpdateDataSourceRequest = {
*/
name?: string
/**
* BETA - Duration for which the data will be retained in the data source.
* Duration for which the data will be retained in the data source.
*/
retentionDays?: number
}
Expand Down
Loading